From d645ed84b292a9e16b5060c91b7f1e024547ca88 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 14 Sep 2026 18:03:57 +0000 Subject: [PATCH] Configurations: 'specification/iothub/resource-manager/Microsoft.Devices/IoTHub/tspconfig.yaml', and CommitSHA: 'aacdbe71d42e2e79ff09699751c2d543e3ecc826' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6833413 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../azure-resourcemanager-iothub/CHANGELOG.md | 100 +++++++- .../azure-resourcemanager-iothub/README.md | 4 +- .../azure-resourcemanager-iothub/SAMPLE.md | 218 +++++++++++++----- .../azure-resourcemanager-iothub/pom.xml | 2 +- .../implementation/IotHubClientImpl.java | 2 +- .../iothub/models/CertificateProperties.java | 28 +-- .../CertificatePropertiesWithNonce.java | 19 +- .../iothub/models/ConnectionProfile.java | 51 ++++ .../iothub/models/DeviceRegistry.java | 75 ++++-- .../iothub/models/DeviceRegistryIdentity.java | 91 ++++++++ .../models/DeviceRegistryIdentityType.java | 51 ++++ .../DeviceRegistryLinkingProperties.java | 91 ++++++++ .../models/DeviceRegistryLinkingState.java | 61 +++++ .../iothub/models/IotHubProperties.java | 68 +++++- .../iothub/models/MessagePayloadFormat.java | 51 ++++ .../iothub/models/MqttV5Settings.java | 87 +++++++ .../iothub/models/RouteProperties.java | 28 +++ .../RoutingCosmosDBSqlApiProperties.java | 30 +++ .../models/RoutingEventHubProperties.java | 30 +++ .../models/RoutingEventStreamProperties.java | 30 +++ ...tingServiceBusQueueEndpointProperties.java | 31 +++ ...tingServiceBusTopicEndpointProperties.java | 31 +++ .../RoutingStorageContainerProperties.java | 30 +++ .../iothub/models/TopicGroup.java | 116 ++++++++++ ...azure-resourcemanager-iothub_metadata.json | 2 +- .../CertificatesCreateOrUpdateSamples.java | 18 +- .../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 | 102 ++++++-- ...rceDeleteEventHubConsumerGroupSamples.java | 2 +- .../IotHubResourceDeleteSamples.java | 2 +- .../IotHubResourceExportDevicesSamples.java | 2 +- ...tHubResourceGetByResourceGroupSamples.java | 28 ++- ...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 +- .../iothub/generated/ArmIdentityTests.java | 11 +- .../generated/ArmUserIdentityTests.java | 2 +- .../CertificateDescriptionInnerTests.java | 16 +- .../CertificateListDescriptionInnerTests.java | 8 +- .../generated/CertificatePropertiesTests.java | 15 +- ...rtificateVerificationDescriptionTests.java | 9 +- ...esCreateOrUpdateWithResponseMockTests.java | 16 +- ...rtificatesDeleteWithResponseMockTests.java | 2 +- .../CertificatesGetWithResponseMockTests.java | 8 +- ...atesListByIotHubWithResponseMockTests.java | 10 +- ...rtificatesVerifyWithResponseMockTests.java | 10 +- .../CloudToDevicePropertiesTests.java | 32 +-- .../DeviceRegistryIdentityTests.java | 21 ++ .../iothub/generated/DeviceRegistryTests.java | 29 --- .../EndpointHealthDataInnerTests.java | 14 +- .../EndpointHealthDataListResultTests.java | 16 +- ...tHubConsumerGroupBodyDescriptionTests.java | 13 +- .../EventHubConsumerGroupInfoInnerTests.java | 2 +- .../EventHubConsumerGroupNameTests.java | 8 +- ...EventHubConsumerGroupsListResultTests.java | 4 +- .../iothub/generated/FailoverInputTests.java | 8 +- .../FallbackRoutePropertiesTests.java | 26 +-- .../generated/FeedbackPropertiesTests.java | 20 +- .../GroupIdInformationInnerTests.java | 8 +- .../GroupIdInformationPropertiesTests.java | 8 +- .../generated/ImportDevicesRequestTests.java | 38 +-- .../iothub/generated/IotHubCapacityTests.java | 2 +- .../iothub/generated/IotHubDetailsTests.java | 4 +- .../IotHubLocationDescriptionTests.java | 6 +- .../IotHubNameAvailabilityInfoInnerTests.java | 8 +- .../IotHubPropertiesDeviceStreamsTests.java | 13 +- .../IotHubQuotaMetricInfoInnerTests.java | 3 +- .../IotHubQuotaMetricInfoListResultTests.java | 4 +- ...NameAvailabilityWithResponseMockTests.java | 6 +- ...HubConsumerGroupWithResponseMockTests.java | 8 +- ...HubConsumerGroupWithResponseMockTests.java | 2 +- .../IotHubResourcesDeleteMockTests.java | 2 +- ...ubResourcesGetEndpointHealthMockTests.java | 18 +- ...HubConsumerGroupWithResponseMockTests.java | 4 +- ...bResourcesGetJobWithResponseMockTests.java | 4 +- ...tHubResourcesGetQuotaMetricsMockTests.java | 4 +- ...esourcesGetStatsWithResponseMockTests.java | 4 +- .../IotHubResourcesGetValidSkusMockTests.java | 10 +- ...cesImportDevicesWithResponseMockTests.java | 18 +- ...esListEventHubConsumerGroupsMockTests.java | 4 +- .../IotHubResourcesListJobsMockTests.java | 4 +- ...cesTestAllRoutesWithResponseMockTests.java | 29 +-- ...sourcesTestRouteWithResponseMockTests.java | 41 ++-- .../IotHubSkuDescriptionInnerTests.java | 6 +- .../IotHubSkuDescriptionListResultTests.java | 8 +- .../iothub/generated/IotHubSkuInfoTests.java | 12 +- .../IotHubsManualFailoverMockTests.java | 2 +- .../generated/JobResponseInnerTests.java | 2 +- .../generated/JobResponseListResultTests.java | 4 +- .../generated/ManagedIdentityTests.java | 8 +- .../iothub/generated/MatchedRouteTests.java | 13 +- .../MessagingEndpointPropertiesTests.java | 20 +- .../iothub/generated/MqttV5SettingsTests.java | 33 +++ .../iothub/generated/NameTests.java | 8 +- .../generated/OperationInputsTests.java | 8 +- .../generated/OperationsListMockTests.java | 2 +- ...ateEndpointConnectionsDeleteMockTests.java | 2 +- ...ntConnectionsGetWithResponseMockTests.java | 11 +- ...tConnectionsListWithResponseMockTests.java | 10 +- ...ateEndpointConnectionsUpdateMockTests.java | 15 +- .../PrivateLinkResourcesInnerTests.java | 8 +- ...cesOperationsGetWithResponseMockTests.java | 10 +- ...esOperationsListWithResponseMockTests.java | 10 +- .../RegistryStatisticsInnerTests.java | 2 +- ...ubscriptionQuotaWithResponseMockTests.java | 16 +- .../RootCertificatePropertiesTests.java | 2 +- .../generated/RouteCompilationErrorTests.java | 12 +- .../generated/RouteErrorPositionTests.java | 6 +- .../generated/RouteErrorRangeTests.java | 10 +- .../generated/RoutePropertiesTests.java | 35 +-- .../RoutingEventHubPropertiesTests.java | 60 ++--- .../RoutingEventStreamPropertiesTests.java | 48 ++-- .../iothub/generated/RoutingMessageTests.java | 22 +- ...erviceBusQueueEndpointPropertiesTests.java | 54 +++-- ...erviceBusTopicEndpointPropertiesTests.java | 60 ++--- ...outingStorageContainerPropertiesTests.java | 80 ++++--- .../generated/RoutingTwinPropertiesTests.java | 4 +- .../iothub/generated/RoutingTwinTests.java | 7 +- .../StorageEndpointPropertiesTests.java | 26 +-- .../iothub/generated/TagsResourceTests.java | 10 +- .../generated/TestAllRoutesInputTests.java | 31 +-- .../TestAllRoutesResultInnerTests.java | 13 +- .../iothub/generated/TestRouteInputTests.java | 58 ++--- .../TestRouteResultDetailsTests.java | 14 +- .../generated/TestRouteResultInnerTests.java | 16 +- .../iothub/generated/TopicGroupTests.java | 30 +++ ...SubscriptionQuotaListResultInnerTests.java | 16 +- .../generated/UserSubscriptionQuotaTests.java | 16 +- .../tsp-location.yaml | 2 +- 157 files changed, 2108 insertions(+), 831 deletions(-) create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ConnectionProfile.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryIdentity.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryIdentityType.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryLinkingProperties.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryLinkingState.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MessagePayloadFormat.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MqttV5Settings.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/TopicGroup.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/DeviceRegistryIdentityTests.java delete mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/DeviceRegistryTests.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MqttV5SettingsTests.java create mode 100644 sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TopicGroupTests.java diff --git a/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md b/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md index 86aa3d9eb43fd..bb9519bfb2a38 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md +++ b/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md @@ -1,14 +1,106 @@ # Release History -## 1.4.0-beta.4 (Unreleased) +## 1.4.0-beta.4 (2026-09-14) -### Features Added +- 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 api-version 2026-10-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.DeviceRegistry` was modified + +* `DeviceRegistry()` was changed to private access +* `identityResourceId()` was removed +* `withNamespaceResourceId(java.lang.String)` was removed +* `withIdentityResourceId(java.lang.String)` was removed + +#### `models.IotHubProperties` was modified + +* `withDeviceRegistry(models.DeviceRegistry)` was removed + +#### `models.CertificatePropertiesWithNonce` was modified + +* `policyResourceId()` was removed + +#### `models.CertificateProperties` was modified + +* `policyResourceId()` was removed +* `withPolicyResourceId(java.lang.String)` was removed + +### Features Added + +* `models.MessagePayloadFormat` was added + +* `models.ConnectionProfile` was added + +* `models.TopicGroup` was added + +* `models.DeviceRegistryLinkingProperties` was added + +* `models.DeviceRegistryIdentityType` was added + +* `models.DeviceRegistryIdentity` was added + +* `models.MqttV5Settings` was added + +* `models.DeviceRegistryLinkingState` was added + +#### `models.DeviceRegistry` was modified + +* `dataPlaneHostName()` was added +* `namespaceUuid()` was added +* `linkingProperties()` was added +* `identity()` was added + +#### `models.IotHubProperties` was modified + +* `withConnectionProfile(models.ConnectionProfile)` was added +* `withMqttV5Settings(models.MqttV5Settings)` was added +* `mqttV5Settings()` was added +* `connectionProfile()` was added + +#### `models.CertificatePropertiesWithNonce` was modified + +* `certificateAuthorityResourceId()` was added + +#### `models.RoutingServiceBusQueueEndpointProperties` was modified + +* `withMessagePayloadFormat(models.MessagePayloadFormat)` was added +* `messagePayloadFormat()` was added + +#### `models.RoutingStorageContainerProperties` was modified + +* `withMessagePayloadFormat(models.MessagePayloadFormat)` was added +* `messagePayloadFormat()` was added + +#### `models.RouteProperties` was modified + +* `withDataSchema(java.lang.String)` was added +* `dataSchema()` was added + +#### `models.CertificateProperties` was modified + +* `certificateAuthorityResourceId()` was added +* `withCertificateAuthorityResourceId(java.lang.String)` was added + +#### `models.RoutingCosmosDBSqlApiProperties` was modified + +* `messagePayloadFormat()` was added +* `withMessagePayloadFormat(models.MessagePayloadFormat)` was added + +#### `models.RoutingEventStreamProperties` was modified + +* `messagePayloadFormat()` was added +* `withMessagePayloadFormat(models.MessagePayloadFormat)` was added + +#### `models.RoutingEventHubProperties` was modified + +* `withMessagePayloadFormat(models.MessagePayloadFormat)` was added +* `messagePayloadFormat()` was added + +#### `models.RoutingServiceBusTopicEndpointProperties` was modified -### Other Changes +* `messagePayloadFormat()` was added +* `withMessagePayloadFormat(models.MessagePayloadFormat)` was added ## 1.4.0-beta.3 (2026-07-21) diff --git a/sdk/iothub/azure-resourcemanager-iothub/README.md b/sdk/iothub/azure-resourcemanager-iothub/README.md index 2ea650022dfe0..06af1690f84f6 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 api-version 2026-05-01-preview. 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 api-version 2026-10-01-preview. 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.4.0-beta.3 + 1.4.0-beta.4 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md b/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md index 63724d1dafd74..1b413271b2d5b 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md +++ b/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md @@ -69,34 +69,34 @@ import com.azure.resourcemanager.iothub.models.CertificateProperties; */ public final class CertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_certificatescreateorupdate.json + * x-ms-original-file: 2026-10-01-preview/CreateOrReplace_Certificates_With_CertificateAuthorityResourceId.json */ /** - * Sample code: Certificates_CreateOrUpdate. + * Sample code: CreateOrReplace_Certificates_With_CertificateAuthorityResourceId. * * @param manager Entry point to IotHubManager. */ - public static void certificatesCreateOrUpdate(com.azure.resourcemanager.iothub.IotHubManager manager) { + public static void createOrReplaceCertificatesWithCertificateAuthorityResourceId( + com.azure.resourcemanager.iothub.IotHubManager manager) { manager.certificates() .define("cert") - .withExistingIotHub("myResourceGroup", "iothub") + .withExistingIotHub("myResourceGroup", "testHub") .withProperties(new CertificateProperties().withCertificate("############################################")) .create(); } /* - * x-ms-original-file: 2026-05-01-preview/CreateOrReplace_Certificates_With_DeviceRegistryPolicy.json + * x-ms-original-file: 2026-10-01-preview/iothub_certificatescreateorupdate.json */ /** - * Sample code: CreateOrReplace_Certificates_With_DeviceRegistryPolicy. + * Sample code: Certificates_CreateOrUpdate. * * @param manager Entry point to IotHubManager. */ - public static void - createOrReplaceCertificatesWithDeviceRegistryPolicy(com.azure.resourcemanager.iothub.IotHubManager manager) { + public static void certificatesCreateOrUpdate(com.azure.resourcemanager.iothub.IotHubManager manager) { manager.certificates() .define("cert") - .withExistingIotHub("myResourceGroup", "testHub") + .withExistingIotHub("myResourceGroup", "iothub") .withProperties(new CertificateProperties().withCertificate("############################################")) .create(); } @@ -111,7 +111,7 @@ public final class CertificatesCreateOrUpdateSamples { */ public final class CertificatesDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_certificatesdelete.json + * x-ms-original-file: 2026-10-01-preview/iothub_certificatesdelete.json */ /** * Sample code: Certificates_Delete. @@ -133,7 +133,7 @@ public final class CertificatesDeleteSamples { */ public final class CertificatesGenerateVerificationCodeSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_generateverificationcode.json + * x-ms-original-file: 2026-10-01-preview/iothub_generateverificationcode.json */ /** * Sample code: Certificates_GenerateVerificationCode. @@ -156,7 +156,7 @@ public final class CertificatesGenerateVerificationCodeSamples { */ public final class CertificatesGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getcertificate.json + * x-ms-original-file: 2026-10-01-preview/iothub_getcertificate.json */ /** * Sample code: Certificates_Get. @@ -177,7 +177,7 @@ public final class CertificatesGetSamples { */ public final class CertificatesListByIotHubSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listcertificates.json + * x-ms-original-file: 2026-10-01-preview/iothub_listcertificates.json */ /** * Sample code: Certificates_ListByIotHub. @@ -200,7 +200,7 @@ import com.azure.resourcemanager.iothub.models.CertificateVerificationDescriptio */ public final class CertificatesVerifySamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_certverify.json + * x-ms-original-file: 2026-10-01-preview/iothub_certverify.json */ /** * Sample code: Certificates_Verify. @@ -226,7 +226,7 @@ import com.azure.resourcemanager.iothub.models.FailoverInput; */ public final class IotHubManualFailoverSamples { /* - * x-ms-original-file: 2026-05-01-preview/IotHub_ManualFailover.json + * x-ms-original-file: 2026-10-01-preview/IotHub_ManualFailover.json */ /** * Sample code: IotHub_ManualFailover. @@ -251,7 +251,7 @@ import com.azure.resourcemanager.iothub.models.OperationInputs; */ public final class IotHubResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2026-05-01-preview/checkNameAvailability.json + * x-ms-original-file: 2026-10-01-preview/checkNameAvailability.json */ /** * Sample code: IotHubResource_CheckNameAvailability. @@ -276,7 +276,7 @@ import com.azure.resourcemanager.iothub.models.EventHubConsumerGroupName; */ public final class IotHubResourceCreateEventHubConsumerGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_createconsumergroup.json + * x-ms-original-file: 2026-10-01-preview/iothub_createconsumergroup.json */ /** * Sample code: IotHubResource_CreateEventHubConsumerGroup. @@ -300,8 +300,8 @@ public final class IotHubResourceCreateEventHubConsumerGroupSamples { import com.azure.resourcemanager.iothub.models.ArmIdentity; import com.azure.resourcemanager.iothub.models.Capabilities; import com.azure.resourcemanager.iothub.models.CloudToDeviceProperties; +import com.azure.resourcemanager.iothub.models.ConnectionProfile; import com.azure.resourcemanager.iothub.models.DefaultAction; -import com.azure.resourcemanager.iothub.models.DeviceRegistry; import com.azure.resourcemanager.iothub.models.EventHubProperties; import com.azure.resourcemanager.iothub.models.EventStreamAuthenticationType; import com.azure.resourcemanager.iothub.models.FallbackRouteProperties; @@ -310,17 +310,21 @@ import com.azure.resourcemanager.iothub.models.IotHubProperties; import com.azure.resourcemanager.iothub.models.IotHubSku; import com.azure.resourcemanager.iothub.models.IotHubSkuInfo; import com.azure.resourcemanager.iothub.models.IpVersion; +import com.azure.resourcemanager.iothub.models.MessagePayloadFormat; import com.azure.resourcemanager.iothub.models.MessagingEndpointProperties; +import com.azure.resourcemanager.iothub.models.MqttV5Settings; 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.ResourceIdentityType; import com.azure.resourcemanager.iothub.models.RootCertificateProperties; +import com.azure.resourcemanager.iothub.models.RouteProperties; import com.azure.resourcemanager.iothub.models.RoutingEndpoints; import com.azure.resourcemanager.iothub.models.RoutingEventStreamProperties; import com.azure.resourcemanager.iothub.models.RoutingProperties; import com.azure.resourcemanager.iothub.models.RoutingSource; import com.azure.resourcemanager.iothub.models.StorageEndpointProperties; +import com.azure.resourcemanager.iothub.models.TopicGroup; import java.time.Duration; import java.util.Arrays; import java.util.HashMap; @@ -331,14 +335,14 @@ import java.util.Map; */ public final class IotHubResourceCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/CreateOrReplace_IoTHub_With_DeviceRegistry.json + * x-ms-original-file: 2026-10-01-preview/CreateOrReplace_IotHub.json */ /** - * Sample code: CreateOrReplace_IoTHub_With_DeviceRegistry. + * Sample code: CreateOrReplace_IotHub. * * @param manager Entry point to IotHubManager. */ - public static void createOrReplaceIoTHubWithDeviceRegistry(com.azure.resourcemanager.iothub.IotHubManager manager) { + public static void createOrReplaceIotHub(com.azure.resourcemanager.iothub.IotHubManager manager) { manager.iotHubResources() .define("testHub") .withRegion("centraluseuap") @@ -362,9 +366,14 @@ public final class IotHubResourceCreateOrUpdateSamples { .withEndpoints(new RoutingEndpoints().withServiceBusQueues(Arrays.asList()) .withServiceBusTopics(Arrays.asList()) .withEventHubs(Arrays.asList()) - .withStorageContainers(Arrays.asList()) - .withEventStreams(Arrays.asList())) - .withRoutes(Arrays.asList()) + .withStorageContainers(Arrays.asList())) + .withRoutes(Arrays.asList(new RouteProperties().withName("Routeid") + .withSource(RoutingSource.DEVICE_MESSAGES) + .withCondition("true") + .withDataSchema( + "aio-sr://aiosaalkopkedev/62a24af1d7db61cd44b2ad6b6c3f4ab7312be447f89ff3401d18357d0d05ce3a:1") + .withEndpointNames(Arrays.asList("events")) + .withIsEnabled(true))) .withFallbackRoute(new FallbackRouteProperties().withName("$fallback") .withSource(RoutingSource.DEVICE_MESSAGES) .withCondition("true") @@ -387,17 +396,13 @@ public final class IotHubResourceCreateOrUpdateSamples { .withFeatures(Capabilities.NONE) .withEnableDataResidency(true) .withRootCertificate(new RootCertificateProperties().withEnableRootCertificateV2(true)) - .withIpVersion(IpVersion.IPV4IPV6) - .withDeviceRegistry(new DeviceRegistry().withNamespaceResourceId( - "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/namespaces/testNamespace") - .withIdentityResourceId( - "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testIdentity"))) + .withIpVersion(IpVersion.IPV4IPV6)) .withEtag("AAAAAAFD6M4=") .create(); } /* - * x-ms-original-file: 2026-05-01-preview/iothub_createOrUpdate.json + * x-ms-original-file: 2026-10-01-preview/iothub_createOrUpdate.json */ /** * Sample code: IotHubResource_CreateOrUpdate. @@ -435,7 +440,8 @@ public final class IotHubResourceCreateOrUpdateSamples { .withAuthenticationType(EventStreamAuthenticationType.IDENTITY_BASED) .withWorkspaceId("11111111-1111-1111-1111-111111111111") .withEventStreamId("22222222-2222-2222-2222-222222222222") - .withSourceId("33333333-3333-3333-3333-333333333333")))) + .withSourceId("33333333-3333-3333-3333-333333333333") + .withMessagePayloadFormat(MessagePayloadFormat.DOOBSERVATION_V1)))) .withRoutes(Arrays.asList()) .withFallbackRoute(new FallbackRouteProperties().withName("$fallback") .withSource(RoutingSource.DEVICE_MESSAGES) @@ -465,6 +471,74 @@ public final class IotHubResourceCreateOrUpdateSamples { .create(); } + /* + * x-ms-original-file: 2026-10-01-preview/CreateOrReplace_IoTHub_With_MqttV5.json + */ + /** + * Sample code: CreateOrReplace_IoTHub_With_MqttV5. + * + * @param manager Entry point to IotHubManager. + */ + public static void createOrReplaceIoTHubWithMqttV5(com.azure.resourcemanager.iothub.IotHubManager manager) { + manager.iotHubResources() + .define("testHub") + .withRegion("centraluseuap") + .withExistingResourceGroup("myResourceGroup") + .withSku(new IotHubSkuInfo().withName(IotHubSku.S1).withCapacity(1L)) + .withTags(mapOf()) + .withProperties(new IotHubProperties().withIpFilterRules(Arrays.asList()) + .withNetworkRuleSets(new NetworkRuleSetProperties().withDefaultAction(DefaultAction.DENY) + .withApplyToBuiltInEventHubEndpoint(true) + .withIpRules(Arrays.asList( + new NetworkRuleSetIpRule().withFilterName("rule1") + .withAction(NetworkRuleIpAction.ALLOW) + .withIpMask("131.117.159.53"), + new NetworkRuleSetIpRule().withFilterName("rule2") + .withAction(NetworkRuleIpAction.ALLOW) + .withIpMask("157.55.59.128/25")))) + .withMinTlsVersion("1.2") + .withEventHubEndpoints( + mapOf("events", new EventHubProperties().withRetentionTimeInDays(1L).withPartitionCount(2))) + .withRouting(new RoutingProperties() + .withEndpoints(new RoutingEndpoints().withServiceBusQueues(Arrays.asList()) + .withServiceBusTopics(Arrays.asList()) + .withEventHubs(Arrays.asList()) + .withStorageContainers(Arrays.asList())) + .withRoutes(Arrays.asList()) + .withFallbackRoute(new FallbackRouteProperties().withName("$fallback") + .withSource(RoutingSource.DEVICE_MESSAGES) + .withCondition("true") + .withEndpointNames(Arrays.asList("events")) + .withIsEnabled(true))) + .withStorageEndpoints(mapOf("$default", + new StorageEndpointProperties().withSasTtlAsIso8601(Duration.parse("PT1H")) + .withConnectionString("") + .withContainerName(""))) + .withMessagingEndpoints(mapOf("fileNotifications", + new MessagingEndpointProperties().withLockDurationAsIso8601(Duration.parse("PT1M")) + .withTtlAsIso8601(Duration.parse("PT1H")) + .withMaxDeliveryCount(10))) + .withEnableFileUploadNotifications(false) + .withCloudToDevice(new CloudToDeviceProperties().withMaxDeliveryCount(10) + .withDefaultTtlAsIso8601(Duration.parse("PT1H")) + .withFeedback(new FeedbackProperties().withLockDurationAsIso8601(Duration.parse("PT1M")) + .withTtlAsIso8601(Duration.parse("PT1H")) + .withMaxDeliveryCount(10))) + .withFeatures(Capabilities.NONE) + .withEnableDataResidency(true) + .withRootCertificate(new RootCertificateProperties().withEnableRootCertificateV2(true)) + .withIpVersion(IpVersion.IPV4IPV6) + .withConnectionProfile(ConnectionProfile.MQTT_V5) + .withMqttV5Settings( + new MqttV5Settings() + .withTopicGroups( + Arrays.asList(new TopicGroup().withTopicGroupId("myTopicGroup") + .withTopicTemplates(Arrays.asList("mytopics/telemetry/temperature/*", + "mytopics/telemetry/humidity/*")))))) + .withEtag("AAAAAAFD6M4=") + .create(); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { @@ -487,7 +561,7 @@ public final class IotHubResourceCreateOrUpdateSamples { */ public final class IotHubResourceDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_delete.json + * x-ms-original-file: 2026-10-01-preview/iothub_delete.json */ /** * Sample code: IotHubResource_Delete. @@ -508,7 +582,7 @@ public final class IotHubResourceDeleteSamples { */ public final class IotHubResourceDeleteEventHubConsumerGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_deleteconsumergroup.json + * x-ms-original-file: 2026-10-01-preview/iothub_deleteconsumergroup.json */ /** * Sample code: IotHubResource_DeleteEventHubConsumerGroup. @@ -536,7 +610,7 @@ import com.azure.resourcemanager.iothub.models.ManagedIdentity; */ public final class IotHubResourceExportDevicesSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_exportdevices.json + * x-ms-original-file: 2026-10-01-preview/iothub_exportdevices.json */ /** * Sample code: IotHubResource_ExportDevices. @@ -564,7 +638,33 @@ public final class IotHubResourceExportDevicesSamples { */ public final class IotHubResourceGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_get.json + * x-ms-original-file: 2026-10-01-preview/Get_IotHub_With_DeviceRegistry.json + */ + /** + * Sample code: Get_IotHub_With_DeviceRegistry. + * + * @param manager Entry point to IotHubManager. + */ + public static void getIotHubWithDeviceRegistry(com.azure.resourcemanager.iothub.IotHubManager manager) { + manager.iotHubResources() + .getByResourceGroupWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Get_IotHub_With_DeviceRegistry_Linking_Error.json + */ + /** + * Sample code: Get_IotHub_With_DeviceRegistry_Linking_Error. + * + * @param manager Entry point to IotHubManager. + */ + public static void getIotHubWithDeviceRegistryLinkingError(com.azure.resourcemanager.iothub.IotHubManager manager) { + manager.iotHubResources() + .getByResourceGroupWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/iothub_get.json */ /** * Sample code: IotHubResource_Get. @@ -586,7 +686,7 @@ public final class IotHubResourceGetByResourceGroupSamples { */ public final class IotHubResourceGetEndpointHealthSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_routingendpointhealth.json + * x-ms-original-file: 2026-10-01-preview/iothub_routingendpointhealth.json */ /** * Sample code: IotHubResource_GetEndpointHealth. @@ -607,7 +707,7 @@ public final class IotHubResourceGetEndpointHealthSamples { */ public final class IotHubResourceGetEventHubConsumerGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getconsumergroup.json + * x-ms-original-file: 2026-10-01-preview/iothub_getconsumergroup.json */ /** * Sample code: IotHubResource_ListEventHubConsumerGroups. @@ -631,7 +731,7 @@ public final class IotHubResourceGetEventHubConsumerGroupSamples { */ public final class IotHubResourceGetJobSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getjob.json + * x-ms-original-file: 2026-10-01-preview/iothub_getjob.json */ /** * Sample code: IotHubResource_GetJob. @@ -653,7 +753,7 @@ public final class IotHubResourceGetJobSamples { */ public final class IotHubResourceGetKeysForKeyNameSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getkey.json + * x-ms-original-file: 2026-10-01-preview/iothub_getkey.json */ /** * Sample code: IotHubResource_GetKeysForKeyName. @@ -676,7 +776,7 @@ public final class IotHubResourceGetKeysForKeyNameSamples { */ public final class IotHubResourceGetQuotaMetricsSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_quotametrics.json + * x-ms-original-file: 2026-10-01-preview/iothub_quotametrics.json */ /** * Sample code: IotHubResource_GetQuotaMetrics. @@ -697,7 +797,7 @@ public final class IotHubResourceGetQuotaMetricsSamples { */ public final class IotHubResourceGetStatsSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_stats.json + * x-ms-original-file: 2026-10-01-preview/iothub_stats.json */ /** * Sample code: IotHubResource_GetStats. @@ -718,7 +818,7 @@ public final class IotHubResourceGetStatsSamples { */ public final class IotHubResourceGetValidSkusSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getskus.json + * x-ms-original-file: 2026-10-01-preview/iothub_getskus.json */ /** * Sample code: IotHubResource_GetValidSkus. @@ -741,7 +841,7 @@ import com.azure.resourcemanager.iothub.models.ImportDevicesRequest; */ public final class IotHubResourceImportDevicesSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_importdevices.json + * x-ms-original-file: 2026-10-01-preview/iothub_importdevices.json */ /** * Sample code: IotHubResource_ImportDevices. @@ -765,7 +865,7 @@ public final class IotHubResourceImportDevicesSamples { */ public final class IotHubResourceListSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listbysubscription.json + * x-ms-original-file: 2026-10-01-preview/iothub_listbysubscription.json */ /** * Sample code: IotHubResource_ListBySubscription. @@ -786,7 +886,7 @@ public final class IotHubResourceListSamples { */ public final class IotHubResourceListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listbyrg.json + * x-ms-original-file: 2026-10-01-preview/iothub_listbyrg.json */ /** * Sample code: IotHubResource_ListByResourceGroup. @@ -807,7 +907,7 @@ public final class IotHubResourceListByResourceGroupSamples { */ public final class IotHubResourceListEventHubConsumerGroupsSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listehgroups.json + * x-ms-original-file: 2026-10-01-preview/iothub_listehgroups.json */ /** * Sample code: IotHubResource_ListEventHubConsumerGroups. @@ -830,7 +930,7 @@ public final class IotHubResourceListEventHubConsumerGroupsSamples { */ public final class IotHubResourceListJobsSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listjobs.json + * x-ms-original-file: 2026-10-01-preview/iothub_listjobs.json */ /** * Sample code: IotHubResource_ListJobs. @@ -851,7 +951,7 @@ public final class IotHubResourceListJobsSamples { */ public final class IotHubResourceListKeysSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listkeys.json + * x-ms-original-file: 2026-10-01-preview/iothub_listkeys.json */ /** * Sample code: IotHubResource_ListKeys. @@ -878,7 +978,7 @@ import java.util.Map; */ public final class IotHubResourceTestAllRoutesSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_testallroutes.json + * x-ms-original-file: 2026-10-01-preview/iothub_testallroutes.json */ /** * Sample code: IotHubResource_TestAllRoutes. @@ -925,7 +1025,7 @@ import java.util.Map; */ public final class IotHubResourceTestRouteSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_testnewroute.json + * x-ms-original-file: 2026-10-01-preview/iothub_testnewroute.json */ /** * Sample code: IotHubResource_TestRoute. @@ -972,7 +1072,7 @@ import java.util.Map; */ public final class IotHubResourceUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_patch.json + * x-ms-original-file: 2026-10-01-preview/iothub_patch.json */ /** * Sample code: IotHubResource_Update. @@ -1008,7 +1108,7 @@ public final class IotHubResourceUpdateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_operations.json + * x-ms-original-file: 2026-10-01-preview/iothub_operations.json */ /** * Sample code: Operations_List. @@ -1029,7 +1129,7 @@ public final class OperationsListSamples { */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_deleteprivateendpointconnection.json + * x-ms-original-file: 2026-10-01-preview/iothub_deleteprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Delete. @@ -1051,7 +1151,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getprivateendpointconnection.json + * x-ms-original-file: 2026-10-01-preview/iothub_getprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Get. @@ -1074,7 +1174,7 @@ public final class PrivateEndpointConnectionsGetSamples { */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listprivateendpointconnections.json + * x-ms-original-file: 2026-10-01-preview/iothub_listprivateendpointconnections.json */ /** * Sample code: PrivateEndpointConnections_List. @@ -1101,7 +1201,7 @@ import com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionStatu */ public final class PrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_updateprivateendpointconnection.json + * x-ms-original-file: 2026-10-01-preview/iothub_updateprivateendpointconnection.json */ /** * Sample code: PrivateEndpointConnection_Update. @@ -1128,7 +1228,7 @@ public final class PrivateEndpointConnectionsUpdateSamples { */ public final class PrivateLinkResourcesOperationGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getprivatelinkresources.json + * x-ms-original-file: 2026-10-01-preview/iothub_getprivatelinkresources.json */ /** * Sample code: PrivateLinkResources_List. @@ -1150,7 +1250,7 @@ public final class PrivateLinkResourcesOperationGetSamples { */ public final class PrivateLinkResourcesOperationListSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listprivatelinkresources.json + * x-ms-original-file: 2026-10-01-preview/iothub_listprivatelinkresources.json */ /** * Sample code: PrivateLinkResources_List. @@ -1172,7 +1272,7 @@ public final class PrivateLinkResourcesOperationListSamples { */ public final class ResourceProviderCommonGetSubscriptionQuotaSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_usages.json + * x-ms-original-file: 2026-10-01-preview/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 5a8c8b3e07022..852453a0303f1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/pom.xml +++ b/sdk/iothub/azure-resourcemanager-iothub/pom.xml @@ -18,7 +18,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 api-version 2026-05-01-preview. + 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 api-version 2026-10-01-preview. https://github.com/Azure/azure-sdk-for-java 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 b090795de0a6a..40e3e028d3eba 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 @@ -247,7 +247,7 @@ public ResourceProviderCommonsClient getResourceProviderCommons() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-05-01-preview"; + this.apiVersion = "2026-10-01-preview"; this.operations = new OperationsClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); this.iotHubResources = new IotHubResourcesClientImpl(this); 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 b7249f061a36f..c9921008dfdce 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 @@ -54,9 +54,9 @@ public final class CertificateProperties implements JsonSerializable new DateTimeRfc1123(nonNullReader.getString())); } else if ("certificate".equals(fieldName)) { deserializedCertificateProperties.certificate = reader.getString(); - } else if ("policyResourceId".equals(fieldName)) { - deserializedCertificateProperties.policyResourceId = reader.getString(); + } else if ("certificateAuthorityResourceId".equals(fieldName)) { + deserializedCertificateProperties.certificateAuthorityResourceId = reader.getString(); } else { reader.skipChildren(); } 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 27994881a0bd0..58640f0e5c1c5 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 @@ -59,9 +59,9 @@ public final class CertificatePropertiesWithNonce implements JsonSerializable { + /** + * Classic connection profile. + */ + public static final ConnectionProfile CLASSIC = fromString("Classic"); + + /** + * MQTT v5 connection profile. + */ + public static final ConnectionProfile MQTT_V5 = fromString("MqttV5"); + + /** + * Creates a new instance of ConnectionProfile value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ConnectionProfile() { + } + + /** + * Creates or finds a ConnectionProfile from its string representation. + * + * @param name a name to look for. + * @return the corresponding ConnectionProfile. + */ + public static ConnectionProfile fromString(String name) { + return fromString(name, ConnectionProfile.class); + } + + /** + * Gets known ConnectionProfile values. + * + * @return known ConnectionProfile values. + */ + public static Collection values() { + return values(ConnectionProfile.class); + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistry.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistry.java index 5fb920343e4e6..9e00c358904d7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistry.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistry.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.iothub.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,22 +14,37 @@ /** * Represents properties related to the Azure Device Registry (ADR). */ -@Fluent +@Immutable public final class DeviceRegistry implements JsonSerializable { /* * The identifier of the Azure Device Registry namespace */ private String namespaceResourceId; + /* + * The UUID of the associated Azure Device Registry namespace. + */ + private String namespaceUuid; + + /* + * The host name for the data plane endpoint of the associated Azure Device Registry. + */ + private String dataPlaneHostName; + /* * The identity used to manage the ADR namespace from the data plane. */ - private String identityResourceId; + private DeviceRegistryIdentity identity; + + /* + * The properties related to linking the IoT Hub with the Azure Device Registry. + */ + private DeviceRegistryLinkingProperties linkingProperties; /** * Creates an instance of DeviceRegistry class. */ - public DeviceRegistry() { + private DeviceRegistry() { } /** @@ -42,34 +57,40 @@ public String namespaceResourceId() { } /** - * Set the namespaceResourceId property: The identifier of the Azure Device Registry namespace. + * Get the namespaceUuid property: The UUID of the associated Azure Device Registry namespace. + * + * @return the namespaceUuid value. + */ + public String namespaceUuid() { + return this.namespaceUuid; + } + + /** + * Get the dataPlaneHostName property: The host name for the data plane endpoint of the associated Azure Device + * Registry. * - * @param namespaceResourceId the namespaceResourceId value to set. - * @return the DeviceRegistry object itself. + * @return the dataPlaneHostName value. */ - public DeviceRegistry withNamespaceResourceId(String namespaceResourceId) { - this.namespaceResourceId = namespaceResourceId; - return this; + public String dataPlaneHostName() { + return this.dataPlaneHostName; } /** - * Get the identityResourceId property: The identity used to manage the ADR namespace from the data plane. + * Get the identity property: The identity used to manage the ADR namespace from the data plane. * - * @return the identityResourceId value. + * @return the identity value. */ - public String identityResourceId() { - return this.identityResourceId; + public DeviceRegistryIdentity identity() { + return this.identity; } /** - * Set the identityResourceId property: The identity used to manage the ADR namespace from the data plane. + * Get the linkingProperties property: The properties related to linking the IoT Hub with the Azure Device Registry. * - * @param identityResourceId the identityResourceId value to set. - * @return the DeviceRegistry object itself. + * @return the linkingProperties value. */ - public DeviceRegistry withIdentityResourceId(String identityResourceId) { - this.identityResourceId = identityResourceId; - return this; + public DeviceRegistryLinkingProperties linkingProperties() { + return this.linkingProperties; } /** @@ -79,7 +100,9 @@ public DeviceRegistry withIdentityResourceId(String identityResourceId) { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("namespaceResourceId", this.namespaceResourceId); - jsonWriter.writeStringField("identityResourceId", this.identityResourceId); + jsonWriter.writeStringField("namespaceUuid", this.namespaceUuid); + jsonWriter.writeStringField("dataPlaneHostName", this.dataPlaneHostName); + jsonWriter.writeJsonField("identity", this.identity); return jsonWriter.writeEndObject(); } @@ -100,8 +123,14 @@ public static DeviceRegistry fromJson(JsonReader jsonReader) throws IOException if ("namespaceResourceId".equals(fieldName)) { deserializedDeviceRegistry.namespaceResourceId = reader.getString(); - } else if ("identityResourceId".equals(fieldName)) { - deserializedDeviceRegistry.identityResourceId = reader.getString(); + } else if ("namespaceUuid".equals(fieldName)) { + deserializedDeviceRegistry.namespaceUuid = reader.getString(); + } else if ("dataPlaneHostName".equals(fieldName)) { + deserializedDeviceRegistry.dataPlaneHostName = reader.getString(); + } else if ("identity".equals(fieldName)) { + deserializedDeviceRegistry.identity = DeviceRegistryIdentity.fromJson(reader); + } else if ("linkingProperties".equals(fieldName)) { + deserializedDeviceRegistry.linkingProperties = DeviceRegistryLinkingProperties.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryIdentity.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryIdentity.java new file mode 100644 index 0000000000000..09c0d679a282b --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryIdentity.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The identity used to manage the ADR namespace from the data plane. + */ +@Immutable +public final class DeviceRegistryIdentity implements JsonSerializable { + /* + * The type of the identity. + */ + private DeviceRegistryIdentityType type; + + /* + * The user assigned identity if the identity type is 'UserAssigned'. + */ + private String userAssignedIdentity; + + /** + * Creates an instance of DeviceRegistryIdentity class. + */ + private DeviceRegistryIdentity() { + } + + /** + * Get the type property: The type of the identity. + * + * @return the type value. + */ + public DeviceRegistryIdentityType type() { + return this.type; + } + + /** + * Get the userAssignedIdentity property: The user assigned identity if the identity type is 'UserAssigned'. + * + * @return the userAssignedIdentity value. + */ + public String userAssignedIdentity() { + return this.userAssignedIdentity; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("userAssignedIdentity", this.userAssignedIdentity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DeviceRegistryIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DeviceRegistryIdentity if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the DeviceRegistryIdentity. + */ + public static DeviceRegistryIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DeviceRegistryIdentity deserializedDeviceRegistryIdentity = new DeviceRegistryIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedDeviceRegistryIdentity.type = DeviceRegistryIdentityType.fromString(reader.getString()); + } else if ("userAssignedIdentity".equals(fieldName)) { + deserializedDeviceRegistryIdentity.userAssignedIdentity = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDeviceRegistryIdentity; + }); + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryIdentityType.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryIdentityType.java new file mode 100644 index 0000000000000..a7a9a9418ea3f --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryIdentityType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of the identity. + */ +public final class DeviceRegistryIdentityType extends ExpandableStringEnum { + /** + * Use a system-assigned managed identity to manage the ADR namespace. + */ + public static final DeviceRegistryIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); + + /** + * Use a user-assigned managed identity to manage the ADR namespace. + */ + public static final DeviceRegistryIdentityType USER_ASSIGNED = fromString("UserAssigned"); + + /** + * Creates a new instance of DeviceRegistryIdentityType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DeviceRegistryIdentityType() { + } + + /** + * Creates or finds a DeviceRegistryIdentityType from its string representation. + * + * @param name a name to look for. + * @return the corresponding DeviceRegistryIdentityType. + */ + public static DeviceRegistryIdentityType fromString(String name) { + return fromString(name, DeviceRegistryIdentityType.class); + } + + /** + * Gets known DeviceRegistryIdentityType values. + * + * @return known DeviceRegistryIdentityType values. + */ + public static Collection values() { + return values(DeviceRegistryIdentityType.class); + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryLinkingProperties.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryLinkingProperties.java new file mode 100644 index 0000000000000..f507f955c92f9 --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryLinkingProperties.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The properties related to linking the IoT Hub with the Azure Device Registry. + */ +@Immutable +public final class DeviceRegistryLinkingProperties implements JsonSerializable { + /* + * Indicates whether the IoT Hub is linked with an Azure Device Registry. + */ + private DeviceRegistryLinkingState state; + + /* + * The last error encountered when linking the IoT Hub with an Azure Device Registry. + */ + private ErrorDetails error; + + /** + * Creates an instance of DeviceRegistryLinkingProperties class. + */ + private DeviceRegistryLinkingProperties() { + } + + /** + * Get the state property: Indicates whether the IoT Hub is linked with an Azure Device Registry. + * + * @return the state value. + */ + public DeviceRegistryLinkingState state() { + return this.state; + } + + /** + * Get the error property: The last error encountered when linking the IoT Hub with an Azure Device Registry. + * + * @return the error value. + */ + public ErrorDetails error() { + return this.error; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DeviceRegistryLinkingProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DeviceRegistryLinkingProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DeviceRegistryLinkingProperties. + */ + public static DeviceRegistryLinkingProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DeviceRegistryLinkingProperties deserializedDeviceRegistryLinkingProperties + = new DeviceRegistryLinkingProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedDeviceRegistryLinkingProperties.state + = DeviceRegistryLinkingState.fromString(reader.getString()); + } else if ("error".equals(fieldName)) { + deserializedDeviceRegistryLinkingProperties.error = ErrorDetails.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedDeviceRegistryLinkingProperties; + }); + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryLinkingState.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryLinkingState.java new file mode 100644 index 0000000000000..1e43f5fef9909 --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryLinkingState.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Indicates whether the IoT Hub is linked with an Azure Device Registry. + */ +public final class DeviceRegistryLinkingState extends ExpandableStringEnum { + /** + * The IoT Hub linking with an Azure Device Registry is in progress. + */ + public static final DeviceRegistryLinkingState IN_PROGRESS = fromString("InProgress"); + + /** + * The IoT Hub is successfully linked with an Azure Device Registry. + */ + public static final DeviceRegistryLinkingState SUCCESS = fromString("Success"); + + /** + * The linked Azure Device Registry is no longer associated with the IoT Hub. + */ + public static final DeviceRegistryLinkingState ORPHANED = fromString("Orphaned"); + + /** + * The IoT Hub failed to link with an Azure Device Registry. + */ + public static final DeviceRegistryLinkingState FAILED = fromString("Failed"); + + /** + * Creates a new instance of DeviceRegistryLinkingState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DeviceRegistryLinkingState() { + } + + /** + * Creates or finds a DeviceRegistryLinkingState from its string representation. + * + * @param name a name to look for. + * @return the corresponding DeviceRegistryLinkingState. + */ + public static DeviceRegistryLinkingState fromString(String name) { + return fromString(name, DeviceRegistryLinkingState.class); + } + + /** + * Gets known DeviceRegistryLinkingState values. + * + * @return known DeviceRegistryLinkingState values. + */ + public static Collection values() { + return values(DeviceRegistryLinkingState.class); + } +} 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 650b9b465b353..4507d8c669bb7 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 @@ -177,6 +177,17 @@ public final class IotHubProperties implements JsonSerializable { + /** + * Formats the message as a com.do.telemetry.observation.v1 payload. + */ + public static final MessagePayloadFormat DOOBSERVATION_V1 = fromString("DOObservationV1"); + + /** + * Preserves the original message payload. + */ + public static final MessagePayloadFormat NONE = fromString("None"); + + /** + * Creates a new instance of MessagePayloadFormat value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MessagePayloadFormat() { + } + + /** + * Creates or finds a MessagePayloadFormat from its string representation. + * + * @param name a name to look for. + * @return the corresponding MessagePayloadFormat. + */ + public static MessagePayloadFormat fromString(String name) { + return fromString(name, MessagePayloadFormat.class); + } + + /** + * Gets known MessagePayloadFormat values. + * + * @return known MessagePayloadFormat values. + */ + public static Collection values() { + return values(MessagePayloadFormat.class); + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MqttV5Settings.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MqttV5Settings.java new file mode 100644 index 0000000000000..8eda4ec68f695 --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/MqttV5Settings.java @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.iothub.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Settings for an Event Grid-backed MQTT v5 IoT hub. + */ +@Fluent +public final class MqttV5Settings implements JsonSerializable { + /* + * The customer-defined groups of topic templates that devices publish to. + */ + private List topicGroups; + + /** + * Creates an instance of MqttV5Settings class. + */ + public MqttV5Settings() { + } + + /** + * Get the topicGroups property: The customer-defined groups of topic templates that devices publish to. + * + * @return the topicGroups value. + */ + public List topicGroups() { + return this.topicGroups; + } + + /** + * Set the topicGroups property: The customer-defined groups of topic templates that devices publish to. + * + * @param topicGroups the topicGroups value to set. + * @return the MqttV5Settings object itself. + */ + public MqttV5Settings withTopicGroups(List topicGroups) { + this.topicGroups = topicGroups; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("topicGroups", this.topicGroups, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MqttV5Settings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MqttV5Settings if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the MqttV5Settings. + */ + public static MqttV5Settings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MqttV5Settings deserializedMqttV5Settings = new MqttV5Settings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("topicGroups".equals(fieldName)) { + List topicGroups = reader.readArray(reader1 -> TopicGroup.fromJson(reader1)); + deserializedMqttV5Settings.topicGroups = topicGroups; + } else { + reader.skipChildren(); + } + } + + return deserializedMqttV5Settings; + }); + } +} 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 68d4dd5305144..6634413b49b56 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 @@ -34,6 +34,11 @@ public final class RouteProperties implements JsonSerializable */ private String condition; + /* + * The data schema reference that is used to interpret the message body. + */ + private String dataSchema; + /* * The list of endpoints to which messages that satisfy the condition are routed. Currently only one endpoint is * allowed. @@ -117,6 +122,26 @@ public RouteProperties withCondition(String condition) { return this; } + /** + * Get the dataSchema property: The data schema reference that is used to interpret the message body. + * + * @return the dataSchema value. + */ + public String dataSchema() { + return this.dataSchema; + } + + /** + * Set the dataSchema property: The data schema reference that is used to interpret the message body. + * + * @param dataSchema the dataSchema value to set. + * @return the RouteProperties object itself. + */ + public RouteProperties withDataSchema(String dataSchema) { + this.dataSchema = dataSchema; + return this; + } + /** * Get the endpointNames property: The list of endpoints to which messages that satisfy the condition are routed. * Currently only one endpoint is allowed. @@ -171,6 +196,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeString(element)); jsonWriter.writeBooleanField("isEnabled", this.isEnabled); jsonWriter.writeStringField("condition", this.condition); + jsonWriter.writeStringField("dataSchema", this.dataSchema); return jsonWriter.writeEndObject(); } @@ -201,6 +227,8 @@ public static RouteProperties fromJson(JsonReader jsonReader) throws IOException deserializedRouteProperties.isEnabled = reader.getBoolean(); } else if ("condition".equals(fieldName)) { deserializedRouteProperties.condition = reader.getString(); + } else if ("dataSchema".equals(fieldName)) { + deserializedRouteProperties.dataSchema = reader.getString(); } else { reader.skipChildren(); } 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 index f4f64c1e73d96..e0c794a6d7be4 100644 --- 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 @@ -87,6 +87,11 @@ public final class RoutingCosmosDBSqlApiProperties implements JsonSerializable { + /* + * The customer-supplied identifier used to reconcile the topic group during updates. + */ + private String topicGroupId; + + /* + * The topic templates in this group. + */ + private List topicTemplates; + + /** + * Creates an instance of TopicGroup class. + */ + public TopicGroup() { + } + + /** + * Get the topicGroupId property: The customer-supplied identifier used to reconcile the topic group during updates. + * + * @return the topicGroupId value. + */ + public String topicGroupId() { + return this.topicGroupId; + } + + /** + * Set the topicGroupId property: The customer-supplied identifier used to reconcile the topic group during updates. + * + * @param topicGroupId the topicGroupId value to set. + * @return the TopicGroup object itself. + */ + public TopicGroup withTopicGroupId(String topicGroupId) { + this.topicGroupId = topicGroupId; + return this; + } + + /** + * Get the topicTemplates property: The topic templates in this group. + * + * @return the topicTemplates value. + */ + public List topicTemplates() { + return this.topicTemplates; + } + + /** + * Set the topicTemplates property: The topic templates in this group. + * + * @param topicTemplates the topicTemplates value to set. + * @return the TopicGroup object itself. + */ + public TopicGroup withTopicTemplates(List topicTemplates) { + this.topicTemplates = topicTemplates; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("topicGroupId", this.topicGroupId); + jsonWriter.writeArrayField("topicTemplates", this.topicTemplates, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TopicGroup from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TopicGroup if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IOException If an error occurs while reading the TopicGroup. + */ + public static TopicGroup fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TopicGroup deserializedTopicGroup = new TopicGroup(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("topicGroupId".equals(fieldName)) { + deserializedTopicGroup.topicGroupId = reader.getString(); + } else if ("topicTemplates".equals(fieldName)) { + List topicTemplates = reader.readArray(reader1 -> reader1.getString()); + deserializedTopicGroup.topicTemplates = topicTemplates; + } else { + reader.skipChildren(); + } + } + + return deserializedTopicGroup; + }); + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/resources/META-INF/azure-resourcemanager-iothub_metadata.json b/sdk/iothub/azure-resourcemanager-iothub/src/main/resources/META-INF/azure-resourcemanager-iothub_metadata.json index 26d71f66cd8e4..6a6dc8224f000 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/main/resources/META-INF/azure-resourcemanager-iothub_metadata.json +++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/resources/META-INF/azure-resourcemanager-iothub_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.Devices":"2026-05-01-preview"},"crossLanguagePackageId":"Microsoft.Devices","crossLanguageVersion":"a148e0fb917c","crossLanguageDefinitions":{"com.azure.resourcemanager.iothub.fluent.CertificatesClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.CertificatesClient.createOrUpdate":"Microsoft.Devices.CertificateDescriptions.createOrUpdate","com.azure.resourcemanager.iothub.fluent.CertificatesClient.createOrUpdateWithResponse":"Microsoft.Devices.CertificateDescriptions.createOrUpdate","com.azure.resourcemanager.iothub.fluent.CertificatesClient.delete":"Microsoft.Devices.CertificateDescriptions.delete","com.azure.resourcemanager.iothub.fluent.CertificatesClient.deleteWithResponse":"Microsoft.Devices.CertificateDescriptions.delete","com.azure.resourcemanager.iothub.fluent.CertificatesClient.generateVerificationCode":"Microsoft.Devices.CertificateDescriptions.generateVerificationCode","com.azure.resourcemanager.iothub.fluent.CertificatesClient.generateVerificationCodeWithResponse":"Microsoft.Devices.CertificateDescriptions.generateVerificationCode","com.azure.resourcemanager.iothub.fluent.CertificatesClient.get":"Microsoft.Devices.CertificateDescriptions.get","com.azure.resourcemanager.iothub.fluent.CertificatesClient.getWithResponse":"Microsoft.Devices.CertificateDescriptions.get","com.azure.resourcemanager.iothub.fluent.CertificatesClient.listByIotHub":"Microsoft.Devices.CertificateDescriptions.listByIotHub","com.azure.resourcemanager.iothub.fluent.CertificatesClient.listByIotHubWithResponse":"Microsoft.Devices.CertificateDescriptions.listByIotHub","com.azure.resourcemanager.iothub.fluent.CertificatesClient.verify":"Microsoft.Devices.CertificateDescriptions.verify","com.azure.resourcemanager.iothub.fluent.CertificatesClient.verifyWithResponse":"Microsoft.Devices.CertificateDescriptions.verify","com.azure.resourcemanager.iothub.fluent.IotHubClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.beginCreateOrUpdate":"Microsoft.Devices.IotHubDescriptions.createOrUpdate","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.beginDelete":"Microsoft.Devices.IotHubDescriptions.delete","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.beginUpdate":"Microsoft.Devices.IotHubDescriptions.update","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.checkNameAvailability":"Microsoft.Devices.IotHubResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.checkNameAvailabilityWithResponse":"Microsoft.Devices.IotHubResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.createEventHubConsumerGroup":"Microsoft.Devices.EventHubConsumerGroupInfos.createEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.createEventHubConsumerGroupWithResponse":"Microsoft.Devices.EventHubConsumerGroupInfos.createEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.createOrUpdate":"Microsoft.Devices.IotHubDescriptions.createOrUpdate","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.delete":"Microsoft.Devices.IotHubDescriptions.delete","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.deleteEventHubConsumerGroup":"Microsoft.Devices.EventHubConsumerGroupInfos.deleteEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.deleteEventHubConsumerGroupWithResponse":"Microsoft.Devices.EventHubConsumerGroupInfos.deleteEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.exportDevices":"Microsoft.Devices.IotHubDescriptions.exportDevices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.exportDevicesWithResponse":"Microsoft.Devices.IotHubDescriptions.exportDevices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getByResourceGroup":"Microsoft.Devices.IotHubDescriptions.get","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getByResourceGroupWithResponse":"Microsoft.Devices.IotHubDescriptions.get","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getEndpointHealth":"Microsoft.Devices.IotHubDescriptions.getEndpointHealth","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getEventHubConsumerGroup":"Microsoft.Devices.EventHubConsumerGroupInfos.getEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getEventHubConsumerGroupWithResponse":"Microsoft.Devices.EventHubConsumerGroupInfos.getEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getJob":"Microsoft.Devices.IotHubDescriptions.getJob","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getJobWithResponse":"Microsoft.Devices.IotHubDescriptions.getJob","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getKeysForKeyName":"Microsoft.Devices.IotHubDescriptions.getKeysForKeyName","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getKeysForKeyNameWithResponse":"Microsoft.Devices.IotHubDescriptions.getKeysForKeyName","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getQuotaMetrics":"Microsoft.Devices.IotHubDescriptions.getQuotaMetrics","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getStats":"Microsoft.Devices.IotHubDescriptionOperationGroup.getStats","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getStatsWithResponse":"Microsoft.Devices.IotHubDescriptionOperationGroup.getStats","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getValidSkus":"Microsoft.Devices.IotHubDescriptions.getValidSkus","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.importDevices":"Microsoft.Devices.IotHubDescriptions.importDevices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.importDevicesWithResponse":"Microsoft.Devices.IotHubDescriptions.importDevices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.list":"Microsoft.Devices.IotHubDescriptions.listBySubscription","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.listByResourceGroup":"Microsoft.Devices.IotHubDescriptions.listByResourceGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.listEventHubConsumerGroups":"Microsoft.Devices.EventHubConsumerGroupInfos.listEventHubConsumerGroups","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.listJobs":"Microsoft.Devices.IotHubDescriptions.listJobs","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.listKeys":"Microsoft.Devices.IotHubDescriptions.listKeys","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.testAllRoutes":"Microsoft.Devices.IotHubDescriptions.testAllRoutes","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.testAllRoutesWithResponse":"Microsoft.Devices.IotHubDescriptions.testAllRoutes","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.testRoute":"Microsoft.Devices.IotHubDescriptions.testRoute","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.testRouteWithResponse":"Microsoft.Devices.IotHubDescriptions.testRoute","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.update":"Microsoft.Devices.IotHubDescriptions.update","com.azure.resourcemanager.iothub.fluent.IotHubsClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.IotHubsClient.beginManualFailover":"Microsoft.Devices.IotHubDescriptions.manualFailover","com.azure.resourcemanager.iothub.fluent.IotHubsClient.manualFailover":"Microsoft.Devices.IotHubDescriptions.manualFailover","com.azure.resourcemanager.iothub.fluent.OperationsClient":"Microsoft.Devices.Operations","com.azure.resourcemanager.iothub.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient":"Microsoft.Devices.PrivateEndpointConnections","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.Devices.PrivateEndpointConnections.delete","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.beginUpdate":"Microsoft.Devices.PrivateEndpointConnections.update","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.Devices.PrivateEndpointConnections.delete","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.Devices.PrivateEndpointConnections.get","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.Devices.PrivateEndpointConnections.get","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.list":"Microsoft.Devices.PrivateEndpointConnections.list","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.listWithResponse":"Microsoft.Devices.PrivateEndpointConnections.list","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.update":"Microsoft.Devices.PrivateEndpointConnections.update","com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient.get":"Microsoft.Devices.GroupIdInformations.get","com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient.getWithResponse":"Microsoft.Devices.GroupIdInformations.get","com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient.list":"Microsoft.Devices.GroupIdInformations.list","com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient.listWithResponse":"Microsoft.Devices.GroupIdInformations.list","com.azure.resourcemanager.iothub.fluent.ResourceProviderCommonsClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.ResourceProviderCommonsClient.getSubscriptionQuota":"Microsoft.Devices.ResourceProviderCommonOperationGroup.getSubscriptionQuota","com.azure.resourcemanager.iothub.fluent.ResourceProviderCommonsClient.getSubscriptionQuotaWithResponse":"Microsoft.Devices.ResourceProviderCommonOperationGroup.getSubscriptionQuota","com.azure.resourcemanager.iothub.fluent.models.CertificateDescriptionInner":"Microsoft.Devices.CertificateDescription","com.azure.resourcemanager.iothub.fluent.models.CertificateListDescriptionInner":"Microsoft.Devices.CertificateListDescription","com.azure.resourcemanager.iothub.fluent.models.CertificateWithNonceDescriptionInner":"Microsoft.Devices.CertificateWithNonceDescription","com.azure.resourcemanager.iothub.fluent.models.EndpointHealthDataInner":"Microsoft.Devices.EndpointHealthData","com.azure.resourcemanager.iothub.fluent.models.EventHubConsumerGroupInfoInner":"Microsoft.Devices.EventHubConsumerGroupInfo","com.azure.resourcemanager.iothub.fluent.models.GroupIdInformationInner":"Microsoft.Devices.GroupIdInformation","com.azure.resourcemanager.iothub.fluent.models.IotHubDescriptionInner":"Microsoft.Devices.IotHubDescription","com.azure.resourcemanager.iothub.fluent.models.IotHubNameAvailabilityInfoInner":"Microsoft.Devices.IotHubNameAvailabilityInfo","com.azure.resourcemanager.iothub.fluent.models.IotHubQuotaMetricInfoInner":"Microsoft.Devices.IotHubQuotaMetricInfo","com.azure.resourcemanager.iothub.fluent.models.IotHubSkuDescriptionInner":"Microsoft.Devices.IotHubSkuDescription","com.azure.resourcemanager.iothub.fluent.models.JobResponseInner":"Microsoft.Devices.JobResponse","com.azure.resourcemanager.iothub.fluent.models.OperationInner":"Microsoft.Devices.Operation","com.azure.resourcemanager.iothub.fluent.models.PrivateEndpointConnectionInner":"Microsoft.Devices.PrivateEndpointConnection","com.azure.resourcemanager.iothub.fluent.models.PrivateLinkResourcesInner":"Microsoft.Devices.PrivateLinkResources","com.azure.resourcemanager.iothub.fluent.models.RegistryStatisticsInner":"Microsoft.Devices.RegistryStatistics","com.azure.resourcemanager.iothub.fluent.models.SharedAccessSignatureAuthorizationRuleInner":"Microsoft.Devices.SharedAccessSignatureAuthorizationRule","com.azure.resourcemanager.iothub.fluent.models.TestAllRoutesResultInner":"Microsoft.Devices.TestAllRoutesResult","com.azure.resourcemanager.iothub.fluent.models.TestRouteResultInner":"Microsoft.Devices.TestRouteResult","com.azure.resourcemanager.iothub.fluent.models.UserSubscriptionQuotaListResultInner":"Microsoft.Devices.UserSubscriptionQuotaListResult","com.azure.resourcemanager.iothub.implementation.IotHubClientBuilder":"Microsoft.Devices","com.azure.resourcemanager.iothub.implementation.models.EndpointHealthDataListResult":"Microsoft.Devices.EndpointHealthDataListResult","com.azure.resourcemanager.iothub.implementation.models.EventHubConsumerGroupsListResult":"Microsoft.Devices.EventHubConsumerGroupsListResult","com.azure.resourcemanager.iothub.implementation.models.IotHubDescriptionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.iothub.implementation.models.IotHubQuotaMetricInfoListResult":"Microsoft.Devices.IotHubQuotaMetricInfoListResult","com.azure.resourcemanager.iothub.implementation.models.IotHubSkuDescriptionListResult":"Microsoft.Devices.IotHubSkuDescriptionListResult","com.azure.resourcemanager.iothub.implementation.models.JobResponseListResult":"Microsoft.Devices.JobResponseListResult","com.azure.resourcemanager.iothub.implementation.models.OperationListResult":"Microsoft.Devices.OperationListResult","com.azure.resourcemanager.iothub.implementation.models.SharedAccessSignatureAuthorizationRuleListResult":"Microsoft.Devices.SharedAccessSignatureAuthorizationRuleListResult","com.azure.resourcemanager.iothub.models.AccessRights":"Microsoft.Devices.AccessRights","com.azure.resourcemanager.iothub.models.ArmIdentity":"Microsoft.Devices.ArmIdentity","com.azure.resourcemanager.iothub.models.ArmUserIdentity":"Microsoft.Devices.ArmUserIdentity","com.azure.resourcemanager.iothub.models.AuthenticationType":"Microsoft.Devices.AuthenticationType","com.azure.resourcemanager.iothub.models.Capabilities":"Microsoft.Devices.Capabilities","com.azure.resourcemanager.iothub.models.CertificateProperties":"Microsoft.Devices.CertificateProperties","com.azure.resourcemanager.iothub.models.CertificatePropertiesWithNonce":"Microsoft.Devices.CertificatePropertiesWithNonce","com.azure.resourcemanager.iothub.models.CertificateVerificationDescription":"Microsoft.Devices.CertificateVerificationDescription","com.azure.resourcemanager.iothub.models.CloudToDeviceProperties":"Microsoft.Devices.CloudToDeviceProperties","com.azure.resourcemanager.iothub.models.DefaultAction":"Microsoft.Devices.DefaultAction","com.azure.resourcemanager.iothub.models.DeviceRegistry":"Microsoft.Devices.DeviceRegistry","com.azure.resourcemanager.iothub.models.EncryptionPropertiesDescription":"Microsoft.Devices.EncryptionPropertiesDescription","com.azure.resourcemanager.iothub.models.EndpointHealthStatus":"Microsoft.Devices.EndpointHealthStatus","com.azure.resourcemanager.iothub.models.EnrichmentProperties":"Microsoft.Devices.EnrichmentProperties","com.azure.resourcemanager.iothub.models.ErrorDetails":"Microsoft.Devices.ErrorDetails","com.azure.resourcemanager.iothub.models.EventHubConsumerGroupBodyDescription":"Microsoft.Devices.EventHubConsumerGroupBodyDescription","com.azure.resourcemanager.iothub.models.EventHubConsumerGroupName":"Microsoft.Devices.EventHubConsumerGroupName","com.azure.resourcemanager.iothub.models.EventHubProperties":"Microsoft.Devices.EventHubProperties","com.azure.resourcemanager.iothub.models.EventStreamAuthenticationType":"Microsoft.Devices.EventStreamAuthenticationType","com.azure.resourcemanager.iothub.models.ExportDevicesRequest":"Microsoft.Devices.ExportDevicesRequest","com.azure.resourcemanager.iothub.models.FailoverInput":"Microsoft.Devices.FailoverInput","com.azure.resourcemanager.iothub.models.FallbackRouteProperties":"Microsoft.Devices.FallbackRouteProperties","com.azure.resourcemanager.iothub.models.FeedbackProperties":"Microsoft.Devices.FeedbackProperties","com.azure.resourcemanager.iothub.models.GatewayVersion":"Microsoft.Devices.GatewayVersion","com.azure.resourcemanager.iothub.models.GroupIdInformationProperties":"Microsoft.Devices.GroupIdInformationProperties","com.azure.resourcemanager.iothub.models.ImportDevicesRequest":"Microsoft.Devices.ImportDevicesRequest","com.azure.resourcemanager.iothub.models.IotHubCapacity":"Microsoft.Devices.IotHubCapacity","com.azure.resourcemanager.iothub.models.IotHubDetails":"Microsoft.Devices.IotHubDetails","com.azure.resourcemanager.iothub.models.IotHubLocationDescription":"Microsoft.Devices.IotHubLocationDescription","com.azure.resourcemanager.iothub.models.IotHubNameUnavailabilityReason":"Microsoft.Devices.IotHubNameUnavailabilityReason","com.azure.resourcemanager.iothub.models.IotHubProperties":"Microsoft.Devices.IotHubProperties","com.azure.resourcemanager.iothub.models.IotHubPropertiesDeviceStreams":"Microsoft.Devices.IotHubPropertiesDeviceStreams","com.azure.resourcemanager.iothub.models.IotHubReplicaRoleType":"Microsoft.Devices.IotHubReplicaRoleType","com.azure.resourcemanager.iothub.models.IotHubScaleType":"Microsoft.Devices.IotHubScaleType","com.azure.resourcemanager.iothub.models.IotHubSku":"Microsoft.Devices.IotHubSku","com.azure.resourcemanager.iothub.models.IotHubSkuInfo":"Microsoft.Devices.IotHubSkuInfo","com.azure.resourcemanager.iothub.models.IotHubSkuTier":"Microsoft.Devices.IotHubSkuTier","com.azure.resourcemanager.iothub.models.IpFilterActionType":"Microsoft.Devices.IpFilterActionType","com.azure.resourcemanager.iothub.models.IpFilterRule":"Microsoft.Devices.IpFilterRule","com.azure.resourcemanager.iothub.models.IpVersion":"Microsoft.Devices.IpVersion","com.azure.resourcemanager.iothub.models.JobStatus":"Microsoft.Devices.JobStatus","com.azure.resourcemanager.iothub.models.JobType":"Microsoft.Devices.JobType","com.azure.resourcemanager.iothub.models.KeyVaultKeyProperties":"Microsoft.Devices.KeyVaultKeyProperties","com.azure.resourcemanager.iothub.models.ManagedIdentity":"Microsoft.Devices.ManagedIdentity","com.azure.resourcemanager.iothub.models.MatchedRoute":"Microsoft.Devices.MatchedRoute","com.azure.resourcemanager.iothub.models.MessagingEndpointProperties":"Microsoft.Devices.MessagingEndpointProperties","com.azure.resourcemanager.iothub.models.Name":"Microsoft.Devices.Name","com.azure.resourcemanager.iothub.models.NetworkRuleIpAction":"Microsoft.Devices.NetworkRuleIPAction","com.azure.resourcemanager.iothub.models.NetworkRuleSetIpRule":"Microsoft.Devices.NetworkRuleSetIpRule","com.azure.resourcemanager.iothub.models.NetworkRuleSetProperties":"Microsoft.Devices.NetworkRuleSetProperties","com.azure.resourcemanager.iothub.models.OperationDisplay":"Microsoft.Devices.OperationDisplay","com.azure.resourcemanager.iothub.models.OperationInputs":"Microsoft.Devices.OperationInputs","com.azure.resourcemanager.iothub.models.PrivateEndpoint":"Microsoft.Devices.PrivateEndpoint","com.azure.resourcemanager.iothub.models.PrivateEndpointConnectionProperties":"Microsoft.Devices.PrivateEndpointConnectionProperties","com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionState":"Microsoft.Devices.PrivateLinkServiceConnectionState","com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionStatus":"Microsoft.Devices.PrivateLinkServiceConnectionStatus","com.azure.resourcemanager.iothub.models.PublicNetworkAccess":"Microsoft.Devices.PublicNetworkAccess","com.azure.resourcemanager.iothub.models.ResourceIdentityType":"Microsoft.Devices.ResourceIdentityType","com.azure.resourcemanager.iothub.models.RootCertificateProperties":"Microsoft.Devices.RootCertificateProperties","com.azure.resourcemanager.iothub.models.RouteCompilationError":"Microsoft.Devices.RouteCompilationError","com.azure.resourcemanager.iothub.models.RouteErrorPosition":"Microsoft.Devices.RouteErrorPosition","com.azure.resourcemanager.iothub.models.RouteErrorRange":"Microsoft.Devices.RouteErrorRange","com.azure.resourcemanager.iothub.models.RouteErrorSeverity":"Microsoft.Devices.RouteErrorSeverity","com.azure.resourcemanager.iothub.models.RouteProperties":"Microsoft.Devices.RouteProperties","com.azure.resourcemanager.iothub.models.RoutingCosmosDBSqlApiProperties":"Microsoft.Devices.RoutingCosmosDBSqlApiProperties","com.azure.resourcemanager.iothub.models.RoutingEndpoints":"Microsoft.Devices.RoutingEndpoints","com.azure.resourcemanager.iothub.models.RoutingEventHubProperties":"Microsoft.Devices.RoutingEventHubProperties","com.azure.resourcemanager.iothub.models.RoutingEventStreamProperties":"Microsoft.Devices.RoutingEventStreamProperties","com.azure.resourcemanager.iothub.models.RoutingMessage":"Microsoft.Devices.RoutingMessage","com.azure.resourcemanager.iothub.models.RoutingProperties":"Microsoft.Devices.RoutingProperties","com.azure.resourcemanager.iothub.models.RoutingServiceBusQueueEndpointProperties":"Microsoft.Devices.RoutingServiceBusQueueEndpointProperties","com.azure.resourcemanager.iothub.models.RoutingServiceBusTopicEndpointProperties":"Microsoft.Devices.RoutingServiceBusTopicEndpointProperties","com.azure.resourcemanager.iothub.models.RoutingSource":"Microsoft.Devices.RoutingSource","com.azure.resourcemanager.iothub.models.RoutingStorageContainerProperties":"Microsoft.Devices.RoutingStorageContainerProperties","com.azure.resourcemanager.iothub.models.RoutingStorageContainerPropertiesEncoding":"Microsoft.Devices.RoutingStorageContainerPropertiesEncoding","com.azure.resourcemanager.iothub.models.RoutingTwin":"Microsoft.Devices.RoutingTwin","com.azure.resourcemanager.iothub.models.RoutingTwinProperties":"Microsoft.Devices.RoutingTwinProperties","com.azure.resourcemanager.iothub.models.StorageEndpointProperties":"Microsoft.Devices.StorageEndpointProperties","com.azure.resourcemanager.iothub.models.TagsResource":"Microsoft.Devices.TagsResource","com.azure.resourcemanager.iothub.models.TestAllRoutesInput":"Microsoft.Devices.TestAllRoutesInput","com.azure.resourcemanager.iothub.models.TestResultStatus":"Microsoft.Devices.TestResultStatus","com.azure.resourcemanager.iothub.models.TestRouteInput":"Microsoft.Devices.TestRouteInput","com.azure.resourcemanager.iothub.models.TestRouteResultDetails":"Microsoft.Devices.TestRouteResultDetails","com.azure.resourcemanager.iothub.models.UserSubscriptionQuota":"Microsoft.Devices.UserSubscriptionQuota"},"generatedFiles":["src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java","src/main/java/com/azure/resourcemanager/iothub/fluent/CertificatesClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubsClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/iothub/fluent/package-info.java","src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateDescriptionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateListDescriptionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateWithNonceDescriptionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/EndpointHealthDataImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/EventHubConsumerGroupInfoImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/GroupIdInformationImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubDescriptionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubNameAvailabilityInfoImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubQuotaMetricInfoImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubSkuDescriptionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/JobResponseImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/RegistryStatisticsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/SharedAccessSignatureAuthorizationRuleImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/TestAllRoutesResultImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/TestRouteResultImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/UserSubscriptionQuotaListResultImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/EndpointHealthDataListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/EventHubConsumerGroupsListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/IotHubDescriptionListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/IotHubQuotaMetricInfoListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/IotHubSkuDescriptionListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/JobResponseListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/SharedAccessSignatureAuthorizationRuleListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/package-info.java","src/main/java/com/azure/resourcemanager/iothub/models/AccessRights.java","src/main/java/com/azure/resourcemanager/iothub/models/ArmIdentity.java","src/main/java/com/azure/resourcemanager/iothub/models/ArmUserIdentity.java","src/main/java/com/azure/resourcemanager/iothub/models/AuthenticationType.java","src/main/java/com/azure/resourcemanager/iothub/models/Capabilities.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificateListDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificateProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificatePropertiesWithNonce.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificateVerificationDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificateWithNonceDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/Certificates.java","src/main/java/com/azure/resourcemanager/iothub/models/CloudToDeviceProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/DefaultAction.java","src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistry.java","src/main/java/com/azure/resourcemanager/iothub/models/EncryptionPropertiesDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthData.java","src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthStatus.java","src/main/java/com/azure/resourcemanager/iothub/models/EnrichmentProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java","src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetailsException.java","src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupBodyDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupInfo.java","src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupName.java","src/main/java/com/azure/resourcemanager/iothub/models/EventHubProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/EventStreamAuthenticationType.java","src/main/java/com/azure/resourcemanager/iothub/models/ExportDevicesRequest.java","src/main/java/com/azure/resourcemanager/iothub/models/FailoverInput.java","src/main/java/com/azure/resourcemanager/iothub/models/FallbackRouteProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/FeedbackProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/GatewayVersion.java","src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformation.java","src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformationProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/ImportDevicesRequest.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubCapacity.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubDetails.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubLocationDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubNameAvailabilityInfo.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubNameUnavailabilityReason.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubPropertiesDeviceStreams.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubQuotaMetricInfo.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubReplicaRoleType.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubResources.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubScaleType.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubSku.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuInfo.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuTier.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubs.java","src/main/java/com/azure/resourcemanager/iothub/models/IpFilterActionType.java","src/main/java/com/azure/resourcemanager/iothub/models/IpFilterRule.java","src/main/java/com/azure/resourcemanager/iothub/models/IpVersion.java","src/main/java/com/azure/resourcemanager/iothub/models/JobResponse.java","src/main/java/com/azure/resourcemanager/iothub/models/JobStatus.java","src/main/java/com/azure/resourcemanager/iothub/models/JobType.java","src/main/java/com/azure/resourcemanager/iothub/models/KeyVaultKeyProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/ManagedIdentity.java","src/main/java/com/azure/resourcemanager/iothub/models/MatchedRoute.java","src/main/java/com/azure/resourcemanager/iothub/models/MessagingEndpointProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/Name.java","src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleIpAction.java","src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetIpRule.java","src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/Operation.java","src/main/java/com/azure/resourcemanager/iothub/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/iothub/models/OperationInputs.java","src/main/java/com/azure/resourcemanager/iothub/models/Operations.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResources.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/iothub/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/iothub/models/RegistryStatistics.java","src/main/java/com/azure/resourcemanager/iothub/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/iothub/models/ResourceProviderCommons.java","src/main/java/com/azure/resourcemanager/iothub/models/RootCertificateProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RouteCompilationError.java","src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorPosition.java","src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorRange.java","src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorSeverity.java","src/main/java/com/azure/resourcemanager/iothub/models/RouteProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingCosmosDBSqlApiProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingEndpoints.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventHubProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventStreamProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingMessage.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusQueueEndpointProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusTopicEndpointProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingSource.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerPropertiesEncoding.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwin.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwinProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/SharedAccessSignatureAuthorizationRule.java","src/main/java/com/azure/resourcemanager/iothub/models/StorageEndpointProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/TagsResource.java","src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesInput.java","src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesResult.java","src/main/java/com/azure/resourcemanager/iothub/models/TestResultStatus.java","src/main/java/com/azure/resourcemanager/iothub/models/TestRouteInput.java","src/main/java/com/azure/resourcemanager/iothub/models/TestRouteResult.java","src/main/java/com/azure/resourcemanager/iothub/models/TestRouteResultDetails.java","src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuota.java","src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuotaListResult.java","src/main/java/com/azure/resourcemanager/iothub/models/package-info.java","src/main/java/com/azure/resourcemanager/iothub/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.Devices":"2026-10-01-preview"},"crossLanguagePackageId":"Microsoft.Devices","crossLanguageVersion":"07577cfc9b2b","crossLanguageDefinitions":{"com.azure.resourcemanager.iothub.fluent.CertificatesClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.CertificatesClient.createOrUpdate":"Microsoft.Devices.CertificateDescriptions.createOrUpdate","com.azure.resourcemanager.iothub.fluent.CertificatesClient.createOrUpdateWithResponse":"Microsoft.Devices.CertificateDescriptions.createOrUpdate","com.azure.resourcemanager.iothub.fluent.CertificatesClient.delete":"Microsoft.Devices.CertificateDescriptions.delete","com.azure.resourcemanager.iothub.fluent.CertificatesClient.deleteWithResponse":"Microsoft.Devices.CertificateDescriptions.delete","com.azure.resourcemanager.iothub.fluent.CertificatesClient.generateVerificationCode":"Microsoft.Devices.CertificateDescriptions.generateVerificationCode","com.azure.resourcemanager.iothub.fluent.CertificatesClient.generateVerificationCodeWithResponse":"Microsoft.Devices.CertificateDescriptions.generateVerificationCode","com.azure.resourcemanager.iothub.fluent.CertificatesClient.get":"Microsoft.Devices.CertificateDescriptions.get","com.azure.resourcemanager.iothub.fluent.CertificatesClient.getWithResponse":"Microsoft.Devices.CertificateDescriptions.get","com.azure.resourcemanager.iothub.fluent.CertificatesClient.listByIotHub":"Microsoft.Devices.CertificateDescriptions.listByIotHub","com.azure.resourcemanager.iothub.fluent.CertificatesClient.listByIotHubWithResponse":"Microsoft.Devices.CertificateDescriptions.listByIotHub","com.azure.resourcemanager.iothub.fluent.CertificatesClient.verify":"Microsoft.Devices.CertificateDescriptions.verify","com.azure.resourcemanager.iothub.fluent.CertificatesClient.verifyWithResponse":"Microsoft.Devices.CertificateDescriptions.verify","com.azure.resourcemanager.iothub.fluent.IotHubClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.beginCreateOrUpdate":"Microsoft.Devices.IotHubDescriptions.createOrUpdate","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.beginDelete":"Microsoft.Devices.IotHubDescriptions.delete","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.beginUpdate":"Microsoft.Devices.IotHubDescriptions.update","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.checkNameAvailability":"Microsoft.Devices.IotHubResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.checkNameAvailabilityWithResponse":"Microsoft.Devices.IotHubResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.createEventHubConsumerGroup":"Microsoft.Devices.EventHubConsumerGroupInfos.createEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.createEventHubConsumerGroupWithResponse":"Microsoft.Devices.EventHubConsumerGroupInfos.createEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.createOrUpdate":"Microsoft.Devices.IotHubDescriptions.createOrUpdate","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.delete":"Microsoft.Devices.IotHubDescriptions.delete","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.deleteEventHubConsumerGroup":"Microsoft.Devices.EventHubConsumerGroupInfos.deleteEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.deleteEventHubConsumerGroupWithResponse":"Microsoft.Devices.EventHubConsumerGroupInfos.deleteEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.exportDevices":"Microsoft.Devices.IotHubDescriptions.exportDevices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.exportDevicesWithResponse":"Microsoft.Devices.IotHubDescriptions.exportDevices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getByResourceGroup":"Microsoft.Devices.IotHubDescriptions.get","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getByResourceGroupWithResponse":"Microsoft.Devices.IotHubDescriptions.get","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getEndpointHealth":"Microsoft.Devices.IotHubDescriptions.getEndpointHealth","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getEventHubConsumerGroup":"Microsoft.Devices.EventHubConsumerGroupInfos.getEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getEventHubConsumerGroupWithResponse":"Microsoft.Devices.EventHubConsumerGroupInfos.getEventHubConsumerGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getJob":"Microsoft.Devices.IotHubDescriptions.getJob","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getJobWithResponse":"Microsoft.Devices.IotHubDescriptions.getJob","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getKeysForKeyName":"Microsoft.Devices.IotHubDescriptions.getKeysForKeyName","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getKeysForKeyNameWithResponse":"Microsoft.Devices.IotHubDescriptions.getKeysForKeyName","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getQuotaMetrics":"Microsoft.Devices.IotHubDescriptions.getQuotaMetrics","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getStats":"Microsoft.Devices.IotHubDescriptionOperationGroup.getStats","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getStatsWithResponse":"Microsoft.Devices.IotHubDescriptionOperationGroup.getStats","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.getValidSkus":"Microsoft.Devices.IotHubDescriptions.getValidSkus","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.importDevices":"Microsoft.Devices.IotHubDescriptions.importDevices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.importDevicesWithResponse":"Microsoft.Devices.IotHubDescriptions.importDevices","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.list":"Microsoft.Devices.IotHubDescriptions.listBySubscription","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.listByResourceGroup":"Microsoft.Devices.IotHubDescriptions.listByResourceGroup","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.listEventHubConsumerGroups":"Microsoft.Devices.EventHubConsumerGroupInfos.listEventHubConsumerGroups","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.listJobs":"Microsoft.Devices.IotHubDescriptions.listJobs","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.listKeys":"Microsoft.Devices.IotHubDescriptions.listKeys","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.testAllRoutes":"Microsoft.Devices.IotHubDescriptions.testAllRoutes","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.testAllRoutesWithResponse":"Microsoft.Devices.IotHubDescriptions.testAllRoutes","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.testRoute":"Microsoft.Devices.IotHubDescriptions.testRoute","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.testRouteWithResponse":"Microsoft.Devices.IotHubDescriptions.testRoute","com.azure.resourcemanager.iothub.fluent.IotHubResourcesClient.update":"Microsoft.Devices.IotHubDescriptions.update","com.azure.resourcemanager.iothub.fluent.IotHubsClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.IotHubsClient.beginManualFailover":"Microsoft.Devices.IotHubDescriptions.manualFailover","com.azure.resourcemanager.iothub.fluent.IotHubsClient.manualFailover":"Microsoft.Devices.IotHubDescriptions.manualFailover","com.azure.resourcemanager.iothub.fluent.OperationsClient":"Microsoft.Devices.Operations","com.azure.resourcemanager.iothub.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient":"Microsoft.Devices.PrivateEndpointConnections","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.Devices.PrivateEndpointConnections.delete","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.beginUpdate":"Microsoft.Devices.PrivateEndpointConnections.update","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.Devices.PrivateEndpointConnections.delete","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.Devices.PrivateEndpointConnections.get","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.Devices.PrivateEndpointConnections.get","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.list":"Microsoft.Devices.PrivateEndpointConnections.list","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.listWithResponse":"Microsoft.Devices.PrivateEndpointConnections.list","com.azure.resourcemanager.iothub.fluent.PrivateEndpointConnectionsClient.update":"Microsoft.Devices.PrivateEndpointConnections.update","com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient.get":"Microsoft.Devices.GroupIdInformations.get","com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient.getWithResponse":"Microsoft.Devices.GroupIdInformations.get","com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient.list":"Microsoft.Devices.GroupIdInformations.list","com.azure.resourcemanager.iothub.fluent.PrivateLinkResourcesOperationsClient.listWithResponse":"Microsoft.Devices.GroupIdInformations.list","com.azure.resourcemanager.iothub.fluent.ResourceProviderCommonsClient":"Microsoft.Devices","com.azure.resourcemanager.iothub.fluent.ResourceProviderCommonsClient.getSubscriptionQuota":"Microsoft.Devices.ResourceProviderCommonOperationGroup.getSubscriptionQuota","com.azure.resourcemanager.iothub.fluent.ResourceProviderCommonsClient.getSubscriptionQuotaWithResponse":"Microsoft.Devices.ResourceProviderCommonOperationGroup.getSubscriptionQuota","com.azure.resourcemanager.iothub.fluent.models.CertificateDescriptionInner":"Microsoft.Devices.CertificateDescription","com.azure.resourcemanager.iothub.fluent.models.CertificateListDescriptionInner":"Microsoft.Devices.CertificateListDescription","com.azure.resourcemanager.iothub.fluent.models.CertificateWithNonceDescriptionInner":"Microsoft.Devices.CertificateWithNonceDescription","com.azure.resourcemanager.iothub.fluent.models.EndpointHealthDataInner":"Microsoft.Devices.EndpointHealthData","com.azure.resourcemanager.iothub.fluent.models.EventHubConsumerGroupInfoInner":"Microsoft.Devices.EventHubConsumerGroupInfo","com.azure.resourcemanager.iothub.fluent.models.GroupIdInformationInner":"Microsoft.Devices.GroupIdInformation","com.azure.resourcemanager.iothub.fluent.models.IotHubDescriptionInner":"Microsoft.Devices.IotHubDescription","com.azure.resourcemanager.iothub.fluent.models.IotHubNameAvailabilityInfoInner":"Microsoft.Devices.IotHubNameAvailabilityInfo","com.azure.resourcemanager.iothub.fluent.models.IotHubQuotaMetricInfoInner":"Microsoft.Devices.IotHubQuotaMetricInfo","com.azure.resourcemanager.iothub.fluent.models.IotHubSkuDescriptionInner":"Microsoft.Devices.IotHubSkuDescription","com.azure.resourcemanager.iothub.fluent.models.JobResponseInner":"Microsoft.Devices.JobResponse","com.azure.resourcemanager.iothub.fluent.models.OperationInner":"Microsoft.Devices.Operation","com.azure.resourcemanager.iothub.fluent.models.PrivateEndpointConnectionInner":"Microsoft.Devices.PrivateEndpointConnection","com.azure.resourcemanager.iothub.fluent.models.PrivateLinkResourcesInner":"Microsoft.Devices.PrivateLinkResources","com.azure.resourcemanager.iothub.fluent.models.RegistryStatisticsInner":"Microsoft.Devices.RegistryStatistics","com.azure.resourcemanager.iothub.fluent.models.SharedAccessSignatureAuthorizationRuleInner":"Microsoft.Devices.SharedAccessSignatureAuthorizationRule","com.azure.resourcemanager.iothub.fluent.models.TestAllRoutesResultInner":"Microsoft.Devices.TestAllRoutesResult","com.azure.resourcemanager.iothub.fluent.models.TestRouteResultInner":"Microsoft.Devices.TestRouteResult","com.azure.resourcemanager.iothub.fluent.models.UserSubscriptionQuotaListResultInner":"Microsoft.Devices.UserSubscriptionQuotaListResult","com.azure.resourcemanager.iothub.implementation.IotHubClientBuilder":"Microsoft.Devices","com.azure.resourcemanager.iothub.implementation.models.EndpointHealthDataListResult":"Microsoft.Devices.EndpointHealthDataListResult","com.azure.resourcemanager.iothub.implementation.models.EventHubConsumerGroupsListResult":"Microsoft.Devices.EventHubConsumerGroupsListResult","com.azure.resourcemanager.iothub.implementation.models.IotHubDescriptionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.iothub.implementation.models.IotHubQuotaMetricInfoListResult":"Microsoft.Devices.IotHubQuotaMetricInfoListResult","com.azure.resourcemanager.iothub.implementation.models.IotHubSkuDescriptionListResult":"Microsoft.Devices.IotHubSkuDescriptionListResult","com.azure.resourcemanager.iothub.implementation.models.JobResponseListResult":"Microsoft.Devices.JobResponseListResult","com.azure.resourcemanager.iothub.implementation.models.OperationListResult":"Microsoft.Devices.OperationListResult","com.azure.resourcemanager.iothub.implementation.models.SharedAccessSignatureAuthorizationRuleListResult":"Microsoft.Devices.SharedAccessSignatureAuthorizationRuleListResult","com.azure.resourcemanager.iothub.models.AccessRights":"Microsoft.Devices.AccessRights","com.azure.resourcemanager.iothub.models.ArmIdentity":"Microsoft.Devices.ArmIdentity","com.azure.resourcemanager.iothub.models.ArmUserIdentity":"Microsoft.Devices.ArmUserIdentity","com.azure.resourcemanager.iothub.models.AuthenticationType":"Microsoft.Devices.AuthenticationType","com.azure.resourcemanager.iothub.models.Capabilities":"Microsoft.Devices.Capabilities","com.azure.resourcemanager.iothub.models.CertificateProperties":"Microsoft.Devices.CertificateProperties","com.azure.resourcemanager.iothub.models.CertificatePropertiesWithNonce":"Microsoft.Devices.CertificatePropertiesWithNonce","com.azure.resourcemanager.iothub.models.CertificateVerificationDescription":"Microsoft.Devices.CertificateVerificationDescription","com.azure.resourcemanager.iothub.models.CloudToDeviceProperties":"Microsoft.Devices.CloudToDeviceProperties","com.azure.resourcemanager.iothub.models.ConnectionProfile":"Microsoft.Devices.ConnectionProfile","com.azure.resourcemanager.iothub.models.DefaultAction":"Microsoft.Devices.DefaultAction","com.azure.resourcemanager.iothub.models.DeviceRegistry":"Microsoft.Devices.DeviceRegistry","com.azure.resourcemanager.iothub.models.DeviceRegistryIdentity":"Microsoft.Devices.DeviceRegistryIdentity","com.azure.resourcemanager.iothub.models.DeviceRegistryIdentityType":"Microsoft.Devices.DeviceRegistryIdentityType","com.azure.resourcemanager.iothub.models.DeviceRegistryLinkingProperties":"Microsoft.Devices.DeviceRegistryLinkingProperties","com.azure.resourcemanager.iothub.models.DeviceRegistryLinkingState":"Microsoft.Devices.DeviceRegistryLinkingState","com.azure.resourcemanager.iothub.models.EncryptionPropertiesDescription":"Microsoft.Devices.EncryptionPropertiesDescription","com.azure.resourcemanager.iothub.models.EndpointHealthStatus":"Microsoft.Devices.EndpointHealthStatus","com.azure.resourcemanager.iothub.models.EnrichmentProperties":"Microsoft.Devices.EnrichmentProperties","com.azure.resourcemanager.iothub.models.ErrorDetails":"Microsoft.Devices.ErrorDetails","com.azure.resourcemanager.iothub.models.EventHubConsumerGroupBodyDescription":"Microsoft.Devices.EventHubConsumerGroupBodyDescription","com.azure.resourcemanager.iothub.models.EventHubConsumerGroupName":"Microsoft.Devices.EventHubConsumerGroupName","com.azure.resourcemanager.iothub.models.EventHubProperties":"Microsoft.Devices.EventHubProperties","com.azure.resourcemanager.iothub.models.EventStreamAuthenticationType":"Microsoft.Devices.EventStreamAuthenticationType","com.azure.resourcemanager.iothub.models.ExportDevicesRequest":"Microsoft.Devices.ExportDevicesRequest","com.azure.resourcemanager.iothub.models.FailoverInput":"Microsoft.Devices.FailoverInput","com.azure.resourcemanager.iothub.models.FallbackRouteProperties":"Microsoft.Devices.FallbackRouteProperties","com.azure.resourcemanager.iothub.models.FeedbackProperties":"Microsoft.Devices.FeedbackProperties","com.azure.resourcemanager.iothub.models.GatewayVersion":"Microsoft.Devices.GatewayVersion","com.azure.resourcemanager.iothub.models.GroupIdInformationProperties":"Microsoft.Devices.GroupIdInformationProperties","com.azure.resourcemanager.iothub.models.ImportDevicesRequest":"Microsoft.Devices.ImportDevicesRequest","com.azure.resourcemanager.iothub.models.IotHubCapacity":"Microsoft.Devices.IotHubCapacity","com.azure.resourcemanager.iothub.models.IotHubDetails":"Microsoft.Devices.IotHubDetails","com.azure.resourcemanager.iothub.models.IotHubLocationDescription":"Microsoft.Devices.IotHubLocationDescription","com.azure.resourcemanager.iothub.models.IotHubNameUnavailabilityReason":"Microsoft.Devices.IotHubNameUnavailabilityReason","com.azure.resourcemanager.iothub.models.IotHubProperties":"Microsoft.Devices.IotHubProperties","com.azure.resourcemanager.iothub.models.IotHubPropertiesDeviceStreams":"Microsoft.Devices.IotHubPropertiesDeviceStreams","com.azure.resourcemanager.iothub.models.IotHubReplicaRoleType":"Microsoft.Devices.IotHubReplicaRoleType","com.azure.resourcemanager.iothub.models.IotHubScaleType":"Microsoft.Devices.IotHubScaleType","com.azure.resourcemanager.iothub.models.IotHubSku":"Microsoft.Devices.IotHubSku","com.azure.resourcemanager.iothub.models.IotHubSkuInfo":"Microsoft.Devices.IotHubSkuInfo","com.azure.resourcemanager.iothub.models.IotHubSkuTier":"Microsoft.Devices.IotHubSkuTier","com.azure.resourcemanager.iothub.models.IpFilterActionType":"Microsoft.Devices.IpFilterActionType","com.azure.resourcemanager.iothub.models.IpFilterRule":"Microsoft.Devices.IpFilterRule","com.azure.resourcemanager.iothub.models.IpVersion":"Microsoft.Devices.IpVersion","com.azure.resourcemanager.iothub.models.JobStatus":"Microsoft.Devices.JobStatus","com.azure.resourcemanager.iothub.models.JobType":"Microsoft.Devices.JobType","com.azure.resourcemanager.iothub.models.KeyVaultKeyProperties":"Microsoft.Devices.KeyVaultKeyProperties","com.azure.resourcemanager.iothub.models.ManagedIdentity":"Microsoft.Devices.ManagedIdentity","com.azure.resourcemanager.iothub.models.MatchedRoute":"Microsoft.Devices.MatchedRoute","com.azure.resourcemanager.iothub.models.MessagePayloadFormat":"Microsoft.Devices.MessagePayloadFormat","com.azure.resourcemanager.iothub.models.MessagingEndpointProperties":"Microsoft.Devices.MessagingEndpointProperties","com.azure.resourcemanager.iothub.models.MqttV5Settings":"Microsoft.Devices.MqttV5Settings","com.azure.resourcemanager.iothub.models.Name":"Microsoft.Devices.Name","com.azure.resourcemanager.iothub.models.NetworkRuleIpAction":"Microsoft.Devices.NetworkRuleIPAction","com.azure.resourcemanager.iothub.models.NetworkRuleSetIpRule":"Microsoft.Devices.NetworkRuleSetIpRule","com.azure.resourcemanager.iothub.models.NetworkRuleSetProperties":"Microsoft.Devices.NetworkRuleSetProperties","com.azure.resourcemanager.iothub.models.OperationDisplay":"Microsoft.Devices.OperationDisplay","com.azure.resourcemanager.iothub.models.OperationInputs":"Microsoft.Devices.OperationInputs","com.azure.resourcemanager.iothub.models.PrivateEndpoint":"Microsoft.Devices.PrivateEndpoint","com.azure.resourcemanager.iothub.models.PrivateEndpointConnectionProperties":"Microsoft.Devices.PrivateEndpointConnectionProperties","com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionState":"Microsoft.Devices.PrivateLinkServiceConnectionState","com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionStatus":"Microsoft.Devices.PrivateLinkServiceConnectionStatus","com.azure.resourcemanager.iothub.models.PublicNetworkAccess":"Microsoft.Devices.PublicNetworkAccess","com.azure.resourcemanager.iothub.models.ResourceIdentityType":"Microsoft.Devices.ResourceIdentityType","com.azure.resourcemanager.iothub.models.RootCertificateProperties":"Microsoft.Devices.RootCertificateProperties","com.azure.resourcemanager.iothub.models.RouteCompilationError":"Microsoft.Devices.RouteCompilationError","com.azure.resourcemanager.iothub.models.RouteErrorPosition":"Microsoft.Devices.RouteErrorPosition","com.azure.resourcemanager.iothub.models.RouteErrorRange":"Microsoft.Devices.RouteErrorRange","com.azure.resourcemanager.iothub.models.RouteErrorSeverity":"Microsoft.Devices.RouteErrorSeverity","com.azure.resourcemanager.iothub.models.RouteProperties":"Microsoft.Devices.RouteProperties","com.azure.resourcemanager.iothub.models.RoutingCosmosDBSqlApiProperties":"Microsoft.Devices.RoutingCosmosDBSqlApiProperties","com.azure.resourcemanager.iothub.models.RoutingEndpoints":"Microsoft.Devices.RoutingEndpoints","com.azure.resourcemanager.iothub.models.RoutingEventHubProperties":"Microsoft.Devices.RoutingEventHubProperties","com.azure.resourcemanager.iothub.models.RoutingEventStreamProperties":"Microsoft.Devices.RoutingEventStreamProperties","com.azure.resourcemanager.iothub.models.RoutingMessage":"Microsoft.Devices.RoutingMessage","com.azure.resourcemanager.iothub.models.RoutingProperties":"Microsoft.Devices.RoutingProperties","com.azure.resourcemanager.iothub.models.RoutingServiceBusQueueEndpointProperties":"Microsoft.Devices.RoutingServiceBusQueueEndpointProperties","com.azure.resourcemanager.iothub.models.RoutingServiceBusTopicEndpointProperties":"Microsoft.Devices.RoutingServiceBusTopicEndpointProperties","com.azure.resourcemanager.iothub.models.RoutingSource":"Microsoft.Devices.RoutingSource","com.azure.resourcemanager.iothub.models.RoutingStorageContainerProperties":"Microsoft.Devices.RoutingStorageContainerProperties","com.azure.resourcemanager.iothub.models.RoutingStorageContainerPropertiesEncoding":"Microsoft.Devices.RoutingStorageContainerPropertiesEncoding","com.azure.resourcemanager.iothub.models.RoutingTwin":"Microsoft.Devices.RoutingTwin","com.azure.resourcemanager.iothub.models.RoutingTwinProperties":"Microsoft.Devices.RoutingTwinProperties","com.azure.resourcemanager.iothub.models.StorageEndpointProperties":"Microsoft.Devices.StorageEndpointProperties","com.azure.resourcemanager.iothub.models.TagsResource":"Microsoft.Devices.TagsResource","com.azure.resourcemanager.iothub.models.TestAllRoutesInput":"Microsoft.Devices.TestAllRoutesInput","com.azure.resourcemanager.iothub.models.TestResultStatus":"Microsoft.Devices.TestResultStatus","com.azure.resourcemanager.iothub.models.TestRouteInput":"Microsoft.Devices.TestRouteInput","com.azure.resourcemanager.iothub.models.TestRouteResultDetails":"Microsoft.Devices.TestRouteResultDetails","com.azure.resourcemanager.iothub.models.TopicGroup":"Microsoft.Devices.TopicGroup","com.azure.resourcemanager.iothub.models.UserSubscriptionQuota":"Microsoft.Devices.UserSubscriptionQuota"},"generatedFiles":["src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java","src/main/java/com/azure/resourcemanager/iothub/fluent/CertificatesClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubsClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java","src/main/java/com/azure/resourcemanager/iothub/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/iothub/fluent/package-info.java","src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateDescriptionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateListDescriptionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateWithNonceDescriptionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/EndpointHealthDataImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/EventHubConsumerGroupInfoImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/GroupIdInformationImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubDescriptionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubNameAvailabilityInfoImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubQuotaMetricInfoImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubResourcesImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubSkuDescriptionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/JobResponseImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/PrivateLinkResourcesOperationsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/RegistryStatisticsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsClientImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/ResourceProviderCommonsImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/SharedAccessSignatureAuthorizationRuleImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/TestAllRoutesResultImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/TestRouteResultImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/UserSubscriptionQuotaListResultImpl.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/EndpointHealthDataListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/EventHubConsumerGroupsListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/IotHubDescriptionListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/IotHubQuotaMetricInfoListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/IotHubSkuDescriptionListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/JobResponseListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/models/SharedAccessSignatureAuthorizationRuleListResult.java","src/main/java/com/azure/resourcemanager/iothub/implementation/package-info.java","src/main/java/com/azure/resourcemanager/iothub/models/AccessRights.java","src/main/java/com/azure/resourcemanager/iothub/models/ArmIdentity.java","src/main/java/com/azure/resourcemanager/iothub/models/ArmUserIdentity.java","src/main/java/com/azure/resourcemanager/iothub/models/AuthenticationType.java","src/main/java/com/azure/resourcemanager/iothub/models/Capabilities.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificateListDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificateProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificatePropertiesWithNonce.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificateVerificationDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/CertificateWithNonceDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/Certificates.java","src/main/java/com/azure/resourcemanager/iothub/models/CloudToDeviceProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/ConnectionProfile.java","src/main/java/com/azure/resourcemanager/iothub/models/DefaultAction.java","src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistry.java","src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryIdentity.java","src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryIdentityType.java","src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryLinkingProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/DeviceRegistryLinkingState.java","src/main/java/com/azure/resourcemanager/iothub/models/EncryptionPropertiesDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthData.java","src/main/java/com/azure/resourcemanager/iothub/models/EndpointHealthStatus.java","src/main/java/com/azure/resourcemanager/iothub/models/EnrichmentProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java","src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetailsException.java","src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupBodyDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupInfo.java","src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupName.java","src/main/java/com/azure/resourcemanager/iothub/models/EventHubProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/EventStreamAuthenticationType.java","src/main/java/com/azure/resourcemanager/iothub/models/ExportDevicesRequest.java","src/main/java/com/azure/resourcemanager/iothub/models/FailoverInput.java","src/main/java/com/azure/resourcemanager/iothub/models/FallbackRouteProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/FeedbackProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/GatewayVersion.java","src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformation.java","src/main/java/com/azure/resourcemanager/iothub/models/GroupIdInformationProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/ImportDevicesRequest.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubCapacity.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubDetails.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubLocationDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubNameAvailabilityInfo.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubNameUnavailabilityReason.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubPropertiesDeviceStreams.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubQuotaMetricInfo.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubReplicaRoleType.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubResources.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubScaleType.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubSku.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuDescription.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuInfo.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubSkuTier.java","src/main/java/com/azure/resourcemanager/iothub/models/IotHubs.java","src/main/java/com/azure/resourcemanager/iothub/models/IpFilterActionType.java","src/main/java/com/azure/resourcemanager/iothub/models/IpFilterRule.java","src/main/java/com/azure/resourcemanager/iothub/models/IpVersion.java","src/main/java/com/azure/resourcemanager/iothub/models/JobResponse.java","src/main/java/com/azure/resourcemanager/iothub/models/JobStatus.java","src/main/java/com/azure/resourcemanager/iothub/models/JobType.java","src/main/java/com/azure/resourcemanager/iothub/models/KeyVaultKeyProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/ManagedIdentity.java","src/main/java/com/azure/resourcemanager/iothub/models/MatchedRoute.java","src/main/java/com/azure/resourcemanager/iothub/models/MessagePayloadFormat.java","src/main/java/com/azure/resourcemanager/iothub/models/MessagingEndpointProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/MqttV5Settings.java","src/main/java/com/azure/resourcemanager/iothub/models/Name.java","src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleIpAction.java","src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetIpRule.java","src/main/java/com/azure/resourcemanager/iothub/models/NetworkRuleSetProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/Operation.java","src/main/java/com/azure/resourcemanager/iothub/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/iothub/models/OperationInputs.java","src/main/java/com/azure/resourcemanager/iothub/models/Operations.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResources.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkResourcesOperations.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/iothub/models/PrivateLinkServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/iothub/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/iothub/models/RegistryStatistics.java","src/main/java/com/azure/resourcemanager/iothub/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/iothub/models/ResourceProviderCommons.java","src/main/java/com/azure/resourcemanager/iothub/models/RootCertificateProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RouteCompilationError.java","src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorPosition.java","src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorRange.java","src/main/java/com/azure/resourcemanager/iothub/models/RouteErrorSeverity.java","src/main/java/com/azure/resourcemanager/iothub/models/RouteProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingCosmosDBSqlApiProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingEndpoints.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventHubProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingEventStreamProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingMessage.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusQueueEndpointProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingServiceBusTopicEndpointProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingSource.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingStorageContainerPropertiesEncoding.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwin.java","src/main/java/com/azure/resourcemanager/iothub/models/RoutingTwinProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/SharedAccessSignatureAuthorizationRule.java","src/main/java/com/azure/resourcemanager/iothub/models/StorageEndpointProperties.java","src/main/java/com/azure/resourcemanager/iothub/models/TagsResource.java","src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesInput.java","src/main/java/com/azure/resourcemanager/iothub/models/TestAllRoutesResult.java","src/main/java/com/azure/resourcemanager/iothub/models/TestResultStatus.java","src/main/java/com/azure/resourcemanager/iothub/models/TestRouteInput.java","src/main/java/com/azure/resourcemanager/iothub/models/TestRouteResult.java","src/main/java/com/azure/resourcemanager/iothub/models/TestRouteResultDetails.java","src/main/java/com/azure/resourcemanager/iothub/models/TopicGroup.java","src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuota.java","src/main/java/com/azure/resourcemanager/iothub/models/UserSubscriptionQuotaListResult.java","src/main/java/com/azure/resourcemanager/iothub/models/package-info.java","src/main/java/com/azure/resourcemanager/iothub/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file 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 183cbddcca364..286d35be4ad17 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 @@ -11,34 +11,34 @@ */ public final class CertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_certificatescreateorupdate.json + * x-ms-original-file: 2026-10-01-preview/CreateOrReplace_Certificates_With_CertificateAuthorityResourceId.json */ /** - * Sample code: Certificates_CreateOrUpdate. + * Sample code: CreateOrReplace_Certificates_With_CertificateAuthorityResourceId. * * @param manager Entry point to IotHubManager. */ - public static void certificatesCreateOrUpdate(com.azure.resourcemanager.iothub.IotHubManager manager) { + public static void createOrReplaceCertificatesWithCertificateAuthorityResourceId( + com.azure.resourcemanager.iothub.IotHubManager manager) { manager.certificates() .define("cert") - .withExistingIotHub("myResourceGroup", "iothub") + .withExistingIotHub("myResourceGroup", "testHub") .withProperties(new CertificateProperties().withCertificate("############################################")) .create(); } /* - * x-ms-original-file: 2026-05-01-preview/CreateOrReplace_Certificates_With_DeviceRegistryPolicy.json + * x-ms-original-file: 2026-10-01-preview/iothub_certificatescreateorupdate.json */ /** - * Sample code: CreateOrReplace_Certificates_With_DeviceRegistryPolicy. + * Sample code: Certificates_CreateOrUpdate. * * @param manager Entry point to IotHubManager. */ - public static void - createOrReplaceCertificatesWithDeviceRegistryPolicy(com.azure.resourcemanager.iothub.IotHubManager manager) { + public static void certificatesCreateOrUpdate(com.azure.resourcemanager.iothub.IotHubManager manager) { manager.certificates() .define("cert") - .withExistingIotHub("myResourceGroup", "testHub") + .withExistingIotHub("myResourceGroup", "iothub") .withProperties(new CertificateProperties().withCertificate("############################################")) .create(); } 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 47338844ad781..bf4693c04ddb9 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 @@ */ public final class CertificatesDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_certificatesdelete.json + * x-ms-original-file: 2026-10-01-preview/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 ccf94ce24de5b..28be069733449 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 @@ */ public final class CertificatesGenerateVerificationCodeSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_generateverificationcode.json + * x-ms-original-file: 2026-10-01-preview/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 f2475a2443d74..9e3a36eb4a898 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 @@ */ public final class CertificatesGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getcertificate.json + * x-ms-original-file: 2026-10-01-preview/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 fa75cac4a0069..de6c8cae5320e 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 @@ */ public final class CertificatesListByIotHubSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listcertificates.json + * x-ms-original-file: 2026-10-01-preview/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 4af9358e67f26..06abd7166a07c 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 @@ -11,7 +11,7 @@ */ public final class CertificatesVerifySamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_certverify.json + * x-ms-original-file: 2026-10-01-preview/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 1e24eb4e57294..fbd31fa9fea70 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 @@ -11,7 +11,7 @@ */ public final class IotHubManualFailoverSamples { /* - * x-ms-original-file: 2026-05-01-preview/IotHub_ManualFailover.json + * x-ms-original-file: 2026-10-01-preview/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 fe7968513f659..edd7a41144a6b 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 @@ -11,7 +11,7 @@ */ public final class IotHubResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2026-05-01-preview/checkNameAvailability.json + * x-ms-original-file: 2026-10-01-preview/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 e0a423e816c4c..4c54da19a8360 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 @@ -11,7 +11,7 @@ */ public final class IotHubResourceCreateEventHubConsumerGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_createconsumergroup.json + * x-ms-original-file: 2026-10-01-preview/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 b9dc51d5304fb..daefb09112137 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 @@ -7,8 +7,8 @@ import com.azure.resourcemanager.iothub.models.ArmIdentity; import com.azure.resourcemanager.iothub.models.Capabilities; import com.azure.resourcemanager.iothub.models.CloudToDeviceProperties; +import com.azure.resourcemanager.iothub.models.ConnectionProfile; import com.azure.resourcemanager.iothub.models.DefaultAction; -import com.azure.resourcemanager.iothub.models.DeviceRegistry; import com.azure.resourcemanager.iothub.models.EventHubProperties; import com.azure.resourcemanager.iothub.models.EventStreamAuthenticationType; import com.azure.resourcemanager.iothub.models.FallbackRouteProperties; @@ -17,17 +17,21 @@ import com.azure.resourcemanager.iothub.models.IotHubSku; import com.azure.resourcemanager.iothub.models.IotHubSkuInfo; import com.azure.resourcemanager.iothub.models.IpVersion; +import com.azure.resourcemanager.iothub.models.MessagePayloadFormat; import com.azure.resourcemanager.iothub.models.MessagingEndpointProperties; +import com.azure.resourcemanager.iothub.models.MqttV5Settings; 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.ResourceIdentityType; import com.azure.resourcemanager.iothub.models.RootCertificateProperties; +import com.azure.resourcemanager.iothub.models.RouteProperties; import com.azure.resourcemanager.iothub.models.RoutingEndpoints; import com.azure.resourcemanager.iothub.models.RoutingEventStreamProperties; import com.azure.resourcemanager.iothub.models.RoutingProperties; import com.azure.resourcemanager.iothub.models.RoutingSource; import com.azure.resourcemanager.iothub.models.StorageEndpointProperties; +import com.azure.resourcemanager.iothub.models.TopicGroup; import java.time.Duration; import java.util.Arrays; import java.util.HashMap; @@ -38,14 +42,14 @@ */ public final class IotHubResourceCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/CreateOrReplace_IoTHub_With_DeviceRegistry.json + * x-ms-original-file: 2026-10-01-preview/CreateOrReplace_IotHub.json */ /** - * Sample code: CreateOrReplace_IoTHub_With_DeviceRegistry. + * Sample code: CreateOrReplace_IotHub. * * @param manager Entry point to IotHubManager. */ - public static void createOrReplaceIoTHubWithDeviceRegistry(com.azure.resourcemanager.iothub.IotHubManager manager) { + public static void createOrReplaceIotHub(com.azure.resourcemanager.iothub.IotHubManager manager) { manager.iotHubResources() .define("testHub") .withRegion("centraluseuap") @@ -69,9 +73,14 @@ public static void createOrReplaceIoTHubWithDeviceRegistry(com.azure.resourceman .withEndpoints(new RoutingEndpoints().withServiceBusQueues(Arrays.asList()) .withServiceBusTopics(Arrays.asList()) .withEventHubs(Arrays.asList()) - .withStorageContainers(Arrays.asList()) - .withEventStreams(Arrays.asList())) - .withRoutes(Arrays.asList()) + .withStorageContainers(Arrays.asList())) + .withRoutes(Arrays.asList(new RouteProperties().withName("Routeid") + .withSource(RoutingSource.DEVICE_MESSAGES) + .withCondition("true") + .withDataSchema( + "aio-sr://aiosaalkopkedev/62a24af1d7db61cd44b2ad6b6c3f4ab7312be447f89ff3401d18357d0d05ce3a:1") + .withEndpointNames(Arrays.asList("events")) + .withIsEnabled(true))) .withFallbackRoute(new FallbackRouteProperties().withName("$fallback") .withSource(RoutingSource.DEVICE_MESSAGES) .withCondition("true") @@ -94,17 +103,13 @@ public static void createOrReplaceIoTHubWithDeviceRegistry(com.azure.resourceman .withFeatures(Capabilities.NONE) .withEnableDataResidency(true) .withRootCertificate(new RootCertificateProperties().withEnableRootCertificateV2(true)) - .withIpVersion(IpVersion.IPV4IPV6) - .withDeviceRegistry(new DeviceRegistry().withNamespaceResourceId( - "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/namespaces/testNamespace") - .withIdentityResourceId( - "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testIdentity"))) + .withIpVersion(IpVersion.IPV4IPV6)) .withEtag("AAAAAAFD6M4=") .create(); } /* - * x-ms-original-file: 2026-05-01-preview/iothub_createOrUpdate.json + * x-ms-original-file: 2026-10-01-preview/iothub_createOrUpdate.json */ /** * Sample code: IotHubResource_CreateOrUpdate. @@ -142,7 +147,8 @@ public static void iotHubResourceCreateOrUpdate(com.azure.resourcemanager.iothub .withAuthenticationType(EventStreamAuthenticationType.IDENTITY_BASED) .withWorkspaceId("11111111-1111-1111-1111-111111111111") .withEventStreamId("22222222-2222-2222-2222-222222222222") - .withSourceId("33333333-3333-3333-3333-333333333333")))) + .withSourceId("33333333-3333-3333-3333-333333333333") + .withMessagePayloadFormat(MessagePayloadFormat.DOOBSERVATION_V1)))) .withRoutes(Arrays.asList()) .withFallbackRoute(new FallbackRouteProperties().withName("$fallback") .withSource(RoutingSource.DEVICE_MESSAGES) @@ -172,6 +178,74 @@ public static void iotHubResourceCreateOrUpdate(com.azure.resourcemanager.iothub .create(); } + /* + * x-ms-original-file: 2026-10-01-preview/CreateOrReplace_IoTHub_With_MqttV5.json + */ + /** + * Sample code: CreateOrReplace_IoTHub_With_MqttV5. + * + * @param manager Entry point to IotHubManager. + */ + public static void createOrReplaceIoTHubWithMqttV5(com.azure.resourcemanager.iothub.IotHubManager manager) { + manager.iotHubResources() + .define("testHub") + .withRegion("centraluseuap") + .withExistingResourceGroup("myResourceGroup") + .withSku(new IotHubSkuInfo().withName(IotHubSku.S1).withCapacity(1L)) + .withTags(mapOf()) + .withProperties(new IotHubProperties().withIpFilterRules(Arrays.asList()) + .withNetworkRuleSets(new NetworkRuleSetProperties().withDefaultAction(DefaultAction.DENY) + .withApplyToBuiltInEventHubEndpoint(true) + .withIpRules(Arrays.asList( + new NetworkRuleSetIpRule().withFilterName("rule1") + .withAction(NetworkRuleIpAction.ALLOW) + .withIpMask("131.117.159.53"), + new NetworkRuleSetIpRule().withFilterName("rule2") + .withAction(NetworkRuleIpAction.ALLOW) + .withIpMask("157.55.59.128/25")))) + .withMinTlsVersion("1.2") + .withEventHubEndpoints( + mapOf("events", new EventHubProperties().withRetentionTimeInDays(1L).withPartitionCount(2))) + .withRouting(new RoutingProperties() + .withEndpoints(new RoutingEndpoints().withServiceBusQueues(Arrays.asList()) + .withServiceBusTopics(Arrays.asList()) + .withEventHubs(Arrays.asList()) + .withStorageContainers(Arrays.asList())) + .withRoutes(Arrays.asList()) + .withFallbackRoute(new FallbackRouteProperties().withName("$fallback") + .withSource(RoutingSource.DEVICE_MESSAGES) + .withCondition("true") + .withEndpointNames(Arrays.asList("events")) + .withIsEnabled(true))) + .withStorageEndpoints(mapOf("$default", + new StorageEndpointProperties().withSasTtlAsIso8601(Duration.parse("PT1H")) + .withConnectionString("") + .withContainerName(""))) + .withMessagingEndpoints(mapOf("fileNotifications", + new MessagingEndpointProperties().withLockDurationAsIso8601(Duration.parse("PT1M")) + .withTtlAsIso8601(Duration.parse("PT1H")) + .withMaxDeliveryCount(10))) + .withEnableFileUploadNotifications(false) + .withCloudToDevice(new CloudToDeviceProperties().withMaxDeliveryCount(10) + .withDefaultTtlAsIso8601(Duration.parse("PT1H")) + .withFeedback(new FeedbackProperties().withLockDurationAsIso8601(Duration.parse("PT1M")) + .withTtlAsIso8601(Duration.parse("PT1H")) + .withMaxDeliveryCount(10))) + .withFeatures(Capabilities.NONE) + .withEnableDataResidency(true) + .withRootCertificate(new RootCertificateProperties().withEnableRootCertificateV2(true)) + .withIpVersion(IpVersion.IPV4IPV6) + .withConnectionProfile(ConnectionProfile.MQTT_V5) + .withMqttV5Settings( + new MqttV5Settings() + .withTopicGroups( + Arrays.asList(new TopicGroup().withTopicGroupId("myTopicGroup") + .withTopicTemplates(Arrays.asList("mytopics/telemetry/temperature/*", + "mytopics/telemetry/humidity/*")))))) + .withEtag("AAAAAAFD6M4=") + .create(); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { 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 7b179dc04728d..2dce244d99352 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 @@ */ public final class IotHubResourceDeleteEventHubConsumerGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_deleteconsumergroup.json + * x-ms-original-file: 2026-10-01-preview/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 a7bde8b43ed52..5bcdff0f9214b 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 @@ */ public final class IotHubResourceDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_delete.json + * x-ms-original-file: 2026-10-01-preview/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 f9afd779f61c7..1227159063bbd 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 @@ -13,7 +13,7 @@ */ public final class IotHubResourceExportDevicesSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_exportdevices.json + * x-ms-original-file: 2026-10-01-preview/iothub_exportdevices.json */ /** * Sample code: IotHubResource_ExportDevices. 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 ba4ac6a66b2d7..20e45c03a384e 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,33 @@ */ public final class IotHubResourceGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_get.json + * x-ms-original-file: 2026-10-01-preview/Get_IotHub_With_DeviceRegistry.json + */ + /** + * Sample code: Get_IotHub_With_DeviceRegistry. + * + * @param manager Entry point to IotHubManager. + */ + public static void getIotHubWithDeviceRegistry(com.azure.resourcemanager.iothub.IotHubManager manager) { + manager.iotHubResources() + .getByResourceGroupWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Get_IotHub_With_DeviceRegistry_Linking_Error.json + */ + /** + * Sample code: Get_IotHub_With_DeviceRegistry_Linking_Error. + * + * @param manager Entry point to IotHubManager. + */ + public static void getIotHubWithDeviceRegistryLinkingError(com.azure.resourcemanager.iothub.IotHubManager manager) { + manager.iotHubResources() + .getByResourceGroupWithResponse("myResourceGroup", "testHub", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/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 33faf07067ba6..2e6bd7e362c67 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 @@ */ public final class IotHubResourceGetEndpointHealthSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_routingendpointhealth.json + * x-ms-original-file: 2026-10-01-preview/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 7d109caa5a3f1..b72181edf48ad 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 @@ */ public final class IotHubResourceGetEventHubConsumerGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getconsumergroup.json + * x-ms-original-file: 2026-10-01-preview/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 a625805805cd3..c930e01bbe7c8 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 @@ */ public final class IotHubResourceGetJobSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getjob.json + * x-ms-original-file: 2026-10-01-preview/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 65e3ff30dc40a..75b713ae5124e 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 @@ */ public final class IotHubResourceGetKeysForKeyNameSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getkey.json + * x-ms-original-file: 2026-10-01-preview/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 5e6d449123472..ae0fa40afaa08 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 @@ */ public final class IotHubResourceGetQuotaMetricsSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_quotametrics.json + * x-ms-original-file: 2026-10-01-preview/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 f15100e9db131..f4311f3bdc884 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 @@ */ public final class IotHubResourceGetStatsSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_stats.json + * x-ms-original-file: 2026-10-01-preview/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 898e5fac6c193..1a0d6400f6096 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 @@ */ public final class IotHubResourceGetValidSkusSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getskus.json + * x-ms-original-file: 2026-10-01-preview/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 2dd6f4f5de7d9..f726c1594d176 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 @@ -11,7 +11,7 @@ */ public final class IotHubResourceImportDevicesSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_importdevices.json + * x-ms-original-file: 2026-10-01-preview/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 0a5b4a4d459ae..fc0671db5f9f7 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 @@ */ public final class IotHubResourceListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listbyrg.json + * x-ms-original-file: 2026-10-01-preview/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 75a7ac9893e07..d7c91734887b5 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 @@ */ public final class IotHubResourceListEventHubConsumerGroupsSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listehgroups.json + * x-ms-original-file: 2026-10-01-preview/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 b1ea0f870fef1..de00133633642 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 @@ */ public final class IotHubResourceListJobsSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listjobs.json + * x-ms-original-file: 2026-10-01-preview/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 e1302ecd3eae8..fe654c8d73c7d 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 @@ */ public final class IotHubResourceListKeysSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listkeys.json + * x-ms-original-file: 2026-10-01-preview/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 f1d560da57d18..c48a3f62d1137 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 @@ */ public final class IotHubResourceListSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listbysubscription.json + * x-ms-original-file: 2026-10-01-preview/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 27963fbb92b87..d92f25c74c4a5 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 @@ -15,7 +15,7 @@ */ public final class IotHubResourceTestAllRoutesSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_testallroutes.json + * x-ms-original-file: 2026-10-01-preview/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 3e00305ea27ca..203de3458ca06 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 @@ -17,7 +17,7 @@ */ public final class IotHubResourceTestRouteSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_testnewroute.json + * x-ms-original-file: 2026-10-01-preview/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 949c56ab0faa1..7bd6671e98a66 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 @@ -13,7 +13,7 @@ */ public final class IotHubResourceUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_patch.json + * x-ms-original-file: 2026-10-01-preview/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 9635f4f8d54de..88bfd964e9936 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 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_operations.json + * x-ms-original-file: 2026-10-01-preview/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 d346d738ac04b..66556f0d84ffa 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 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_deleteprivateendpointconnection.json + * x-ms-original-file: 2026-10-01-preview/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 463767c4b9968..ffc20bc9d731c 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 @@ */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getprivateendpointconnection.json + * x-ms-original-file: 2026-10-01-preview/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 57c4b52a6111b..9ec68cb9a1109 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 @@ */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listprivateendpointconnections.json + * x-ms-original-file: 2026-10-01-preview/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 e4871e2348355..d21f0cf0a5186 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 @@ -14,7 +14,7 @@ */ public final class PrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_updateprivateendpointconnection.json + * x-ms-original-file: 2026-10-01-preview/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 fea870f62cc91..739065a63a48c 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 @@ */ public final class PrivateLinkResourcesOperationGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_getprivatelinkresources.json + * x-ms-original-file: 2026-10-01-preview/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 27484ef3e7f7a..2102164e33ba7 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 @@ */ public final class PrivateLinkResourcesOperationListSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_listprivatelinkresources.json + * x-ms-original-file: 2026-10-01-preview/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 c7643c7430aa6..36599f1fdf516 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 @@ */ public final class ResourceProviderCommonGetSubscriptionQuotaSamples { /* - * x-ms-original-file: 2026-05-01-preview/iothub_usages.json + * x-ms-original-file: 2026-10-01-preview/iothub_usages.json */ /** * Sample code: ResourceProviderCommon_GetSubscriptionQuota. diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ArmIdentityTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ArmIdentityTests.java index 431372b518abb..4f18f97bf2085 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ArmIdentityTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ArmIdentityTests.java @@ -16,17 +16,18 @@ public final class ArmIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ArmIdentity model = BinaryData.fromString( - "{\"principalId\":\"kzywbiex\",\"tenantId\":\"eyueaxibxujwb\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"d\":{\"principalId\":\"uzyoxaep\",\"clientId\":\"zjancuxr\"},\"zxbzpfzabglc\":{\"principalId\":\"avxbniwdjswztsdb\",\"clientId\":\"nxytxh\"}}}") + "{\"principalId\":\"vbvmeu\",\"tenantId\":\"ivyhzceuojgjrwju\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"wgqwgxhn\":{\"principalId\":\"cdytdxw\",\"clientId\":\"xnrj\"},\"xujznbmpowu\":{\"principalId\":\"kxfbkpycgklwndn\",\"clientId\":\"dauwhvylwzbtd\"},\"hfxobbcswsrtj\":{\"principalId\":\"rzqlveu\",\"clientId\":\"upjm\"}}}") .toObject(ArmIdentity.class); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ArmIdentity model = new ArmIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("d", new ArmUserIdentity(), "zxbzpfzabglc", new ArmUserIdentity())); + ArmIdentity model = new ArmIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("wgqwgxhn", new ArmUserIdentity(), "xujznbmpowu", new ArmUserIdentity(), + "hfxobbcswsrtj", new ArmUserIdentity())); model = BinaryData.fromObject(model).toObject(ArmIdentity.class); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, model.type()); } // Use "Map.of" if available diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ArmUserIdentityTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ArmUserIdentityTests.java index 540969a61f497..559aa2f2bf6f1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ArmUserIdentityTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ArmUserIdentityTests.java @@ -10,7 +10,7 @@ public final class ArmUserIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ArmUserIdentity model = BinaryData.fromString("{\"principalId\":\"xwtctyqiklbbovpl\",\"clientId\":\"bhvgy\"}") + ArmUserIdentity model = BinaryData.fromString("{\"principalId\":\"plrbpbewtghf\",\"clientId\":\"lcgwxzvlvqh\"}") .toObject(ArmUserIdentity.class); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateDescriptionInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateDescriptionInnerTests.java index ed49235e8ef0e..c3ffca5774d33 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateDescriptionInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateDescriptionInnerTests.java @@ -13,20 +13,22 @@ public final class CertificateDescriptionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CertificateDescriptionInner model = BinaryData.fromString( - "{\"properties\":{\"subject\":\"wqapnedgfbcvk\",\"expiry\":\"Mon, 31 May 2021 02:02:01 GMT\",\"thumbprint\":\"pkeqdcvdrhvoo\",\"isVerified\":true,\"created\":\"Tue, 02 Nov 2021 01:53:07 GMT\",\"updated\":\"Mon, 29 Mar 2021 00:37:52 GMT\",\"certificate\":\"dopcjwvnh\",\"policyResourceId\":\"d\"},\"etag\":\"gx\",\"id\":\"rslpmutwuoeg\",\"name\":\"pkhjwni\",\"type\":\"qsluicp\"}") + "{\"properties\":{\"subject\":\"mfnjh\",\"expiry\":\"Mon, 05 Apr 2021 14:46:39 GMT\",\"thumbprint\":\"mszkkfo\",\"isVerified\":true,\"created\":\"Mon, 21 Jun 2021 22:48:50 GMT\",\"updated\":\"Mon, 31 May 2021 03:25:20 GMT\",\"certificate\":\"kf\",\"certificateAuthorityResourceId\":\"wneaiv\"},\"etag\":\"czelpcirel\",\"id\":\"eae\",\"name\":\"wabfatkl\",\"type\":\"dxbjhwuaanozj\"}") .toObject(CertificateDescriptionInner.class); Assertions.assertTrue(model.properties().isVerified()); - Assertions.assertEquals("dopcjwvnh", model.properties().certificate()); - Assertions.assertEquals("d", model.properties().policyResourceId()); + Assertions.assertEquals("kf", model.properties().certificate()); + Assertions.assertEquals("wneaiv", model.properties().certificateAuthorityResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CertificateDescriptionInner model = new CertificateDescriptionInner().withProperties( - new CertificateProperties().withIsVerified(true).withCertificate("dopcjwvnh").withPolicyResourceId("d")); + CertificateDescriptionInner model + = new CertificateDescriptionInner().withProperties(new CertificateProperties().withIsVerified(true) + .withCertificate("kf") + .withCertificateAuthorityResourceId("wneaiv")); model = BinaryData.fromObject(model).toObject(CertificateDescriptionInner.class); Assertions.assertTrue(model.properties().isVerified()); - Assertions.assertEquals("dopcjwvnh", model.properties().certificate()); - Assertions.assertEquals("d", model.properties().policyResourceId()); + Assertions.assertEquals("kf", model.properties().certificate()); + Assertions.assertEquals("wneaiv", model.properties().certificateAuthorityResourceId()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateListDescriptionInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateListDescriptionInnerTests.java index 210ce2da17422..789e138ac6a05 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateListDescriptionInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateListDescriptionInnerTests.java @@ -12,10 +12,10 @@ public final class CertificateListDescriptionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CertificateListDescriptionInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"subject\":\"pwiyzvqtm\",\"expiry\":\"Wed, 22 Sep 2021 09:26:58 GMT\",\"thumbprint\":\"xkp\",\"isVerified\":false,\"created\":\"Tue, 02 Mar 2021 10:38:26 GMT\",\"updated\":\"Wed, 08 Dec 2021 09:50:21 GMT\",\"certificate\":\"mquxvypo\",\"policyResourceId\":\"kopkwhojvpajqgx\"},\"etag\":\"mocmbqfqvmk\",\"id\":\"oz\",\"name\":\"pvhelxprg\",\"type\":\"yat\"}]}") + "{\"value\":[{\"properties\":{\"subject\":\"ekkezzikhlyfjh\",\"expiry\":\"Fri, 19 Feb 2021 20:13:34 GMT\",\"thumbprint\":\"gebdunygaeq\",\"isVerified\":true,\"created\":\"Sat, 07 Aug 2021 13:11:54 GMT\",\"updated\":\"Wed, 13 Jan 2021 01:50:50 GMT\",\"certificate\":\"xllrxcyjm\",\"certificateAuthorityResourceId\":\"dsuvarmywdmjsjqb\"},\"etag\":\"hyxxrwlycoduhpk\",\"id\":\"gymare\",\"name\":\"n\",\"type\":\"jxqugjhky\"},{\"properties\":{\"subject\":\"eddgssofw\",\"expiry\":\"Thu, 12 Aug 2021 00:48:32 GMT\",\"thumbprint\":\"alkrmn\",\"isVerified\":false,\"created\":\"Fri, 03 Dec 2021 00:29:17 GMT\",\"updated\":\"Thu, 16 Sep 2021 05:14:56 GMT\",\"certificate\":\"qudf\",\"certificateAuthorityResourceId\":\"yxbaaabjyvayf\"},\"etag\":\"m\",\"id\":\"rtuzqogs\",\"name\":\"xnevfdnwn\",\"type\":\"mewzsyyc\"},{\"properties\":{\"subject\":\"soibjudpfrx\",\"expiry\":\"Wed, 06 Oct 2021 21:06:57 GMT\",\"thumbprint\":\"zvaytdwkqbr\",\"isVerified\":true,\"created\":\"Wed, 20 Jan 2021 18:23:45 GMT\",\"updated\":\"Sat, 19 Jun 2021 07:52:19 GMT\",\"certificate\":\"xiilivpdtiirqt\",\"certificateAuthorityResourceId\":\"oaxoruzfgsqu\"},\"etag\":\"xrxxlep\",\"id\":\"amxjezwlw\",\"name\":\"wxuqlcvydypatdoo\",\"type\":\"ojknio\"}]}") .toObject(CertificateListDescriptionInner.class); - Assertions.assertFalse(model.value().get(0).properties().isVerified()); - Assertions.assertEquals("mquxvypo", model.value().get(0).properties().certificate()); - Assertions.assertEquals("kopkwhojvpajqgx", model.value().get(0).properties().policyResourceId()); + Assertions.assertTrue(model.value().get(0).properties().isVerified()); + Assertions.assertEquals("xllrxcyjm", model.value().get(0).properties().certificate()); + Assertions.assertEquals("dsuvarmywdmjsjqb", model.value().get(0).properties().certificateAuthorityResourceId()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatePropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatePropertiesTests.java index ad2b2df21d944..da1e6b341117c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatePropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatePropertiesTests.java @@ -12,20 +12,21 @@ public final class CertificatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CertificateProperties model = BinaryData.fromString( - "{\"subject\":\"gk\",\"expiry\":\"Fri, 02 Apr 2021 01:13:45 GMT\",\"thumbprint\":\"bmpaxmodfvu\",\"isVerified\":false,\"created\":\"Wed, 07 Jul 2021 11:17:58 GMT\",\"updated\":\"Sun, 25 Apr 2021 15:51:11 GMT\",\"certificate\":\"vmwy\",\"policyResourceId\":\"fouyf\"}") + "{\"subject\":\"ph\",\"expiry\":\"Wed, 13 Jan 2021 02:58:16 GMT\",\"thumbprint\":\"pjrvxagl\",\"isVerified\":false,\"created\":\"Thu, 23 Sep 2021 10:13:50 GMT\",\"updated\":\"Sat, 16 Oct 2021 12:23:58 GMT\",\"certificate\":\"ytxitcsk\",\"certificateAuthorityResourceId\":\"k\"}") .toObject(CertificateProperties.class); Assertions.assertFalse(model.isVerified()); - Assertions.assertEquals("vmwy", model.certificate()); - Assertions.assertEquals("fouyf", model.policyResourceId()); + Assertions.assertEquals("ytxitcsk", model.certificate()); + Assertions.assertEquals("k", model.certificateAuthorityResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CertificateProperties model - = new CertificateProperties().withIsVerified(false).withCertificate("vmwy").withPolicyResourceId("fouyf"); + CertificateProperties model = new CertificateProperties().withIsVerified(false) + .withCertificate("ytxitcsk") + .withCertificateAuthorityResourceId("k"); model = BinaryData.fromObject(model).toObject(CertificateProperties.class); Assertions.assertFalse(model.isVerified()); - Assertions.assertEquals("vmwy", model.certificate()); - Assertions.assertEquals("fouyf", model.policyResourceId()); + Assertions.assertEquals("ytxitcsk", model.certificate()); + Assertions.assertEquals("k", model.certificateAuthorityResourceId()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateVerificationDescriptionTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateVerificationDescriptionTests.java index 727e3d67543bf..5456bf3cf022e 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateVerificationDescriptionTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificateVerificationDescriptionTests.java @@ -11,15 +11,16 @@ public final class CertificateVerificationDescriptionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CertificateVerificationDescription model = BinaryData.fromString("{\"certificate\":\"tkcnqxwb\"}") + CertificateVerificationDescription model = BinaryData.fromString("{\"certificate\":\"ervtiagxs\"}") .toObject(CertificateVerificationDescription.class); - Assertions.assertEquals("tkcnqxwb", model.certificate()); + Assertions.assertEquals("ervtiagxs", model.certificate()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CertificateVerificationDescription model = new CertificateVerificationDescription().withCertificate("tkcnqxwb"); + CertificateVerificationDescription model + = new CertificateVerificationDescription().withCertificate("ervtiagxs"); model = BinaryData.fromObject(model).toObject(CertificateVerificationDescription.class); - Assertions.assertEquals("tkcnqxwb", model.certificate()); + Assertions.assertEquals("ervtiagxs", model.certificate()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateWithResponseMockTests.java index be3f0e858eb74..dcd504d6e5928 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class CertificatesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"subject\":\"v\",\"expiry\":\"Tue, 30 Mar 2021 03:00:35 GMT\",\"thumbprint\":\"emjdftul\",\"isVerified\":false,\"created\":\"Sat, 06 Mar 2021 23:14:05 GMT\",\"updated\":\"Sat, 01 May 2021 02:04:00 GMT\",\"certificate\":\"mtmczuome\",\"policyResourceId\":\"cwwqiokn\"},\"etag\":\"xmojmsvpkjp\",\"id\":\"kwcf\",\"name\":\"ql\",\"type\":\"yxgtczh\"}"; + = "{\"properties\":{\"subject\":\"mlqoljx\",\"expiry\":\"Fri, 12 Nov 2021 05:30:54 GMT\",\"thumbprint\":\"xlx\",\"isVerified\":false,\"created\":\"Sun, 24 Jan 2021 07:17:26 GMT\",\"updated\":\"Wed, 08 Dec 2021 16:57:45 GMT\",\"certificate\":\"qzdwlvwlyoup\",\"certificateAuthorityResourceId\":\"fbkjubdyhgkfmi\"},\"etag\":\"g\",\"id\":\"zfttsttktlahb\",\"name\":\"actxtgzukxitm\",\"type\":\"qtgqqqxhrnxr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CertificateDescription response = manager.certificates() - .define("gdyftumrtwna") - .withExistingIotHub("zjxvydfcea", "vlhv") + .define("cubiipuipw") + .withExistingIotHub("euzaof", "chvcyyysfgdo") .withProperties(new CertificateProperties().withIsVerified(false) - .withCertificate("pxehuwrykqga") - .withPolicyResourceId("mvikl")) - .withIfMatch("v") + .withCertificate("gmblrri") + .withCertificateAuthorityResourceId("ywdxsmic")) + .withIfMatch("smsks") .create(); Assertions.assertFalse(response.properties().isVerified()); - Assertions.assertEquals("mtmczuome", response.properties().certificate()); - Assertions.assertEquals("cwwqiokn", response.properties().policyResourceId()); + Assertions.assertEquals("qzdwlvwlyoup", response.properties().certificate()); + Assertions.assertEquals("fbkjubdyhgkfmi", response.properties().certificateAuthorityResourceId()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteWithResponseMockTests.java index 70becc5568336..08ade2884482b 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.certificates() - .deleteWithResponse("xqupevzhf", "totxhojujb", "pelmcuvhixbjxyf", "n", com.azure.core.util.Context.NONE); + .deleteWithResponse("lmbtxhwgfwsrt", "wcoezbrhub", "kh", "dyg", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesGetWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesGetWithResponseMockTests.java index 1242a2f70f493..443dd1f97a1a1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesGetWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class CertificatesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"subject\":\"xnfaazpxdtnk\",\"expiry\":\"Thu, 11 Feb 2021 22:04:16 GMT\",\"thumbprint\":\"j\",\"isVerified\":false,\"created\":\"Sat, 25 Sep 2021 21:21:30 GMT\",\"updated\":\"Sun, 20 Jun 2021 22:12:49 GMT\",\"certificate\":\"kpyouaibrebqaay\",\"policyResourceId\":\"kixqtnqtt\"},\"etag\":\"lwfffi\",\"id\":\"pjpqqmtedltmmji\",\"name\":\"yeozphvwauyqncy\",\"type\":\"upkvipmdsc\"}"; + = "{\"properties\":{\"subject\":\"iplt\",\"expiry\":\"Wed, 21 Apr 2021 08:05:23 GMT\",\"thumbprint\":\"baxk\",\"isVerified\":false,\"created\":\"Tue, 15 Jun 2021 04:05:50 GMT\",\"updated\":\"Wed, 27 Jan 2021 09:50:08 GMT\",\"certificate\":\"yklyhpluodpvruud\",\"certificateAuthorityResourceId\":\"zibt\"},\"etag\":\"stgktst\",\"id\":\"xeclzedqbcvhzlhp\",\"name\":\"odqkdlwwqfb\",\"type\":\"mlkxtrqjfs\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CertificateDescription response = manager.certificates() - .getWithResponse("saz", "jjoqkagf", "sxtta", com.azure.core.util.Context.NONE) + .getWithResponse("yxgtczh", "ydbsd", "hmkxmaehvbb", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertFalse(response.properties().isVerified()); - Assertions.assertEquals("kpyouaibrebqaay", response.properties().certificate()); - Assertions.assertEquals("kixqtnqtt", response.properties().policyResourceId()); + Assertions.assertEquals("yklyhpluodpvruud", response.properties().certificate()); + Assertions.assertEquals("zibt", response.properties().certificateAuthorityResourceId()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubWithResponseMockTests.java index 95766b09f41c8..d25a20c76589f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class CertificatesListByIotHubWithResponseMockTests { @Test public void testListByIotHubWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"subject\":\"tylbfpncurdoiw\",\"expiry\":\"Thu, 09 Dec 2021 11:25:56 GMT\",\"thumbprint\":\"tywubxcbihwq\",\"isVerified\":true,\"created\":\"Sun, 05 Sep 2021 23:19:39 GMT\",\"updated\":\"Thu, 12 Aug 2021 13:32:47 GMT\",\"certificate\":\"chrdgoihxumwcto\",\"policyResourceId\":\"zj\"},\"etag\":\"udfdlwgg\",\"id\":\"sb\",\"name\":\"tov\",\"type\":\"tgseinqfiufxqkn\"},{\"properties\":{\"subject\":\"gnepttwqmsni\",\"expiry\":\"Mon, 12 Apr 2021 20:00:21 GMT\",\"thumbprint\":\"mqnrojlpijnkr\",\"isVerified\":false,\"created\":\"Tue, 09 Nov 2021 11:24:19 GMT\",\"updated\":\"Mon, 11 Jan 2021 16:21:05 GMT\",\"certificate\":\"atiz\",\"policyResourceId\":\"onasxifto\"},\"etag\":\"yzhftwesgogczh\",\"id\":\"nxkrlgnyhmossxkk\",\"name\":\"thrrgh\",\"type\":\"jbdhqxvc\"},{\"properties\":{\"subject\":\"rpdsof\",\"expiry\":\"Mon, 03 May 2021 16:15:22 GMT\",\"thumbprint\":\"nsvbuswdv\",\"isVerified\":true,\"created\":\"Mon, 22 Feb 2021 05:56:13 GMT\",\"updated\":\"Tue, 06 Apr 2021 20:50:40 GMT\",\"certificate\":\"nvjsrtkfa\",\"policyResourceId\":\"opqgikyzirtxdyux\"},\"etag\":\"jntpsewgioilqu\",\"id\":\"ydxtqm\",\"name\":\"eoxorggufhyao\",\"type\":\"tbghhavgrvkf\"}]}"; + = "{\"value\":[{\"properties\":{\"subject\":\"iqtqzfavyvnq\",\"expiry\":\"Sun, 23 May 2021 06:21:06 GMT\",\"thumbprint\":\"ryeu\",\"isVerified\":false,\"created\":\"Tue, 25 May 2021 11:37:10 GMT\",\"updated\":\"Mon, 19 Apr 2021 19:49:12 GMT\",\"certificate\":\"gzslesjcbhernnti\",\"certificateAuthorityResourceId\":\"djc\"},\"etag\":\"quwrbehwag\",\"id\":\"buffkmrqemvvhm\",\"name\":\"tdrjfutacoebj\",\"type\":\"ewzcjznmwcp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testListByIotHubWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CertificateListDescription response = manager.certificates() - .listByIotHubWithResponse("lrcoolsttpki", "kkbnu", com.azure.core.util.Context.NONE) + .listByIotHubWithResponse("ookk", "fqjbvleo", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertTrue(response.value().get(0).properties().isVerified()); - Assertions.assertEquals("chrdgoihxumwcto", response.value().get(0).properties().certificate()); - Assertions.assertEquals("zj", response.value().get(0).properties().policyResourceId()); + Assertions.assertFalse(response.value().get(0).properties().isVerified()); + Assertions.assertEquals("gzslesjcbhernnti", response.value().get(0).properties().certificate()); + Assertions.assertEquals("djc", response.value().get(0).properties().certificateAuthorityResourceId()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifyWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifyWithResponseMockTests.java index cc4c60f066f55..5349dc1d46e18 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifyWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifyWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class CertificatesVerifyWithResponseMockTests { @Test public void testVerifyWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"subject\":\"fwdgzxulucvp\",\"expiry\":\"Thu, 09 Dec 2021 14:22:52 GMT\",\"thumbprint\":\"reuzvxurisjn\",\"isVerified\":true,\"created\":\"Thu, 15 Apr 2021 22:34:41 GMT\",\"updated\":\"Tue, 25 May 2021 13:24:42 GMT\",\"certificate\":\"jzgxmrhublwp\",\"policyResourceId\":\"sutrgjup\"},\"etag\":\"utpwoqhihejqgw\",\"id\":\"nfqn\",\"name\":\"cypsxjv\",\"type\":\"oimwkslirc\"}"; + = "{\"properties\":{\"subject\":\"kokwbqplhlvnu\",\"expiry\":\"Sun, 29 Aug 2021 14:02:44 GMT\",\"thumbprint\":\"lrphwzsoldw\",\"isVerified\":true,\"created\":\"Mon, 15 Mar 2021 18:22:51 GMT\",\"updated\":\"Wed, 19 May 2021 00:01:37 GMT\",\"certificate\":\"nnrwrbiork\",\"certificateAuthorityResourceId\":\"lywjhh\"},\"etag\":\"nhxmsi\",\"id\":\"omi\",\"name\":\"ox\",\"type\":\"gdufiqnd\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testVerifyWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CertificateDescription response = manager.certificates() - .verifyWithResponse("rymsgaojfmw", "cotmr", "hirctymoxoftpipi", "yczuhxacpq", - new CertificateVerificationDescription().withCertificate("ihhyuspskasd"), + .verifyWithResponse("rwm", "uvwpklvxwmyg", "xpgpq", "hiszepnnbjcrxgib", + new CertificateVerificationDescription().withCertificate("axconfozauo"), com.azure.core.util.Context.NONE) .getValue(); Assertions.assertTrue(response.properties().isVerified()); - Assertions.assertEquals("jzgxmrhublwp", response.properties().certificate()); - Assertions.assertEquals("sutrgjup", response.properties().policyResourceId()); + Assertions.assertEquals("nnrwrbiork", response.properties().certificate()); + Assertions.assertEquals("lywjhh", response.properties().certificateAuthorityResourceId()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CloudToDevicePropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CloudToDevicePropertiesTests.java index 3a41399ebac2f..b6f54e43dd19f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CloudToDevicePropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/CloudToDevicePropertiesTests.java @@ -14,27 +14,27 @@ public final class CloudToDevicePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudToDeviceProperties model = BinaryData.fromString( - "{\"maxDeliveryCount\":826548714,\"defaultTtlAsIso8601\":\"PT237H49M11S\",\"feedback\":{\"lockDurationAsIso8601\":\"PT162H59M18S\",\"ttlAsIso8601\":\"PT214H37M56S\",\"maxDeliveryCount\":266718281}}") + "{\"maxDeliveryCount\":1314028538,\"defaultTtlAsIso8601\":\"PT30H24M12S\",\"feedback\":{\"lockDurationAsIso8601\":\"PT38H43M40S\",\"ttlAsIso8601\":\"PT164H34M1S\",\"maxDeliveryCount\":2037546368}}") .toObject(CloudToDeviceProperties.class); - Assertions.assertEquals(826548714, model.maxDeliveryCount()); - Assertions.assertEquals(Duration.parse("PT237H49M11S"), model.defaultTtlAsIso8601()); - Assertions.assertEquals(Duration.parse("PT162H59M18S"), model.feedback().lockDurationAsIso8601()); - Assertions.assertEquals(Duration.parse("PT214H37M56S"), model.feedback().ttlAsIso8601()); - Assertions.assertEquals(266718281, model.feedback().maxDeliveryCount()); + Assertions.assertEquals(1314028538, model.maxDeliveryCount()); + Assertions.assertEquals(Duration.parse("PT30H24M12S"), model.defaultTtlAsIso8601()); + Assertions.assertEquals(Duration.parse("PT38H43M40S"), model.feedback().lockDurationAsIso8601()); + Assertions.assertEquals(Duration.parse("PT164H34M1S"), model.feedback().ttlAsIso8601()); + Assertions.assertEquals(2037546368, model.feedback().maxDeliveryCount()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CloudToDeviceProperties model = new CloudToDeviceProperties().withMaxDeliveryCount(826548714) - .withDefaultTtlAsIso8601(Duration.parse("PT237H49M11S")) - .withFeedback(new FeedbackProperties().withLockDurationAsIso8601(Duration.parse("PT162H59M18S")) - .withTtlAsIso8601(Duration.parse("PT214H37M56S")) - .withMaxDeliveryCount(266718281)); + CloudToDeviceProperties model = new CloudToDeviceProperties().withMaxDeliveryCount(1314028538) + .withDefaultTtlAsIso8601(Duration.parse("PT30H24M12S")) + .withFeedback(new FeedbackProperties().withLockDurationAsIso8601(Duration.parse("PT38H43M40S")) + .withTtlAsIso8601(Duration.parse("PT164H34M1S")) + .withMaxDeliveryCount(2037546368)); model = BinaryData.fromObject(model).toObject(CloudToDeviceProperties.class); - Assertions.assertEquals(826548714, model.maxDeliveryCount()); - Assertions.assertEquals(Duration.parse("PT237H49M11S"), model.defaultTtlAsIso8601()); - Assertions.assertEquals(Duration.parse("PT162H59M18S"), model.feedback().lockDurationAsIso8601()); - Assertions.assertEquals(Duration.parse("PT214H37M56S"), model.feedback().ttlAsIso8601()); - Assertions.assertEquals(266718281, model.feedback().maxDeliveryCount()); + Assertions.assertEquals(1314028538, model.maxDeliveryCount()); + Assertions.assertEquals(Duration.parse("PT30H24M12S"), model.defaultTtlAsIso8601()); + Assertions.assertEquals(Duration.parse("PT38H43M40S"), model.feedback().lockDurationAsIso8601()); + Assertions.assertEquals(Duration.parse("PT164H34M1S"), model.feedback().ttlAsIso8601()); + Assertions.assertEquals(2037546368, model.feedback().maxDeliveryCount()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/DeviceRegistryIdentityTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/DeviceRegistryIdentityTests.java new file mode 100644 index 0000000000000..305be5ae3f65b --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/DeviceRegistryIdentityTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.iothub.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.iothub.models.DeviceRegistryIdentity; +import com.azure.resourcemanager.iothub.models.DeviceRegistryIdentityType; +import org.junit.jupiter.api.Assertions; + +public final class DeviceRegistryIdentityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DeviceRegistryIdentity model + = BinaryData.fromString("{\"type\":\"UserAssigned\",\"userAssignedIdentity\":\"wxosowzxcug\"}") + .toObject(DeviceRegistryIdentity.class); + Assertions.assertEquals(DeviceRegistryIdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals("wxosowzxcug", model.userAssignedIdentity()); + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/DeviceRegistryTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/DeviceRegistryTests.java deleted file mode 100644 index ccff687f146ff..0000000000000 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/DeviceRegistryTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.iothub.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.iothub.models.DeviceRegistry; -import org.junit.jupiter.api.Assertions; - -public final class DeviceRegistryTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeviceRegistry model - = BinaryData.fromString("{\"namespaceResourceId\":\"thsu\",\"identityResourceId\":\"cmnyyazttb\"}") - .toObject(DeviceRegistry.class); - Assertions.assertEquals("thsu", model.namespaceResourceId()); - Assertions.assertEquals("cmnyyazttb", model.identityResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeviceRegistry model - = new DeviceRegistry().withNamespaceResourceId("thsu").withIdentityResourceId("cmnyyazttb"); - model = BinaryData.fromObject(model).toObject(DeviceRegistry.class); - Assertions.assertEquals("thsu", model.namespaceResourceId()); - Assertions.assertEquals("cmnyyazttb", model.identityResourceId()); - } -} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EndpointHealthDataInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EndpointHealthDataInnerTests.java index 578f79f2a73dc..3d675e89e5760 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EndpointHealthDataInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EndpointHealthDataInnerTests.java @@ -14,13 +14,13 @@ public final class EndpointHealthDataInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EndpointHealthDataInner model = BinaryData.fromString( - "{\"endpointId\":\"lcgwxzvlvqh\",\"healthStatus\":\"dead\",\"lastKnownError\":\"gibtnm\",\"lastKnownErrorTime\":\"Fri, 02 Jul 2021 21:05:28 GMT\",\"lastSuccessfulSendAttemptTime\":\"Sat, 01 May 2021 00:04:13 GMT\",\"lastSendAttemptTime\":\"Fri, 30 Jul 2021 14:06:14 GMT\"}") + "{\"endpointId\":\"obl\",\"healthStatus\":\"degraded\",\"lastKnownError\":\"lmpewwwfbkr\",\"lastKnownErrorTime\":\"Tue, 28 Sep 2021 10:00:25 GMT\",\"lastSuccessfulSendAttemptTime\":\"Wed, 17 Nov 2021 21:39:38 GMT\",\"lastSendAttemptTime\":\"Sat, 18 Sep 2021 19:23:36 GMT\"}") .toObject(EndpointHealthDataInner.class); - Assertions.assertEquals("lcgwxzvlvqh", model.endpointId()); - Assertions.assertEquals(EndpointHealthStatus.DEAD, model.healthStatus()); - Assertions.assertEquals("gibtnm", model.lastKnownError()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-02T21:05:28Z"), model.lastKnownErrorTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-01T00:04:13Z"), model.lastSuccessfulSendAttemptTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-30T14:06:14Z"), model.lastSendAttemptTime()); + Assertions.assertEquals("obl", model.endpointId()); + Assertions.assertEquals(EndpointHealthStatus.DEGRADED, model.healthStatus()); + Assertions.assertEquals("lmpewwwfbkr", model.lastKnownError()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-28T10:00:25Z"), model.lastKnownErrorTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-17T21:39:38Z"), model.lastSuccessfulSendAttemptTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-18T19:23:36Z"), model.lastSendAttemptTime()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EndpointHealthDataListResultTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EndpointHealthDataListResultTests.java index 9136d516621c3..5add0dca34409 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EndpointHealthDataListResultTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EndpointHealthDataListResultTests.java @@ -14,17 +14,17 @@ public final class EndpointHealthDataListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EndpointHealthDataListResult model = BinaryData.fromString( - "{\"value\":[{\"endpointId\":\"btdhxujznbm\",\"healthStatus\":\"unknown\",\"lastKnownError\":\"wpr\",\"lastKnownErrorTime\":\"Sun, 10 Jan 2021 20:10:28 GMT\",\"lastSuccessfulSendAttemptTime\":\"Tue, 11 May 2021 15:12:41 GMT\",\"lastSendAttemptTime\":\"Mon, 01 Feb 2021 23:11:32 GMT\"},{\"endpointId\":\"upjm\",\"healthStatus\":\"healthy\",\"lastKnownError\":\"obbc\",\"lastKnownErrorTime\":\"Fri, 12 Mar 2021 03:03:28 GMT\",\"lastSuccessfulSendAttemptTime\":\"Mon, 01 Nov 2021 16:23:57 GMT\",\"lastSendAttemptTime\":\"Sat, 30 Jan 2021 14:58:59 GMT\"}],\"nextLink\":\"plrbpbewtghf\"}") + "{\"value\":[{\"endpointId\":\"wbxqzvszjfau\",\"healthStatus\":\"healthy\",\"lastKnownError\":\"xxivetv\",\"lastKnownErrorTime\":\"Wed, 03 Feb 2021 22:58:32 GMT\",\"lastSuccessfulSendAttemptTime\":\"Mon, 25 Jan 2021 02:25:22 GMT\",\"lastSendAttemptTime\":\"Mon, 17 May 2021 11:06:59 GMT\"}],\"nextLink\":\"qmcbxvwvxyslqbhs\"}") .toObject(EndpointHealthDataListResult.class); - Assertions.assertEquals("btdhxujznbm", model.value().get(0).endpointId()); - Assertions.assertEquals(EndpointHealthStatus.UNKNOWN, model.value().get(0).healthStatus()); - Assertions.assertEquals("wpr", model.value().get(0).lastKnownError()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T20:10:28Z"), + Assertions.assertEquals("wbxqzvszjfau", model.value().get(0).endpointId()); + Assertions.assertEquals(EndpointHealthStatus.HEALTHY, model.value().get(0).healthStatus()); + Assertions.assertEquals("xxivetv", model.value().get(0).lastKnownError()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-03T22:58:32Z"), model.value().get(0).lastKnownErrorTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-11T15:12:41Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-01-25T02:25:22Z"), model.value().get(0).lastSuccessfulSendAttemptTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-01T23:11:32Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-05-17T11:06:59Z"), model.value().get(0).lastSendAttemptTime()); - Assertions.assertEquals("plrbpbewtghf", model.nextLink()); + Assertions.assertEquals("qmcbxvwvxyslqbhs", model.nextLink()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupBodyDescriptionTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupBodyDescriptionTests.java index 3f2d06aa2b4a5..9841e1091fd22 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupBodyDescriptionTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupBodyDescriptionTests.java @@ -12,16 +12,17 @@ public final class EventHubConsumerGroupBodyDescriptionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - EventHubConsumerGroupBodyDescription model = BinaryData.fromString("{\"properties\":{\"name\":\"l\"}}") - .toObject(EventHubConsumerGroupBodyDescription.class); - Assertions.assertEquals("l", model.properties().name()); + EventHubConsumerGroupBodyDescription model + = BinaryData.fromString("{\"properties\":{\"name\":\"erpqlpqwcciuqg\"}}") + .toObject(EventHubConsumerGroupBodyDescription.class); + Assertions.assertEquals("erpqlpqwcciuqg", model.properties().name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EventHubConsumerGroupBodyDescription model - = new EventHubConsumerGroupBodyDescription().withProperties(new EventHubConsumerGroupName().withName("l")); + EventHubConsumerGroupBodyDescription model = new EventHubConsumerGroupBodyDescription() + .withProperties(new EventHubConsumerGroupName().withName("erpqlpqwcciuqg")); model = BinaryData.fromObject(model).toObject(EventHubConsumerGroupBodyDescription.class); - Assertions.assertEquals("l", model.properties().name()); + Assertions.assertEquals("erpqlpqwcciuqg", model.properties().name()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupInfoInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupInfoInnerTests.java index 482d0d74dbe62..253f63ab7db88 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupInfoInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupInfoInnerTests.java @@ -11,7 +11,7 @@ public final class EventHubConsumerGroupInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EventHubConsumerGroupInfoInner model = BinaryData.fromString( - "{\"properties\":{\"dltfz\":\"\\\"datavmkqzeqq\\\"\",\"gureodkwobdag\":\"\\\"datamhhv\\\"\",\"gqxndlkzgxhuripl\":\"\\\"datatibqdxbxwakb\\\"\"},\"etag\":\"odxun\",\"id\":\"ebxmubyynt\",\"name\":\"lrb\",\"type\":\"tkoievseotgq\"}") + "{\"properties\":{\"piexpbtgiw\":\"\\\"datarkwofyyvoqa\\\"\",\"nwashrtd\":\"\\\"datawo\\\"\"},\"etag\":\"cnqxwbpokulpi\",\"id\":\"waasip\",\"name\":\"i\",\"type\":\"obyu\"}") .toObject(EventHubConsumerGroupInfoInner.class); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupNameTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupNameTests.java index 107d3135be921..c83bb31e3025d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupNameTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupNameTests.java @@ -12,14 +12,14 @@ public final class EventHubConsumerGroupNameTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EventHubConsumerGroupName model - = BinaryData.fromString("{\"name\":\"tmuwlauwzi\"}").toObject(EventHubConsumerGroupName.class); - Assertions.assertEquals("tmuwlauwzi", model.name()); + = BinaryData.fromString("{\"name\":\"dbutauvfbtkuwhh\"}").toObject(EventHubConsumerGroupName.class); + Assertions.assertEquals("dbutauvfbtkuwhh", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EventHubConsumerGroupName model = new EventHubConsumerGroupName().withName("tmuwlauwzi"); + EventHubConsumerGroupName model = new EventHubConsumerGroupName().withName("dbutauvfbtkuwhh"); model = BinaryData.fromObject(model).toObject(EventHubConsumerGroupName.class); - Assertions.assertEquals("tmuwlauwzi", model.name()); + Assertions.assertEquals("dbutauvfbtkuwhh", model.name()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupsListResultTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupsListResultTests.java index 8139f477a310a..b50edbfb5dd2d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupsListResultTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/EventHubConsumerGroupsListResultTests.java @@ -12,8 +12,8 @@ public final class EventHubConsumerGroupsListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EventHubConsumerGroupsListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ttdumorppxebmnzb\":\"\\\"datapgcjefuzmuvp\\\"\",\"el\":\"\\\"databhjpglkfgohdne\\\"\",\"fikdowwqu\":\"\\\"dataphsdyhto\\\"\",\"zx\":\"\\\"datav\\\"\"},\"etag\":\"vithh\",\"id\":\"o\",\"name\":\"osggbhc\",\"type\":\"hfwdsjnkaljutiis\"}],\"nextLink\":\"cffgdkzzewk\"}") + "{\"value\":[{\"properties\":{\"chkoymkcdyh\":\"\\\"dataojoxafnndlp\\\"\"},\"etag\":\"kkpwdreqnovvq\",\"id\":\"vljxywsu\",\"name\":\"syrsndsytgadgvra\",\"type\":\"aeneqnzarrwl\"},{\"properties\":{\"bjibwwiftohq\":\"\\\"dataijfqkacewiipfp\\\"\",\"plsaknynfsynljph\":\"\\\"datavpuvks\\\"\"},\"etag\":\"pxodlqiyntorzih\",\"id\":\"osjswsr\",\"name\":\"slyzrpzbchckqq\",\"type\":\"qioxi\"},{\"properties\":{\"mibzyhwitsmypyyn\":\"\\\"dataiizynkedyatrwyh\\\"\",\"nzgmwznmabik\":\"\\\"datacdpu\\\"\"},\"etag\":\"orgjhxbldt\",\"id\":\"wrlkdmtn\",\"name\":\"vokotllxdyh\",\"type\":\"syocogjltdtbnnha\"},{\"properties\":{\"amqgxqquezikyw\":\"\\\"datacrkvcikhnv\\\"\",\"lla\":\"\\\"datagxk\\\"\",\"z\":\"\\\"datamelwuipiccjz\\\"\"},\"etag\":\"gvvcnayrhyr\",\"id\":\"xmueed\",\"name\":\"drd\",\"type\":\"stkwqqtch\"}],\"nextLink\":\"lmfmtdaay\"}") .toObject(EventHubConsumerGroupsListResult.class); - Assertions.assertEquals("cffgdkzzewk", model.nextLink()); + Assertions.assertEquals("lmfmtdaay", model.nextLink()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FailoverInputTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FailoverInputTests.java index 9e8cc43cd5471..ad9b8212317c4 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FailoverInputTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FailoverInputTests.java @@ -12,14 +12,14 @@ public final class FailoverInputTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FailoverInput model - = BinaryData.fromString("{\"failoverRegion\":\"hdlxyjrxsagafcn\"}").toObject(FailoverInput.class); - Assertions.assertEquals("hdlxyjrxsagafcn", model.failoverRegion()); + = BinaryData.fromString("{\"failoverRegion\":\"npkukghimdblx\"}").toObject(FailoverInput.class); + Assertions.assertEquals("npkukghimdblx", model.failoverRegion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FailoverInput model = new FailoverInput().withFailoverRegion("hdlxyjrxsagafcn"); + FailoverInput model = new FailoverInput().withFailoverRegion("npkukghimdblx"); model = BinaryData.fromObject(model).toObject(FailoverInput.class); - Assertions.assertEquals("hdlxyjrxsagafcn", model.failoverRegion()); + Assertions.assertEquals("npkukghimdblx", model.failoverRegion()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FallbackRoutePropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FallbackRoutePropertiesTests.java index a59badd5074f1..3a41876f45376 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FallbackRoutePropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FallbackRoutePropertiesTests.java @@ -14,27 +14,27 @@ public final class FallbackRoutePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FallbackRouteProperties model = BinaryData.fromString( - "{\"name\":\"debfqkkrbmpukgri\",\"source\":\"DeviceMessages\",\"condition\":\"zlfbxzpuzycispnq\",\"endpointNames\":[\"hmgkbrpyy\",\"hibnuqqkpika\"],\"isEnabled\":false}") + "{\"name\":\"tkncwsc\",\"source\":\"DeviceConnectionStateEvents\",\"condition\":\"lxotogtwrupq\",\"endpointNames\":[\"vnm\",\"cykvceo\",\"eil\",\"vnotyfjfcnj\"],\"isEnabled\":false}") .toObject(FallbackRouteProperties.class); - Assertions.assertEquals("debfqkkrbmpukgri", model.name()); - Assertions.assertEquals(RoutingSource.DEVICE_MESSAGES, model.source()); - Assertions.assertEquals("zlfbxzpuzycispnq", model.condition()); - Assertions.assertEquals("hmgkbrpyy", model.endpointNames().get(0)); + Assertions.assertEquals("tkncwsc", model.name()); + Assertions.assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.source()); + Assertions.assertEquals("lxotogtwrupq", model.condition()); + Assertions.assertEquals("vnm", model.endpointNames().get(0)); Assertions.assertFalse(model.isEnabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FallbackRouteProperties model = new FallbackRouteProperties().withName("debfqkkrbmpukgri") - .withSource(RoutingSource.DEVICE_MESSAGES) - .withCondition("zlfbxzpuzycispnq") - .withEndpointNames(Arrays.asList("hmgkbrpyy", "hibnuqqkpika")) + FallbackRouteProperties model = new FallbackRouteProperties().withName("tkncwsc") + .withSource(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS) + .withCondition("lxotogtwrupq") + .withEndpointNames(Arrays.asList("vnm", "cykvceo", "eil", "vnotyfjfcnj")) .withIsEnabled(false); model = BinaryData.fromObject(model).toObject(FallbackRouteProperties.class); - Assertions.assertEquals("debfqkkrbmpukgri", model.name()); - Assertions.assertEquals(RoutingSource.DEVICE_MESSAGES, model.source()); - Assertions.assertEquals("zlfbxzpuzycispnq", model.condition()); - Assertions.assertEquals("hmgkbrpyy", model.endpointNames().get(0)); + Assertions.assertEquals("tkncwsc", model.name()); + Assertions.assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.source()); + Assertions.assertEquals("lxotogtwrupq", model.condition()); + Assertions.assertEquals("vnm", model.endpointNames().get(0)); Assertions.assertFalse(model.isEnabled()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FeedbackPropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FeedbackPropertiesTests.java index a72319ccd88bd..7e5c20ba3f443 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FeedbackPropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/FeedbackPropertiesTests.java @@ -13,21 +13,21 @@ public final class FeedbackPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FeedbackProperties model = BinaryData.fromString( - "{\"lockDurationAsIso8601\":\"PT135H37M51S\",\"ttlAsIso8601\":\"PT28H45M15S\",\"maxDeliveryCount\":1813898530}") + "{\"lockDurationAsIso8601\":\"PT10H11M16S\",\"ttlAsIso8601\":\"PT189H54S\",\"maxDeliveryCount\":1466922404}") .toObject(FeedbackProperties.class); - Assertions.assertEquals(Duration.parse("PT135H37M51S"), model.lockDurationAsIso8601()); - Assertions.assertEquals(Duration.parse("PT28H45M15S"), model.ttlAsIso8601()); - Assertions.assertEquals(1813898530, model.maxDeliveryCount()); + Assertions.assertEquals(Duration.parse("PT10H11M16S"), model.lockDurationAsIso8601()); + Assertions.assertEquals(Duration.parse("PT189H54S"), model.ttlAsIso8601()); + Assertions.assertEquals(1466922404, model.maxDeliveryCount()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FeedbackProperties model = new FeedbackProperties().withLockDurationAsIso8601(Duration.parse("PT135H37M51S")) - .withTtlAsIso8601(Duration.parse("PT28H45M15S")) - .withMaxDeliveryCount(1813898530); + FeedbackProperties model = new FeedbackProperties().withLockDurationAsIso8601(Duration.parse("PT10H11M16S")) + .withTtlAsIso8601(Duration.parse("PT189H54S")) + .withMaxDeliveryCount(1466922404); model = BinaryData.fromObject(model).toObject(FeedbackProperties.class); - Assertions.assertEquals(Duration.parse("PT135H37M51S"), model.lockDurationAsIso8601()); - Assertions.assertEquals(Duration.parse("PT28H45M15S"), model.ttlAsIso8601()); - Assertions.assertEquals(1813898530, model.maxDeliveryCount()); + Assertions.assertEquals(Duration.parse("PT10H11M16S"), model.lockDurationAsIso8601()); + Assertions.assertEquals(Duration.parse("PT189H54S"), model.ttlAsIso8601()); + Assertions.assertEquals(1466922404, model.maxDeliveryCount()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/GroupIdInformationInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/GroupIdInformationInnerTests.java index 21c3efd71bb8b..431d4173d849d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/GroupIdInformationInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/GroupIdInformationInnerTests.java @@ -12,10 +12,10 @@ public final class GroupIdInformationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GroupIdInformationInner model = BinaryData.fromString( - "{\"id\":\"kulpiujwaasi\",\"name\":\"i\",\"type\":\"byuqerpqlp\",\"properties\":{\"groupId\":\"cciuqgbdbutau\",\"requiredMembers\":[\"tkuwhhmhykojo\",\"afnn\"],\"requiredZoneNames\":[\"ichkoymkcdyhb\",\"kkpwdreqnovvq\",\"ovljxywsu\"]}}") + "{\"id\":\"zuempsbzkf\",\"name\":\"eyvpnqicvinvkj\",\"type\":\"dxrbuukzcle\",\"properties\":{\"groupId\":\"hmlwpaztzpo\",\"requiredMembers\":[\"ckw\",\"fz\",\"whxxbuyqax\",\"feqztppriol\"],\"requiredZoneNames\":[\"jaltolmnc\",\"sobqw\",\"sdbnwdcfhucqdpf\"]}}") .toObject(GroupIdInformationInner.class); - Assertions.assertEquals("cciuqgbdbutau", model.properties().groupId()); - Assertions.assertEquals("tkuwhhmhykojo", model.properties().requiredMembers().get(0)); - Assertions.assertEquals("ichkoymkcdyhb", model.properties().requiredZoneNames().get(0)); + Assertions.assertEquals("hmlwpaztzpo", model.properties().groupId()); + Assertions.assertEquals("ckw", model.properties().requiredMembers().get(0)); + Assertions.assertEquals("jaltolmnc", model.properties().requiredZoneNames().get(0)); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/GroupIdInformationPropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/GroupIdInformationPropertiesTests.java index 37f8ac9bee078..5905fbdd5ae44 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/GroupIdInformationPropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/GroupIdInformationPropertiesTests.java @@ -12,10 +12,10 @@ public final class GroupIdInformationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GroupIdInformationProperties model = BinaryData.fromString( - "{\"groupId\":\"yrs\",\"requiredMembers\":[\"ytgadgvraeaene\",\"nzar\",\"wlquuijfqkace\"],\"requiredZoneNames\":[\"pfpubjibww\",\"f\"]}") + "{\"groupId\":\"glsbjjc\",\"requiredMembers\":[\"xbvtvudu\"],\"requiredZoneNames\":[\"ormrlxqtvcofudfl\",\"kgjubgdknnqvsazn\"]}") .toObject(GroupIdInformationProperties.class); - Assertions.assertEquals("yrs", model.groupId()); - Assertions.assertEquals("ytgadgvraeaene", model.requiredMembers().get(0)); - Assertions.assertEquals("pfpubjibww", model.requiredZoneNames().get(0)); + Assertions.assertEquals("glsbjjc", model.groupId()); + Assertions.assertEquals("xbvtvudu", model.requiredMembers().get(0)); + Assertions.assertEquals("ormrlxqtvcofudfl", model.requiredZoneNames().get(0)); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ImportDevicesRequestTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ImportDevicesRequestTests.java index 81a49f0b55b44..46c82796de1bd 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ImportDevicesRequestTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ImportDevicesRequestTests.java @@ -14,36 +14,36 @@ public final class ImportDevicesRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ImportDevicesRequest model = BinaryData.fromString( - "{\"inputBlobContainerUri\":\"jmygtdsslswtmwer\",\"outputBlobContainerUri\":\"ofz\",\"inputBlobName\":\"qsemwabne\",\"outputBlobName\":\"hhszh\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"wiwubm\"},\"includeConfigurations\":true,\"configurationsBlobName\":\"sldnkwwtppjflcxo\"}") + "{\"inputBlobContainerUri\":\"smocmbq\",\"outputBlobContainerUri\":\"qvmkcxo\",\"inputBlobName\":\"pvhelxprg\",\"outputBlobName\":\"atddc\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"ejrjxgciqibrho\"},\"includeConfigurations\":true,\"configurationsBlobName\":\"qrhzoymibmrqyib\"}") .toObject(ImportDevicesRequest.class); - Assertions.assertEquals("jmygtdsslswtmwer", model.inputBlobContainerUri()); - Assertions.assertEquals("ofz", model.outputBlobContainerUri()); - Assertions.assertEquals("qsemwabne", model.inputBlobName()); - Assertions.assertEquals("hhszh", model.outputBlobName()); + Assertions.assertEquals("smocmbq", model.inputBlobContainerUri()); + Assertions.assertEquals("qvmkcxo", model.outputBlobContainerUri()); + Assertions.assertEquals("pvhelxprg", model.inputBlobName()); + Assertions.assertEquals("atddc", model.outputBlobName()); Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType()); - Assertions.assertEquals("wiwubm", model.identity().userAssignedIdentity()); + Assertions.assertEquals("ejrjxgciqibrho", model.identity().userAssignedIdentity()); Assertions.assertTrue(model.includeConfigurations()); - Assertions.assertEquals("sldnkwwtppjflcxo", model.configurationsBlobName()); + Assertions.assertEquals("qrhzoymibmrqyib", model.configurationsBlobName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ImportDevicesRequest model = new ImportDevicesRequest().withInputBlobContainerUri("jmygtdsslswtmwer") - .withOutputBlobContainerUri("ofz") - .withInputBlobName("qsemwabne") - .withOutputBlobName("hhszh") + ImportDevicesRequest model = new ImportDevicesRequest().withInputBlobContainerUri("smocmbq") + .withOutputBlobContainerUri("qvmkcxo") + .withInputBlobName("pvhelxprg") + .withOutputBlobName("atddc") .withAuthenticationType(AuthenticationType.IDENTITY_BASED) - .withIdentity(new ManagedIdentity().withUserAssignedIdentity("wiwubm")) + .withIdentity(new ManagedIdentity().withUserAssignedIdentity("ejrjxgciqibrho")) .withIncludeConfigurations(true) - .withConfigurationsBlobName("sldnkwwtppjflcxo"); + .withConfigurationsBlobName("qrhzoymibmrqyib"); model = BinaryData.fromObject(model).toObject(ImportDevicesRequest.class); - Assertions.assertEquals("jmygtdsslswtmwer", model.inputBlobContainerUri()); - Assertions.assertEquals("ofz", model.outputBlobContainerUri()); - Assertions.assertEquals("qsemwabne", model.inputBlobName()); - Assertions.assertEquals("hhszh", model.outputBlobName()); + Assertions.assertEquals("smocmbq", model.inputBlobContainerUri()); + Assertions.assertEquals("qvmkcxo", model.outputBlobContainerUri()); + Assertions.assertEquals("pvhelxprg", model.inputBlobName()); + Assertions.assertEquals("atddc", model.outputBlobName()); Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType()); - Assertions.assertEquals("wiwubm", model.identity().userAssignedIdentity()); + Assertions.assertEquals("ejrjxgciqibrho", model.identity().userAssignedIdentity()); Assertions.assertTrue(model.includeConfigurations()); - Assertions.assertEquals("sldnkwwtppjflcxo", model.configurationsBlobName()); + Assertions.assertEquals("qrhzoymibmrqyib", model.configurationsBlobName()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubCapacityTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubCapacityTests.java index b9e263bd0d081..a47443d216c82 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubCapacityTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubCapacityTests.java @@ -11,7 +11,7 @@ public final class IotHubCapacityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IotHubCapacity model = BinaryData.fromString( - "{\"minimum\":8501549257695924564,\"maximum\":3984526442528196616,\"default\":4658346071912083190,\"scaleType\":\"Manual\"}") + "{\"minimum\":4899566880484606642,\"maximum\":524943121684012315,\"default\":5879296686454773749,\"scaleType\":\"None\"}") .toObject(IotHubCapacity.class); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubDetailsTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubDetailsTests.java index a742fba8c9415..615a1c00b6a7c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubDetailsTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubDetailsTests.java @@ -12,7 +12,7 @@ public final class IotHubDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - IotHubDetails model = BinaryData.fromString("{\"gatewayVersion\":\"V1\"}").toObject(IotHubDetails.class); - Assertions.assertEquals(GatewayVersion.V1, model.gatewayVersion()); + IotHubDetails model = BinaryData.fromString("{\"gatewayVersion\":\"V2\"}").toObject(IotHubDetails.class); + Assertions.assertEquals(GatewayVersion.V2, model.gatewayVersion()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubLocationDescriptionTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubLocationDescriptionTests.java index 529e3cd8f3f54..7a14c115f2f6c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubLocationDescriptionTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubLocationDescriptionTests.java @@ -12,9 +12,9 @@ public final class IotHubLocationDescriptionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - IotHubLocationDescription model = BinaryData.fromString("{\"location\":\"haaxdbabphl\",\"role\":\"secondary\"}") + IotHubLocationDescription model = BinaryData.fromString("{\"location\":\"fudwpznt\",\"role\":\"primary\"}") .toObject(IotHubLocationDescription.class); - Assertions.assertEquals("haaxdbabphl", model.location()); - Assertions.assertEquals(IotHubReplicaRoleType.SECONDARY, model.role()); + Assertions.assertEquals("fudwpznt", model.location()); + Assertions.assertEquals(IotHubReplicaRoleType.PRIMARY, model.role()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubNameAvailabilityInfoInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubNameAvailabilityInfoInnerTests.java index e9afdff18dc05..e8f49e4615bfc 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubNameAvailabilityInfoInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubNameAvailabilityInfoInnerTests.java @@ -11,9 +11,9 @@ public final class IotHubNameAvailabilityInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - IotHubNameAvailabilityInfoInner model - = BinaryData.fromString("{\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"uflrwd\"}") - .toObject(IotHubNameAvailabilityInfoInner.class); - Assertions.assertEquals("uflrwd", model.message()); + IotHubNameAvailabilityInfoInner model = BinaryData + .fromString("{\"nameAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"fudxepxgyqagvrv\"}") + .toObject(IotHubNameAvailabilityInfoInner.class); + Assertions.assertEquals("fudxepxgyqagvrv", model.message()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubPropertiesDeviceStreamsTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubPropertiesDeviceStreamsTests.java index 8ec051f5ba0c8..f09a15a9fd0a6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubPropertiesDeviceStreamsTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubPropertiesDeviceStreamsTests.java @@ -12,16 +12,17 @@ public final class IotHubPropertiesDeviceStreamsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - IotHubPropertiesDeviceStreams model = BinaryData.fromString("{\"streamingEndpoints\":[\"cxy\",\"ny\"]}") - .toObject(IotHubPropertiesDeviceStreams.class); - Assertions.assertEquals("cxy", model.streamingEndpoints().get(0)); + IotHubPropertiesDeviceStreams model + = BinaryData.fromString("{\"streamingEndpoints\":[\"azqugxywpmueefj\",\"wfqkquj\",\"dsuyonobgla\",\"cq\"]}") + .toObject(IotHubPropertiesDeviceStreams.class); + Assertions.assertEquals("azqugxywpmueefj", model.streamingEndpoints().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IotHubPropertiesDeviceStreams model - = new IotHubPropertiesDeviceStreams().withStreamingEndpoints(Arrays.asList("cxy", "ny")); + IotHubPropertiesDeviceStreams model = new IotHubPropertiesDeviceStreams() + .withStreamingEndpoints(Arrays.asList("azqugxywpmueefj", "wfqkquj", "dsuyonobgla", "cq")); model = BinaryData.fromObject(model).toObject(IotHubPropertiesDeviceStreams.class); - Assertions.assertEquals("cxy", model.streamingEndpoints().get(0)); + Assertions.assertEquals("azqugxywpmueefj", model.streamingEndpoints().get(0)); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubQuotaMetricInfoInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubQuotaMetricInfoInnerTests.java index b9ebf8c804fa9..2c9ab11552444 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubQuotaMetricInfoInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubQuotaMetricInfoInnerTests.java @@ -11,8 +11,7 @@ public final class IotHubQuotaMetricInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IotHubQuotaMetricInfoInner model = BinaryData - .fromString( - "{\"name\":\"kpycgklwndnhjd\",\"currentValue\":6262896986376184012,\"maxValue\":4384812183587717732}") + .fromString("{\"name\":\"jhxxjyn\",\"currentValue\":6645046241079336375,\"maxValue\":928666861316069352}") .toObject(IotHubQuotaMetricInfoInner.class); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubQuotaMetricInfoListResultTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubQuotaMetricInfoListResultTests.java index 43b60a131280b..7d5dca5077e0f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubQuotaMetricInfoListResultTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubQuotaMetricInfoListResultTests.java @@ -12,8 +12,8 @@ public final class IotHubQuotaMetricInfoListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IotHubQuotaMetricInfoListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"meue\",\"currentValue\":6624196733636528715,\"maxValue\":1277045230876396315},{\"name\":\"uojgj\",\"currentValue\":5062126351477079238,\"maxValue\":6905862249105518012},{\"name\":\"wmcdytdxwi\",\"currentValue\":893278028121382582,\"maxValue\":1640105329238575909}],\"nextLink\":\"qwgxhniskx\"}") + "{\"value\":[{\"name\":\"cq\",\"currentValue\":466406566618256898,\"maxValue\":309749547712385990},{\"name\":\"hzxct\",\"currentValue\":3142076316898715241,\"maxValue\":2327041908752862566},{\"name\":\"izpost\",\"currentValue\":8282413341093346919,\"maxValue\":2840352336595508598}],\"nextLink\":\"rmfqjhhkxbpvj\"}") .toObject(IotHubQuotaMetricInfoListResult.class); - Assertions.assertEquals("qwgxhniskx", model.nextLink()); + Assertions.assertEquals("rmfqjhhkxbpvj", model.nextLink()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesCheckNameAvailabilityWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesCheckNameAvailabilityWithResponseMockTests.java index bc2243b851bdb..ca82101c1afdb 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesCheckNameAvailabilityWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class IotHubResourcesCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"xkw\"}"; + String responseStr = "{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"ypsxjvfoim\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); IotHubNameAvailabilityInfo response = manager.iotHubResources() - .checkNameAvailabilityWithResponse(new OperationInputs().withName("mctlpdngitv"), + .checkNameAvailabilityWithResponse(new OperationInputs().withName("jqgwzp"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xkw", response.message()); + Assertions.assertEquals("ypsxjvfoim", response.message()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesCreateEventHubConsumerGroupWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesCreateEventHubConsumerGroupWithResponseMockTests.java index 815d44186a688..36d28b5039bf6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesCreateEventHubConsumerGroupWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesCreateEventHubConsumerGroupWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class IotHubResourcesCreateEventHubConsumerGroupWithResponseMockTes @Test public void testCreateEventHubConsumerGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"fxtsgum\":\"\\\"dataxkmcwaekrrjre\\\"\"},\"etag\":\"glikkxwslolb\",\"id\":\"vuzlm\",\"name\":\"felfktg\",\"type\":\"lcrpw\"}"; + = "{\"properties\":{\"lvtno\":\"\\\"datavdsrhnjiv\\\"\",\"ltducea\":\"\\\"dataqfzgemjdftul\\\"\"},\"etag\":\"mczuo\",\"id\":\"jw\",\"name\":\"w\",\"type\":\"qioknssxmojm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testCreateEventHubConsumerGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); EventHubConsumerGroupInfo response = manager.iotHubResources() - .defineEventHubConsumerGroup("rvmtgjq") - .withExistingEventHubEndpoint("yjsvfyc", "z", "fvoow") - .withProperties(new EventHubConsumerGroupName().withName("pyostronzmyhgfi")) + .defineEventHubConsumerGroup("ykqgaifmvik") + .withExistingEventHubEndpoint("ojgcyzt", "fmznba", "qphchqnrnrpxehuw") + .withProperties(new EventHubConsumerGroupName().withName("bydvkhbejdz")) .create(); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesDeleteEventHubConsumerGroupWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesDeleteEventHubConsumerGroupWithResponseMockTests.java index 2f927eafa172c..6dd1686bd1907 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesDeleteEventHubConsumerGroupWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesDeleteEventHubConsumerGroupWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDeleteEventHubConsumerGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.iotHubResources() - .deleteEventHubConsumerGroupWithResponse("wccsnjvcdwxlpqek", "tn", "htjsying", "fq", + .deleteEventHubConsumerGroupWithResponse("rctym", "xoftpipiwyczu", "xacpqjli", "hyus", com.azure.core.util.Context.NONE); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesDeleteMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesDeleteMockTests.java index a22a1dd11c132..d30da15c1d53c 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesDeleteMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.iotHubResources().delete("haz", "khnzbonlw", com.azure.core.util.Context.NONE); + manager.iotHubResources().delete("t", "dgmfpgvmpipasl", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetEndpointHealthMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetEndpointHealthMockTests.java index ec5f04fae2128..59f7404e9dfca 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetEndpointHealthMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetEndpointHealthMockTests.java @@ -23,7 +23,7 @@ public final class IotHubResourcesGetEndpointHealthMockTests { @Test public void testGetEndpointHealth() throws Exception { String responseStr - = "{\"value\":[{\"endpointId\":\"ktt\",\"healthStatus\":\"unknown\",\"lastKnownError\":\"lzywemhzrncsdtc\",\"lastKnownErrorTime\":\"Wed, 10 Mar 2021 02:09:12 GMT\",\"lastSuccessfulSendAttemptTime\":\"Tue, 31 Aug 2021 08:14:30 GMT\",\"lastSendAttemptTime\":\"Tue, 22 Dec 2020 06:06:19 GMT\"}]}"; + = "{\"value\":[{\"endpointId\":\"ygz\",\"healthStatus\":\"degraded\",\"lastKnownError\":\"kfxu\",\"lastKnownErrorTime\":\"Sat, 16 Oct 2021 01:46:34 GMT\",\"lastSuccessfulSendAttemptTime\":\"Sun, 14 Feb 2021 09:42:03 GMT\",\"lastSendAttemptTime\":\"Wed, 23 Dec 2020 10:27:47 GMT\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,17 +32,17 @@ public void testGetEndpointHealth() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.iotHubResources().getEndpointHealth("pqwd", "ggicccnxqhue", com.azure.core.util.Context.NONE); + PagedIterable response = manager.iotHubResources() + .getEndpointHealth("cnpwzcjaesgvvscc", "ajguqf", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ktt", response.iterator().next().endpointId()); - Assertions.assertEquals(EndpointHealthStatus.UNKNOWN, response.iterator().next().healthStatus()); - Assertions.assertEquals("lzywemhzrncsdtc", response.iterator().next().lastKnownError()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-10T02:09:12Z"), + Assertions.assertEquals("ygz", response.iterator().next().endpointId()); + Assertions.assertEquals(EndpointHealthStatus.DEGRADED, response.iterator().next().healthStatus()); + Assertions.assertEquals("kfxu", response.iterator().next().lastKnownError()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-16T01:46:34Z"), response.iterator().next().lastKnownErrorTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-31T08:14:30Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T09:42:03Z"), response.iterator().next().lastSuccessfulSendAttemptTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-22T06:06:19Z"), + Assertions.assertEquals(OffsetDateTime.parse("2020-12-23T10:27:47Z"), response.iterator().next().lastSendAttemptTime()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetEventHubConsumerGroupWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetEventHubConsumerGroupWithResponseMockTests.java index 0b54356e97c14..ef99f1a92b898 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetEventHubConsumerGroupWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetEventHubConsumerGroupWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class IotHubResourcesGetEventHubConsumerGroupWithResponseMockTests @Test public void testGetEventHubConsumerGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"qvpsvuoymg\":\"\\\"datafcqdpsq\\\"\",\"rypqlmfeo\":\"\\\"datacelve\\\"\"},\"etag\":\"rqwky\",\"id\":\"ob\",\"name\":\"pg\",\"type\":\"edkowepbqpcrfk\"}"; + = "{\"properties\":{\"jzhpjbibgjmfx\":\"\\\"dataghhavgrvkffo\\\"\",\"cluyovwxnbkf\":\"\\\"datamv\\\"\",\"zbomvzzbtdcqvpni\":\"\\\"datazzxscyhwzdgiruj\\\"\"},\"etag\":\"jviylwdshfs\",\"id\":\"rbgyefry\",\"name\":\"sgaojfmwncot\",\"type\":\"rfh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetEventHubConsumerGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); EventHubConsumerGroupInfo response = manager.iotHubResources() - .getEventHubConsumerGroupWithResponse("ccyajg", "qfhwyg", "lvdnkfx", "semdwzrmu", + .getEventHubConsumerGroupWithResponse("yuxzejntpsewgi", "ilqu", "rydxtqm", "eoxorggufhyao", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetJobWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetJobWithResponseMockTests.java index 8f50132be8709..d98f637a31516 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetJobWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetJobWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class IotHubResourcesGetJobWithResponseMockTests { @Test public void testGetJobWithResponse() throws Exception { String responseStr - = "{\"jobId\":\"maequiahxicslfa\",\"startTimeUtc\":\"Sun, 28 Nov 2021 10:16:40 GMT\",\"endTimeUtc\":\"Mon, 04 Jan 2021 13:19:25 GMT\",\"type\":\"updateDeviceConfiguration\",\"status\":\"completed\",\"failureReason\":\"lnswhcc\",\"statusMessage\":\"hka\",\"parentJobId\":\"witqscywuggwoluh\"}"; + = "{\"jobId\":\"wspughftqsxhqx\",\"startTimeUtc\":\"Thu, 21 Jan 2021 16:10:27 GMT\",\"endTimeUtc\":\"Fri, 04 Jun 2021 22:03:42 GMT\",\"type\":\"backup\",\"status\":\"cancelled\",\"failureReason\":\"grjguufzd\",\"statusMessage\":\"yqtfihwh\",\"parentJobId\":\"tzingamvpph\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetJobWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobResponse response = manager.iotHubResources() - .getJobWithResponse("hziuiefozbhdms", "l", "zqhof", com.azure.core.util.Context.NONE) + .getJobWithResponse("jnalghf", "vtvsexsowueluq", "hahhxvrhmzkwpj", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetQuotaMetricsMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetQuotaMetricsMockTests.java index 012955b7ef10f..77a5debc23298 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetQuotaMetricsMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetQuotaMetricsMockTests.java @@ -21,7 +21,7 @@ public final class IotHubResourcesGetQuotaMetricsMockTests { @Test public void testGetQuotaMetrics() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"brgz\",\"currentValue\":7817013656792013173,\"maxValue\":6841623833142002976}]}"; + = "{\"value\":[{\"name\":\"tbvkayhmtnvyq\",\"currentValue\":2949816427464265295,\"maxValue\":1497619530378227200}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testGetQuotaMetrics() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.iotHubResources().getQuotaMetrics("zbwemh", "i", com.azure.core.util.Context.NONE); + = manager.iotHubResources().getQuotaMetrics("szqzudphqamv", "kfwynw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetStatsWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetStatsWithResponseMockTests.java index e5cceb0ea9fc2..d45dbdccbd5f4 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetStatsWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetStatsWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class IotHubResourcesGetStatsWithResponseMockTests { @Test public void testGetStatsWithResponse() throws Exception { String responseStr - = "{\"totalDeviceCount\":3495870097843726971,\"enabledDeviceCount\":5044236127047100720,\"disabledDeviceCount\":734781401127468947}"; + = "{\"totalDeviceCount\":2623062511310512908,\"enabledDeviceCount\":3559673454895327460,\"disabledDeviceCount\":1446220970457190394}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetStatsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RegistryStatistics response = manager.iotHubResources() - .getStatsWithResponse("mtnvyq", "atkzwpcnpw", com.azure.core.util.Context.NONE) + .getStatsWithResponse("yybyc", "unvjsrtkfawnopq", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetValidSkusMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetValidSkusMockTests.java index de60fd1aec453..e81712ca6e5aa 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetValidSkusMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesGetValidSkusMockTests.java @@ -23,7 +23,7 @@ public final class IotHubResourcesGetValidSkusMockTests { @Test public void testGetValidSkus() throws Exception { String responseStr - = "{\"value\":[{\"resourceType\":\"znkbykutwpfhpagm\",\"sku\":{\"name\":\"F1\",\"tier\":\"Standard\",\"capacity\":5038627427973777976},\"capacity\":{\"minimum\":5556617074832466147,\"maximum\":4892088910814028509,\"default\":6150452320822609369,\"scaleType\":\"Manual\"}}]}"; + = "{\"value\":[{\"resourceType\":\"fzxiavrmb\",\"sku\":{\"name\":\"S2\",\"tier\":\"Standard\",\"capacity\":795040661536967028},\"capacity\":{\"minimum\":2086206331796357039,\"maximum\":4820100600000743353,\"default\":6472611975980046523,\"scaleType\":\"None\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testGetValidSkus() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.iotHubResources() - .getValidSkus("zkoowtlmnguxawqa", "dsyuuximerqfob", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.iotHubResources().getValidSkus("ytisibir", "gpikpzimejza", com.azure.core.util.Context.NONE); - Assertions.assertEquals(IotHubSku.F1, response.iterator().next().sku().name()); - Assertions.assertEquals(5038627427973777976L, response.iterator().next().sku().capacity()); + Assertions.assertEquals(IotHubSku.S2, response.iterator().next().sku().name()); + Assertions.assertEquals(795040661536967028L, response.iterator().next().sku().capacity()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesImportDevicesWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesImportDevicesWithResponseMockTests.java index b35574df5601a..c6f592bce5c3a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesImportDevicesWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesImportDevicesWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class IotHubResourcesImportDevicesWithResponseMockTests { @Test public void testImportDevicesWithResponse() throws Exception { String responseStr - = "{\"jobId\":\"kndxdigrjgu\",\"startTimeUtc\":\"Tue, 16 Feb 2021 11:30:47 GMT\",\"endTimeUtc\":\"Tue, 16 Nov 2021 06:23:27 GMT\",\"type\":\"factoryResetDevice\",\"status\":\"unknown\",\"failureReason\":\"ihwhbotzingamvpp\",\"statusMessage\":\"szqzudphqamv\",\"parentJobId\":\"fwynwcvtbvkay\"}"; + = "{\"jobId\":\"gh\",\"startTimeUtc\":\"Fri, 09 Apr 2021 19:17:49 GMT\",\"endTimeUtc\":\"Thu, 01 Jul 2021 07:34:11 GMT\",\"type\":\"import\",\"status\":\"completed\",\"failureReason\":\"gf\",\"statusMessage\":\"dsofbshrns\",\"parentJobId\":\"uswdv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testImportDevicesWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobResponse response = manager.iotHubResources() - .importDevicesWithResponse("gofel", "a", - new ImportDevicesRequest().withInputBlobContainerUri("rqmq") - .withOutputBlobContainerUri("ldvriiiojnalghfk") - .withInputBlobName("vsexsowuelu") - .withOutputBlobName("hahhxvrhmzkwpj") + .importDevicesWithResponse("rgnepttwqmsniffc", "mqnrojlpijnkr", + new ImportDevicesRequest().withInputBlobContainerUri("frddhcrati") + .withOutputBlobContainerUri("zronasxift") + .withInputBlobName("qyzhf") + .withOutputBlobName("esgogc") .withAuthenticationType(AuthenticationType.IDENTITY_BASED) - .withIdentity(new ManagedIdentity().withUserAssignedIdentity("ughftqsx")) - .withIncludeConfigurations(false) - .withConfigurationsBlobName("j"), + .withIdentity(new ManagedIdentity().withUserAssignedIdentity("xkr")) + .withIncludeConfigurations(true) + .withConfigurationsBlobName("hmossxkkgth"), com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesListEventHubConsumerGroupsMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesListEventHubConsumerGroupsMockTests.java index 8d9a1664b8c56..7a0d42ad3ec49 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesListEventHubConsumerGroupsMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesListEventHubConsumerGroupsMockTests.java @@ -21,7 +21,7 @@ public final class IotHubResourcesListEventHubConsumerGroupsMockTests { @Test public void testListEventHubConsumerGroups() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"atjinrvgoupmfiib\":\"\\\"dataqrvqq\\\"\",\"x\":\"\\\"dataggjioolvr\\\"\",\"kkgll\":\"\\\"datav\\\"\"},\"etag\":\"jygvjayvbl\",\"id\":\"vkzuhbxvvyhgso\",\"name\":\"byrqufeg\",\"type\":\"uvwzfbnh\"}]}"; + = "{\"value\":[{\"properties\":{\"txifqj\":\"\\\"datasjnhn\\\"\"},\"etag\":\"xmrhu\",\"id\":\"wp\",\"name\":\"esutrgjupauutpw\",\"type\":\"qhih\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testListEventHubConsumerGroups() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.iotHubResources() - .listEventHubConsumerGroups("tmtdhtmdvypgik", "gszywk", "irryuzhlh", com.azure.core.util.Context.NONE); + .listEventHubConsumerGroups("skasdvlmfwdgzxu", "ucvpamrs", "euzvx", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesListJobsMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesListJobsMockTests.java index 60cec7e406796..9c9fae2f1fd1f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesListJobsMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesListJobsMockTests.java @@ -21,7 +21,7 @@ public final class IotHubResourcesListJobsMockTests { @Test public void testListJobs() throws Exception { String responseStr - = "{\"value\":[{\"jobId\":\"ogvbbejdcngq\",\"startTimeUtc\":\"Tue, 14 Sep 2021 19:30:38 GMT\",\"endTimeUtc\":\"Mon, 20 Sep 2021 13:12:10 GMT\",\"type\":\"factoryResetDevice\",\"status\":\"failed\",\"failureReason\":\"zr\",\"statusMessage\":\"dgrtwaenuuzkopbm\",\"parentJobId\":\"rfdwoyu\"}]}"; + = "{\"value\":[{\"jobId\":\"bt\",\"startTimeUtc\":\"Tue, 02 Mar 2021 06:04:37 GMT\",\"endTimeUtc\":\"Sat, 08 May 2021 01:38:39 GMT\",\"type\":\"export\",\"status\":\"completed\",\"failureReason\":\"zfjvfbgofe\",\"statusMessage\":\"a\",\"parentJobId\":\"qmqhldvriii\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testListJobs() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.iotHubResources().listJobs("mkkzevdlhe", "pusdstt", com.azure.core.util.Context.NONE); + = manager.iotHubResources().listJobs("lazszrn", "oiindfpwpjy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesTestAllRoutesWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesTestAllRoutesWithResponseMockTests.java index 265486c111cbc..b8c18ad6592d6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesTestAllRoutesWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesTestAllRoutesWithResponseMockTests.java @@ -28,7 +28,7 @@ public final class IotHubResourcesTestAllRoutesWithResponseMockTests { @Test public void testTestAllRoutesWithResponse() throws Exception { String responseStr - = "{\"routes\":[{\"properties\":{\"name\":\"byqunyow\",\"source\":\"DeviceLifecycleEvents\",\"condition\":\"mdjrkvfgbvfvp\",\"endpointNames\":[\"odacizs\",\"q\",\"hkr\"],\"isEnabled\":false}}]}"; + = "{\"routes\":[{\"properties\":{\"name\":\"bxvvyhg\",\"source\":\"DigitalTwinChangeEvents\",\"condition\":\"byrqufeg\",\"dataSchema\":\"vwz\",\"endpointNames\":[\"nhlmctlpdng\",\"tvgbmhrixkwmy\"],\"isEnabled\":false}},{\"properties\":{\"name\":\"jvegrhbpnaixexcc\",\"source\":\"TwinChangeEvents\",\"condition\":\"eaxhcexdrrvqahqk\",\"dataSchema\":\"tpwijnh\",\"endpointNames\":[\"svfycxzbfv\",\"owvrvmtgjqppyos\",\"ronzmyhgfip\",\"sxkm\"],\"isEnabled\":true}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,21 +38,24 @@ public void testTestAllRoutesWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); TestAllRoutesResult response = manager.iotHubResources() - .testAllRoutesWithResponse("fgytguslfeadcyg", "ukyhejhzis", - new TestAllRoutesInput().withRoutingSource(RoutingSource.DEVICE_MESSAGES) - .withMessage(new RoutingMessage().withBody("lolp") - .withAppProperties(mapOf("vu", "srp", "r", "zraehtwd")) - .withSystemProperties(mapOf("rcdlbhshfwpr", "wib", "hevxcced", "cstwity"))) - .withTwin(new RoutingTwin().withTags("\"datamd\"") - .withProperties(new RoutingTwinProperties().withDesired("\"datanwzxltjcv\"") - .withReported("\"dataltiugcxnavv\""))), + .testAllRoutesWithResponse("muhapfcqdpsqxqv", "svuo", + new TestAllRoutesInput().withRoutingSource(RoutingSource.INVALID) + .withMessage(new RoutingMessage().withBody("elvezrypq") + .withAppProperties(mapOf("edkowepbqpcrfk", "eokerqwkyhkobopg")) + .withSystemProperties(mapOf("khtj", "csnjvcdwxlpqekft", "ngwfqatm", "y", "szywkbirryu", + "dhtmdvypgikd", "nrvgoupmfiibfgg", "hlhkjoqrvqqaatj"))) + .withTwin(new RoutingTwin().withTags("\"dataolvrw\"") + .withProperties(new RoutingTwinProperties().withDesired("\"datatkkgllqwjy\"") + .withReported("\"datajayvblmhv\""))), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("byqunyow", response.routes().get(0).properties().name()); - Assertions.assertEquals(RoutingSource.DEVICE_LIFECYCLE_EVENTS, response.routes().get(0).properties().source()); - Assertions.assertEquals("mdjrkvfgbvfvp", response.routes().get(0).properties().condition()); - Assertions.assertEquals("odacizs", response.routes().get(0).properties().endpointNames().get(0)); + Assertions.assertEquals("bxvvyhg", response.routes().get(0).properties().name()); + Assertions.assertEquals(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS, + response.routes().get(0).properties().source()); + Assertions.assertEquals("byrqufeg", response.routes().get(0).properties().condition()); + Assertions.assertEquals("vwz", response.routes().get(0).properties().dataSchema()); + Assertions.assertEquals("nhlmctlpdng", response.routes().get(0).properties().endpointNames().get(0)); Assertions.assertFalse(response.routes().get(0).properties().isEnabled()); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesTestRouteWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesTestRouteWithResponseMockTests.java index 080db4e3dc770..17c26ce3b54c7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesTestRouteWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubResourcesTestRouteWithResponseMockTests.java @@ -32,7 +32,7 @@ public final class IotHubResourcesTestRouteWithResponseMockTests { @Test public void testTestRouteWithResponse() throws Exception { String responseStr - = "{\"result\":\"undefined\",\"details\":{\"compilationErrors\":[{\"message\":\"gpikpzimejza\",\"severity\":\"warning\",\"location\":{\"start\":{},\"end\":{}}}]}}"; + = "{\"result\":\"undefined\",\"details\":{\"compilationErrors\":[{\"message\":\"p\",\"severity\":\"error\",\"location\":{\"start\":{},\"end\":{}}},{\"message\":\"cwxqu\",\"severity\":\"warning\",\"location\":{\"start\":{},\"end\":{}}},{\"message\":\"totxhojujb\",\"severity\":\"warning\",\"location\":{\"start\":{},\"end\":{}}},{\"message\":\"vhixbjxy\",\"severity\":\"error\",\"location\":{\"start\":{},\"end\":{}}}]}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -41,28 +41,27 @@ public void testTestRouteWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - TestRouteResult response - = manager.iotHubResources() - .testRouteWithResponse("bdeibqipqk", "hvxndzwmkrefajpj", - new TestRouteInput() - .withMessage(new RoutingMessage().withBody("kqnyh") - .withAppProperties(mapOf("jivfxzsjabib", "j")) - .withSystemProperties(mapOf("jxbkzbzkdvn", "tawfsdjpvkvp", "zhjjklffhmouwq", - "jabudurgkakmo", "eeyebi", "gzrf"))) - .withRoute(new RouteProperties().withName("ikayuhqlbjbsybb") - .withSource(RoutingSource.DEVICE_MESSAGES) - .withCondition("vtldgmfpgvmpip") - .withEndpointNames(Arrays.asList("ltha", "fxssm")) - .withIsEnabled(false)) - .withTwin(new RoutingTwin().withTags("\"databdsrez\"") - .withProperties(new RoutingTwinProperties().withDesired("\"datahneuyowqkd\"") - .withReported("\"datat\""))), - com.azure.core.util.Context.NONE) - .getValue(); + TestRouteResult response = manager.iotHubResources() + .testRouteWithResponse("a", "krrjrea", new TestRouteInput() + .withMessage(new RoutingMessage().withBody("sgumhjglikkxwsl") + .withAppProperties(mapOf("tgp", "qpvuzlmvfelf")) + .withSystemProperties(mapOf("igbrnjw", "pwjxezn"))) + .withRoute(new RouteProperties().withName("wkpnbsaz") + .withSource(RoutingSource.DEVICE_LIFECYCLE_EVENTS) + .withCondition("oqkag") + .withDataSchema("sxtta") + .withEndpointNames(Arrays.asList("zxnfaaz", "xdtnkdmkqjjlw", "envrkpyouaibrebq", "aysjkixqtnqttez")) + .withIsEnabled(false)) + .withTwin( + new RoutingTwin().withTags("\"datafiakpjpqqm\"") + .withProperties(new RoutingTwinProperties().withDesired("\"dataltmm\"") + .withReported("\"datahyeozphvwau\""))), + com.azure.core.util.Context.NONE) + .getValue(); Assertions.assertEquals(TestResultStatus.UNDEFINED, response.result()); - Assertions.assertEquals("gpikpzimejza", response.details().compilationErrors().get(0).message()); - Assertions.assertEquals(RouteErrorSeverity.WARNING, response.details().compilationErrors().get(0).severity()); + Assertions.assertEquals("p", response.details().compilationErrors().get(0).message()); + Assertions.assertEquals(RouteErrorSeverity.ERROR, response.details().compilationErrors().get(0).severity()); } // Use "Map.of" if available diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuDescriptionInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuDescriptionInnerTests.java index b8cc29e083dfb..a51559582e7a6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuDescriptionInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuDescriptionInnerTests.java @@ -13,9 +13,9 @@ public final class IotHubSkuDescriptionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IotHubSkuDescriptionInner model = BinaryData.fromString( - "{\"resourceType\":\"notyfjfcnjbkcn\",\"sku\":{\"name\":\"B2\",\"tier\":\"Standard\",\"capacity\":6091905272407979167},\"capacity\":{\"minimum\":255176425560484267,\"maximum\":6450730438848589350,\"default\":5798583815536033606,\"scaleType\":\"Automatic\"}}") + "{\"resourceType\":\"hzovawjvzunlut\",\"sku\":{\"name\":\"F1\",\"tier\":\"Basic\",\"capacity\":7986653224206637858},\"capacity\":{\"minimum\":6612912787566658831,\"maximum\":2619121034413299523,\"default\":7813618899616430195,\"scaleType\":\"Manual\"}}") .toObject(IotHubSkuDescriptionInner.class); - Assertions.assertEquals(IotHubSku.B2, model.sku().name()); - Assertions.assertEquals(6091905272407979167L, model.sku().capacity()); + Assertions.assertEquals(IotHubSku.F1, model.sku().name()); + Assertions.assertEquals(7986653224206637858L, model.sku().capacity()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuDescriptionListResultTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuDescriptionListResultTests.java index 7754a58530314..2fc56074c12dd 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuDescriptionListResultTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuDescriptionListResultTests.java @@ -13,10 +13,10 @@ public final class IotHubSkuDescriptionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IotHubSkuDescriptionListResult model = BinaryData.fromString( - "{\"value\":[{\"resourceType\":\"pskrdqmh\",\"sku\":{\"name\":\"B1\",\"tier\":\"Basic\",\"capacity\":4538179811311563630},\"capacity\":{\"minimum\":9056885702416460224,\"maximum\":5303445195272830471,\"default\":7203686124674464131,\"scaleType\":\"Automatic\"}},{\"resourceType\":\"scwsv\",\"sku\":{\"name\":\"S1\",\"tier\":\"Free\",\"capacity\":616356203864725904},\"capacity\":{\"minimum\":3943589185235660851,\"maximum\":3102599931599102077,\"default\":3295305884788247631,\"scaleType\":\"Manual\"}}],\"nextLink\":\"ykvceoveil\"}") + "{\"value\":[{\"resourceType\":\"qsgzvahapj\",\"sku\":{\"name\":\"S3\",\"tier\":\"Standard\",\"capacity\":6168011718713142792},\"capacity\":{\"minimum\":7849186680726700556,\"maximum\":7002127645254942410,\"default\":5341138585693543198,\"scaleType\":\"Manual\"}}],\"nextLink\":\"lxkvu\"}") .toObject(IotHubSkuDescriptionListResult.class); - Assertions.assertEquals(IotHubSku.B1, model.value().get(0).sku().name()); - Assertions.assertEquals(4538179811311563630L, model.value().get(0).sku().capacity()); - Assertions.assertEquals("ykvceoveil", model.nextLink()); + Assertions.assertEquals(IotHubSku.S3, model.value().get(0).sku().name()); + Assertions.assertEquals(6168011718713142792L, model.value().get(0).sku().capacity()); + Assertions.assertEquals("lxkvu", model.nextLink()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuInfoTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuInfoTests.java index 84a49268f5757..369d5a5b31d41 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuInfoTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubSkuInfoTests.java @@ -13,17 +13,17 @@ public final class IotHubSkuInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IotHubSkuInfo model - = BinaryData.fromString("{\"name\":\"S1\",\"tier\":\"Free\",\"capacity\":7876922791898544073}") + = BinaryData.fromString("{\"name\":\"B3\",\"tier\":\"Free\",\"capacity\":6176263530057609955}") .toObject(IotHubSkuInfo.class); - Assertions.assertEquals(IotHubSku.S1, model.name()); - Assertions.assertEquals(7876922791898544073L, model.capacity()); + Assertions.assertEquals(IotHubSku.B3, model.name()); + Assertions.assertEquals(6176263530057609955L, model.capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IotHubSkuInfo model = new IotHubSkuInfo().withName(IotHubSku.S1).withCapacity(7876922791898544073L); + IotHubSkuInfo model = new IotHubSkuInfo().withName(IotHubSku.B3).withCapacity(6176263530057609955L); model = BinaryData.fromObject(model).toObject(IotHubSkuInfo.class); - Assertions.assertEquals(IotHubSku.S1, model.name()); - Assertions.assertEquals(7876922791898544073L, model.capacity()); + Assertions.assertEquals(IotHubSku.B3, model.name()); + Assertions.assertEquals(6176263530057609955L, model.capacity()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubsManualFailoverMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubsManualFailoverMockTests.java index 3779298cc4ddd..3bef0534801ac 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubsManualFailoverMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubsManualFailoverMockTests.java @@ -29,7 +29,7 @@ public void testManualFailover() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.iotHubs() - .manualFailover("xeznoi", "brnjwmw", new FailoverInput().withFailoverRegion("pn"), + .manualFailover("vpkjpr", "kwcf", new FailoverInput().withFailoverRegion("ql"), com.azure.core.util.Context.NONE); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/JobResponseInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/JobResponseInnerTests.java index bf94165fb61ab..b1b8182e1c0fe 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/JobResponseInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/JobResponseInnerTests.java @@ -11,7 +11,7 @@ public final class JobResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobResponseInner model = BinaryData.fromString( - "{\"jobId\":\"zbaliourqha\",\"startTimeUtc\":\"Thu, 13 May 2021 06:10:16 GMT\",\"endTimeUtc\":\"Fri, 28 May 2021 21:15:07 GMT\",\"type\":\"updateDeviceConfiguration\",\"status\":\"running\",\"failureReason\":\"xosow\",\"statusMessage\":\"cugicjoox\",\"parentJobId\":\"ebwpucwwfvo\"}") + "{\"jobId\":\"wncwzzhxgktrmg\",\"startTimeUtc\":\"Thu, 26 Aug 2021 10:37:32 GMT\",\"endTimeUtc\":\"Mon, 11 Jan 2021 08:35:46 GMT\",\"type\":\"updateDeviceConfiguration\",\"status\":\"unknown\",\"failureReason\":\"llwptfdy\",\"statusMessage\":\"fqbuaceopzf\",\"parentJobId\":\"hhuao\"}") .toObject(JobResponseInner.class); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/JobResponseListResultTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/JobResponseListResultTests.java index 26d9227961600..a39e450bd4b97 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/JobResponseListResultTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/JobResponseListResultTests.java @@ -12,8 +12,8 @@ public final class JobResponseListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobResponseListResult model = BinaryData.fromString( - "{\"value\":[{\"jobId\":\"uscrpabgyepsb\",\"startTimeUtc\":\"Tue, 26 Jan 2021 13:24:27 GMT\",\"endTimeUtc\":\"Tue, 16 Feb 2021 09:59:01 GMT\",\"type\":\"factoryResetDevice\",\"status\":\"enqueued\",\"failureReason\":\"pmueefjzwfqk\",\"statusMessage\":\"jidsuyonobglaoc\",\"parentJobId\":\"tcc\"},{\"jobId\":\"yudxytlmoy\",\"startTimeUtc\":\"Sun, 06 Jun 2021 16:13:27 GMT\",\"endTimeUtc\":\"Wed, 04 Aug 2021 10:24:08 GMT\",\"type\":\"readDeviceProperties\",\"status\":\"failed\",\"failureReason\":\"ntxhdzhlrqjbhck\",\"statusMessage\":\"lhrxsbkyvpyc\",\"parentJobId\":\"uzbpzkafku\"},{\"jobId\":\"crnwbmeh\",\"startTimeUtc\":\"Sun, 04 Jul 2021 17:06:56 GMT\",\"endTimeUtc\":\"Fri, 03 Sep 2021 17:59:20 GMT\",\"type\":\"firmwareUpdate\",\"status\":\"failed\",\"failureReason\":\"slhs\",\"statusMessage\":\"deemao\",\"parentJobId\":\"xagkvtmelmqkrh\"},{\"jobId\":\"vljua\",\"startTimeUtc\":\"Wed, 16 Jun 2021 01:16:38 GMT\",\"endTimeUtc\":\"Thu, 11 Feb 2021 00:39:32 GMT\",\"type\":\"readDeviceProperties\",\"status\":\"cancelled\",\"failureReason\":\"ualaexqpvfadmw\",\"statusMessage\":\"crgvxpvgom\",\"parentJobId\":\"fmisg\"}],\"nextLink\":\"nbbelda\"}") + "{\"value\":[{\"jobId\":\"zumveekgpwo\",\"startTimeUtc\":\"Sat, 16 Jan 2021 14:31:18 GMT\",\"endTimeUtc\":\"Sun, 10 Oct 2021 22:25:32 GMT\",\"type\":\"writeDeviceProperties\",\"status\":\"failed\",\"failureReason\":\"ofd\",\"statusMessage\":\"uusdttouwa\",\"parentJobId\":\"ekqvkeln\"},{\"jobId\":\"vbxwyjsflhh\",\"startTimeUtc\":\"Sun, 20 Dec 2020 13:53:44 GMT\",\"endTimeUtc\":\"Sat, 06 Feb 2021 03:40:59 GMT\",\"type\":\"export\",\"status\":\"completed\",\"failureReason\":\"xyawj\",\"statusMessage\":\"aq\",\"parentJobId\":\"lyjpk\"},{\"jobId\":\"dzyexznelixh\",\"startTimeUtc\":\"Thu, 26 Aug 2021 08:15:37 GMT\",\"endTimeUtc\":\"Fri, 07 May 2021 02:19:01 GMT\",\"type\":\"factoryResetDevice\",\"status\":\"enqueued\",\"failureReason\":\"xknalaulppg\",\"statusMessage\":\"tpnapnyiropuhpig\",\"parentJobId\":\"gylgqgitxmedjvcs\"}],\"nextLink\":\"n\"}") .toObject(JobResponseListResult.class); - Assertions.assertEquals("nbbelda", model.nextLink()); + Assertions.assertEquals("n", model.nextLink()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ManagedIdentityTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ManagedIdentityTests.java index c2fb7a96b2167..395cdc7ff93e0 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ManagedIdentityTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ManagedIdentityTests.java @@ -12,14 +12,14 @@ public final class ManagedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedIdentity model - = BinaryData.fromString("{\"userAssignedIdentity\":\"jiwkuofoskghsau\"}").toObject(ManagedIdentity.class); - Assertions.assertEquals("jiwkuofoskghsau", model.userAssignedIdentity()); + = BinaryData.fromString("{\"userAssignedIdentity\":\"ebrjcxe\"}").toObject(ManagedIdentity.class); + Assertions.assertEquals("ebrjcxe", model.userAssignedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedIdentity model = new ManagedIdentity().withUserAssignedIdentity("jiwkuofoskghsau"); + ManagedIdentity model = new ManagedIdentity().withUserAssignedIdentity("ebrjcxe"); model = BinaryData.fromObject(model).toObject(ManagedIdentity.class); - Assertions.assertEquals("jiwkuofoskghsau", model.userAssignedIdentity()); + Assertions.assertEquals("ebrjcxe", model.userAssignedIdentity()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MatchedRouteTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MatchedRouteTests.java index f3e570fbffd91..94a0fa4418ed0 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MatchedRouteTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MatchedRouteTests.java @@ -13,12 +13,13 @@ public final class MatchedRouteTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MatchedRoute model = BinaryData.fromString( - "{\"properties\":{\"name\":\"dahzxctobg\",\"source\":\"TwinChangeEvents\",\"condition\":\"moizpos\",\"endpointNames\":[\"grcfb\",\"nrmfqjhhk\"],\"isEnabled\":true}}") + "{\"properties\":{\"name\":\"oievseotgqrlltm\",\"source\":\"DeviceConnectionStateEvents\",\"condition\":\"auwzizxbmpgc\",\"dataSchema\":\"fuzmuvpbtt\",\"endpointNames\":[\"morppxebmnzbtbh\"],\"isEnabled\":false}}") .toObject(MatchedRoute.class); - Assertions.assertEquals("dahzxctobg", model.properties().name()); - Assertions.assertEquals(RoutingSource.TWIN_CHANGE_EVENTS, model.properties().source()); - Assertions.assertEquals("moizpos", model.properties().condition()); - Assertions.assertEquals("grcfb", model.properties().endpointNames().get(0)); - Assertions.assertTrue(model.properties().isEnabled()); + Assertions.assertEquals("oievseotgqrlltm", model.properties().name()); + Assertions.assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.properties().source()); + Assertions.assertEquals("auwzizxbmpgc", model.properties().condition()); + Assertions.assertEquals("fuzmuvpbtt", model.properties().dataSchema()); + Assertions.assertEquals("morppxebmnzbtbh", model.properties().endpointNames().get(0)); + Assertions.assertFalse(model.properties().isEnabled()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MessagingEndpointPropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MessagingEndpointPropertiesTests.java index 70c0089207b22..9fab9e2b63562 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MessagingEndpointPropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MessagingEndpointPropertiesTests.java @@ -13,22 +13,22 @@ public final class MessagingEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MessagingEndpointProperties model = BinaryData.fromString( - "{\"lockDurationAsIso8601\":\"PT118H45M41S\",\"ttlAsIso8601\":\"PT50H7M53S\",\"maxDeliveryCount\":1333512274}") + "{\"lockDurationAsIso8601\":\"PT209H58M48S\",\"ttlAsIso8601\":\"PT167H58M43S\",\"maxDeliveryCount\":1227353846}") .toObject(MessagingEndpointProperties.class); - Assertions.assertEquals(Duration.parse("PT118H45M41S"), model.lockDurationAsIso8601()); - Assertions.assertEquals(Duration.parse("PT50H7M53S"), model.ttlAsIso8601()); - Assertions.assertEquals(1333512274, model.maxDeliveryCount()); + Assertions.assertEquals(Duration.parse("PT209H58M48S"), model.lockDurationAsIso8601()); + Assertions.assertEquals(Duration.parse("PT167H58M43S"), model.ttlAsIso8601()); + Assertions.assertEquals(1227353846, model.maxDeliveryCount()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MessagingEndpointProperties model - = new MessagingEndpointProperties().withLockDurationAsIso8601(Duration.parse("PT118H45M41S")) - .withTtlAsIso8601(Duration.parse("PT50H7M53S")) - .withMaxDeliveryCount(1333512274); + = new MessagingEndpointProperties().withLockDurationAsIso8601(Duration.parse("PT209H58M48S")) + .withTtlAsIso8601(Duration.parse("PT167H58M43S")) + .withMaxDeliveryCount(1227353846); model = BinaryData.fromObject(model).toObject(MessagingEndpointProperties.class); - Assertions.assertEquals(Duration.parse("PT118H45M41S"), model.lockDurationAsIso8601()); - Assertions.assertEquals(Duration.parse("PT50H7M53S"), model.ttlAsIso8601()); - Assertions.assertEquals(1333512274, model.maxDeliveryCount()); + Assertions.assertEquals(Duration.parse("PT209H58M48S"), model.lockDurationAsIso8601()); + Assertions.assertEquals(Duration.parse("PT167H58M43S"), model.ttlAsIso8601()); + Assertions.assertEquals(1227353846, model.maxDeliveryCount()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MqttV5SettingsTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MqttV5SettingsTests.java new file mode 100644 index 0000000000000..ed8015abfc5bd --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/MqttV5SettingsTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.iothub.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.iothub.models.MqttV5Settings; +import com.azure.resourcemanager.iothub.models.TopicGroup; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class MqttV5SettingsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MqttV5Settings model = BinaryData.fromString( + "{\"topicGroups\":[{\"topicGroupId\":\"hckfrlhrx\",\"topicTemplates\":[\"yvpycanuzbpzk\"]},{\"topicGroupId\":\"kuwbcrnwb\",\"topicTemplates\":[\"hseyvju\",\"rts\"]},{\"topicGroupId\":\"spkdee\",\"topicTemplates\":[\"fm\",\"ag\",\"vt\",\"elmqk\"]}]}") + .toObject(MqttV5Settings.class); + Assertions.assertEquals("hckfrlhrx", model.topicGroups().get(0).topicGroupId()); + Assertions.assertEquals("yvpycanuzbpzk", model.topicGroups().get(0).topicTemplates().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + MqttV5Settings model = new MqttV5Settings().withTopicGroups(Arrays.asList( + new TopicGroup().withTopicGroupId("hckfrlhrx").withTopicTemplates(Arrays.asList("yvpycanuzbpzk")), + new TopicGroup().withTopicGroupId("kuwbcrnwb").withTopicTemplates(Arrays.asList("hseyvju", "rts")), + new TopicGroup().withTopicGroupId("spkdee").withTopicTemplates(Arrays.asList("fm", "ag", "vt", "elmqk")))); + model = BinaryData.fromObject(model).toObject(MqttV5Settings.class); + Assertions.assertEquals("hckfrlhrx", model.topicGroups().get(0).topicGroupId()); + Assertions.assertEquals("yvpycanuzbpzk", model.topicGroups().get(0).topicTemplates().get(0)); + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/NameTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/NameTests.java index ef2194e44daf3..158d92467360d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/NameTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/NameTests.java @@ -11,9 +11,9 @@ public final class NameTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Name model - = BinaryData.fromString("{\"value\":\"rxxle\",\"localizedValue\":\"ramxjezwlwnw\"}").toObject(Name.class); - Assertions.assertEquals("rxxle", model.value()); - Assertions.assertEquals("ramxjezwlwnw", model.localizedValue()); + Name model = BinaryData.fromString("{\"value\":\"wqaldsyu\",\"localizedValue\":\"imerqfobwyznk\"}") + .toObject(Name.class); + Assertions.assertEquals("wqaldsyu", model.value()); + Assertions.assertEquals("imerqfobwyznk", model.localizedValue()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/OperationInputsTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/OperationInputsTests.java index 2cfda12e3d5cc..a5d1c69ab0374 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/OperationInputsTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/OperationInputsTests.java @@ -11,14 +11,14 @@ public final class OperationInputsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - OperationInputs model = BinaryData.fromString("{\"name\":\"vhqcrail\"}").toObject(OperationInputs.class); - Assertions.assertEquals("vhqcrail", model.name()); + OperationInputs model = BinaryData.fromString("{\"name\":\"dvwvgpio\"}").toObject(OperationInputs.class); + Assertions.assertEquals("dvwvgpio", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OperationInputs model = new OperationInputs().withName("vhqcrail"); + OperationInputs model = new OperationInputs().withName("dvwvgpio"); model = BinaryData.fromObject(model).toObject(OperationInputs.class); - Assertions.assertEquals("vhqcrail", model.name()); + Assertions.assertEquals("dvwvgpio", model.name()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/OperationsListMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/OperationsListMockTests.java index 3aecabceb0dca..c7173d735f515 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/OperationsListMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"qlcvydy\",\"display\":{\"provider\":\"dooaojkniodko\",\"resource\":\"bw\",\"operation\":\"jhemms\",\"description\":\"dkcrodt\"}}]}"; + = "{\"value\":[{\"name\":\"kutwpf\",\"display\":{\"provider\":\"gmhrskdsnfdsdoak\",\"resource\":\"dlmkkzevdl\",\"operation\":\"wpusdsttwvogv\",\"description\":\"ejdcngqqmoakuf\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteMockTests.java index e33aaa5525a23..89d7e8b516e93 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.privateEndpointConnections().delete("mr", "xqtvcofu", "f", com.azure.core.util.Context.NONE); + manager.privateEndpointConnections().delete("zraehtwd", "r", "tswiby", com.azure.core.util.Context.NONE); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index 2b775ce6f8bb9..f1d8b308d3062 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"lyls\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"k\",\"actionsRequired\":\"nsj\"}},\"id\":\"vti\",\"name\":\"gxsds\",\"type\":\"uem\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"u\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"kopbminrf\",\"actionsRequired\":\"oyuhhziui\"}},\"id\":\"ozbhdmsmlmzq\",\"name\":\"oftrmaequia\",\"type\":\"xicslfao\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .getWithResponse("infwjlfltkacjve", "kdlfoa", "ggkfpagaowpul", com.azure.core.util.Context.NONE) + .getWithResponse("m", "zr", "rdgrtw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateLinkServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateLinkServiceConnectionStatus.APPROVED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("k", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("nsj", response.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("kopbminrf", response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("oyuhhziui", + response.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListWithResponseMockTests.java index 5c8efc610f171..439eb747f1621 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class PrivateEndpointConnectionsListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "[{\"properties\":{\"privateEndpoint\":{\"id\":\"nnqvsa\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"qntorudsgsahmkyc\",\"actionsRequired\":\"auwjuetaebu\"}},\"id\":\"vdmovsmzlxwabm\",\"name\":\"oefki\",\"type\":\"rvtp\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"jmqlgkfb\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"doaon\",\"actionsRequired\":\"jcntuj\"}},\"id\":\"c\",\"name\":\"ed\",\"type\":\"twwaezkojvdcpzf\"}]"; + = "[{\"properties\":{\"privateEndpoint\":{\"id\":\"p\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"cstwity\",\"actionsRequired\":\"evxccedcp\"}},\"id\":\"dyodnwzxltj\",\"name\":\"vnhltiugcx\",\"type\":\"avvwxqi\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"unyowxwl\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"jrkvfgbvfvpdbo\",\"actionsRequired\":\"cizsjqlhkrribdei\"}},\"id\":\"ipqkghvxndzwm\",\"name\":\"refajpjorwkqnyh\",\"type\":\"b\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"jivfxzsjabib\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"stawfsdjpvkv\",\"actionsRequired\":\"jxbkzbzkdvn\"}},\"id\":\"abudurgk\",\"name\":\"kmokz\",\"type\":\"jjklff\"}]"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); List response = manager.privateEndpointConnections() - .listWithResponse("vkg", "u", com.azure.core.util.Context.NONE) + .listWithResponse("cdl", "h", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateLinkServiceConnectionStatus.DISCONNECTED, + Assertions.assertEquals(PrivateLinkServiceConnectionStatus.REJECTED, response.get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("qntorudsgsahmkyc", + Assertions.assertEquals("cstwity", response.get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("auwjuetaebu", + Assertions.assertEquals("evxccedcp", response.get(0).properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateMockTests.java index 4e295ea2445e4..c3cfc3ce12a17 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateMockTests.java @@ -26,7 +26,7 @@ public final class PrivateEndpointConnectionsUpdateMockTests { @Test public void testUpdate() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"wsobqwcsdbn\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"cf\",\"actionsRequired\":\"cqdpfuv\"}},\"id\":\"sbjjc\",\"name\":\"nvxbvt\",\"type\":\"udutnco\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"sdtclusiypbs\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"ytguslf\",\"actionsRequired\":\"dcygqukyhejhz\"}},\"id\":\"xgfpelolppv\",\"name\":\"srp\",\"type\":\"vu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,18 +36,19 @@ public void testUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .update("sbzkf", "beyvpnqicvinvkjj", "dxrbuukzcle", + .update("z", "iyylhalnswhccsp", "kaivwit", new PrivateEndpointConnectionInner() .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.APPROVED) - .withDescription("ofncckwyfzqwhxxb") - .withActionsRequired("qa"))), + .withStatus(PrivateLinkServiceConnectionStatus.PENDING) + .withDescription("emh") + .withActionsRequired("rsbrgzdwm"))), com.azure.core.util.Context.NONE); Assertions.assertEquals(PrivateLinkServiceConnectionStatus.REJECTED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("cf", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("cqdpfuv", response.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("ytguslf", response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("dcygqukyhejhz", + response.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesInnerTests.java index da2f374d780c4..88cf5878db881 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesInnerTests.java @@ -12,10 +12,10 @@ public final class PrivateLinkResourcesInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourcesInner model = BinaryData.fromString( - "{\"value\":[{\"id\":\"kvpuvksgplsaknyn\",\"name\":\"ynl\",\"type\":\"huopxodlqiynto\",\"properties\":{\"groupId\":\"ihleos\",\"requiredMembers\":[\"srmslyzr\"],\"requiredZoneNames\":[\"c\",\"ckqqzqioxiysui\",\"zynkedya\"]}},{\"id\":\"wyhqmibzyhwits\",\"name\":\"pyy\",\"type\":\"cdpu\",\"properties\":{\"groupId\":\"zgmwznmabikns\",\"requiredMembers\":[\"jhxbld\"],\"requiredZoneNames\":[\"wrlkdmtn\",\"vokotllxdyh\",\"syocogjltdtbnnha\"]}},{\"id\":\"ocrkvcikh\",\"name\":\"p\",\"type\":\"qgxqquezikyw\",\"properties\":{\"groupId\":\"xkalla\",\"requiredMembers\":[\"lwuip\",\"ccjzkzivgvv\"],\"requiredZoneNames\":[\"y\",\"hyrnxxmu\"]}},{\"id\":\"dndrdvstkwqqtche\",\"name\":\"mfmtdaaygdvw\",\"type\":\"piohgwxrtfu\",\"properties\":{\"groupId\":\"epxgyqagvr\",\"requiredMembers\":[\"pkukghi\",\"dblx\",\"wi\",\"fnjhfjxwmszkkfo\"],\"requiredZoneNames\":[\"yfkzik\",\"jawneaiv\",\"wczelpci\"]}}]}") + "{\"value\":[{\"id\":\"rudsg\",\"name\":\"hmk\",\"type\":\"grauwjuetaebur\",\"properties\":{\"groupId\":\"dmovsm\",\"requiredMembers\":[\"wabm\",\"oefki\"],\"requiredZoneNames\":[\"tpuqujmq\",\"gkfbtndoaong\",\"jcntuj\"]}}]}") .toObject(PrivateLinkResourcesInner.class); - Assertions.assertEquals("ihleos", model.value().get(0).properties().groupId()); - Assertions.assertEquals("srmslyzr", model.value().get(0).properties().requiredMembers().get(0)); - Assertions.assertEquals("c", model.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("dmovsm", model.value().get(0).properties().groupId()); + Assertions.assertEquals("wabm", model.value().get(0).properties().requiredMembers().get(0)); + Assertions.assertEquals("tpuqujmq", model.value().get(0).properties().requiredZoneNames().get(0)); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationsGetWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationsGetWithResponseMockTests.java index 0c70b79534db0..2b3e0c339ecd2 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationsGetWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class PrivateLinkResourcesOperationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"id\":\"gx\",\"name\":\"rc\",\"type\":\"yklyhpluodpvruud\",\"properties\":{\"groupId\":\"zibt\",\"requiredMembers\":[\"tgk\",\"stvdxeclz\"],\"requiredZoneNames\":[\"bcvhzlhpl\",\"dqkdlwwqfbu\",\"lkxt\"]}}"; + = "{\"id\":\"jlkatnwxy\",\"name\":\"pidkqqfkuvscxkdm\",\"type\":\"govibrxkpmloazu\",\"properties\":{\"groupId\":\"ocbgoorbteoyb\",\"requiredMembers\":[\"xakvvjgslor\",\"il\"],\"requiredZoneNames\":[\"wt\",\"gkxnyedabg\"]}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GroupIdInformation response = manager.privateLinkResourcesOperations() - .getWithResponse("ydbsd", "hmkxmaehvbb", "uripltfnhtba", com.azure.core.util.Context.NONE) + .getWithResponse("cpjuisa", "okqdzfvaz", "vjlfrqtt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("zibt", response.properties().groupId()); - Assertions.assertEquals("tgk", response.properties().requiredMembers().get(0)); - Assertions.assertEquals("bcvhzlhpl", response.properties().requiredZoneNames().get(0)); + Assertions.assertEquals("ocbgoorbteoyb", response.properties().groupId()); + Assertions.assertEquals("xakvvjgslor", response.properties().requiredMembers().get(0)); + Assertions.assertEquals("wt", response.properties().requiredZoneNames().get(0)); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationsListWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationsListWithResponseMockTests.java index bcf68e052df54..25daeb918a53a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationsListWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationsListWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class PrivateLinkResourcesOperationsListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"id\":\"udygooo\",\"name\":\"qfqjbvleorfm\",\"type\":\"iqtqzfavyvnq\",\"properties\":{\"groupId\":\"bar\",\"requiredMembers\":[\"ayjkqa\",\"qgzsles\"],\"requiredZoneNames\":[\"hernntiewdjc\",\"bquwrbehw\",\"gohbuffkmrq\"]}}]}"; + = "{\"value\":[{\"id\":\"kkudzp\",\"name\":\"wjplma\",\"type\":\"tcyohpfkyrk\",\"properties\":{\"groupId\":\"dg\",\"requiredMembers\":[\"sjkmnwqj\"],\"requiredZoneNames\":[\"aiy\",\"ddviacegfnmntfpm\",\"memfnczdwvvbalxl\",\"lchpodbzevwrdn\"]}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateLinkResources response = manager.privateLinkResourcesOperations() - .listWithResponse("qjfsmlmbtxhw", "fwsrtawcoezbrhu", com.azure.core.util.Context.NONE) + .listWithResponse("vudtjuewbcihx", "uwhcjyxccybv", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("bar", response.value().get(0).properties().groupId()); - Assertions.assertEquals("ayjkqa", response.value().get(0).properties().requiredMembers().get(0)); - Assertions.assertEquals("hernntiewdjc", response.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("dg", response.value().get(0).properties().groupId()); + Assertions.assertEquals("sjkmnwqj", response.value().get(0).properties().requiredMembers().get(0)); + Assertions.assertEquals("aiy", response.value().get(0).properties().requiredZoneNames().get(0)); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RegistryStatisticsInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RegistryStatisticsInnerTests.java index f25d0033bc073..1f9905aba5876 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RegistryStatisticsInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RegistryStatisticsInnerTests.java @@ -11,7 +11,7 @@ public final class RegistryStatisticsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegistryStatisticsInner model = BinaryData.fromString( - "{\"totalDeviceCount\":7011756283032975989,\"enabledDeviceCount\":1050926206308737519,\"disabledDeviceCount\":7045736863404189107}") + "{\"totalDeviceCount\":8539790193753290872,\"enabledDeviceCount\":3859662575119335920,\"disabledDeviceCount\":7176903777537856658}") .toObject(RegistryStatisticsInner.class); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonsGetSubscriptionQuotaWithResponseMockTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonsGetSubscriptionQuotaWithResponseMockTests.java index 8cc2d4be4bd0e..be19a2e2ae87d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonsGetSubscriptionQuotaWithResponseMockTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonsGetSubscriptionQuotaWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ResourceProviderCommonsGetSubscriptionQuotaWithResponseMockTe @Test public void testGetSubscriptionQuotaWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"id\":\"hmxtdr\",\"type\":\"utacoe\",\"unit\":\"vewzcj\",\"currentValue\":96469803,\"limit\":1754338424,\"name\":{\"value\":\"guaadraufactkahz\",\"localizedValue\":\"ajjziuxxpshne\"}},{\"id\":\"ulfgslqu\",\"type\":\"wdlenrdsut\",\"unit\":\"bazpjuohmi\",\"currentValue\":853013745,\"limit\":1572022243,\"name\":{\"value\":\"wmd\",\"localizedValue\":\"wpklvxw\"}},{\"id\":\"gdxpg\",\"type\":\"chisze\",\"unit\":\"nb\",\"currentValue\":1746749164,\"limit\":1933702310,\"name\":{\"value\":\"bdaxconfozauorsu\",\"localizedValue\":\"kwbqplhlvnuu\"}}],\"nextLink\":\"zlrphwzs\"}"; + = "{\"value\":[{\"id\":\"uvsj\",\"type\":\"wsmystuluqypf\",\"unit\":\"lerchpq\",\"currentValue\":131662933,\"limit\":1988339423,\"name\":{\"value\":\"bwidfcxsspuunn\",\"localizedValue\":\"yhkx\"}}],\"nextLink\":\"ddrihpf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,12 +34,12 @@ public void testGetSubscriptionQuotaWithResponse() throws Exception { .getSubscriptionQuotaWithResponse(com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("hmxtdr", response.value().get(0).id()); - Assertions.assertEquals("utacoe", response.value().get(0).type()); - Assertions.assertEquals("vewzcj", response.value().get(0).unit()); - Assertions.assertEquals(96469803, response.value().get(0).currentValue()); - Assertions.assertEquals(1754338424, response.value().get(0).limit()); - Assertions.assertEquals("guaadraufactkahz", response.value().get(0).name().value()); - Assertions.assertEquals("ajjziuxxpshne", response.value().get(0).name().localizedValue()); + Assertions.assertEquals("uvsj", response.value().get(0).id()); + Assertions.assertEquals("wsmystuluqypf", response.value().get(0).type()); + Assertions.assertEquals("lerchpq", response.value().get(0).unit()); + Assertions.assertEquals(131662933, response.value().get(0).currentValue()); + Assertions.assertEquals(1988339423, response.value().get(0).limit()); + Assertions.assertEquals("bwidfcxsspuunn", response.value().get(0).name().value()); + Assertions.assertEquals("yhkx", response.value().get(0).name().localizedValue()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RootCertificatePropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RootCertificatePropertiesTests.java index 3e9eaa93d9b7e..113483eec59ae 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RootCertificatePropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RootCertificatePropertiesTests.java @@ -12,7 +12,7 @@ public final class RootCertificatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RootCertificateProperties model = BinaryData - .fromString("{\"enableRootCertificateV2\":false,\"lastUpdatedTimeUtc\":\"2021-07-01T11:34:52Z\"}") + .fromString("{\"enableRootCertificateV2\":false,\"lastUpdatedTimeUtc\":\"2021-07-17T04:44:41Z\"}") .toObject(RootCertificateProperties.class); Assertions.assertFalse(model.enableRootCertificateV2()); } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteCompilationErrorTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteCompilationErrorTests.java index 8ecae02312b66..6f672eeed185a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteCompilationErrorTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteCompilationErrorTests.java @@ -13,13 +13,13 @@ public final class RouteCompilationErrorTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RouteCompilationError model = BinaryData.fromString( - "{\"message\":\"dbzm\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":307071571,\"column\":451636387},\"end\":{\"line\":1616602527,\"column\":722282959}}}") + "{\"message\":\"vqtmnub\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":1254452597,\"column\":1550438212},\"end\":{\"line\":848558030,\"column\":1007666972}}}") .toObject(RouteCompilationError.class); - Assertions.assertEquals("dbzm", model.message()); + Assertions.assertEquals("vqtmnub", model.message()); Assertions.assertEquals(RouteErrorSeverity.WARNING, model.severity()); - Assertions.assertEquals(307071571, model.location().start().line()); - Assertions.assertEquals(451636387, model.location().start().column()); - Assertions.assertEquals(1616602527, model.location().end().line()); - Assertions.assertEquals(722282959, model.location().end().column()); + Assertions.assertEquals(1254452597, model.location().start().line()); + Assertions.assertEquals(1550438212, model.location().start().column()); + Assertions.assertEquals(848558030, model.location().end().line()); + Assertions.assertEquals(1007666972, model.location().end().column()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteErrorPositionTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteErrorPositionTests.java index 801543cbfc74b..5876e31156638 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteErrorPositionTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteErrorPositionTests.java @@ -12,8 +12,8 @@ public final class RouteErrorPositionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RouteErrorPosition model - = BinaryData.fromString("{\"line\":712184183,\"column\":1259752874}").toObject(RouteErrorPosition.class); - Assertions.assertEquals(712184183, model.line()); - Assertions.assertEquals(1259752874, model.column()); + = BinaryData.fromString("{\"line\":107730122,\"column\":2107852573}").toObject(RouteErrorPosition.class); + Assertions.assertEquals(107730122, model.line()); + Assertions.assertEquals(2107852573, model.column()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteErrorRangeTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteErrorRangeTests.java index bc5dca7c286e1..887be5557ffb6 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteErrorRangeTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RouteErrorRangeTests.java @@ -12,11 +12,11 @@ public final class RouteErrorRangeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RouteErrorRange model = BinaryData.fromString( - "{\"start\":{\"line\":1832906038,\"column\":2109510262},\"end\":{\"line\":857733914,\"column\":967262152}}") + "{\"start\":{\"line\":1083170526,\"column\":1371154692},\"end\":{\"line\":2111065372,\"column\":2059012872}}") .toObject(RouteErrorRange.class); - Assertions.assertEquals(1832906038, model.start().line()); - Assertions.assertEquals(2109510262, model.start().column()); - Assertions.assertEquals(857733914, model.end().line()); - Assertions.assertEquals(967262152, model.end().column()); + Assertions.assertEquals(1083170526, model.start().line()); + Assertions.assertEquals(1371154692, model.start().column()); + Assertions.assertEquals(2111065372, model.end().line()); + Assertions.assertEquals(2059012872, model.end().column()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutePropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutePropertiesTests.java index b6d39d35f0135..d593378b88710 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutePropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutePropertiesTests.java @@ -14,27 +14,30 @@ public final class RoutePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RouteProperties model = BinaryData.fromString( - "{\"name\":\"uujqgidokgjljyo\",\"source\":\"DeviceMessages\",\"condition\":\"cltbgsncghkjesz\",\"endpointNames\":[\"bijhtxfvgxbf\",\"mxnehmp\",\"ec\"],\"isEnabled\":true}") + "{\"name\":\"wiyighxpkdw\",\"source\":\"DigitalTwinChangeEvents\",\"condition\":\"iuebbaumny\",\"dataSchema\":\"ped\",\"endpointNames\":[\"jn\",\"bckhsmtxpsi\",\"btfhvpesaps\",\"rdqmhjjdhtldwkyz\"],\"isEnabled\":false}") .toObject(RouteProperties.class); - Assertions.assertEquals("uujqgidokgjljyo", model.name()); - Assertions.assertEquals(RoutingSource.DEVICE_MESSAGES, model.source()); - Assertions.assertEquals("cltbgsncghkjesz", model.condition()); - Assertions.assertEquals("bijhtxfvgxbf", model.endpointNames().get(0)); - Assertions.assertTrue(model.isEnabled()); + Assertions.assertEquals("wiyighxpkdw", model.name()); + Assertions.assertEquals(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS, model.source()); + Assertions.assertEquals("iuebbaumny", model.condition()); + Assertions.assertEquals("ped", model.dataSchema()); + Assertions.assertEquals("jn", model.endpointNames().get(0)); + Assertions.assertFalse(model.isEnabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RouteProperties model = new RouteProperties().withName("uujqgidokgjljyo") - .withSource(RoutingSource.DEVICE_MESSAGES) - .withCondition("cltbgsncghkjesz") - .withEndpointNames(Arrays.asList("bijhtxfvgxbf", "mxnehmp", "ec")) - .withIsEnabled(true); + RouteProperties model = new RouteProperties().withName("wiyighxpkdw") + .withSource(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS) + .withCondition("iuebbaumny") + .withDataSchema("ped") + .withEndpointNames(Arrays.asList("jn", "bckhsmtxpsi", "btfhvpesaps", "rdqmhjjdhtldwkyz")) + .withIsEnabled(false); model = BinaryData.fromObject(model).toObject(RouteProperties.class); - Assertions.assertEquals("uujqgidokgjljyo", model.name()); - Assertions.assertEquals(RoutingSource.DEVICE_MESSAGES, model.source()); - Assertions.assertEquals("cltbgsncghkjesz", model.condition()); - Assertions.assertEquals("bijhtxfvgxbf", model.endpointNames().get(0)); - Assertions.assertTrue(model.isEnabled()); + Assertions.assertEquals("wiyighxpkdw", model.name()); + Assertions.assertEquals(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS, model.source()); + Assertions.assertEquals("iuebbaumny", model.condition()); + Assertions.assertEquals("ped", model.dataSchema()); + Assertions.assertEquals("jn", model.endpointNames().get(0)); + Assertions.assertFalse(model.isEnabled()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingEventHubPropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingEventHubPropertiesTests.java index 391f421cc8995..fa65a6bc283ca 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingEventHubPropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingEventHubPropertiesTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.iothub.models.AuthenticationType; import com.azure.resourcemanager.iothub.models.ManagedIdentity; +import com.azure.resourcemanager.iothub.models.MessagePayloadFormat; import com.azure.resourcemanager.iothub.models.RoutingEventHubProperties; import org.junit.jupiter.api.Assertions; @@ -14,39 +15,42 @@ public final class RoutingEventHubPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RoutingEventHubProperties model = BinaryData.fromString( - "{\"id\":\"yvshxmz\",\"connectionString\":\"bzoggigrx\",\"endpointUri\":\"ur\",\"entityPath\":\"xxjnspydptk\",\"authenticationType\":\"keyBased\",\"identity\":{\"userAssignedIdentity\":\"uknvudwti\"},\"name\":\"kbldngkpocipa\",\"subscriptionId\":\"xoegukgjnpiucgy\",\"resourceGroup\":\"vqzntypmrbpizcdr\"}") + "{\"id\":\"eh\",\"connectionString\":\"vecxgodebfqkk\",\"endpointUri\":\"mpukgriw\",\"entityPath\":\"zlfbxzpuzycispnq\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"kbrpyydhibnuq\"},\"name\":\"kpikadrgvt\",\"subscriptionId\":\"gnbuy\",\"resourceGroup\":\"ijggmebfsiar\",\"messagePayloadFormat\":\"None\"}") .toObject(RoutingEventHubProperties.class); - Assertions.assertEquals("yvshxmz", model.id()); - Assertions.assertEquals("bzoggigrx", model.connectionString()); - Assertions.assertEquals("ur", model.endpointUri()); - Assertions.assertEquals("xxjnspydptk", model.entityPath()); - Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType()); - Assertions.assertEquals("uknvudwti", model.identity().userAssignedIdentity()); - Assertions.assertEquals("kbldngkpocipa", model.name()); - Assertions.assertEquals("xoegukgjnpiucgy", model.subscriptionId()); - Assertions.assertEquals("vqzntypmrbpizcdr", model.resourceGroup()); + Assertions.assertEquals("eh", model.id()); + Assertions.assertEquals("vecxgodebfqkk", model.connectionString()); + Assertions.assertEquals("mpukgriw", model.endpointUri()); + Assertions.assertEquals("zlfbxzpuzycispnq", model.entityPath()); + Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType()); + Assertions.assertEquals("kbrpyydhibnuq", model.identity().userAssignedIdentity()); + Assertions.assertEquals("kpikadrgvt", model.name()); + Assertions.assertEquals("gnbuy", model.subscriptionId()); + Assertions.assertEquals("ijggmebfsiar", model.resourceGroup()); + Assertions.assertEquals(MessagePayloadFormat.NONE, model.messagePayloadFormat()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RoutingEventHubProperties model = new RoutingEventHubProperties().withId("yvshxmz") - .withConnectionString("bzoggigrx") - .withEndpointUri("ur") - .withEntityPath("xxjnspydptk") - .withAuthenticationType(AuthenticationType.KEY_BASED) - .withIdentity(new ManagedIdentity().withUserAssignedIdentity("uknvudwti")) - .withName("kbldngkpocipa") - .withSubscriptionId("xoegukgjnpiucgy") - .withResourceGroup("vqzntypmrbpizcdr"); + RoutingEventHubProperties model = new RoutingEventHubProperties().withId("eh") + .withConnectionString("vecxgodebfqkk") + .withEndpointUri("mpukgriw") + .withEntityPath("zlfbxzpuzycispnq") + .withAuthenticationType(AuthenticationType.IDENTITY_BASED) + .withIdentity(new ManagedIdentity().withUserAssignedIdentity("kbrpyydhibnuq")) + .withName("kpikadrgvt") + .withSubscriptionId("gnbuy") + .withResourceGroup("ijggmebfsiar") + .withMessagePayloadFormat(MessagePayloadFormat.NONE); model = BinaryData.fromObject(model).toObject(RoutingEventHubProperties.class); - Assertions.assertEquals("yvshxmz", model.id()); - Assertions.assertEquals("bzoggigrx", model.connectionString()); - Assertions.assertEquals("ur", model.endpointUri()); - Assertions.assertEquals("xxjnspydptk", model.entityPath()); - Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType()); - Assertions.assertEquals("uknvudwti", model.identity().userAssignedIdentity()); - Assertions.assertEquals("kbldngkpocipa", model.name()); - Assertions.assertEquals("xoegukgjnpiucgy", model.subscriptionId()); - Assertions.assertEquals("vqzntypmrbpizcdr", model.resourceGroup()); + Assertions.assertEquals("eh", model.id()); + Assertions.assertEquals("vecxgodebfqkk", model.connectionString()); + Assertions.assertEquals("mpukgriw", model.endpointUri()); + Assertions.assertEquals("zlfbxzpuzycispnq", model.entityPath()); + Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType()); + Assertions.assertEquals("kbrpyydhibnuq", model.identity().userAssignedIdentity()); + Assertions.assertEquals("kpikadrgvt", model.name()); + Assertions.assertEquals("gnbuy", model.subscriptionId()); + Assertions.assertEquals("ijggmebfsiar", model.resourceGroup()); + Assertions.assertEquals(MessagePayloadFormat.NONE, model.messagePayloadFormat()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingEventStreamPropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingEventStreamPropertiesTests.java index d1a5b71496e9a..ee42b8e752a8f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingEventStreamPropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingEventStreamPropertiesTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.iothub.models.EventStreamAuthenticationType; import com.azure.resourcemanager.iothub.models.ManagedIdentity; +import com.azure.resourcemanager.iothub.models.MessagePayloadFormat; import com.azure.resourcemanager.iothub.models.RoutingEventStreamProperties; import org.junit.jupiter.api.Assertions; @@ -14,36 +15,39 @@ public final class RoutingEventStreamPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RoutingEventStreamProperties model = BinaryData.fromString( - "{\"name\":\"frzpwvlqdqgb\",\"id\":\"ylihkaetckt\",\"endpointUri\":\"fcivfsnkym\",\"entityPath\":\"ctq\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"brjcxe\"},\"workspaceId\":\"uwutttxfvjrbi\",\"eventStreamId\":\"hxepcyvahfnlj\",\"sourceId\":\"qxj\"}") + "{\"name\":\"tsdbpgn\",\"id\":\"txhp\",\"endpointUri\":\"xbzpfzab\",\"entityPath\":\"lcuhxwtctyqiklb\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"wzbhvgyugu\"},\"workspaceId\":\"vmkfssxqu\",\"eventStreamId\":\"fpl\",\"sourceId\":\"gsxnkjzkdeslpv\",\"messagePayloadFormat\":\"DOObservationV1\"}") .toObject(RoutingEventStreamProperties.class); - Assertions.assertEquals("frzpwvlqdqgb", model.name()); - Assertions.assertEquals("fcivfsnkym", model.endpointUri()); - Assertions.assertEquals("ctq", model.entityPath()); + Assertions.assertEquals("tsdbpgn", model.name()); + Assertions.assertEquals("xbzpfzab", model.endpointUri()); + Assertions.assertEquals("lcuhxwtctyqiklb", model.entityPath()); Assertions.assertEquals(EventStreamAuthenticationType.IDENTITY_BASED, model.authenticationType()); - Assertions.assertEquals("brjcxe", model.identity().userAssignedIdentity()); - Assertions.assertEquals("uwutttxfvjrbi", model.workspaceId()); - Assertions.assertEquals("hxepcyvahfnlj", model.eventStreamId()); - Assertions.assertEquals("qxj", model.sourceId()); + Assertions.assertEquals("wzbhvgyugu", model.identity().userAssignedIdentity()); + Assertions.assertEquals("vmkfssxqu", model.workspaceId()); + Assertions.assertEquals("fpl", model.eventStreamId()); + Assertions.assertEquals("gsxnkjzkdeslpv", model.sourceId()); + Assertions.assertEquals(MessagePayloadFormat.DOOBSERVATION_V1, model.messagePayloadFormat()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RoutingEventStreamProperties model = new RoutingEventStreamProperties().withName("frzpwvlqdqgb") - .withEndpointUri("fcivfsnkym") - .withEntityPath("ctq") + RoutingEventStreamProperties model = new RoutingEventStreamProperties().withName("tsdbpgn") + .withEndpointUri("xbzpfzab") + .withEntityPath("lcuhxwtctyqiklb") .withAuthenticationType(EventStreamAuthenticationType.IDENTITY_BASED) - .withIdentity(new ManagedIdentity().withUserAssignedIdentity("brjcxe")) - .withWorkspaceId("uwutttxfvjrbi") - .withEventStreamId("hxepcyvahfnlj") - .withSourceId("qxj"); + .withIdentity(new ManagedIdentity().withUserAssignedIdentity("wzbhvgyugu")) + .withWorkspaceId("vmkfssxqu") + .withEventStreamId("fpl") + .withSourceId("gsxnkjzkdeslpv") + .withMessagePayloadFormat(MessagePayloadFormat.DOOBSERVATION_V1); model = BinaryData.fromObject(model).toObject(RoutingEventStreamProperties.class); - Assertions.assertEquals("frzpwvlqdqgb", model.name()); - Assertions.assertEquals("fcivfsnkym", model.endpointUri()); - Assertions.assertEquals("ctq", model.entityPath()); + Assertions.assertEquals("tsdbpgn", model.name()); + Assertions.assertEquals("xbzpfzab", model.endpointUri()); + Assertions.assertEquals("lcuhxwtctyqiklb", model.entityPath()); Assertions.assertEquals(EventStreamAuthenticationType.IDENTITY_BASED, model.authenticationType()); - Assertions.assertEquals("brjcxe", model.identity().userAssignedIdentity()); - Assertions.assertEquals("uwutttxfvjrbi", model.workspaceId()); - Assertions.assertEquals("hxepcyvahfnlj", model.eventStreamId()); - Assertions.assertEquals("qxj", model.sourceId()); + Assertions.assertEquals("wzbhvgyugu", model.identity().userAssignedIdentity()); + Assertions.assertEquals("vmkfssxqu", model.workspaceId()); + Assertions.assertEquals("fpl", model.eventStreamId()); + Assertions.assertEquals("gsxnkjzkdeslpv", model.sourceId()); + Assertions.assertEquals(MessagePayloadFormat.DOOBSERVATION_V1, model.messagePayloadFormat()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingMessageTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingMessageTests.java index b5b7bd9c8b6e1..bcd5ff82b563d 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingMessageTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingMessageTests.java @@ -14,23 +14,23 @@ public final class RoutingMessageTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RoutingMessage model = BinaryData.fromString( - "{\"body\":\"sgzvahapjyzhpv\",\"appProperties\":{\"gfhzovawjvzunlut\":\"cjrvxdjzlmwlxkv\",\"i\":\"nnprn\",\"tskzbbtdzumveek\":\"eilpjzuaejxdu\",\"uh\":\"pwo\"},\"systemProperties\":{\"uusdttouwa\":\"bsjyofdx\"}}") + "{\"body\":\"aolps\",\"appProperties\":{\"d\":\"lfmmdnbbglzpswi\",\"bzmnvdfznud\":\"cwyhzdxssa\",\"xzb\":\"od\"},\"systemProperties\":{\"hxsrzdzucersc\":\"lylpstdb\",\"iwjmygtdssls\":\"ntnev\",\"emwabnet\":\"tmweriofzpyq\"}}") .toObject(RoutingMessage.class); - Assertions.assertEquals("sgzvahapjyzhpv", model.body()); - Assertions.assertEquals("cjrvxdjzlmwlxkv", model.appProperties().get("gfhzovawjvzunlut")); - Assertions.assertEquals("bsjyofdx", model.systemProperties().get("uusdttouwa")); + Assertions.assertEquals("aolps", model.body()); + Assertions.assertEquals("lfmmdnbbglzpswi", model.appProperties().get("d")); + Assertions.assertEquals("lylpstdb", model.systemProperties().get("hxsrzdzucersc")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RoutingMessage model = new RoutingMessage().withBody("sgzvahapjyzhpv") - .withAppProperties(mapOf("gfhzovawjvzunlut", "cjrvxdjzlmwlxkv", "i", "nnprn", "tskzbbtdzumveek", - "eilpjzuaejxdu", "uh", "pwo")) - .withSystemProperties(mapOf("uusdttouwa", "bsjyofdx")); + RoutingMessage model = new RoutingMessage().withBody("aolps") + .withAppProperties(mapOf("d", "lfmmdnbbglzpswi", "bzmnvdfznud", "cwyhzdxssa", "xzb", "od")) + .withSystemProperties( + mapOf("hxsrzdzucersc", "lylpstdb", "iwjmygtdssls", "ntnev", "emwabnet", "tmweriofzpyq")); model = BinaryData.fromObject(model).toObject(RoutingMessage.class); - Assertions.assertEquals("sgzvahapjyzhpv", model.body()); - Assertions.assertEquals("cjrvxdjzlmwlxkv", model.appProperties().get("gfhzovawjvzunlut")); - Assertions.assertEquals("bsjyofdx", model.systemProperties().get("uusdttouwa")); + Assertions.assertEquals("aolps", model.body()); + Assertions.assertEquals("lfmmdnbbglzpswi", model.appProperties().get("d")); + Assertions.assertEquals("lylpstdb", model.systemProperties().get("hxsrzdzucersc")); } // Use "Map.of" if available diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingServiceBusQueueEndpointPropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingServiceBusQueueEndpointPropertiesTests.java index 5a0922c921c39..3b9a66caecc8a 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingServiceBusQueueEndpointPropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingServiceBusQueueEndpointPropertiesTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.iothub.models.AuthenticationType; import com.azure.resourcemanager.iothub.models.ManagedIdentity; +import com.azure.resourcemanager.iothub.models.MessagePayloadFormat; import com.azure.resourcemanager.iothub.models.RoutingServiceBusQueueEndpointProperties; import org.junit.jupiter.api.Assertions; @@ -14,40 +15,43 @@ public final class RoutingServiceBusQueueEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RoutingServiceBusQueueEndpointProperties model = BinaryData.fromString( - "{\"id\":\"czvyifq\",\"connectionString\":\"kdvjsll\",\"endpointUri\":\"vvdfwatkpnpul\",\"entityPath\":\"xbczwtruwiqz\",\"authenticationType\":\"keyBased\",\"identity\":{\"userAssignedIdentity\":\"ovm\"},\"name\":\"okacspk\",\"subscriptionId\":\"hzdobpxjmflbvvnc\",\"resourceGroup\":\"kcciwwzjuqkhr\"}") + "{\"id\":\"qhgyxzkonocukok\",\"connectionString\":\"axuconuq\",\"endpointUri\":\"fkbey\",\"entityPath\":\"wrmjmwvvjektc\",\"authenticationType\":\"keyBased\",\"identity\":{\"userAssignedIdentity\":\"wlrsffrzpwv\"},\"name\":\"qdqgbi\",\"subscriptionId\":\"lihkaetcktvfc\",\"resourceGroup\":\"fsnkymuctq\",\"messagePayloadFormat\":\"None\"}") .toObject(RoutingServiceBusQueueEndpointProperties.class); - Assertions.assertEquals("czvyifq", model.id()); - Assertions.assertEquals("kdvjsll", model.connectionString()); - Assertions.assertEquals("vvdfwatkpnpul", model.endpointUri()); - Assertions.assertEquals("xbczwtruwiqz", model.entityPath()); + Assertions.assertEquals("qhgyxzkonocukok", model.id()); + Assertions.assertEquals("axuconuq", model.connectionString()); + Assertions.assertEquals("fkbey", model.endpointUri()); + Assertions.assertEquals("wrmjmwvvjektc", model.entityPath()); Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType()); - Assertions.assertEquals("ovm", model.identity().userAssignedIdentity()); - Assertions.assertEquals("okacspk", model.name()); - Assertions.assertEquals("hzdobpxjmflbvvnc", model.subscriptionId()); - Assertions.assertEquals("kcciwwzjuqkhr", model.resourceGroup()); + Assertions.assertEquals("wlrsffrzpwv", model.identity().userAssignedIdentity()); + Assertions.assertEquals("qdqgbi", model.name()); + Assertions.assertEquals("lihkaetcktvfc", model.subscriptionId()); + Assertions.assertEquals("fsnkymuctq", model.resourceGroup()); + Assertions.assertEquals(MessagePayloadFormat.NONE, model.messagePayloadFormat()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RoutingServiceBusQueueEndpointProperties model - = new RoutingServiceBusQueueEndpointProperties().withId("czvyifq") - .withConnectionString("kdvjsll") - .withEndpointUri("vvdfwatkpnpul") - .withEntityPath("xbczwtruwiqz") + = new RoutingServiceBusQueueEndpointProperties().withId("qhgyxzkonocukok") + .withConnectionString("axuconuq") + .withEndpointUri("fkbey") + .withEntityPath("wrmjmwvvjektc") .withAuthenticationType(AuthenticationType.KEY_BASED) - .withIdentity(new ManagedIdentity().withUserAssignedIdentity("ovm")) - .withName("okacspk") - .withSubscriptionId("hzdobpxjmflbvvnc") - .withResourceGroup("kcciwwzjuqkhr"); + .withIdentity(new ManagedIdentity().withUserAssignedIdentity("wlrsffrzpwv")) + .withName("qdqgbi") + .withSubscriptionId("lihkaetcktvfc") + .withResourceGroup("fsnkymuctq") + .withMessagePayloadFormat(MessagePayloadFormat.NONE); model = BinaryData.fromObject(model).toObject(RoutingServiceBusQueueEndpointProperties.class); - Assertions.assertEquals("czvyifq", model.id()); - Assertions.assertEquals("kdvjsll", model.connectionString()); - Assertions.assertEquals("vvdfwatkpnpul", model.endpointUri()); - Assertions.assertEquals("xbczwtruwiqz", model.entityPath()); + Assertions.assertEquals("qhgyxzkonocukok", model.id()); + Assertions.assertEquals("axuconuq", model.connectionString()); + Assertions.assertEquals("fkbey", model.endpointUri()); + Assertions.assertEquals("wrmjmwvvjektc", model.entityPath()); Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType()); - Assertions.assertEquals("ovm", model.identity().userAssignedIdentity()); - Assertions.assertEquals("okacspk", model.name()); - Assertions.assertEquals("hzdobpxjmflbvvnc", model.subscriptionId()); - Assertions.assertEquals("kcciwwzjuqkhr", model.resourceGroup()); + Assertions.assertEquals("wlrsffrzpwv", model.identity().userAssignedIdentity()); + Assertions.assertEquals("qdqgbi", model.name()); + Assertions.assertEquals("lihkaetcktvfc", model.subscriptionId()); + Assertions.assertEquals("fsnkymuctq", model.resourceGroup()); + Assertions.assertEquals(MessagePayloadFormat.NONE, model.messagePayloadFormat()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingServiceBusTopicEndpointPropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingServiceBusTopicEndpointPropertiesTests.java index 5b7a2377c240c..930d33e2d7b14 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingServiceBusTopicEndpointPropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingServiceBusTopicEndpointPropertiesTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.iothub.models.AuthenticationType; import com.azure.resourcemanager.iothub.models.ManagedIdentity; +import com.azure.resourcemanager.iothub.models.MessagePayloadFormat; import com.azure.resourcemanager.iothub.models.RoutingServiceBusTopicEndpointProperties; import org.junit.jupiter.api.Assertions; @@ -14,40 +15,43 @@ public final class RoutingServiceBusTopicEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RoutingServiceBusTopicEndpointProperties model = BinaryData.fromString( - "{\"id\":\"mjmvxieduugidyjr\",\"connectionString\":\"byao\",\"endpointUri\":\"e\",\"entityPath\":\"sonpclhocohs\",\"authenticationType\":\"keyBased\",\"identity\":{\"userAssignedIdentity\":\"eggzfb\"},\"name\":\"hfmvfaxkffe\",\"subscriptionId\":\"th\",\"resourceGroup\":\"m\"}") + "{\"id\":\"uwutttxfvjrbi\",\"connectionString\":\"hxepcyvahfnlj\",\"endpointUri\":\"qxj\",\"entityPath\":\"ujqgidok\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"oxgvclt\"},\"name\":\"gsncghkjeszz\",\"subscriptionId\":\"ijhtxf\",\"resourceGroup\":\"xbf\",\"messagePayloadFormat\":\"None\"}") .toObject(RoutingServiceBusTopicEndpointProperties.class); - Assertions.assertEquals("mjmvxieduugidyjr", model.id()); - Assertions.assertEquals("byao", model.connectionString()); - Assertions.assertEquals("e", model.endpointUri()); - Assertions.assertEquals("sonpclhocohs", model.entityPath()); - Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType()); - Assertions.assertEquals("eggzfb", model.identity().userAssignedIdentity()); - Assertions.assertEquals("hfmvfaxkffe", model.name()); - Assertions.assertEquals("th", model.subscriptionId()); - Assertions.assertEquals("m", model.resourceGroup()); + Assertions.assertEquals("uwutttxfvjrbi", model.id()); + Assertions.assertEquals("hxepcyvahfnlj", model.connectionString()); + Assertions.assertEquals("qxj", model.endpointUri()); + Assertions.assertEquals("ujqgidok", model.entityPath()); + Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType()); + Assertions.assertEquals("oxgvclt", model.identity().userAssignedIdentity()); + Assertions.assertEquals("gsncghkjeszz", model.name()); + Assertions.assertEquals("ijhtxf", model.subscriptionId()); + Assertions.assertEquals("xbf", model.resourceGroup()); + Assertions.assertEquals(MessagePayloadFormat.NONE, model.messagePayloadFormat()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RoutingServiceBusTopicEndpointProperties model - = new RoutingServiceBusTopicEndpointProperties().withId("mjmvxieduugidyjr") - .withConnectionString("byao") - .withEndpointUri("e") - .withEntityPath("sonpclhocohs") - .withAuthenticationType(AuthenticationType.KEY_BASED) - .withIdentity(new ManagedIdentity().withUserAssignedIdentity("eggzfb")) - .withName("hfmvfaxkffe") - .withSubscriptionId("th") - .withResourceGroup("m"); + = new RoutingServiceBusTopicEndpointProperties().withId("uwutttxfvjrbi") + .withConnectionString("hxepcyvahfnlj") + .withEndpointUri("qxj") + .withEntityPath("ujqgidok") + .withAuthenticationType(AuthenticationType.IDENTITY_BASED) + .withIdentity(new ManagedIdentity().withUserAssignedIdentity("oxgvclt")) + .withName("gsncghkjeszz") + .withSubscriptionId("ijhtxf") + .withResourceGroup("xbf") + .withMessagePayloadFormat(MessagePayloadFormat.NONE); model = BinaryData.fromObject(model).toObject(RoutingServiceBusTopicEndpointProperties.class); - Assertions.assertEquals("mjmvxieduugidyjr", model.id()); - Assertions.assertEquals("byao", model.connectionString()); - Assertions.assertEquals("e", model.endpointUri()); - Assertions.assertEquals("sonpclhocohs", model.entityPath()); - Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType()); - Assertions.assertEquals("eggzfb", model.identity().userAssignedIdentity()); - Assertions.assertEquals("hfmvfaxkffe", model.name()); - Assertions.assertEquals("th", model.subscriptionId()); - Assertions.assertEquals("m", model.resourceGroup()); + Assertions.assertEquals("uwutttxfvjrbi", model.id()); + Assertions.assertEquals("hxepcyvahfnlj", model.connectionString()); + Assertions.assertEquals("qxj", model.endpointUri()); + Assertions.assertEquals("ujqgidok", model.entityPath()); + Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType()); + Assertions.assertEquals("oxgvclt", model.identity().userAssignedIdentity()); + Assertions.assertEquals("gsncghkjeszz", model.name()); + Assertions.assertEquals("ijhtxf", model.subscriptionId()); + Assertions.assertEquals("xbf", model.resourceGroup()); + Assertions.assertEquals(MessagePayloadFormat.NONE, model.messagePayloadFormat()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingStorageContainerPropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingStorageContainerPropertiesTests.java index 72d47c798c29d..0d42e051596a1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingStorageContainerPropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingStorageContainerPropertiesTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.iothub.models.AuthenticationType; import com.azure.resourcemanager.iothub.models.ManagedIdentity; +import com.azure.resourcemanager.iothub.models.MessagePayloadFormat; import com.azure.resourcemanager.iothub.models.RoutingStorageContainerProperties; import com.azure.resourcemanager.iothub.models.RoutingStorageContainerPropertiesEncoding; import org.junit.jupiter.api.Assertions; @@ -15,51 +16,54 @@ public final class RoutingStorageContainerPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RoutingStorageContainerProperties model = BinaryData.fromString( - "{\"id\":\"sdpydnfyhxdeoejz\",\"connectionString\":\"w\",\"endpointUri\":\"sjttgzfbish\",\"authenticationType\":\"keyBased\",\"identity\":{\"userAssignedIdentity\":\"jdeyeamdpha\"},\"name\":\"alpbuxwgipwhon\",\"subscriptionId\":\"kgshwa\",\"resourceGroup\":\"ixzbinjeputtmryw\",\"containerName\":\"uzoqft\",\"fileNameFormat\":\"qzrnkcqvyxlwhz\",\"batchFrequencyInSeconds\":658066876,\"maxChunkSizeInBytes\":1153823145,\"encoding\":\"AvroDeflate\"}") + "{\"id\":\"cvpnazzmhjrunmpx\",\"connectionString\":\"dbhrbnlankxm\",\"endpointUri\":\"k\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"btkcxywnytnrsyn\"},\"name\":\"qidybyx\",\"subscriptionId\":\"fclhaaxdbabphlwr\",\"resourceGroup\":\"fkts\",\"containerName\":\"hsucoc\",\"fileNameFormat\":\"yyazttbt\",\"batchFrequencyInSeconds\":279083940,\"maxChunkSizeInBytes\":1710095356,\"encoding\":\"AvroDeflate\",\"messagePayloadFormat\":\"None\"}") .toObject(RoutingStorageContainerProperties.class); - Assertions.assertEquals("sdpydnfyhxdeoejz", model.id()); - Assertions.assertEquals("w", model.connectionString()); - Assertions.assertEquals("sjttgzfbish", model.endpointUri()); - Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType()); - Assertions.assertEquals("jdeyeamdpha", model.identity().userAssignedIdentity()); - Assertions.assertEquals("alpbuxwgipwhon", model.name()); - Assertions.assertEquals("kgshwa", model.subscriptionId()); - Assertions.assertEquals("ixzbinjeputtmryw", model.resourceGroup()); - Assertions.assertEquals("uzoqft", model.containerName()); - Assertions.assertEquals("qzrnkcqvyxlwhz", model.fileNameFormat()); - Assertions.assertEquals(658066876, model.batchFrequencyInSeconds()); - Assertions.assertEquals(1153823145, model.maxChunkSizeInBytes()); + Assertions.assertEquals("cvpnazzmhjrunmpx", model.id()); + Assertions.assertEquals("dbhrbnlankxm", model.connectionString()); + Assertions.assertEquals("k", model.endpointUri()); + Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType()); + Assertions.assertEquals("btkcxywnytnrsyn", model.identity().userAssignedIdentity()); + Assertions.assertEquals("qidybyx", model.name()); + Assertions.assertEquals("fclhaaxdbabphlwr", model.subscriptionId()); + Assertions.assertEquals("fkts", model.resourceGroup()); + Assertions.assertEquals("hsucoc", model.containerName()); + Assertions.assertEquals("yyazttbt", model.fileNameFormat()); + Assertions.assertEquals(279083940, model.batchFrequencyInSeconds()); + Assertions.assertEquals(1710095356, model.maxChunkSizeInBytes()); Assertions.assertEquals(RoutingStorageContainerPropertiesEncoding.AVRO_DEFLATE, model.encoding()); + Assertions.assertEquals(MessagePayloadFormat.NONE, model.messagePayloadFormat()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RoutingStorageContainerProperties model = new RoutingStorageContainerProperties().withId("sdpydnfyhxdeoejz") - .withConnectionString("w") - .withEndpointUri("sjttgzfbish") - .withAuthenticationType(AuthenticationType.KEY_BASED) - .withIdentity(new ManagedIdentity().withUserAssignedIdentity("jdeyeamdpha")) - .withName("alpbuxwgipwhon") - .withSubscriptionId("kgshwa") - .withResourceGroup("ixzbinjeputtmryw") - .withContainerName("uzoqft") - .withFileNameFormat("qzrnkcqvyxlwhz") - .withBatchFrequencyInSeconds(658066876) - .withMaxChunkSizeInBytes(1153823145) - .withEncoding(RoutingStorageContainerPropertiesEncoding.AVRO_DEFLATE); + RoutingStorageContainerProperties model = new RoutingStorageContainerProperties().withId("cvpnazzmhjrunmpx") + .withConnectionString("dbhrbnlankxm") + .withEndpointUri("k") + .withAuthenticationType(AuthenticationType.IDENTITY_BASED) + .withIdentity(new ManagedIdentity().withUserAssignedIdentity("btkcxywnytnrsyn")) + .withName("qidybyx") + .withSubscriptionId("fclhaaxdbabphlwr") + .withResourceGroup("fkts") + .withContainerName("hsucoc") + .withFileNameFormat("yyazttbt") + .withBatchFrequencyInSeconds(279083940) + .withMaxChunkSizeInBytes(1710095356) + .withEncoding(RoutingStorageContainerPropertiesEncoding.AVRO_DEFLATE) + .withMessagePayloadFormat(MessagePayloadFormat.NONE); model = BinaryData.fromObject(model).toObject(RoutingStorageContainerProperties.class); - Assertions.assertEquals("sdpydnfyhxdeoejz", model.id()); - Assertions.assertEquals("w", model.connectionString()); - Assertions.assertEquals("sjttgzfbish", model.endpointUri()); - Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType()); - Assertions.assertEquals("jdeyeamdpha", model.identity().userAssignedIdentity()); - Assertions.assertEquals("alpbuxwgipwhon", model.name()); - Assertions.assertEquals("kgshwa", model.subscriptionId()); - Assertions.assertEquals("ixzbinjeputtmryw", model.resourceGroup()); - Assertions.assertEquals("uzoqft", model.containerName()); - Assertions.assertEquals("qzrnkcqvyxlwhz", model.fileNameFormat()); - Assertions.assertEquals(658066876, model.batchFrequencyInSeconds()); - Assertions.assertEquals(1153823145, model.maxChunkSizeInBytes()); + Assertions.assertEquals("cvpnazzmhjrunmpx", model.id()); + Assertions.assertEquals("dbhrbnlankxm", model.connectionString()); + Assertions.assertEquals("k", model.endpointUri()); + Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType()); + Assertions.assertEquals("btkcxywnytnrsyn", model.identity().userAssignedIdentity()); + Assertions.assertEquals("qidybyx", model.name()); + Assertions.assertEquals("fclhaaxdbabphlwr", model.subscriptionId()); + Assertions.assertEquals("fkts", model.resourceGroup()); + Assertions.assertEquals("hsucoc", model.containerName()); + Assertions.assertEquals("yyazttbt", model.fileNameFormat()); + Assertions.assertEquals(279083940, model.batchFrequencyInSeconds()); + Assertions.assertEquals(1710095356, model.maxChunkSizeInBytes()); Assertions.assertEquals(RoutingStorageContainerPropertiesEncoding.AVRO_DEFLATE, model.encoding()); + Assertions.assertEquals(MessagePayloadFormat.NONE, model.messagePayloadFormat()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingTwinPropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingTwinPropertiesTests.java index be16bb7154576..754d23afd76bc 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingTwinPropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingTwinPropertiesTests.java @@ -11,14 +11,14 @@ public final class RoutingTwinPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RoutingTwinProperties model - = BinaryData.fromString("{\"desired\":\"\\\"datajpkiidzyexznelix\\\"\",\"reported\":\"\\\"datarzt\\\"\"}") + = BinaryData.fromString("{\"desired\":\"\\\"datapjflcxogao\\\"\",\"reported\":\"\\\"datanzmnsikvm\\\"\"}") .toObject(RoutingTwinProperties.class); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RoutingTwinProperties model - = new RoutingTwinProperties().withDesired("\"datajpkiidzyexznelix\"").withReported("\"datarzt\""); + = new RoutingTwinProperties().withDesired("\"datapjflcxogao\"").withReported("\"datanzmnsikvm\""); model = BinaryData.fromObject(model).toObject(RoutingTwinProperties.class); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingTwinTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingTwinTests.java index 79e881a6ff12e..738ba6dd9eda4 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingTwinTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/RoutingTwinTests.java @@ -12,15 +12,14 @@ public final class RoutingTwinTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RoutingTwin model = BinaryData.fromString( - "{\"tags\":\"\\\"dataekqvkeln\\\"\",\"properties\":{\"desired\":\"\\\"databxwyjsflhhcaa\\\"\",\"reported\":\"\\\"datajixisxyawjoyaqcs\\\"\"}}") + "{\"tags\":\"\\\"datahszhedplvwiwu\\\"\",\"properties\":{\"desired\":\"\\\"datambes\\\"\",\"reported\":\"\\\"datankww\\\"\"}}") .toObject(RoutingTwin.class); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RoutingTwin model = new RoutingTwin().withTags("\"dataekqvkeln\"") - .withProperties(new RoutingTwinProperties().withDesired("\"databxwyjsflhhcaa\"") - .withReported("\"datajixisxyawjoyaqcs\"")); + RoutingTwin model = new RoutingTwin().withTags("\"datahszhedplvwiwu\"") + .withProperties(new RoutingTwinProperties().withDesired("\"datambes\"").withReported("\"datankww\"")); model = BinaryData.fromObject(model).toObject(RoutingTwin.class); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/StorageEndpointPropertiesTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/StorageEndpointPropertiesTests.java index 03552d463e170..ab80e8f33237f 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/StorageEndpointPropertiesTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/StorageEndpointPropertiesTests.java @@ -15,28 +15,28 @@ public final class StorageEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { StorageEndpointProperties model = BinaryData.fromString( - "{\"sasTtlAsIso8601\":\"PT7H27M17S\",\"connectionString\":\"gmebfsiarbutrcv\",\"containerName\":\"na\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"runmp\"}}") + "{\"sasTtlAsIso8601\":\"PT26H49M41S\",\"connectionString\":\"bttk\",\"containerName\":\"h\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"jtoqne\"}}") .toObject(StorageEndpointProperties.class); - Assertions.assertEquals(Duration.parse("PT7H27M17S"), model.sasTtlAsIso8601()); - Assertions.assertEquals("gmebfsiarbutrcv", model.connectionString()); - Assertions.assertEquals("na", model.containerName()); + Assertions.assertEquals(Duration.parse("PT26H49M41S"), model.sasTtlAsIso8601()); + Assertions.assertEquals("bttk", model.connectionString()); + Assertions.assertEquals("h", model.containerName()); Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType()); - Assertions.assertEquals("runmp", model.identity().userAssignedIdentity()); + Assertions.assertEquals("jtoqne", model.identity().userAssignedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { StorageEndpointProperties model - = new StorageEndpointProperties().withSasTtlAsIso8601(Duration.parse("PT7H27M17S")) - .withConnectionString("gmebfsiarbutrcv") - .withContainerName("na") + = new StorageEndpointProperties().withSasTtlAsIso8601(Duration.parse("PT26H49M41S")) + .withConnectionString("bttk") + .withContainerName("h") .withAuthenticationType(AuthenticationType.IDENTITY_BASED) - .withIdentity(new ManagedIdentity().withUserAssignedIdentity("runmp")); + .withIdentity(new ManagedIdentity().withUserAssignedIdentity("jtoqne")); model = BinaryData.fromObject(model).toObject(StorageEndpointProperties.class); - Assertions.assertEquals(Duration.parse("PT7H27M17S"), model.sasTtlAsIso8601()); - Assertions.assertEquals("gmebfsiarbutrcv", model.connectionString()); - Assertions.assertEquals("na", model.containerName()); + Assertions.assertEquals(Duration.parse("PT26H49M41S"), model.sasTtlAsIso8601()); + Assertions.assertEquals("bttk", model.connectionString()); + Assertions.assertEquals("h", model.containerName()); Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType()); - Assertions.assertEquals("runmp", model.identity().userAssignedIdentity()); + Assertions.assertEquals("jtoqne", model.identity().userAssignedIdentity()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TagsResourceTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TagsResourceTests.java index f67a428cfe3e7..c46fb9fd30c39 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TagsResourceTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TagsResourceTests.java @@ -14,17 +14,17 @@ public final class TagsResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TagsResource model = BinaryData.fromString( - "{\"tags\":{\"ss\":\"osvmk\",\"gmgsxnkjzkde\":\"qukkfp\",\"yighxpk\":\"lpvlopw\",\"baumnyqupedeoj\":\"wzbaiue\"}}") + "{\"tags\":{\"loayqcgw\":\"egibtnmxiebww\",\"gmtsavjcbpwxqpsr\":\"tzjuzgwyzmhtxo\",\"mdyvxqtayriw\":\"nftguvriuhpr\",\"qbex\":\"ro\"}}") .toObject(TagsResource.class); - Assertions.assertEquals("osvmk", model.tags().get("ss")); + Assertions.assertEquals("egibtnmxiebww", model.tags().get("loayqcgw")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TagsResource model = new TagsResource().withTags( - mapOf("ss", "osvmk", "gmgsxnkjzkde", "qukkfp", "yighxpk", "lpvlopw", "baumnyqupedeoj", "wzbaiue")); + TagsResource model = new TagsResource().withTags(mapOf("loayqcgw", "egibtnmxiebww", "gmtsavjcbpwxqpsr", + "tzjuzgwyzmhtxo", "mdyvxqtayriw", "nftguvriuhpr", "qbex", "ro")); model = BinaryData.fromObject(model).toObject(TagsResource.class); - Assertions.assertEquals("osvmk", model.tags().get("ss")); + Assertions.assertEquals("egibtnmxiebww", model.tags().get("loayqcgw")); } // Use "Map.of" if available diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestAllRoutesInputTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestAllRoutesInputTests.java index 94b16f0bad41d..32ffeeb25a8f9 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestAllRoutesInputTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestAllRoutesInputTests.java @@ -18,28 +18,29 @@ public final class TestAllRoutesInputTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TestAllRoutesInput model = BinaryData.fromString( - "{\"routingSource\":\"TwinChangeEvents\",\"message\":{\"body\":\"qcgw\",\"appProperties\":{\"zg\":\"j\",\"txon\":\"yzm\"},\"systemProperties\":{\"knftguvriuh\":\"savjcbpwxqps\"}},\"twin\":{\"tags\":\"\\\"datamdyvxqtayriw\\\"\",\"properties\":{\"desired\":\"\\\"datayqbexrmcqibycno\\\"\",\"reported\":\"\\\"dataknme\\\"\"}}}") + "{\"routingSource\":\"DeviceLifecycleEvents\",\"message\":{\"body\":\"xc\",\"appProperties\":{\"uvwbhsqfs\":\"fovasr\",\"bsrfbj\":\"bcgjbirxbp\",\"otftpvjzbexilz\":\"dtws\",\"qtaruoujmkcjhwq\":\"nfqqnvwp\"},\"systemProperties\":{\"bnw\":\"r\",\"enq\":\"ewgdrjervn\",\"ndoygmifthnzdnd\":\"eh\",\"nayqi\":\"l\"}},\"twin\":{\"tags\":\"\\\"dataduhavhqlkt\\\"\",\"properties\":{\"desired\":\"\\\"dataaqolbgycduiertg\\\"\",\"reported\":\"\\\"datay\\\"\"}}}") .toObject(TestAllRoutesInput.class); - Assertions.assertEquals(RoutingSource.TWIN_CHANGE_EVENTS, model.routingSource()); - Assertions.assertEquals("qcgw", model.message().body()); - Assertions.assertEquals("j", model.message().appProperties().get("zg")); - Assertions.assertEquals("savjcbpwxqps", model.message().systemProperties().get("knftguvriuh")); + Assertions.assertEquals(RoutingSource.DEVICE_LIFECYCLE_EVENTS, model.routingSource()); + Assertions.assertEquals("xc", model.message().body()); + Assertions.assertEquals("fovasr", model.message().appProperties().get("uvwbhsqfs")); + Assertions.assertEquals("r", model.message().systemProperties().get("bnw")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TestAllRoutesInput model = new TestAllRoutesInput().withRoutingSource(RoutingSource.TWIN_CHANGE_EVENTS) - .withMessage(new RoutingMessage().withBody("qcgw") - .withAppProperties(mapOf("zg", "j", "txon", "yzm")) - .withSystemProperties(mapOf("knftguvriuh", "savjcbpwxqps"))) - .withTwin(new RoutingTwin().withTags("\"datamdyvxqtayriw\"") + TestAllRoutesInput model = new TestAllRoutesInput().withRoutingSource(RoutingSource.DEVICE_LIFECYCLE_EVENTS) + .withMessage(new RoutingMessage().withBody("xc") + .withAppProperties(mapOf("uvwbhsqfs", "fovasr", "bsrfbj", "bcgjbirxbp", "otftpvjzbexilz", "dtws", + "qtaruoujmkcjhwq", "nfqqnvwp")) + .withSystemProperties(mapOf("bnw", "r", "enq", "ewgdrjervn", "ndoygmifthnzdnd", "eh", "nayqi", "l"))) + .withTwin(new RoutingTwin().withTags("\"dataduhavhqlkt\"") .withProperties( - new RoutingTwinProperties().withDesired("\"datayqbexrmcqibycno\"").withReported("\"dataknme\""))); + new RoutingTwinProperties().withDesired("\"dataaqolbgycduiertg\"").withReported("\"datay\""))); model = BinaryData.fromObject(model).toObject(TestAllRoutesInput.class); - Assertions.assertEquals(RoutingSource.TWIN_CHANGE_EVENTS, model.routingSource()); - Assertions.assertEquals("qcgw", model.message().body()); - Assertions.assertEquals("j", model.message().appProperties().get("zg")); - Assertions.assertEquals("savjcbpwxqps", model.message().systemProperties().get("knftguvriuh")); + Assertions.assertEquals(RoutingSource.DEVICE_LIFECYCLE_EVENTS, model.routingSource()); + Assertions.assertEquals("xc", model.message().body()); + Assertions.assertEquals("fovasr", model.message().appProperties().get("uvwbhsqfs")); + Assertions.assertEquals("r", model.message().systemProperties().get("bnw")); } // Use "Map.of" if available diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestAllRoutesResultInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestAllRoutesResultInnerTests.java index 5941506806d0b..37741dc7348bf 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestAllRoutesResultInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestAllRoutesResultInnerTests.java @@ -13,12 +13,13 @@ public final class TestAllRoutesResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TestAllRoutesResultInner model = BinaryData.fromString( - "{\"routes\":[{\"properties\":{\"name\":\"bnxknalaulppg\",\"source\":\"MqttBrokerMessages\",\"condition\":\"pnapnyiropuh\",\"endpointNames\":[\"gvpgy\",\"gqgitxmedjvcsl\"],\"isEnabled\":false}},{\"properties\":{\"name\":\"wwncwzzhxgk\",\"source\":\"DeviceLifecycleEvents\",\"condition\":\"gucnapkte\",\"endpointNames\":[\"llwptfdy\",\"pfqbuaceopzf\",\"rhhuaopppcqeqx\"],\"isEnabled\":true}}]}") + "{\"routes\":[{\"properties\":{\"name\":\"qqkdltfzxmhhvhgu\",\"source\":\"DeviceJobLifecycleEvents\",\"condition\":\"dkwobdagx\",\"dataSchema\":\"bqdxbx\",\"endpointNames\":[\"kbogqxndlkzgx\",\"uriplbpodxunkb\",\"bxmubyynt\",\"lrb\"],\"isEnabled\":true}}]}") .toObject(TestAllRoutesResultInner.class); - Assertions.assertEquals("bnxknalaulppg", model.routes().get(0).properties().name()); - Assertions.assertEquals(RoutingSource.MQTT_BROKER_MESSAGES, model.routes().get(0).properties().source()); - Assertions.assertEquals("pnapnyiropuh", model.routes().get(0).properties().condition()); - Assertions.assertEquals("gvpgy", model.routes().get(0).properties().endpointNames().get(0)); - Assertions.assertFalse(model.routes().get(0).properties().isEnabled()); + Assertions.assertEquals("qqkdltfzxmhhvhgu", model.routes().get(0).properties().name()); + Assertions.assertEquals(RoutingSource.DEVICE_JOB_LIFECYCLE_EVENTS, model.routes().get(0).properties().source()); + Assertions.assertEquals("dkwobdagx", model.routes().get(0).properties().condition()); + Assertions.assertEquals("bqdxbx", model.routes().get(0).properties().dataSchema()); + Assertions.assertEquals("kbogqxndlkzgx", model.routes().get(0).properties().endpointNames().get(0)); + Assertions.assertTrue(model.routes().get(0).properties().isEnabled()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteInputTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteInputTests.java index 3cfed551f6d9d..3fbf70c724a20 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteInputTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteInputTests.java @@ -20,41 +20,45 @@ public final class TestRouteInputTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TestRouteInput model = BinaryData.fromString( - "{\"message\":{\"body\":\"jy\",\"appProperties\":{\"xqzvszjfa\":\"xxjyngudivkrtsw\"},\"systemProperties\":{\"qmcbxvwvxyslqbhs\":\"fdxxivetvtcqaqtd\"}},\"route\":{\"name\":\"xoblytkbl\",\"source\":\"Invalid\",\"condition\":\"wwwfbkr\",\"endpointNames\":[\"nsvs\"],\"isEnabled\":false},\"twin\":{\"tags\":\"\\\"datahxcr\\\"\",\"properties\":{\"desired\":\"\\\"dataovasrruvwbhsqfsu\\\"\",\"reported\":\"\\\"datagjb\\\"\"}}}") + "{\"message\":{\"body\":\"kfgohdneue\",\"appProperties\":{\"htozfikdow\":\"hsd\",\"ithhqzon\":\"quuvxzxcl\"},\"systemProperties\":{\"ka\":\"gbhcohfwdsj\",\"dkzzewkfvhqcrail\":\"jutiiswacff\",\"rwdmhdlxyjrxsa\":\"pnppfuf\"}},\"route\":{\"name\":\"afcnih\",\"source\":\"DeviceConnectionStateEvents\",\"condition\":\"apnedgfbcvkc\",\"dataSchema\":\"vpk\",\"endpointNames\":[\"dcvd\",\"hvoodsotbobzd\",\"pcjwv\"],\"isEnabled\":true},\"twin\":{\"tags\":\"\\\"datad\\\"\",\"properties\":{\"desired\":\"\\\"dataxcxrsl\\\"\",\"reported\":\"\\\"datautwu\\\"\"}}}") .toObject(TestRouteInput.class); - Assertions.assertEquals("jy", model.message().body()); - Assertions.assertEquals("xxjyngudivkrtsw", model.message().appProperties().get("xqzvszjfa")); - Assertions.assertEquals("fdxxivetvtcqaqtd", model.message().systemProperties().get("qmcbxvwvxyslqbhs")); - Assertions.assertEquals("xoblytkbl", model.route().name()); - Assertions.assertEquals(RoutingSource.INVALID, model.route().source()); - Assertions.assertEquals("wwwfbkr", model.route().condition()); - Assertions.assertEquals("nsvs", model.route().endpointNames().get(0)); - Assertions.assertFalse(model.route().isEnabled()); + Assertions.assertEquals("kfgohdneue", model.message().body()); + Assertions.assertEquals("hsd", model.message().appProperties().get("htozfikdow")); + Assertions.assertEquals("gbhcohfwdsj", model.message().systemProperties().get("ka")); + Assertions.assertEquals("afcnih", model.route().name()); + Assertions.assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.route().source()); + Assertions.assertEquals("apnedgfbcvkc", model.route().condition()); + Assertions.assertEquals("vpk", model.route().dataSchema()); + Assertions.assertEquals("dcvd", model.route().endpointNames().get(0)); + Assertions.assertTrue(model.route().isEnabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { TestRouteInput model = new TestRouteInput() - .withMessage(new RoutingMessage().withBody("jy") - .withAppProperties(mapOf("xqzvszjfa", "xxjyngudivkrtsw")) - .withSystemProperties(mapOf("qmcbxvwvxyslqbhs", "fdxxivetvtcqaqtd"))) - .withRoute(new RouteProperties().withName("xoblytkbl") - .withSource(RoutingSource.INVALID) - .withCondition("wwwfbkr") - .withEndpointNames(Arrays.asList("nsvs")) - .withIsEnabled(false)) - .withTwin(new RoutingTwin().withTags("\"datahxcr\"") + .withMessage(new RoutingMessage().withBody("kfgohdneue") + .withAppProperties(mapOf("htozfikdow", "hsd", "ithhqzon", "quuvxzxcl")) + .withSystemProperties( + mapOf("ka", "gbhcohfwdsj", "dkzzewkfvhqcrail", "jutiiswacff", "rwdmhdlxyjrxsa", "pnppfuf"))) + .withRoute(new RouteProperties().withName("afcnih") + .withSource(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS) + .withCondition("apnedgfbcvkc") + .withDataSchema("vpk") + .withEndpointNames(Arrays.asList("dcvd", "hvoodsotbobzd", "pcjwv")) + .withIsEnabled(true)) + .withTwin(new RoutingTwin().withTags("\"datad\"") .withProperties( - new RoutingTwinProperties().withDesired("\"dataovasrruvwbhsqfsu\"").withReported("\"datagjb\""))); + new RoutingTwinProperties().withDesired("\"dataxcxrsl\"").withReported("\"datautwu\""))); model = BinaryData.fromObject(model).toObject(TestRouteInput.class); - Assertions.assertEquals("jy", model.message().body()); - Assertions.assertEquals("xxjyngudivkrtsw", model.message().appProperties().get("xqzvszjfa")); - Assertions.assertEquals("fdxxivetvtcqaqtd", model.message().systemProperties().get("qmcbxvwvxyslqbhs")); - Assertions.assertEquals("xoblytkbl", model.route().name()); - Assertions.assertEquals(RoutingSource.INVALID, model.route().source()); - Assertions.assertEquals("wwwfbkr", model.route().condition()); - Assertions.assertEquals("nsvs", model.route().endpointNames().get(0)); - Assertions.assertFalse(model.route().isEnabled()); + Assertions.assertEquals("kfgohdneue", model.message().body()); + Assertions.assertEquals("hsd", model.message().appProperties().get("htozfikdow")); + Assertions.assertEquals("gbhcohfwdsj", model.message().systemProperties().get("ka")); + Assertions.assertEquals("afcnih", model.route().name()); + Assertions.assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.route().source()); + Assertions.assertEquals("apnedgfbcvkc", model.route().condition()); + Assertions.assertEquals("vpk", model.route().dataSchema()); + Assertions.assertEquals("dcvd", model.route().endpointNames().get(0)); + Assertions.assertTrue(model.route().isEnabled()); } // Use "Map.of" if available diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteResultDetailsTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteResultDetailsTests.java index d98f036fba3bc..b9f0247470bee 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteResultDetailsTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteResultDetailsTests.java @@ -13,13 +13,13 @@ public final class TestRouteResultDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TestRouteResultDetails model = BinaryData.fromString( - "{\"compilationErrors\":[{\"message\":\"qig\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":924939472,\"column\":1204451627},\"end\":{\"line\":1323029416,\"column\":918393543}}},{\"message\":\"aqolbgycduiertg\",\"severity\":\"error\",\"location\":{\"start\":{\"line\":50940581,\"column\":76010479},\"end\":{\"line\":1282949861,\"column\":1696619816}}},{\"message\":\"mmdnbbglzps\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":1596263349,\"column\":695462376},\"end\":{\"line\":900770190,\"column\":1311226680}}}]}") + "{\"compilationErrors\":[{\"message\":\"sbpfvmwyhr\",\"severity\":\"error\",\"location\":{\"start\":{\"line\":892669790,\"column\":1378791233},\"end\":{\"line\":1662588727,\"column\":1209208693}}}]}") .toObject(TestRouteResultDetails.class); - Assertions.assertEquals("qig", model.compilationErrors().get(0).message()); - Assertions.assertEquals(RouteErrorSeverity.WARNING, model.compilationErrors().get(0).severity()); - Assertions.assertEquals(924939472, model.compilationErrors().get(0).location().start().line()); - Assertions.assertEquals(1204451627, model.compilationErrors().get(0).location().start().column()); - Assertions.assertEquals(1323029416, model.compilationErrors().get(0).location().end().line()); - Assertions.assertEquals(918393543, model.compilationErrors().get(0).location().end().column()); + Assertions.assertEquals("sbpfvmwyhr", model.compilationErrors().get(0).message()); + Assertions.assertEquals(RouteErrorSeverity.ERROR, model.compilationErrors().get(0).severity()); + Assertions.assertEquals(892669790, model.compilationErrors().get(0).location().start().line()); + Assertions.assertEquals(1378791233, model.compilationErrors().get(0).location().start().column()); + Assertions.assertEquals(1662588727, model.compilationErrors().get(0).location().end().line()); + Assertions.assertEquals(1209208693, model.compilationErrors().get(0).location().end().column()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteResultInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteResultInnerTests.java index 9a5a5d098b990..47973a19d6ec1 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteResultInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TestRouteResultInnerTests.java @@ -14,14 +14,14 @@ public final class TestRouteResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TestRouteResultInner model = BinaryData.fromString( - "{\"result\":\"false\",\"details\":{\"compilationErrors\":[{\"message\":\"srfbjfdtwss\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":874148827,\"column\":1235013026},\"end\":{\"line\":1057432086,\"column\":1579331831}}},{\"message\":\"nfqqnvwp\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":1284168772,\"column\":623539244},\"end\":{\"line\":1203309297,\"column\":1426920839}}},{\"message\":\"qytjrybnwjewgd\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":604177419,\"column\":1214178064},\"end\":{\"line\":305613807,\"column\":1479768723}}},{\"message\":\"doy\",\"severity\":\"error\",\"location\":{\"start\":{\"line\":372150678,\"column\":132200951},\"end\":{\"line\":294736838,\"column\":962281735}}}]}}") + "{\"result\":\"true\",\"details\":{\"compilationErrors\":[{\"message\":\"jw\",\"severity\":\"error\",\"location\":{\"start\":{\"line\":1223383690,\"column\":1520508800},\"end\":{\"line\":1043474675,\"column\":1810528552}}},{\"message\":\"zl\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":1259176673,\"column\":950726192},\"end\":{\"line\":1745081298,\"column\":843823748}}}]}}") .toObject(TestRouteResultInner.class); - Assertions.assertEquals(TestResultStatus.FALSE, model.result()); - Assertions.assertEquals("srfbjfdtwss", model.details().compilationErrors().get(0).message()); - Assertions.assertEquals(RouteErrorSeverity.WARNING, model.details().compilationErrors().get(0).severity()); - Assertions.assertEquals(874148827, model.details().compilationErrors().get(0).location().start().line()); - Assertions.assertEquals(1235013026, model.details().compilationErrors().get(0).location().start().column()); - Assertions.assertEquals(1057432086, model.details().compilationErrors().get(0).location().end().line()); - Assertions.assertEquals(1579331831, model.details().compilationErrors().get(0).location().end().column()); + Assertions.assertEquals(TestResultStatus.TRUE, model.result()); + Assertions.assertEquals("jw", model.details().compilationErrors().get(0).message()); + Assertions.assertEquals(RouteErrorSeverity.ERROR, model.details().compilationErrors().get(0).severity()); + Assertions.assertEquals(1223383690, model.details().compilationErrors().get(0).location().start().line()); + Assertions.assertEquals(1520508800, model.details().compilationErrors().get(0).location().start().column()); + Assertions.assertEquals(1043474675, model.details().compilationErrors().get(0).location().end().line()); + Assertions.assertEquals(1810528552, model.details().compilationErrors().get(0).location().end().column()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TopicGroupTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TopicGroupTests.java new file mode 100644 index 0000000000000..5a636fec9fd04 --- /dev/null +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/TopicGroupTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.iothub.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.iothub.models.TopicGroup; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class TopicGroupTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + TopicGroup model + = BinaryData.fromString("{\"topicGroupId\":\"ahvljuaha\",\"topicTemplates\":[\"c\",\"hmdua\",\"aex\"]}") + .toObject(TopicGroup.class); + Assertions.assertEquals("ahvljuaha", model.topicGroupId()); + Assertions.assertEquals("c", model.topicTemplates().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + TopicGroup model + = new TopicGroup().withTopicGroupId("ahvljuaha").withTopicTemplates(Arrays.asList("c", "hmdua", "aex")); + model = BinaryData.fromObject(model).toObject(TopicGroup.class); + Assertions.assertEquals("ahvljuaha", model.topicGroupId()); + Assertions.assertEquals("c", model.topicTemplates().get(0)); + } +} diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/UserSubscriptionQuotaListResultInnerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/UserSubscriptionQuotaListResultInnerTests.java index e4a88b8a48720..1e25fdb691aa7 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/UserSubscriptionQuotaListResultInnerTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/UserSubscriptionQuotaListResultInnerTests.java @@ -12,14 +12,14 @@ public final class UserSubscriptionQuotaListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserSubscriptionQuotaListResultInner model = BinaryData.fromString( - "{\"value\":[{\"id\":\"feaenwab\",\"type\":\"tkl\",\"unit\":\"xbjhwuaanozjosph\",\"currentValue\":1172987793,\"limit\":2134334822,\"name\":{\"value\":\"v\",\"localizedValue\":\"glrvimjwosytxi\"}},{\"id\":\"skfc\",\"type\":\"qumiek\",\"unit\":\"zzikhlyfjhdg\",\"currentValue\":757390701,\"limit\":558583308,\"name\":{\"value\":\"nyga\",\"localizedValue\":\"idb\"}},{\"id\":\"atpxl\",\"type\":\"xcyjmoadsuvarmy\",\"unit\":\"mjsjqb\",\"currentValue\":1682275079,\"limit\":249171205,\"name\":{\"value\":\"wlycoduhpkxkg\",\"localizedValue\":\"areqna\"}},{\"id\":\"qugjhkycube\",\"type\":\"gssofwq\",\"unit\":\"qal\",\"currentValue\":1473869810,\"limit\":1723578922,\"name\":{\"value\":\"pxacqqudfn\",\"localizedValue\":\"xbaaabjyv\"}}],\"nextLink\":\"ffimrzrtuzqogsex\"}") + "{\"value\":[{\"id\":\"ed\",\"type\":\"wwa\",\"unit\":\"kojvd\",\"currentValue\":1248397235,\"limit\":2081099839,\"name\":{\"value\":\"uicybxarzgszuf\",\"localizedValue\":\"ciqopidoa\"}}],\"nextLink\":\"iodhkhazxkhnz\"}") .toObject(UserSubscriptionQuotaListResultInner.class); - Assertions.assertEquals("feaenwab", model.value().get(0).id()); - Assertions.assertEquals("tkl", model.value().get(0).type()); - Assertions.assertEquals("xbjhwuaanozjosph", model.value().get(0).unit()); - Assertions.assertEquals(1172987793, model.value().get(0).currentValue()); - Assertions.assertEquals(2134334822, model.value().get(0).limit()); - Assertions.assertEquals("v", model.value().get(0).name().value()); - Assertions.assertEquals("glrvimjwosytxi", model.value().get(0).name().localizedValue()); + Assertions.assertEquals("ed", model.value().get(0).id()); + Assertions.assertEquals("wwa", model.value().get(0).type()); + Assertions.assertEquals("kojvd", model.value().get(0).unit()); + Assertions.assertEquals(1248397235, model.value().get(0).currentValue()); + Assertions.assertEquals(2081099839, model.value().get(0).limit()); + Assertions.assertEquals("uicybxarzgszuf", model.value().get(0).name().value()); + Assertions.assertEquals("ciqopidoa", model.value().get(0).name().localizedValue()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/UserSubscriptionQuotaTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/UserSubscriptionQuotaTests.java index 48de576287082..6346e0f36c799 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/UserSubscriptionQuotaTests.java +++ b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/UserSubscriptionQuotaTests.java @@ -12,14 +12,14 @@ public final class UserSubscriptionQuotaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserSubscriptionQuota model = BinaryData.fromString( - "{\"id\":\"vfdnwnwmewzsyyce\",\"type\":\"soibjudpfrx\",\"unit\":\"thzvaytdwkqbrqu\",\"currentValue\":749295202,\"limit\":31333478,\"name\":{\"value\":\"iilivpdtiirqtd\",\"localizedValue\":\"axoruzfgsquy\"}}") + "{\"id\":\"nlwntoe\",\"type\":\"kdwbwhkszz\",\"unit\":\"rvexztvb\",\"currentValue\":991988200,\"limit\":1033592181,\"name\":{\"value\":\"oyzko\",\"localizedValue\":\"tlmngu\"}}") .toObject(UserSubscriptionQuota.class); - Assertions.assertEquals("vfdnwnwmewzsyyce", model.id()); - Assertions.assertEquals("soibjudpfrx", model.type()); - Assertions.assertEquals("thzvaytdwkqbrqu", model.unit()); - Assertions.assertEquals(749295202, model.currentValue()); - Assertions.assertEquals(31333478, model.limit()); - Assertions.assertEquals("iilivpdtiirqtd", model.name().value()); - Assertions.assertEquals("axoruzfgsquy", model.name().localizedValue()); + Assertions.assertEquals("nlwntoe", model.id()); + Assertions.assertEquals("kdwbwhkszz", model.type()); + Assertions.assertEquals("rvexztvb", model.unit()); + Assertions.assertEquals(991988200, model.currentValue()); + Assertions.assertEquals(1033592181, model.limit()); + Assertions.assertEquals("oyzko", model.name().value()); + Assertions.assertEquals("tlmngu", model.name().localizedValue()); } } diff --git a/sdk/iothub/azure-resourcemanager-iothub/tsp-location.yaml b/sdk/iothub/azure-resourcemanager-iothub/tsp-location.yaml index bd1eafb45d825..eac08e3d13efa 100644 --- a/sdk/iothub/azure-resourcemanager-iothub/tsp-location.yaml +++ b/sdk/iothub/azure-resourcemanager-iothub/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/iothub/resource-manager/Microsoft.Devices/IoTHub -commit: e242531106b574c3f98fb7306dbceedd82b05f69 +commit: aacdbe71d42e2e79ff09699751c2d543e3ecc826 repo: Azure/azure-rest-api-specs additionalDirectories: