diff --git a/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md b/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md
index fa433acb95119..0f04d5882dbf1 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md
+++ b/sdk/iothub/azure-resourcemanager-iothub/CHANGELOG.md
@@ -1,14 +1,40 @@
# Release History
-## 1.2.0-beta.4 (Unreleased)
+## 1.2.0-beta.4 (2023-09-18)
-### 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 tag package-preview-2023-06. 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.RoutingCosmosDBSqlApiProperties` was modified
+
+* `withCollectionName(java.lang.String)` was removed
+* `collectionName()` was removed
+
+#### `models.RoutingEndpoints` was modified
+
+* `withCosmosDBSqlCollections(java.util.List)` was removed
+* `cosmosDBSqlCollections()` was removed
+
+#### `models.ErrorDetails` was modified
+
+* `getHttpStatusCode()` was removed
+
+### Features Added
+
+#### `models.RoutingCosmosDBSqlApiProperties` was modified
+
+* `containerName()` was added
+* `withContainerName(java.lang.String)` was added
+
+#### `models.RoutingEndpoints` was modified
+
+* `withCosmosDBSqlContainers(java.util.List)` was added
+* `cosmosDBSqlContainers()` was added
+
+#### `models.ErrorDetails` was modified
-### Other Changes
+* `httpStatusCode()` was added
## 1.2.0-beta.3 (2023-04-18)
diff --git a/sdk/iothub/azure-resourcemanager-iothub/README.md b/sdk/iothub/azure-resourcemanager-iothub/README.md
index bd0264c770732..aca3107afe652 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/README.md
+++ b/sdk/iothub/azure-resourcemanager-iothub/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager IotHub client library for Java.
-This package contains Microsoft Azure SDK for IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2022-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for IotHub Management SDK. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2023-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-iothub
- 1.2.0-beta.3
+ 1.2.0-beta.4
```
[//]: # ({x-version-update-end})
@@ -103,3 +103,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
+
+![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fiothub%2Fazure-resourcemanager-iothub%2FREADME.png)
diff --git a/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md b/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md
index 32f34ea038922..64d83f849d0b2 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md
+++ b/sdk/iothub/azure-resourcemanager-iothub/SAMPLE.md
@@ -67,7 +67,7 @@ import com.azure.resourcemanager.iothub.models.CertificateProperties;
/** Samples for Certificates CreateOrUpdate. */
public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certificatescreateorupdate.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_certificatescreateorupdate.json
*/
/**
* Sample code: Certificates_CreateOrUpdate.
@@ -91,7 +91,7 @@ public final class CertificatesCreateOrUpdateSamples {
/** Samples for Certificates Delete. */
public final class CertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certificatesdelete.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_certificatesdelete.json
*/
/**
* Sample code: Certificates_Delete.
@@ -112,7 +112,7 @@ public final class CertificatesDeleteSamples {
/** Samples for Certificates GenerateVerificationCode. */
public final class CertificatesGenerateVerificationCodeSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_generateverificationcode.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_generateverificationcode.json
*/
/**
* Sample code: Certificates_GenerateVerificationCode.
@@ -134,7 +134,7 @@ public final class CertificatesGenerateVerificationCodeSamples {
/** Samples for Certificates Get. */
public final class CertificatesGetSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getcertificate.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getcertificate.json
*/
/**
* Sample code: Certificates_Get.
@@ -153,7 +153,7 @@ public final class CertificatesGetSamples {
/** Samples for Certificates ListByIotHub. */
public final class CertificatesListByIotHubSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listcertificates.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listcertificates.json
*/
/**
* Sample code: Certificates_ListByIotHub.
@@ -174,7 +174,7 @@ import com.azure.resourcemanager.iothub.models.CertificateVerificationDescriptio
/** Samples for Certificates Verify. */
public final class CertificatesVerifySamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certverify.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_certverify.json
*/
/**
* Sample code: Certificates_Verify.
@@ -203,7 +203,7 @@ import com.azure.resourcemanager.iothub.models.FailoverInput;
/** Samples for IotHub ManualFailover. */
public final class IotHubManualFailoverSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/IotHub_ManualFailover.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/IotHub_ManualFailover.json
*/
/**
* Sample code: IotHub_ManualFailover.
@@ -230,7 +230,7 @@ import com.azure.resourcemanager.iothub.models.OperationInputs;
/** Samples for IotHubResource CheckNameAvailability. */
public final class IotHubResourceCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/checkNameAvailability.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/checkNameAvailability.json
*/
/**
* Sample code: IotHubResource_CheckNameAvailability.
@@ -254,7 +254,7 @@ import com.azure.resourcemanager.iothub.models.EventHubConsumerGroupName;
/** Samples for IotHubResource CreateEventHubConsumerGroup. */
public final class IotHubResourceCreateEventHubConsumerGroupSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_createconsumergroup.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_createconsumergroup.json
*/
/**
* Sample code: IotHubResource_CreateEventHubConsumerGroup.
@@ -303,7 +303,7 @@ import java.util.Map;
/** Samples for IotHubResource CreateOrUpdate. */
public final class IotHubResourceCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_createOrUpdate.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_createOrUpdate.json
*/
/**
* Sample code: IotHubResource_CreateOrUpdate.
@@ -387,6 +387,7 @@ public final class IotHubResourceCreateOrUpdateSamples {
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -406,7 +407,7 @@ public final class IotHubResourceCreateOrUpdateSamples {
/** Samples for IotHubResource Delete. */
public final class IotHubResourceDeleteSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_delete.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_delete.json
*/
/**
* Sample code: IotHubResource_Delete.
@@ -425,7 +426,7 @@ public final class IotHubResourceDeleteSamples {
/** Samples for IotHubResource DeleteEventHubConsumerGroup. */
public final class IotHubResourceDeleteEventHubConsumerGroupSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_deleteconsumergroup.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_deleteconsumergroup.json
*/
/**
* Sample code: IotHubResource_DeleteEventHubConsumerGroup.
@@ -452,7 +453,7 @@ import com.azure.resourcemanager.iothub.models.ManagedIdentity;
/** Samples for IotHubResource ExportDevices. */
public final class IotHubResourceExportDevicesSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_exportdevices.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_exportdevices.json
*/
/**
* Sample code: IotHubResource_ExportDevices.
@@ -484,7 +485,7 @@ public final class IotHubResourceExportDevicesSamples {
/** Samples for IotHubResource GetByResourceGroup. */
public final class IotHubResourceGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_get.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_get.json
*/
/**
* Sample code: IotHubResource_Get.
@@ -505,7 +506,7 @@ public final class IotHubResourceGetByResourceGroupSamples {
/** Samples for IotHubResource GetEndpointHealth. */
public final class IotHubResourceGetEndpointHealthSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_routingendpointhealth.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_routingendpointhealth.json
*/
/**
* Sample code: IotHubResource_GetEndpointHealth.
@@ -524,7 +525,7 @@ public final class IotHubResourceGetEndpointHealthSamples {
/** Samples for IotHubResource GetEventHubConsumerGroup. */
public final class IotHubResourceGetEventHubConsumerGroupSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getconsumergroup.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getconsumergroup.json
*/
/**
* Sample code: IotHubResource_ListEventHubConsumerGroups.
@@ -547,7 +548,7 @@ public final class IotHubResourceGetEventHubConsumerGroupSamples {
/** Samples for IotHubResource GetJob. */
public final class IotHubResourceGetJobSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getjob.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getjob.json
*/
/**
* Sample code: IotHubResource_GetJob.
@@ -568,7 +569,7 @@ public final class IotHubResourceGetJobSamples {
/** Samples for IotHubResource GetKeysForKeyName. */
public final class IotHubResourceGetKeysForKeyNameSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getkey.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getkey.json
*/
/**
* Sample code: IotHubResource_GetKeysForKeyName.
@@ -590,7 +591,7 @@ public final class IotHubResourceGetKeysForKeyNameSamples {
/** Samples for IotHubResource GetQuotaMetrics. */
public final class IotHubResourceGetQuotaMetricsSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_quotametrics.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_quotametrics.json
*/
/**
* Sample code: IotHubResource_GetQuotaMetrics.
@@ -609,7 +610,7 @@ public final class IotHubResourceGetQuotaMetricsSamples {
/** Samples for IotHubResource GetStats. */
public final class IotHubResourceGetStatsSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_stats.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_stats.json
*/
/**
* Sample code: IotHubResource_GetStats.
@@ -628,7 +629,7 @@ public final class IotHubResourceGetStatsSamples {
/** Samples for IotHubResource GetValidSkus. */
public final class IotHubResourceGetValidSkusSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getskus.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getskus.json
*/
/**
* Sample code: IotHubResource_GetValidSkus.
@@ -649,7 +650,7 @@ import com.azure.resourcemanager.iothub.models.ImportDevicesRequest;
/** Samples for IotHubResource ImportDevices. */
public final class IotHubResourceImportDevicesSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_importdevices.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_importdevices.json
*/
/**
* Sample code: IotHubResource_ImportDevices.
@@ -674,7 +675,7 @@ public final class IotHubResourceImportDevicesSamples {
/** Samples for IotHubResource List. */
public final class IotHubResourceListSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listbysubscription.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listbysubscription.json
*/
/**
* Sample code: IotHubResource_ListBySubscription.
@@ -693,7 +694,7 @@ public final class IotHubResourceListSamples {
/** Samples for IotHubResource ListByResourceGroup. */
public final class IotHubResourceListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listbyrg.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listbyrg.json
*/
/**
* Sample code: IotHubResource_ListByResourceGroup.
@@ -712,7 +713,7 @@ public final class IotHubResourceListByResourceGroupSamples {
/** Samples for IotHubResource ListEventHubConsumerGroups. */
public final class IotHubResourceListEventHubConsumerGroupsSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listehgroups.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listehgroups.json
*/
/**
* Sample code: IotHubResource_ListEventHubConsumerGroups.
@@ -734,7 +735,7 @@ public final class IotHubResourceListEventHubConsumerGroupsSamples {
/** Samples for IotHubResource ListJobs. */
public final class IotHubResourceListJobsSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listjobs.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listjobs.json
*/
/**
* Sample code: IotHubResource_ListJobs.
@@ -753,7 +754,7 @@ public final class IotHubResourceListJobsSamples {
/** Samples for IotHubResource ListKeys. */
public final class IotHubResourceListKeysSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listkeys.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listkeys.json
*/
/**
* Sample code: IotHubResource_ListKeys.
@@ -778,7 +779,7 @@ import java.util.Map;
/** Samples for IotHubResource TestAllRoutes. */
public final class IotHubResourceTestAllRoutesSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_testallroutes.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_testallroutes.json
*/
/**
* Sample code: IotHubResource_TestAllRoutes.
@@ -796,11 +797,12 @@ public final class IotHubResourceTestAllRoutesSamples {
.withMessage(
new RoutingMessage()
.withBody("Body of message")
- .withAppProperties(mapOf("key1", "value1"))
- .withSystemProperties(mapOf("key1", "value1"))),
+ .withAppProperties(mapOf("key1", "fakeTokenPlaceholder"))
+ .withSystemProperties(mapOf("key1", "fakeTokenPlaceholder"))),
com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -828,7 +830,7 @@ import java.util.Map;
/** Samples for IotHubResource TestRoute. */
public final class IotHubResourceTestRouteSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_testnewroute.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_testnewroute.json
*/
/**
* Sample code: IotHubResource_TestRoute.
@@ -845,8 +847,8 @@ public final class IotHubResourceTestRouteSamples {
.withMessage(
new RoutingMessage()
.withBody("Body of message")
- .withAppProperties(mapOf("key1", "value1"))
- .withSystemProperties(mapOf("key1", "value1")))
+ .withAppProperties(mapOf("key1", "fakeTokenPlaceholder"))
+ .withSystemProperties(mapOf("key1", "fakeTokenPlaceholder")))
.withRoute(
new RouteProperties()
.withName("Routeid")
@@ -856,6 +858,7 @@ public final class IotHubResourceTestRouteSamples {
com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -879,7 +882,7 @@ import java.util.Map;
/** Samples for IotHubResource Update. */
public final class IotHubResourceUpdateSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_patch.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_patch.json
*/
/**
* Sample code: IotHubResource_Update.
@@ -895,6 +898,7 @@ public final class IotHubResourceUpdateSamples {
resource.update().withTags(mapOf("foo", "bar")).apply();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -914,7 +918,7 @@ public final class IotHubResourceUpdateSamples {
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_operations.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_operations.json
*/
/**
* Sample code: Operations_List.
@@ -933,7 +937,7 @@ public final class OperationsListSamples {
/** Samples for PrivateEndpointConnections Delete. */
public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_deleteprivateendpointconnection.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_deleteprivateendpointconnection.json
*/
/**
* Sample code: PrivateEndpointConnection_Delete.
@@ -954,7 +958,7 @@ public final class PrivateEndpointConnectionsDeleteSamples {
/** Samples for PrivateEndpointConnections Get. */
public final class PrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getprivateendpointconnection.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getprivateendpointconnection.json
*/
/**
* Sample code: PrivateEndpointConnection_Get.
@@ -976,7 +980,7 @@ public final class PrivateEndpointConnectionsGetSamples {
/** Samples for PrivateEndpointConnections List. */
public final class PrivateEndpointConnectionsListSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listprivateendpointconnections.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listprivateendpointconnections.json
*/
/**
* Sample code: PrivateEndpointConnections_List.
@@ -1002,7 +1006,7 @@ import com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionStatu
/** Samples for PrivateEndpointConnections Update. */
public final class PrivateEndpointConnectionsUpdateSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_updateprivateendpointconnection.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_updateprivateendpointconnection.json
*/
/**
* Sample code: PrivateEndpointConnection_Update.
@@ -1034,7 +1038,7 @@ public final class PrivateEndpointConnectionsUpdateSamples {
/** Samples for PrivateLinkResourcesOperation Get. */
public final class PrivateLinkResourcesOperationGetSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getprivatelinkresources.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getprivatelinkresources.json
*/
/**
* Sample code: PrivateLinkResources_List.
@@ -1055,7 +1059,7 @@ public final class PrivateLinkResourcesOperationGetSamples {
/** Samples for PrivateLinkResourcesOperation List. */
public final class PrivateLinkResourcesOperationListSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listprivatelinkresources.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listprivatelinkresources.json
*/
/**
* Sample code: PrivateLinkResources_List.
@@ -1076,7 +1080,7 @@ public final class PrivateLinkResourcesOperationListSamples {
/** Samples for ResourceProviderCommon GetSubscriptionQuota. */
public final class ResourceProviderCommonGetSubscriptionQuotaSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_usages.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_usages.json
*/
/**
* Sample code: ResourceProviderCommon_GetSubscriptionQuota.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/pom.xml b/sdk/iothub/azure-resourcemanager-iothub/pom.xml
index 8f9f3d2495bae..27cfdb9431593 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 tag package-preview-2022-11.
+ This package contains Microsoft Azure SDK for IotHub Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use this API to manage the IoT hubs in your Azure subscription. Package tag package-preview-2023-06.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java
index 0d0d7659ce213..b9a51f72d086b 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/IotHubManager.java
@@ -227,7 +227,7 @@ public IotHubManager authenticate(TokenCredential credential, AzureProfile profi
.append("-")
.append("com.azure.resourcemanager.iothub")
.append("/")
- .append("1.2.0-beta.3");
+ .append("1.2.0-beta.4");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -372,8 +372,10 @@ public PrivateEndpointConnections privateEndpointConnections() {
}
/**
- * @return Wrapped service client IotHubClient providing direct access to the underlying auto-generated API
- * implementation, based on Azure REST API.
+ * Gets wrapped service client IotHubClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client IotHubClient.
*/
public IotHubClient serviceClient() {
return this.clientObject;
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java
index 6c506efcce77f..b5c04dfdb0b0c 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientBuilder.java
@@ -137,7 +137,7 @@ public IotHubClientImpl buildClient() {
localSerializerAdapter,
localDefaultPollInterval,
localEnvironment,
- subscriptionId,
+ this.subscriptionId,
localEndpoint);
return client;
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/IotHubClientImpl.java
index bac045f9f0082..6c46a78553ce2 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
@@ -220,7 +220,7 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-11-15-preview";
+ this.apiVersion = "2023-06-30-preview";
this.operations = new OperationsClientImpl(this);
this.iotHubResources = new IotHubResourcesClientImpl(this);
this.resourceProviderCommons = new ResourceProviderCommonsClientImpl(this);
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java
index 2c319d346bb9b..496cac6ae5655 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/CertificateDescription.java
@@ -62,11 +62,13 @@ public interface CertificateDescription {
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
+
/** The CertificateDescription definition stages. */
interface DefinitionStages {
/** The first stage of the CertificateDescription definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the CertificateDescription definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -78,6 +80,7 @@ interface WithParentResource {
*/
WithCreate withExistingIotHub(String resourceGroupName, String resourceName);
}
+
/**
* The stage of the CertificateDescription definition which contains all the minimum required properties for the
* resource to be created, but also allows for any other optional properties to be specified.
@@ -98,6 +101,7 @@ interface WithCreate extends DefinitionStages.WithProperties, DefinitionStages.W
*/
CertificateDescription create(Context context);
}
+
/** The stage of the CertificateDescription definition allowing to specify properties. */
interface WithProperties {
/**
@@ -108,6 +112,7 @@ interface WithProperties {
*/
WithCreate withProperties(CertificateProperties properties);
}
+
/** The stage of the CertificateDescription definition allowing to specify ifMatch. */
interface WithIfMatch {
/**
@@ -121,6 +126,7 @@ interface WithIfMatch {
WithCreate withIfMatch(String ifMatch);
}
}
+
/**
* Begins update for the CertificateDescription resource.
*
@@ -145,6 +151,7 @@ interface Update extends UpdateStages.WithProperties, UpdateStages.WithIfMatch {
*/
CertificateDescription apply(Context context);
}
+
/** The CertificateDescription update stages. */
interface UpdateStages {
/** The stage of the CertificateDescription update allowing to specify properties. */
@@ -157,6 +164,7 @@ interface WithProperties {
*/
Update withProperties(CertificateProperties properties);
}
+
/** The stage of the CertificateDescription update allowing to specify ifMatch. */
interface WithIfMatch {
/**
@@ -170,6 +178,7 @@ interface WithIfMatch {
Update withIfMatch(String ifMatch);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java
index 6a601a5590d7c..7b4e534a73402 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/ErrorDetails.java
@@ -26,7 +26,7 @@ public ErrorDetails() {
*
* @return the httpStatusCode value.
*/
- public String getHttpStatusCode() {
+ public String httpStatusCode() {
return this.httpStatusCode;
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupInfo.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupInfo.java
index e9ca6fd06336d..53d57c55e38c3 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupInfo.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/EventHubConsumerGroupInfo.java
@@ -59,11 +59,13 @@ interface Definition
DefinitionStages.WithProperties,
DefinitionStages.WithCreate {
}
+
/** The EventHubConsumerGroupInfo definition stages. */
interface DefinitionStages {
/** The first stage of the EventHubConsumerGroupInfo definition. */
interface Blank extends WithParentResource {
}
+
/** The stage of the EventHubConsumerGroupInfo definition allowing to specify parent resource. */
interface WithParentResource {
/**
@@ -77,6 +79,7 @@ interface WithParentResource {
WithProperties withExistingEventHubEndpoint(
String resourceGroupName, String resourceName, String eventHubEndpointName);
}
+
/** The stage of the EventHubConsumerGroupInfo definition allowing to specify properties. */
interface WithProperties {
/**
@@ -87,6 +90,7 @@ interface WithProperties {
*/
WithCreate withProperties(EventHubConsumerGroupName properties);
}
+
/**
* The stage of the EventHubConsumerGroupInfo definition which contains all the minimum required properties for
* the resource to be created, but also allows for any other optional properties to be specified.
@@ -108,6 +112,7 @@ interface WithCreate {
EventHubConsumerGroupInfo create(Context context);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java
index 8f09aef71b2d7..6345992470228 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/IotHubDescription.java
@@ -121,11 +121,13 @@ interface Definition
DefinitionStages.WithSku,
DefinitionStages.WithCreate {
}
+
/** The IotHubDescription definition stages. */
interface DefinitionStages {
/** The first stage of the IotHubDescription definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the IotHubDescription definition allowing to specify location. */
interface WithLocation {
/**
@@ -144,6 +146,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}
+
/** The stage of the IotHubDescription definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
@@ -154,6 +157,7 @@ interface WithResourceGroup {
*/
WithSku withExistingResourceGroup(String resourceGroupName);
}
+
/** The stage of the IotHubDescription definition allowing to specify sku. */
interface WithSku {
/**
@@ -164,6 +168,7 @@ interface WithSku {
*/
WithCreate withSku(IotHubSkuInfo sku);
}
+
/**
* The stage of the IotHubDescription definition which contains all the minimum required properties for the
* resource to be created, but also allows for any other optional properties to be specified.
@@ -189,6 +194,7 @@ interface WithCreate
*/
IotHubDescription create(Context context);
}
+
/** The stage of the IotHubDescription definition allowing to specify tags. */
interface WithTags {
/**
@@ -199,6 +205,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the IotHubDescription definition allowing to specify etag. */
interface WithEtag {
/**
@@ -211,6 +218,7 @@ interface WithEtag {
*/
WithCreate withEtag(String etag);
}
+
/** The stage of the IotHubDescription definition allowing to specify properties. */
interface WithProperties {
/**
@@ -221,6 +229,7 @@ interface WithProperties {
*/
WithCreate withProperties(IotHubProperties properties);
}
+
/** The stage of the IotHubDescription definition allowing to specify identity. */
interface WithIdentity {
/**
@@ -231,6 +240,7 @@ interface WithIdentity {
*/
WithCreate withIdentity(ArmIdentity identity);
}
+
/** The stage of the IotHubDescription definition allowing to specify ifMatch. */
interface WithIfMatch {
/**
@@ -244,6 +254,7 @@ interface WithIfMatch {
WithCreate withIfMatch(String ifMatch);
}
}
+
/**
* Begins update for the IotHubDescription resource.
*
@@ -268,6 +279,7 @@ interface Update extends UpdateStages.WithTags {
*/
IotHubDescription apply(Context context);
}
+
/** The IotHubDescription update stages. */
interface UpdateStages {
/** The stage of the IotHubDescription update allowing to specify tags. */
@@ -281,6 +293,7 @@ interface WithTags {
Update withTags(Map tags);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
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 022dc9d0f732b..7f37d0965a11b 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
@@ -8,7 +8,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The properties related to a cosmos DB sql collection endpoint. */
+/** The properties related to a cosmos DB sql container endpoint. */
@Fluent
public final class RoutingCosmosDBSqlApiProperties {
/*
@@ -20,7 +20,7 @@ public final class RoutingCosmosDBSqlApiProperties {
private String name;
/*
- * Id of the cosmos DB sql collection endpoint
+ * Id of the cosmos DB sql container endpoint
*/
@JsonProperty(value = "id")
private String id;
@@ -44,13 +44,13 @@ public final class RoutingCosmosDBSqlApiProperties {
private String endpointUri;
/*
- * Method used to authenticate against the cosmos DB sql collection endpoint
+ * Method used to authenticate against the cosmos DB sql container endpoint
*/
@JsonProperty(value = "authenticationType")
private AuthenticationType authenticationType;
/*
- * Managed identity properties of routing cosmos DB collection endpoint.
+ * Managed identity properties of routing cosmos DB container endpoint.
*/
@JsonProperty(value = "identity")
private ManagedIdentity identity;
@@ -74,20 +74,20 @@ public final class RoutingCosmosDBSqlApiProperties {
private String databaseName;
/*
- * The name of the cosmos DB sql collection in the cosmos DB database.
+ * The name of the cosmos DB sql container in the cosmos DB database.
*/
- @JsonProperty(value = "collectionName", required = true)
- private String collectionName;
+ @JsonProperty(value = "containerName", required = true)
+ private String containerName;
/*
- * The name of the partition key associated with this cosmos DB sql collection if one exists. This is an optional
+ * The name of the partition key associated with this cosmos DB sql container if one exists. This is an optional
* parameter.
*/
@JsonProperty(value = "partitionKeyName")
private String partitionKeyName;
/*
- * The template for generating a synthetic partition key value for use with this cosmos DB sql collection. The
+ * The template for generating a synthetic partition key value for use with this cosmos DB sql container. The
* template must include at least one of the following placeholders: {iothub}, {deviceid}, {DD}, {MM}, and {YYYY}.
* Any one placeholder may be specified at most once, but order and non-placeholder components are arbitrary. This
* parameter is only required if PartitionKeyName is specified.
@@ -124,7 +124,7 @@ public RoutingCosmosDBSqlApiProperties withName(String name) {
}
/**
- * Get the id property: Id of the cosmos DB sql collection endpoint.
+ * Get the id property: Id of the cosmos DB sql container endpoint.
*
* @return the id value.
*/
@@ -133,7 +133,7 @@ public String id() {
}
/**
- * Set the id property: Id of the cosmos DB sql collection endpoint.
+ * Set the id property: Id of the cosmos DB sql container endpoint.
*
* @param id the id value to set.
* @return the RoutingCosmosDBSqlApiProperties object itself.
@@ -204,7 +204,7 @@ public RoutingCosmosDBSqlApiProperties withEndpointUri(String endpointUri) {
}
/**
- * Get the authenticationType property: Method used to authenticate against the cosmos DB sql collection endpoint.
+ * Get the authenticationType property: Method used to authenticate against the cosmos DB sql container endpoint.
*
* @return the authenticationType value.
*/
@@ -213,7 +213,7 @@ public AuthenticationType authenticationType() {
}
/**
- * Set the authenticationType property: Method used to authenticate against the cosmos DB sql collection endpoint.
+ * Set the authenticationType property: Method used to authenticate against the cosmos DB sql container endpoint.
*
* @param authenticationType the authenticationType value to set.
* @return the RoutingCosmosDBSqlApiProperties object itself.
@@ -224,7 +224,7 @@ public RoutingCosmosDBSqlApiProperties withAuthenticationType(AuthenticationType
}
/**
- * Get the identity property: Managed identity properties of routing cosmos DB collection endpoint.
+ * Get the identity property: Managed identity properties of routing cosmos DB container endpoint.
*
* @return the identity value.
*/
@@ -233,7 +233,7 @@ public ManagedIdentity identity() {
}
/**
- * Set the identity property: Managed identity properties of routing cosmos DB collection endpoint.
+ * Set the identity property: Managed identity properties of routing cosmos DB container endpoint.
*
* @param identity the identity value to set.
* @return the RoutingCosmosDBSqlApiProperties object itself.
@@ -304,27 +304,27 @@ public RoutingCosmosDBSqlApiProperties withDatabaseName(String databaseName) {
}
/**
- * Get the collectionName property: The name of the cosmos DB sql collection in the cosmos DB database.
+ * Get the containerName property: The name of the cosmos DB sql container in the cosmos DB database.
*
- * @return the collectionName value.
+ * @return the containerName value.
*/
- public String collectionName() {
- return this.collectionName;
+ public String containerName() {
+ return this.containerName;
}
/**
- * Set the collectionName property: The name of the cosmos DB sql collection in the cosmos DB database.
+ * Set the containerName property: The name of the cosmos DB sql container in the cosmos DB database.
*
- * @param collectionName the collectionName value to set.
+ * @param containerName the containerName value to set.
* @return the RoutingCosmosDBSqlApiProperties object itself.
*/
- public RoutingCosmosDBSqlApiProperties withCollectionName(String collectionName) {
- this.collectionName = collectionName;
+ public RoutingCosmosDBSqlApiProperties withContainerName(String containerName) {
+ this.containerName = containerName;
return this;
}
/**
- * Get the partitionKeyName property: The name of the partition key associated with this cosmos DB sql collection if
+ * Get the partitionKeyName property: The name of the partition key associated with this cosmos DB sql container if
* one exists. This is an optional parameter.
*
* @return the partitionKeyName value.
@@ -334,7 +334,7 @@ public String partitionKeyName() {
}
/**
- * Set the partitionKeyName property: The name of the partition key associated with this cosmos DB sql collection if
+ * Set the partitionKeyName property: The name of the partition key associated with this cosmos DB sql container if
* one exists. This is an optional parameter.
*
* @param partitionKeyName the partitionKeyName value to set.
@@ -347,7 +347,7 @@ public RoutingCosmosDBSqlApiProperties withPartitionKeyName(String partitionKeyN
/**
* Get the partitionKeyTemplate property: The template for generating a synthetic partition key value for use with
- * this cosmos DB sql collection. The template must include at least one of the following placeholders: {iothub},
+ * this cosmos DB sql container. The template must include at least one of the following placeholders: {iothub},
* {deviceid}, {DD}, {MM}, and {YYYY}. Any one placeholder may be specified at most once, but order and
* non-placeholder components are arbitrary. This parameter is only required if PartitionKeyName is specified.
*
@@ -359,7 +359,7 @@ public String partitionKeyTemplate() {
/**
* Set the partitionKeyTemplate property: The template for generating a synthetic partition key value for use with
- * this cosmos DB sql collection. The template must include at least one of the following placeholders: {iothub},
+ * this cosmos DB sql container. The template must include at least one of the following placeholders: {iothub},
* {deviceid}, {DD}, {MM}, and {YYYY}. Any one placeholder may be specified at most once, but order and
* non-placeholder components are arbitrary. This parameter is only required if PartitionKeyName is specified.
*
@@ -398,11 +398,11 @@ public void validate() {
new IllegalArgumentException(
"Missing required property databaseName in model RoutingCosmosDBSqlApiProperties"));
}
- if (collectionName() == null) {
+ if (containerName() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
- "Missing required property collectionName in model RoutingCosmosDBSqlApiProperties"));
+ "Missing required property containerName in model RoutingCosmosDBSqlApiProperties"));
}
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEndpoints.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEndpoints.java
index 95624d66dcae9..ff30a6f12ae0b 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEndpoints.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/models/RoutingEndpoints.java
@@ -41,10 +41,10 @@ public final class RoutingEndpoints {
private List storageContainers;
/*
- * The list of Cosmos DB collection endpoints that IoT hub routes messages to, based on the routing rules.
+ * The list of Cosmos DB container endpoints that IoT hub routes messages to, based on the routing rules.
*/
- @JsonProperty(value = "cosmosDBSqlCollections")
- private List cosmosDBSqlCollections;
+ @JsonProperty(value = "cosmosDBSqlContainers")
+ private List cosmosDBSqlContainers;
/** Creates an instance of RoutingEndpoints class. */
public RoutingEndpoints() {
@@ -139,24 +139,24 @@ public RoutingEndpoints withStorageContainers(List cosmosDBSqlCollections() {
- return this.cosmosDBSqlCollections;
+ public List cosmosDBSqlContainers() {
+ return this.cosmosDBSqlContainers;
}
/**
- * Set the cosmosDBSqlCollections property: The list of Cosmos DB collection endpoints that IoT hub routes messages
+ * Set the cosmosDBSqlContainers property: The list of Cosmos DB container endpoints that IoT hub routes messages
* to, based on the routing rules.
*
- * @param cosmosDBSqlCollections the cosmosDBSqlCollections value to set.
+ * @param cosmosDBSqlContainers the cosmosDBSqlContainers value to set.
* @return the RoutingEndpoints object itself.
*/
- public RoutingEndpoints withCosmosDBSqlCollections(List cosmosDBSqlCollections) {
- this.cosmosDBSqlCollections = cosmosDBSqlCollections;
+ public RoutingEndpoints withCosmosDBSqlContainers(List cosmosDBSqlContainers) {
+ this.cosmosDBSqlContainers = cosmosDBSqlContainers;
return this;
}
@@ -178,8 +178,8 @@ public void validate() {
if (storageContainers() != null) {
storageContainers().forEach(e -> e.validate());
}
- if (cosmosDBSqlCollections() != null) {
- cosmosDBSqlCollections().forEach(e -> e.validate());
+ if (cosmosDBSqlContainers() != null) {
+ cosmosDBSqlContainers().forEach(e -> e.validate());
}
}
}
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 67c58c331f702..99b4699a4397c 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateSamples.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesCreateOrUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for Certificates CreateOrUpdate. */
public final class CertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certificatescreateorupdate.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_certificatescreateorupdate.json
*/
/**
* Sample code: Certificates_CreateOrUpdate.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesDeleteSamples.java
index 61ba2a5ca588e..8b6bd8fae5535 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
@@ -7,7 +7,7 @@
/** Samples for Certificates Delete. */
public final class CertificatesDeleteSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certificatesdelete.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_certificatesdelete.json
*/
/**
* Sample code: Certificates_Delete.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGenerateVerificationCodeSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGenerateVerificationCodeSamples.java
index 5ec7905114f66..6856cdd6bdc49 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
@@ -7,7 +7,7 @@
/** Samples for Certificates GenerateVerificationCode. */
public final class CertificatesGenerateVerificationCodeSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_generateverificationcode.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_generateverificationcode.json
*/
/**
* Sample code: Certificates_GenerateVerificationCode.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGetSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesGetSamples.java
index 0ee916a6f0867..40cea6423f37c 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
@@ -7,7 +7,7 @@
/** Samples for Certificates Get. */
public final class CertificatesGetSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getcertificate.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getcertificate.json
*/
/**
* Sample code: Certificates_Get.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesListByIotHubSamples.java
index c2023a216ea99..607766ca3fb21 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
@@ -7,7 +7,7 @@
/** Samples for Certificates ListByIotHub. */
public final class CertificatesListByIotHubSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listcertificates.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listcertificates.json
*/
/**
* Sample code: Certificates_ListByIotHub.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifySamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/CertificatesVerifySamples.java
index 8d60108f9d5fb..a34241fc2787c 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
@@ -9,7 +9,7 @@
/** Samples for Certificates Verify. */
public final class CertificatesVerifySamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_certverify.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_certverify.json
*/
/**
* Sample code: Certificates_Verify.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubManualFailoverSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubManualFailoverSamples.java
index eab64aa98e1fb..74bd7b1357f0e 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
@@ -9,7 +9,7 @@
/** Samples for IotHub ManualFailover. */
public final class IotHubManualFailoverSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/IotHub_ManualFailover.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/IotHub_ManualFailover.json
*/
/**
* Sample code: IotHub_ManualFailover.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCheckNameAvailabilitySamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCheckNameAvailabilitySamples.java
index 0facb51a6a4b6..51db00be5f22d 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
@@ -9,7 +9,7 @@
/** Samples for IotHubResource CheckNameAvailability. */
public final class IotHubResourceCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/checkNameAvailability.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/checkNameAvailability.json
*/
/**
* Sample code: IotHubResource_CheckNameAvailability.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java
index 36c0715687a0f..480508f7a9f5b 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateEventHubConsumerGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for IotHubResource CreateEventHubConsumerGroup. */
public final class IotHubResourceCreateEventHubConsumerGroupSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_createconsumergroup.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_createconsumergroup.json
*/
/**
* Sample code: IotHubResource_CreateEventHubConsumerGroup.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateOrUpdateSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceCreateOrUpdateSamples.java
index ea4d482473b49..bf80de6b1bdde 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
@@ -31,7 +31,7 @@
/** Samples for IotHubResource CreateOrUpdate. */
public final class IotHubResourceCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_createOrUpdate.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_createOrUpdate.json
*/
/**
* Sample code: IotHubResource_CreateOrUpdate.
@@ -115,6 +115,7 @@ public static void iotHubResourceCreateOrUpdate(com.azure.resourcemanager.iothub
.create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 e067564709754..0c9a05acfe51b 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource DeleteEventHubConsumerGroup. */
public final class IotHubResourceDeleteEventHubConsumerGroupSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_deleteconsumergroup.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_deleteconsumergroup.json
*/
/**
* Sample code: IotHubResource_DeleteEventHubConsumerGroup.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceDeleteSamples.java
index 4417738a281b2..115c94c8f7d0e 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource Delete. */
public final class IotHubResourceDeleteSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_delete.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_delete.json
*/
/**
* Sample code: IotHubResource_Delete.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceExportDevicesSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceExportDevicesSamples.java
index 49d384d55dabc..8d39eed5a608c 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
@@ -11,7 +11,7 @@
/** Samples for IotHubResource ExportDevices. */
public final class IotHubResourceExportDevicesSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_exportdevices.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/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 ea558057aada4..6030d9d25acee 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource GetByResourceGroup. */
public final class IotHubResourceGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_get.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_get.json
*/
/**
* Sample code: IotHubResource_Get.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEndpointHealthSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEndpointHealthSamples.java
index a0dd12653cd4d..fcc37675bd9e2 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource GetEndpointHealth. */
public final class IotHubResourceGetEndpointHealthSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_routingendpointhealth.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_routingendpointhealth.json
*/
/**
* Sample code: IotHubResource_GetEndpointHealth.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEventHubConsumerGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetEventHubConsumerGroupSamples.java
index 3cc209523a723..145f4d7b880a4 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource GetEventHubConsumerGroup. */
public final class IotHubResourceGetEventHubConsumerGroupSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getconsumergroup.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getconsumergroup.json
*/
/**
* Sample code: IotHubResource_ListEventHubConsumerGroups.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetJobSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetJobSamples.java
index f9f1433d38572..86dd333e9b54f 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource GetJob. */
public final class IotHubResourceGetJobSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getjob.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getjob.json
*/
/**
* Sample code: IotHubResource_GetJob.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetKeysForKeyNameSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetKeysForKeyNameSamples.java
index 11dffec06eab5..b0d7c7990dd60 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource GetKeysForKeyName. */
public final class IotHubResourceGetKeysForKeyNameSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getkey.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getkey.json
*/
/**
* Sample code: IotHubResource_GetKeysForKeyName.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetQuotaMetricsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetQuotaMetricsSamples.java
index 775e10695bb58..e989c9a3f4a10 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource GetQuotaMetrics. */
public final class IotHubResourceGetQuotaMetricsSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_quotametrics.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_quotametrics.json
*/
/**
* Sample code: IotHubResource_GetQuotaMetrics.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetStatsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetStatsSamples.java
index dcc8d008d25d6..d71b8c55cb7dd 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource GetStats. */
public final class IotHubResourceGetStatsSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_stats.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_stats.json
*/
/**
* Sample code: IotHubResource_GetStats.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetValidSkusSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceGetValidSkusSamples.java
index bfe42046f6a48..373995837ff2e 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource GetValidSkus. */
public final class IotHubResourceGetValidSkusSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getskus.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getskus.json
*/
/**
* Sample code: IotHubResource_GetValidSkus.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceImportDevicesSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceImportDevicesSamples.java
index 79cd595c5497f..ee1dec33976d5 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
@@ -9,7 +9,7 @@
/** Samples for IotHubResource ImportDevices. */
public final class IotHubResourceImportDevicesSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_importdevices.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_importdevices.json
*/
/**
* Sample code: IotHubResource_ImportDevices.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListByResourceGroupSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListByResourceGroupSamples.java
index fe778d1ed072c..31b08c4fd85a6 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource ListByResourceGroup. */
public final class IotHubResourceListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listbyrg.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listbyrg.json
*/
/**
* Sample code: IotHubResource_ListByResourceGroup.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListEventHubConsumerGroupsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListEventHubConsumerGroupsSamples.java
index a8dad23085abc..85a5db7da23c1 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource ListEventHubConsumerGroups. */
public final class IotHubResourceListEventHubConsumerGroupsSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listehgroups.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listehgroups.json
*/
/**
* Sample code: IotHubResource_ListEventHubConsumerGroups.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListJobsSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListJobsSamples.java
index 04018569eddbf..fc94fc92359a1 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource ListJobs. */
public final class IotHubResourceListJobsSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listjobs.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listjobs.json
*/
/**
* Sample code: IotHubResource_ListJobs.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListKeysSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListKeysSamples.java
index bdf5149ef1e81..b5bdbd5455203 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource ListKeys. */
public final class IotHubResourceListKeysSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listkeys.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listkeys.json
*/
/**
* Sample code: IotHubResource_ListKeys.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceListSamples.java
index 7a5d05862b020..8eaaa01093b21 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
@@ -7,7 +7,7 @@
/** Samples for IotHubResource List. */
public final class IotHubResourceListSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listbysubscription.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listbysubscription.json
*/
/**
* Sample code: IotHubResource_ListBySubscription.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestAllRoutesSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/IotHubResourceTestAllRoutesSamples.java
index 99e3f501bb25f..c5f9ace412d9d 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
@@ -13,7 +13,7 @@
/** Samples for IotHubResource TestAllRoutes. */
public final class IotHubResourceTestAllRoutesSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_testallroutes.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_testallroutes.json
*/
/**
* Sample code: IotHubResource_TestAllRoutes.
@@ -31,11 +31,12 @@ public static void iotHubResourceTestAllRoutes(com.azure.resourcemanager.iothub.
.withMessage(
new RoutingMessage()
.withBody("Body of message")
- .withAppProperties(mapOf("key1", "value1"))
- .withSystemProperties(mapOf("key1", "value1"))),
+ .withAppProperties(mapOf("key1", "fakeTokenPlaceholder"))
+ .withSystemProperties(mapOf("key1", "fakeTokenPlaceholder"))),
com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 f789024375dad..e82ddbd23a66e 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
@@ -15,7 +15,7 @@
/** Samples for IotHubResource TestRoute. */
public final class IotHubResourceTestRouteSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_testnewroute.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_testnewroute.json
*/
/**
* Sample code: IotHubResource_TestRoute.
@@ -32,8 +32,8 @@ public static void iotHubResourceTestRoute(com.azure.resourcemanager.iothub.IotH
.withMessage(
new RoutingMessage()
.withBody("Body of message")
- .withAppProperties(mapOf("key1", "value1"))
- .withSystemProperties(mapOf("key1", "value1")))
+ .withAppProperties(mapOf("key1", "fakeTokenPlaceholder"))
+ .withSystemProperties(mapOf("key1", "fakeTokenPlaceholder")))
.withRoute(
new RouteProperties()
.withName("Routeid")
@@ -43,6 +43,7 @@ public static void iotHubResourceTestRoute(com.azure.resourcemanager.iothub.IotH
com.azure.core.util.Context.NONE);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 be13f9a3482cb..7d05bdcf1449f 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
@@ -11,7 +11,7 @@
/** Samples for IotHubResource Update. */
public final class IotHubResourceUpdateSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_patch.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_patch.json
*/
/**
* Sample code: IotHubResource_Update.
@@ -27,6 +27,7 @@ public static void iotHubResourceUpdate(com.azure.resourcemanager.iothub.IotHubM
resource.update().withTags(mapOf("foo", "bar")).apply();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 c93d77c1a4e58..c716283445a8a 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
@@ -7,7 +7,7 @@
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_operations.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_operations.json
*/
/**
* Sample code: Operations_List.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsDeleteSamples.java
index dc62553134aa1..983a15a792bf1 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
@@ -7,7 +7,7 @@
/** Samples for PrivateEndpointConnections Delete. */
public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_deleteprivateendpointconnection.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_deleteprivateendpointconnection.json
*/
/**
* Sample code: PrivateEndpointConnection_Delete.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsGetSamples.java
index 92f0726359ded..2b8a33287fb8c 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
@@ -7,7 +7,7 @@
/** Samples for PrivateEndpointConnections Get. */
public final class PrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getprivateendpointconnection.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getprivateendpointconnection.json
*/
/**
* Sample code: PrivateEndpointConnection_Get.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsListSamples.java
index 9d8e94e9e8a24..a347f96002c23 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
@@ -7,7 +7,7 @@
/** Samples for PrivateEndpointConnections List. */
public final class PrivateEndpointConnectionsListSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listprivateendpointconnections.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listprivateendpointconnections.json
*/
/**
* Sample code: PrivateEndpointConnections_List.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateEndpointConnectionsUpdateSamples.java
index 3602c49e06518..8eecd2be18d16 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
@@ -12,7 +12,7 @@
/** Samples for PrivateEndpointConnections Update. */
public final class PrivateEndpointConnectionsUpdateSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_updateprivateendpointconnection.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_updateprivateendpointconnection.json
*/
/**
* Sample code: PrivateEndpointConnection_Update.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationGetSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationGetSamples.java
index 91b76b03ae032..4abfb3500bc04 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
@@ -7,7 +7,7 @@
/** Samples for PrivateLinkResourcesOperation Get. */
public final class PrivateLinkResourcesOperationGetSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_getprivatelinkresources.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_getprivatelinkresources.json
*/
/**
* Sample code: PrivateLinkResources_List.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationListSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/PrivateLinkResourcesOperationListSamples.java
index c29dca7b0181d..29a173ce085af 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
@@ -7,7 +7,7 @@
/** Samples for PrivateLinkResourcesOperation List. */
public final class PrivateLinkResourcesOperationListSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_listprivatelinkresources.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/iothub_listprivatelinkresources.json
*/
/**
* Sample code: PrivateLinkResources_List.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonGetSubscriptionQuotaSamples.java b/sdk/iothub/azure-resourcemanager-iothub/src/samples/java/com/azure/resourcemanager/iothub/generated/ResourceProviderCommonGetSubscriptionQuotaSamples.java
index 4c164be4dd8fb..5c81974a3a6b6 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
@@ -7,7 +7,7 @@
/** Samples for ResourceProviderCommon GetSubscriptionQuota. */
public final class ResourceProviderCommonGetSubscriptionQuotaSamples {
/*
- * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-15-preview/examples/iothub_usages.json
+ * x-ms-original-file: specification/iothub/resource-manager/Microsoft.Devices/preview/2023-06-30-preview/examples/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 03bcc450e7305..422765ac07624 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
@@ -18,31 +18,22 @@ public void testDeserialize() throws Exception {
ArmIdentity model =
BinaryData
.fromString(
- "{\"principalId\":\"ec\",\"tenantId\":\"odebfqkkrbmpu\",\"type\":\"SystemAssigned,"
- + " UserAssigned\",\"userAssignedIdentities\":{\"y\":{\"principalId\":\"lzlfbxzpuz\",\"clientId\":\"ispnqzahmgkbrp\"},\"buynhijggm\":{\"principalId\":\"ibnuqqkpik\",\"clientId\":\"rgvtqag\"},\"jrunmpxtt\":{\"principalId\":\"fsiarbutr\",\"clientId\":\"pnazzm\"},\"qidybyx\":{\"principalId\":\"hrbnlankxmyskpbh\",\"clientId\":\"btkcxywnytnrsyn\"}}}")
+ "{\"principalId\":\"osvmk\",\"tenantId\":\"sxqu\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"i\":{\"principalId\":\"mg\",\"clientId\":\"nkjzkdeslpvlop\"}}}")
.toObject(ArmIdentity.class);
- Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type());
+ Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
ArmIdentity model =
new ArmIdentity()
- .withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf(
- "y",
- new ArmUserIdentity(),
- "buynhijggm",
- new ArmUserIdentity(),
- "jrunmpxtt",
- new ArmUserIdentity(),
- "qidybyx",
- new ArmUserIdentity()));
+ .withType(ResourceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("i", new ArmUserIdentity()));
model = BinaryData.fromObject(model).toObject(ArmIdentity.class);
- Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type());
+ Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type());
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 61113032d11e6..18016479d5c4f 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
@@ -12,7 +12,7 @@ public final class ArmUserIdentityTests {
public void testDeserialize() throws Exception {
ArmUserIdentity model =
BinaryData
- .fromString("{\"principalId\":\"fclhaaxdbabphlwr\",\"clientId\":\"fkts\"}")
+ .fromString("{\"principalId\":\"ghxpkdw\",\"clientId\":\"aiuebbaumnyqu\"}")
.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 0365d2c4987c0..a519641378a85 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
@@ -15,22 +15,22 @@ public void testDeserialize() throws Exception {
CertificateDescriptionInner model =
BinaryData
.fromString(
- "{\"properties\":{\"subject\":\"mond\",\"expiry\":\"Thu, 01 Apr 2021 23:21:50"
- + " GMT\",\"thumbprint\":\"xvy\",\"isVerified\":false,\"created\":\"Fri, 01 Oct 2021 02:55:48"
- + " GMT\",\"updated\":\"Mon, 25 Jan 2021 05:21:40"
- + " GMT\",\"certificate\":\"whojvp\"},\"etag\":\"qgxy\",\"id\":\"mocmbqfqvmk\",\"name\":\"xozap\",\"type\":\"helxprglya\"}")
+ "{\"properties\":{\"subject\":\"hqmibzyhwit\",\"expiry\":\"Tue, 19 Jan 2021 20:22:32"
+ + " GMT\",\"thumbprint\":\"yynpcdpumnzgmwz\",\"isVerified\":false,\"created\":\"Tue, 29 Dec"
+ + " 2020 02:38:39 GMT\",\"updated\":\"Sat, 13 Nov 2021 04:07:40"
+ + " GMT\",\"certificate\":\"orgjhxbldt\"},\"etag\":\"wrlkdmtn\",\"id\":\"vokotllxdyh\",\"name\":\"syocogjltdtbnnha\",\"type\":\"oocrkvcikhnv\"}")
.toObject(CertificateDescriptionInner.class);
Assertions.assertEquals(false, model.properties().isVerified());
- Assertions.assertEquals("whojvp", model.properties().certificate());
+ Assertions.assertEquals("orgjhxbldt", model.properties().certificate());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
CertificateDescriptionInner model =
new CertificateDescriptionInner()
- .withProperties(new CertificateProperties().withIsVerified(false).withCertificate("whojvp"));
+ .withProperties(new CertificateProperties().withIsVerified(false).withCertificate("orgjhxbldt"));
model = BinaryData.fromObject(model).toObject(CertificateDescriptionInner.class);
Assertions.assertEquals(false, model.properties().isVerified());
- Assertions.assertEquals("whojvp", model.properties().certificate());
+ Assertions.assertEquals("orgjhxbldt", model.properties().certificate());
}
}
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 68f25228db7df..6ecc87295bf37 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
@@ -17,13 +17,21 @@ public void testDeserialize() throws Exception {
CertificateListDescriptionInner model =
BinaryData
.fromString(
- "{\"value\":[{\"properties\":{\"subject\":\"uoegrpkhjwniyqs\",\"expiry\":\"Mon, 01 Mar 2021"
- + " 06:19:30 GMT\",\"thumbprint\":\"pdggkzzlvm\",\"isVerified\":true,\"created\":\"Fri, 04 Jun"
- + " 2021 21:38:56 GMT\",\"updated\":\"Wed, 28 Apr 2021 10:55:20"
- + " GMT\",\"certificate\":\"fv\"},\"etag\":\"fy\",\"id\":\"sbpfvmwyhr\",\"name\":\"ouyftaakc\",\"type\":\"wiyzvqtmnubexkp\"}]}")
+ "{\"value\":[{\"properties\":{\"subject\":\"pi\",\"expiry\":\"Tue, 19 Oct 2021 14:06:55"
+ + " GMT\",\"thumbprint\":\"asipqiio\",\"isVerified\":true,\"created\":\"Thu, 18 Mar 2021"
+ + " 06:13:46 GMT\",\"updated\":\"Wed, 21 Apr 2021 03:54:57"
+ + " GMT\",\"certificate\":\"lp\"},\"etag\":\"cciuqgbdbutau\",\"id\":\"fbtkuwhhmhyk\",\"name\":\"joxafnndlpi\",\"type\":\"hkoymkcdyhbp\"},{\"properties\":{\"subject\":\"wdreqnovvqfovl\",\"expiry\":\"Sun,"
+ + " 13 Jun 2021 02:13:45"
+ + " GMT\",\"thumbprint\":\"suwsyrsnds\",\"isVerified\":false,\"created\":\"Wed, 20 Jan 2021"
+ + " 22:42:12 GMT\",\"updated\":\"Sat, 23 Oct 2021 00:50:26"
+ + " GMT\",\"certificate\":\"aeaeneqnzarrw\"},\"etag\":\"uu\",\"id\":\"jfqka\",\"name\":\"e\",\"type\":\"iipfpubj\"},{\"properties\":{\"subject\":\"wifto\",\"expiry\":\"Thu,"
+ + " 18 Mar 2021 06:53:54"
+ + " GMT\",\"thumbprint\":\"uvksgplsaknynfsy\",\"isVerified\":true,\"created\":\"Sun, 28 Feb"
+ + " 2021 17:47:31 GMT\",\"updated\":\"Wed, 21 Apr 2021 04:25:24"
+ + " GMT\",\"certificate\":\"xodlqiyntorzih\"},\"etag\":\"osjswsr\",\"id\":\"slyzrpzbchckqq\",\"name\":\"qioxi\",\"type\":\"suiizynkedyat\"}]}")
.toObject(CertificateListDescriptionInner.class);
Assertions.assertEquals(true, model.value().get(0).properties().isVerified());
- Assertions.assertEquals("fv", model.value().get(0).properties().certificate());
+ Assertions.assertEquals("lp", model.value().get(0).properties().certificate());
}
@org.junit.jupiter.api.Test
@@ -33,11 +41,18 @@ public void testSerialize() throws Exception {
.withValue(
Arrays
.asList(
+ new CertificateDescriptionInner()
+ .withProperties(new CertificateProperties().withIsVerified(true).withCertificate("lp")),
+ new CertificateDescriptionInner()
+ .withProperties(
+ new CertificateProperties().withIsVerified(false).withCertificate("aeaeneqnzarrw")),
new CertificateDescriptionInner()
.withProperties(
- new CertificateProperties().withIsVerified(true).withCertificate("fv"))));
+ new CertificateProperties()
+ .withIsVerified(true)
+ .withCertificate("xodlqiyntorzih"))));
model = BinaryData.fromObject(model).toObject(CertificateListDescriptionInner.class);
Assertions.assertEquals(true, model.value().get(0).properties().isVerified());
- Assertions.assertEquals("fv", model.value().get(0).properties().certificate());
+ Assertions.assertEquals("lp", model.value().get(0).properties().certificate());
}
}
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 7a6a118d66a25..236e0879f1363 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
@@ -14,21 +14,19 @@ public void testDeserialize() throws Exception {
CertificateProperties model =
BinaryData
.fromString(
- "{\"subject\":\"dckcbc\",\"expiry\":\"Thu, 29 Jul 2021 04:12:00"
- + " GMT\",\"thumbprint\":\"jxgciqibrh\",\"isVerified\":true,\"created\":\"Tue, 01 Jun 2021"
- + " 12:21:20 GMT\",\"updated\":\"Thu, 04 Feb 2021 15:03:28"
- + " GMT\",\"certificate\":\"zoymibmrqyibahw\"}")
+ "{\"subject\":\"mqg\",\"expiry\":\"Sun, 23 May 2021 12:54:12"
+ + " GMT\",\"thumbprint\":\"ezikywggxkal\",\"isVerified\":false,\"created\":\"Thu, 13 May 2021"
+ + " 13:09:28 GMT\",\"updated\":\"Sun, 17 Oct 2021 13:51:53 GMT\",\"certificate\":\"ipicc\"}")
.toObject(CertificateProperties.class);
- Assertions.assertEquals(true, model.isVerified());
- Assertions.assertEquals("zoymibmrqyibahw", model.certificate());
+ Assertions.assertEquals(false, model.isVerified());
+ Assertions.assertEquals("ipicc", model.certificate());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- CertificateProperties model =
- new CertificateProperties().withIsVerified(true).withCertificate("zoymibmrqyibahw");
+ CertificateProperties model = new CertificateProperties().withIsVerified(false).withCertificate("ipicc");
model = BinaryData.fromObject(model).toObject(CertificateProperties.class);
- Assertions.assertEquals(true, model.isVerified());
- Assertions.assertEquals("zoymibmrqyibahw", model.certificate());
+ Assertions.assertEquals(false, model.isVerified());
+ Assertions.assertEquals("ipicc", model.certificate());
}
}
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 9cc2361442138..f8f01e21d1a45 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
@@ -12,14 +12,17 @@ public final class CertificateVerificationDescriptionTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
CertificateVerificationDescription model =
- BinaryData.fromString("{\"certificate\":\"pqlpq\"}").toObject(CertificateVerificationDescription.class);
- Assertions.assertEquals("pqlpq", model.certificate());
+ BinaryData
+ .fromString("{\"certificate\":\"epxgyqagvr\"}")
+ .toObject(CertificateVerificationDescription.class);
+ Assertions.assertEquals("epxgyqagvr", model.certificate());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- CertificateVerificationDescription model = new CertificateVerificationDescription().withCertificate("pqlpq");
+ CertificateVerificationDescription model =
+ new CertificateVerificationDescription().withCertificate("epxgyqagvr");
model = BinaryData.fromObject(model).toObject(CertificateVerificationDescription.class);
- Assertions.assertEquals("pqlpq", model.certificate());
+ Assertions.assertEquals("epxgyqagvr", 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 fd1ac1ed46d5a..1da992cd1df86 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
@@ -32,10 +32,10 @@ public void testCreateOrUpdateWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"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\"},\"etag\":\"opqgikyzirtxdyux\",\"id\":\"ejnt\",\"name\":\"sewgioilqukr\",\"type\":\"dxtqmieoxo\"}";
+ "{\"properties\":{\"subject\":\"sjnhn\",\"expiry\":\"Thu, 15 Apr 2021 22:34:41"
+ + " GMT\",\"thumbprint\":\"fq\",\"isVerified\":true,\"created\":\"Mon, 01 Mar 2021 20:41:09"
+ + " GMT\",\"updated\":\"Sat, 17 Jul 2021 07:30:37"
+ + " GMT\",\"certificate\":\"blwpcesutrgj\"},\"etag\":\"auutpwoqhihe\",\"id\":\"qg\",\"name\":\"zpnfqntcypsxj\",\"type\":\"foimwkslircizjxv\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -66,13 +66,13 @@ public void testCreateOrUpdateWithResponse() throws Exception {
CertificateDescription response =
manager
.certificates()
- .define("mqnrojlpijnkr")
- .withExistingIotHub("knpirgnepttwq", "sniffc")
- .withProperties(new CertificateProperties().withIsVerified(false).withCertificate("f"))
- .withIfMatch("jbdhqxvc")
+ .define("bgye")
+ .withExistingIotHub("ujviylwdshfs", "n")
+ .withProperties(new CertificateProperties().withIsVerified(true).withCertificate("oxoftpipiwycz"))
+ .withIfMatch("euzvx")
.create();
Assertions.assertEquals(true, response.properties().isVerified());
- Assertions.assertEquals("nvjsrtkfa", response.properties().certificate());
+ Assertions.assertEquals("blwpcesutrgj", response.properties().certificate());
}
}
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 06719c6424385..47db16d3542e6 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
@@ -56,8 +56,6 @@ public void testDeleteWithResponse() throws Exception {
tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
new AzureProfile("", "", AzureEnvironment.AZURE));
- manager
- .certificates()
- .deleteWithResponse("azpxdtnkdmkqjjl", "uenvrkp", "ou", "ibreb", com.azure.core.util.Context.NONE);
+ manager.certificates().deleteWithResponse("zq", "zh", "tw", "sgogczhonnxk", 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 23ea834c27a5d..cf8c00f687515 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
@@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"properties\":{\"subject\":\"lmv\",\"expiry\":\"Sun, 26 Sep 2021 11:18:34"
- + " GMT\",\"thumbprint\":\"ktgplcr\",\"isVerified\":true,\"created\":\"Fri, 19 Nov 2021 13:53:17"
- + " GMT\",\"updated\":\"Fri, 05 Mar 2021 15:11:27"
- + " GMT\",\"certificate\":\"igbrnjw\"},\"etag\":\"kpnb\",\"id\":\"azej\",\"name\":\"oqkag\",\"type\":\"hsxttaugzxnf\"}";
+ "{\"properties\":{\"subject\":\"einqf\",\"expiry\":\"Mon, 10 May 2021 20:16:44"
+ + " GMT\",\"thumbprint\":\"qknp\",\"isVerified\":true,\"created\":\"Sun, 25 Apr 2021 01:28:07"
+ + " GMT\",\"updated\":\"Fri, 15 Oct 2021 22:08:17"
+ + " GMT\",\"certificate\":\"wqmsniffcdmqn\"},\"etag\":\"jlpijnkrx\",\"id\":\"rddh\",\"name\":\"ratiz\",\"type\":\"ronasxift\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -65,10 +65,10 @@ public void testGetWithResponse() throws Exception {
CertificateDescription response =
manager
.certificates()
- .getWithResponse("waekrrjreafxtsgu", "hjglikk", "wslolbqp", com.azure.core.util.Context.NONE)
+ .getWithResponse("uu", "fdlwg", "ytsbwtovv", com.azure.core.util.Context.NONE)
.getValue();
Assertions.assertEquals(true, response.properties().isVerified());
- Assertions.assertEquals("igbrnjw", response.properties().certificate());
+ Assertions.assertEquals("wqmsniffcdmqn", response.properties().certificate());
}
}
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 f29712dd56cd9..843b75e3d238f 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
@@ -16,6 +16,7 @@
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.time.OffsetDateTime;
+import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
@@ -30,7 +31,10 @@ public void testListByIotHubWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"value\":[{\"etag\":\"l\",\"id\":\"dn\",\"name\":\"itvgbmhrixkwm\",\"type\":\"ijejvegrhbpn\"},{\"etag\":\"exccbdreaxhcexd\",\"id\":\"rvqahqkghtpwi\",\"name\":\"nhyjsv\",\"type\":\"ycxzbfvoo\"},{\"etag\":\"vmtgjqppy\",\"id\":\"s\",\"name\":\"ronzmyhgfip\",\"type\":\"sxkm\"}]}";
+ "{\"value\":[{\"properties\":{\"subject\":\"coolsttpkiwkkb\",\"expiry\":\"Mon, 31 May 2021 01:02:38"
+ + " GMT\",\"thumbprint\":\"ywvtylbfpnc\",\"isVerified\":false,\"created\":\"Sat, 16 Oct 2021 01:33:12"
+ + " GMT\",\"updated\":\"Sat, 03 Apr 2021 12:46:32"
+ + " GMT\",\"certificate\":\"thtywub\"},\"etag\":\"bihwqknfdnt\",\"id\":\"jchrdgoihxumw\",\"name\":\"ton\",\"type\":\"zj\"}]}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -59,6 +63,12 @@ public void testListByIotHubWithResponse() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
CertificateListDescription response =
- manager.certificates().listByIotHubWithResponse("xuvw", "fbn", com.azure.core.util.Context.NONE).getValue();
+ manager
+ .certificates()
+ .listByIotHubWithResponse("totxhojujb", "pelmcuvhixbjxyf", com.azure.core.util.Context.NONE)
+ .getValue();
+
+ Assertions.assertEquals(false, response.value().get(0).properties().isVerified());
+ Assertions.assertEquals("thtywub", response.value().get(0).properties().certificate());
}
}
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 813bfa9725f9e..416bbb7645a58 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
@@ -32,10 +32,10 @@ public void testVerifyWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"properties\":{\"subject\":\"iithtywu\",\"expiry\":\"Sat, 06 Mar 2021 07:21:05"
- + " GMT\",\"thumbprint\":\"ihwqknfdntwjchr\",\"isVerified\":true,\"created\":\"Tue, 05 Oct 2021"
- + " 08:32:44 GMT\",\"updated\":\"Fri, 19 Mar 2021 07:37:05"
- + " GMT\",\"certificate\":\"wct\"},\"etag\":\"dzjlu\",\"id\":\"dfdlwggyts\",\"name\":\"wtovvtgsein\",\"type\":\"fiufx\"}";
+ "{\"properties\":{\"subject\":\"gufhyaomtbg\",\"expiry\":\"Sat, 24 Apr 2021 04:26:41"
+ + " GMT\",\"thumbprint\":\"grvk\",\"isVerified\":true,\"created\":\"Wed, 20 Jan 2021 03:53:05"
+ + " GMT\",\"updated\":\"Tue, 28 Sep 2021 04:32:09"
+ + " GMT\",\"certificate\":\"jbibg\"},\"etag\":\"fxumv\",\"id\":\"cluyovwxnbkf\",\"name\":\"zzxscyhwzdgiruj\",\"type\":\"zbomvzzbtdcqvpni\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -67,15 +67,15 @@ public void testVerifyWithResponse() throws Exception {
manager
.certificates()
.verifyWithResponse(
- "hfstotxhojujbyp",
- "lmcuvhixb",
- "xyfwnylrcool",
- "ttpkiwkkbnujrywv",
- new CertificateVerificationDescription().withCertificate("lbfpncurd"),
+ "nopqgikyzirtx",
+ "yuxzejntpsewgi",
+ "ilqu",
+ "rydxtqm",
+ new CertificateVerificationDescription().withCertificate("ox"),
com.azure.core.util.Context.NONE)
.getValue();
Assertions.assertEquals(true, response.properties().isVerified());
- Assertions.assertEquals("wct", response.properties().certificate());
+ Assertions.assertEquals("jbibg", response.properties().certificate());
}
}
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 4e65ca2aa4e72..0b2b8cce2d717 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
@@ -16,31 +16,31 @@ public void testDeserialize() throws Exception {
CloudToDeviceProperties model =
BinaryData
.fromString(
- "{\"maxDeliveryCount\":1121109847,\"defaultTtlAsIso8601\":\"PT84H30M6S\",\"feedback\":{\"lockDurationAsIso8601\":\"PT9H8M5S\",\"ttlAsIso8601\":\"PT205H49M51S\",\"maxDeliveryCount\":1139583555}}")
+ "{\"maxDeliveryCount\":122451420,\"defaultTtlAsIso8601\":\"PT222H46M37S\",\"feedback\":{\"lockDurationAsIso8601\":\"PT201H34M46S\",\"ttlAsIso8601\":\"PT182H51M49S\",\"maxDeliveryCount\":413176852}}")
.toObject(CloudToDeviceProperties.class);
- Assertions.assertEquals(1121109847, model.maxDeliveryCount());
- Assertions.assertEquals(Duration.parse("PT84H30M6S"), model.defaultTtlAsIso8601());
- Assertions.assertEquals(Duration.parse("PT9H8M5S"), model.feedback().lockDurationAsIso8601());
- Assertions.assertEquals(Duration.parse("PT205H49M51S"), model.feedback().ttlAsIso8601());
- Assertions.assertEquals(1139583555, model.feedback().maxDeliveryCount());
+ Assertions.assertEquals(122451420, model.maxDeliveryCount());
+ Assertions.assertEquals(Duration.parse("PT222H46M37S"), model.defaultTtlAsIso8601());
+ Assertions.assertEquals(Duration.parse("PT201H34M46S"), model.feedback().lockDurationAsIso8601());
+ Assertions.assertEquals(Duration.parse("PT182H51M49S"), model.feedback().ttlAsIso8601());
+ Assertions.assertEquals(413176852, model.feedback().maxDeliveryCount());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
CloudToDeviceProperties model =
new CloudToDeviceProperties()
- .withMaxDeliveryCount(1121109847)
- .withDefaultTtlAsIso8601(Duration.parse("PT84H30M6S"))
+ .withMaxDeliveryCount(122451420)
+ .withDefaultTtlAsIso8601(Duration.parse("PT222H46M37S"))
.withFeedback(
new FeedbackProperties()
- .withLockDurationAsIso8601(Duration.parse("PT9H8M5S"))
- .withTtlAsIso8601(Duration.parse("PT205H49M51S"))
- .withMaxDeliveryCount(1139583555));
+ .withLockDurationAsIso8601(Duration.parse("PT201H34M46S"))
+ .withTtlAsIso8601(Duration.parse("PT182H51M49S"))
+ .withMaxDeliveryCount(413176852));
model = BinaryData.fromObject(model).toObject(CloudToDeviceProperties.class);
- Assertions.assertEquals(1121109847, model.maxDeliveryCount());
- Assertions.assertEquals(Duration.parse("PT84H30M6S"), model.defaultTtlAsIso8601());
- Assertions.assertEquals(Duration.parse("PT9H8M5S"), model.feedback().lockDurationAsIso8601());
- Assertions.assertEquals(Duration.parse("PT205H49M51S"), model.feedback().ttlAsIso8601());
- Assertions.assertEquals(1139583555, model.feedback().maxDeliveryCount());
+ Assertions.assertEquals(122451420, model.maxDeliveryCount());
+ Assertions.assertEquals(Duration.parse("PT222H46M37S"), model.defaultTtlAsIso8601());
+ Assertions.assertEquals(Duration.parse("PT201H34M46S"), model.feedback().lockDurationAsIso8601());
+ Assertions.assertEquals(Duration.parse("PT182H51M49S"), model.feedback().ttlAsIso8601());
+ Assertions.assertEquals(413176852, model.feedback().maxDeliveryCount());
}
}
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 9998aeb0495c8..7969089f2b854 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
@@ -16,34 +16,34 @@ public void testDeserialize() throws Exception {
EndpointHealthDataInner model =
BinaryData
.fromString(
- "{\"endpointId\":\"p\",\"healthStatus\":\"unknown\",\"lastKnownError\":\"ofd\",\"lastKnownErrorTime\":\"Sun,"
- + " 25 Apr 2021 06:48:17 GMT\",\"lastSuccessfulSendAttemptTime\":\"Tue, 15 Jun 2021 07:35:54"
- + " GMT\",\"lastSendAttemptTime\":\"Fri, 22 Jan 2021 23:23:23 GMT\"}")
+ "{\"endpointId\":\"nrmfqjhhk\",\"healthStatus\":\"dead\",\"lastKnownError\":\"jy\",\"lastKnownErrorTime\":\"Sun,"
+ + " 10 Jan 2021 13:36:41 GMT\",\"lastSuccessfulSendAttemptTime\":\"Thu, 29 Jul 2021 03:03:57"
+ + " GMT\",\"lastSendAttemptTime\":\"Wed, 01 Dec 2021 23:11:57 GMT\"}")
.toObject(EndpointHealthDataInner.class);
- Assertions.assertEquals("p", model.endpointId());
- Assertions.assertEquals(EndpointHealthStatus.UNKNOWN, model.healthStatus());
- Assertions.assertEquals("ofd", model.lastKnownError());
- Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T06:48:17Z"), model.lastKnownErrorTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T07:35:54Z"), model.lastSuccessfulSendAttemptTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T23:23:23Z"), model.lastSendAttemptTime());
+ Assertions.assertEquals("nrmfqjhhk", model.endpointId());
+ Assertions.assertEquals(EndpointHealthStatus.DEAD, model.healthStatus());
+ Assertions.assertEquals("jy", model.lastKnownError());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T13:36:41Z"), model.lastKnownErrorTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-07-29T03:03:57Z"), model.lastSuccessfulSendAttemptTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-12-01T23:11:57Z"), model.lastSendAttemptTime());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
EndpointHealthDataInner model =
new EndpointHealthDataInner()
- .withEndpointId("p")
- .withHealthStatus(EndpointHealthStatus.UNKNOWN)
- .withLastKnownError("ofd")
- .withLastKnownErrorTime(OffsetDateTime.parse("2021-04-25T06:48:17Z"))
- .withLastSuccessfulSendAttemptTime(OffsetDateTime.parse("2021-06-15T07:35:54Z"))
- .withLastSendAttemptTime(OffsetDateTime.parse("2021-01-22T23:23:23Z"));
+ .withEndpointId("nrmfqjhhk")
+ .withHealthStatus(EndpointHealthStatus.DEAD)
+ .withLastKnownError("jy")
+ .withLastKnownErrorTime(OffsetDateTime.parse("2021-01-10T13:36:41Z"))
+ .withLastSuccessfulSendAttemptTime(OffsetDateTime.parse("2021-07-29T03:03:57Z"))
+ .withLastSendAttemptTime(OffsetDateTime.parse("2021-12-01T23:11:57Z"));
model = BinaryData.fromObject(model).toObject(EndpointHealthDataInner.class);
- Assertions.assertEquals("p", model.endpointId());
- Assertions.assertEquals(EndpointHealthStatus.UNKNOWN, model.healthStatus());
- Assertions.assertEquals("ofd", model.lastKnownError());
- Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T06:48:17Z"), model.lastKnownErrorTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T07:35:54Z"), model.lastSuccessfulSendAttemptTime());
- Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T23:23:23Z"), model.lastSendAttemptTime());
+ Assertions.assertEquals("nrmfqjhhk", model.endpointId());
+ Assertions.assertEquals(EndpointHealthStatus.DEAD, model.healthStatus());
+ Assertions.assertEquals("jy", model.lastKnownError());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T13:36:41Z"), model.lastKnownErrorTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-07-29T03:03:57Z"), model.lastSuccessfulSendAttemptTime());
+ Assertions.assertEquals(OffsetDateTime.parse("2021-12-01T23:11:57Z"), 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 49f43091d4ea8..b3b2e8e0cc8dd 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
@@ -18,29 +18,24 @@ public void testDeserialize() throws Exception {
EndpointHealthDataListResult model =
BinaryData
.fromString(
- "{\"value\":[{\"endpointId\":\"zvahapjy\",\"healthStatus\":\"dead\",\"lastKnownError\":\"gqzcjr\",\"lastKnownErrorTime\":\"Sat,"
- + " 03 Apr 2021 19:52:37 GMT\",\"lastSuccessfulSendAttemptTime\":\"Sat, 05 Jun 2021 18:59:27"
- + " GMT\",\"lastSendAttemptTime\":\"Sat, 04 Sep 2021 18:51:43"
- + " GMT\"},{\"endpointId\":\"lxkvu\",\"healthStatus\":\"degraded\",\"lastKnownError\":\"ovawjvzunlu\",\"lastKnownErrorTime\":\"Thu,"
- + " 05 Aug 2021 22:08:57 GMT\",\"lastSuccessfulSendAttemptTime\":\"Thu, 21 Jan 2021 11:08:17"
- + " GMT\",\"lastSendAttemptTime\":\"Thu, 11 Mar 2021 05:06:45"
- + " GMT\"},{\"endpointId\":\"i\",\"healthStatus\":\"healthy\",\"lastKnownError\":\"pjzu\",\"lastKnownErrorTime\":\"Tue,"
- + " 12 Oct 2021 12:24:32 GMT\",\"lastSuccessfulSendAttemptTime\":\"Mon, 21 Jun 2021 03:54:01"
- + " GMT\",\"lastSendAttemptTime\":\"Wed, 03 Nov 2021 21:00:46"
- + " GMT\"},{\"endpointId\":\"skzbb\",\"healthStatus\":\"dead\",\"lastKnownError\":\"mv\",\"lastKnownErrorTime\":\"Wed,"
- + " 24 Feb 2021 15:47:12 GMT\",\"lastSuccessfulSendAttemptTime\":\"Mon, 22 Mar 2021 15:40:44"
- + " GMT\",\"lastSendAttemptTime\":\"Thu, 01 Jul 2021 08:04:50 GMT\"}],\"nextLink\":\"uh\"}")
+ "{\"value\":[{\"endpointId\":\"tfdygpfqb\",\"healthStatus\":\"unhealthy\",\"lastKnownError\":\"op\",\"lastKnownErrorTime\":\"Thu,"
+ + " 15 Apr 2021 23:44:21 GMT\",\"lastSuccessfulSendAttemptTime\":\"Mon, 11 Oct 2021 15:02:03"
+ + " GMT\",\"lastSendAttemptTime\":\"Mon, 29 Mar 2021 02:40:43"
+ + " GMT\"},{\"endpointId\":\"opppcqeq\",\"healthStatus\":\"healthy\",\"lastKnownError\":\"dahzxctobg\",\"lastKnownErrorTime\":\"Wed,"
+ + " 01 Sep 2021 00:32:36 GMT\",\"lastSuccessfulSendAttemptTime\":\"Tue, 02 Mar 2021 22:54:24"
+ + " GMT\",\"lastSendAttemptTime\":\"Fri, 29 Jan 2021 19:09:38"
+ + " GMT\"}],\"nextLink\":\"ostmgrcf\"}")
.toObject(EndpointHealthDataListResult.class);
- Assertions.assertEquals("zvahapjy", model.value().get(0).endpointId());
- Assertions.assertEquals(EndpointHealthStatus.DEAD, model.value().get(0).healthStatus());
- Assertions.assertEquals("gqzcjr", model.value().get(0).lastKnownError());
+ Assertions.assertEquals("tfdygpfqb", model.value().get(0).endpointId());
+ Assertions.assertEquals(EndpointHealthStatus.UNHEALTHY, model.value().get(0).healthStatus());
+ Assertions.assertEquals("op", model.value().get(0).lastKnownError());
Assertions
- .assertEquals(OffsetDateTime.parse("2021-04-03T19:52:37Z"), model.value().get(0).lastKnownErrorTime());
+ .assertEquals(OffsetDateTime.parse("2021-04-15T23:44:21Z"), model.value().get(0).lastKnownErrorTime());
Assertions
.assertEquals(
- OffsetDateTime.parse("2021-06-05T18:59:27Z"), model.value().get(0).lastSuccessfulSendAttemptTime());
+ OffsetDateTime.parse("2021-10-11T15:02:03Z"), model.value().get(0).lastSuccessfulSendAttemptTime());
Assertions
- .assertEquals(OffsetDateTime.parse("2021-09-04T18:51:43Z"), model.value().get(0).lastSendAttemptTime());
+ .assertEquals(OffsetDateTime.parse("2021-03-29T02:40:43Z"), model.value().get(0).lastSendAttemptTime());
}
@org.junit.jupiter.api.Test
@@ -51,43 +46,29 @@ public void testSerialize() throws Exception {
Arrays
.asList(
new EndpointHealthDataInner()
- .withEndpointId("zvahapjy")
- .withHealthStatus(EndpointHealthStatus.DEAD)
- .withLastKnownError("gqzcjr")
- .withLastKnownErrorTime(OffsetDateTime.parse("2021-04-03T19:52:37Z"))
- .withLastSuccessfulSendAttemptTime(OffsetDateTime.parse("2021-06-05T18:59:27Z"))
- .withLastSendAttemptTime(OffsetDateTime.parse("2021-09-04T18:51:43Z")),
+ .withEndpointId("tfdygpfqb")
+ .withHealthStatus(EndpointHealthStatus.UNHEALTHY)
+ .withLastKnownError("op")
+ .withLastKnownErrorTime(OffsetDateTime.parse("2021-04-15T23:44:21Z"))
+ .withLastSuccessfulSendAttemptTime(OffsetDateTime.parse("2021-10-11T15:02:03Z"))
+ .withLastSendAttemptTime(OffsetDateTime.parse("2021-03-29T02:40:43Z")),
new EndpointHealthDataInner()
- .withEndpointId("lxkvu")
- .withHealthStatus(EndpointHealthStatus.DEGRADED)
- .withLastKnownError("ovawjvzunlu")
- .withLastKnownErrorTime(OffsetDateTime.parse("2021-08-05T22:08:57Z"))
- .withLastSuccessfulSendAttemptTime(OffsetDateTime.parse("2021-01-21T11:08:17Z"))
- .withLastSendAttemptTime(OffsetDateTime.parse("2021-03-11T05:06:45Z")),
- new EndpointHealthDataInner()
- .withEndpointId("i")
+ .withEndpointId("opppcqeq")
.withHealthStatus(EndpointHealthStatus.HEALTHY)
- .withLastKnownError("pjzu")
- .withLastKnownErrorTime(OffsetDateTime.parse("2021-10-12T12:24:32Z"))
- .withLastSuccessfulSendAttemptTime(OffsetDateTime.parse("2021-06-21T03:54:01Z"))
- .withLastSendAttemptTime(OffsetDateTime.parse("2021-11-03T21:00:46Z")),
- new EndpointHealthDataInner()
- .withEndpointId("skzbb")
- .withHealthStatus(EndpointHealthStatus.DEAD)
- .withLastKnownError("mv")
- .withLastKnownErrorTime(OffsetDateTime.parse("2021-02-24T15:47:12Z"))
- .withLastSuccessfulSendAttemptTime(OffsetDateTime.parse("2021-03-22T15:40:44Z"))
- .withLastSendAttemptTime(OffsetDateTime.parse("2021-07-01T08:04:50Z"))));
+ .withLastKnownError("dahzxctobg")
+ .withLastKnownErrorTime(OffsetDateTime.parse("2021-09-01T00:32:36Z"))
+ .withLastSuccessfulSendAttemptTime(OffsetDateTime.parse("2021-03-02T22:54:24Z"))
+ .withLastSendAttemptTime(OffsetDateTime.parse("2021-01-29T19:09:38Z"))));
model = BinaryData.fromObject(model).toObject(EndpointHealthDataListResult.class);
- Assertions.assertEquals("zvahapjy", model.value().get(0).endpointId());
- Assertions.assertEquals(EndpointHealthStatus.DEAD, model.value().get(0).healthStatus());
- Assertions.assertEquals("gqzcjr", model.value().get(0).lastKnownError());
+ Assertions.assertEquals("tfdygpfqb", model.value().get(0).endpointId());
+ Assertions.assertEquals(EndpointHealthStatus.UNHEALTHY, model.value().get(0).healthStatus());
+ Assertions.assertEquals("op", model.value().get(0).lastKnownError());
Assertions
- .assertEquals(OffsetDateTime.parse("2021-04-03T19:52:37Z"), model.value().get(0).lastKnownErrorTime());
+ .assertEquals(OffsetDateTime.parse("2021-04-15T23:44:21Z"), model.value().get(0).lastKnownErrorTime());
Assertions
.assertEquals(
- OffsetDateTime.parse("2021-06-05T18:59:27Z"), model.value().get(0).lastSuccessfulSendAttemptTime());
+ OffsetDateTime.parse("2021-10-11T15:02:03Z"), model.value().get(0).lastSuccessfulSendAttemptTime());
Assertions
- .assertEquals(OffsetDateTime.parse("2021-09-04T18:51:43Z"), model.value().get(0).lastSendAttemptTime());
+ .assertEquals(OffsetDateTime.parse("2021-03-29T02:40:43Z"), model.value().get(0).lastSendAttemptTime());
}
}
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 729d558bbb311..bcaf80d650365 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
@@ -14,16 +14,17 @@ public final class EventHubConsumerGroupBodyDescriptionTests {
public void testDeserialize() throws Exception {
EventHubConsumerGroupBodyDescription model =
BinaryData
- .fromString("{\"properties\":{\"name\":\"it\"}}")
+ .fromString("{\"properties\":{\"name\":\"gmtsavjcbpwxqpsr\"}}")
.toObject(EventHubConsumerGroupBodyDescription.class);
- Assertions.assertEquals("it", model.properties().name());
+ Assertions.assertEquals("gmtsavjcbpwxqpsr", model.properties().name());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
EventHubConsumerGroupBodyDescription model =
- new EventHubConsumerGroupBodyDescription().withProperties(new EventHubConsumerGroupName().withName("it"));
+ new EventHubConsumerGroupBodyDescription()
+ .withProperties(new EventHubConsumerGroupName().withName("gmtsavjcbpwxqpsr"));
model = BinaryData.fromObject(model).toObject(EventHubConsumerGroupBodyDescription.class);
- Assertions.assertEquals("it", model.properties().name());
+ Assertions.assertEquals("gmtsavjcbpwxqpsr", 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 96256a33881cb..c218fe2c43cfb 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
@@ -15,17 +15,19 @@ public void testDeserialize() throws Exception {
EventHubConsumerGroupInfoInner model =
BinaryData
.fromString(
- "{\"properties\":{\"cjooxdjebwpucwwf\":\"dataxcug\"},\"etag\":\"vbvmeu\",\"id\":\"civyhzceuo\",\"name\":\"gjrwjueiotwmcdyt\",\"type\":\"x\"}")
+ "{\"properties\":{\"ow\":\"databm\",\"qlveualupjmkh\":\"datawpr\",\"riplrbpbewtg\":\"dataxobbcswsrt\"},\"etag\":\"gblcgwxzvlvq\",\"id\":\"jkbegibtnmxiebww\",\"name\":\"loayqcgw\",\"type\":\"tzjuzgwyzmhtxo\"}")
.toObject(EventHubConsumerGroupInfoInner.class);
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
EventHubConsumerGroupInfoInner model =
- new EventHubConsumerGroupInfoInner().withProperties(mapOf("cjooxdjebwpucwwf", "dataxcug"));
+ new EventHubConsumerGroupInfoInner()
+ .withProperties(mapOf("ow", "databm", "qlveualupjmkh", "datawpr", "riplrbpbewtg", "dataxobbcswsrt"));
model = BinaryData.fromObject(model).toObject(EventHubConsumerGroupInfoInner.class);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 a7fbaf96b95e3..1da7710915197 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\":\"nrjawgqwg\"}").toObject(EventHubConsumerGroupName.class);
- Assertions.assertEquals("nrjawgqwg", model.name());
+ BinaryData.fromString("{\"name\":\"nftguvriuhpr\"}").toObject(EventHubConsumerGroupName.class);
+ Assertions.assertEquals("nftguvriuhpr", model.name());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- EventHubConsumerGroupName model = new EventHubConsumerGroupName().withName("nrjawgqwg");
+ EventHubConsumerGroupName model = new EventHubConsumerGroupName().withName("nftguvriuhpr");
model = BinaryData.fromObject(model).toObject(EventHubConsumerGroupName.class);
- Assertions.assertEquals("nrjawgqwg", model.name());
+ Assertions.assertEquals("nftguvriuhpr", 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 b673ae7d3890a..7ff964c359581 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
@@ -17,7 +17,7 @@ public void testDeserialize() throws Exception {
EventHubConsumerGroupsListResult model =
BinaryData
.fromString(
- "{\"value\":[{\"properties\":{\"aex\":\"datamdua\",\"vxpvgomz\":\"datapvfadmwsrcr\"},\"etag\":\"misgwbnb\",\"id\":\"e\",\"name\":\"dawkzbali\",\"type\":\"urqhaka\"}],\"nextLink\":\"ashsfwxos\"}")
+ "{\"value\":[{\"properties\":{\"txhdzh\":\"datamoyrxvwfudwpz\",\"rxsbkyvp\":\"datarqjbhckfrl\"},\"etag\":\"anuzbpzkafkuw\",\"id\":\"crnwbmeh\",\"name\":\"seyvj\",\"type\":\"srtslhspkdeem\"},{\"properties\":{\"gkvtmelmqkrhah\":\"datamx\"},\"etag\":\"juahaquhcdhmdual\",\"id\":\"exq\",\"name\":\"vfadmws\",\"type\":\"crgvxpvgom\"},{\"properties\":{\"e\":\"datamisgwbnb\",\"urqhaka\":\"datadawkzbali\"},\"etag\":\"ashsfwxos\",\"id\":\"w\",\"name\":\"xcug\",\"type\":\"cjooxdjebwpucwwf\"},{\"properties\":{\"zceuojgjrw\":\"databvmeuecivy\",\"x\":\"dataueiotwmcdyt\"},\"etag\":\"txnrjaw\",\"id\":\"qwgxhniskx\",\"name\":\"bkpyc\",\"type\":\"klwndnhjdauwhv\"}],\"nextLink\":\"wzbtdhxu\"}")
.toObject(EventHubConsumerGroupsListResult.class);
}
@@ -29,10 +29,16 @@ public void testSerialize() throws Exception {
Arrays
.asList(
new EventHubConsumerGroupInfoInner()
- .withProperties(mapOf("aex", "datamdua", "vxpvgomz", "datapvfadmwsrcr"))));
+ .withProperties(mapOf("txhdzh", "datamoyrxvwfudwpz", "rxsbkyvp", "datarqjbhckfrl")),
+ new EventHubConsumerGroupInfoInner().withProperties(mapOf("gkvtmelmqkrhah", "datamx")),
+ new EventHubConsumerGroupInfoInner()
+ .withProperties(mapOf("e", "datamisgwbnb", "urqhaka", "datadawkzbali")),
+ new EventHubConsumerGroupInfoInner()
+ .withProperties(mapOf("zceuojgjrw", "databvmeuecivy", "x", "dataueiotwmcdyt"))));
model = BinaryData.fromObject(model).toObject(EventHubConsumerGroupsListResult.class);
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 d30fdbc939eca..248122ba68426 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\":\"cciuqgbdbutau\"}").toObject(FailoverInput.class);
- Assertions.assertEquals("cciuqgbdbutau", model.failoverRegion());
+ BinaryData.fromString("{\"failoverRegion\":\"mnpkukghimdblxg\"}").toObject(FailoverInput.class);
+ Assertions.assertEquals("mnpkukghimdblxg", model.failoverRegion());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- FailoverInput model = new FailoverInput().withFailoverRegion("cciuqgbdbutau");
+ FailoverInput model = new FailoverInput().withFailoverRegion("mnpkukghimdblxg");
model = BinaryData.fromObject(model).toObject(FailoverInput.class);
- Assertions.assertEquals("cciuqgbdbutau", model.failoverRegion());
+ Assertions.assertEquals("mnpkukghimdblxg", 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 3d9d9c2605af2..ca655b216a4fa 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
@@ -16,12 +16,12 @@ public void testDeserialize() throws Exception {
FallbackRouteProperties model =
BinaryData
.fromString(
- "{\"name\":\"lyaxuc\",\"source\":\"DeviceJobLifecycleEvents\",\"condition\":\"qszf\",\"endpointNames\":[\"eyp\",\"wrmjmwvvjektc\",\"senhwlrs\"],\"isEnabled\":true}")
+ "{\"name\":\"tsthsucocm\",\"source\":\"DeviceLifecycleEvents\",\"condition\":\"azt\",\"endpointNames\":[\"twwrqp\"],\"isEnabled\":true}")
.toObject(FallbackRouteProperties.class);
- Assertions.assertEquals("lyaxuc", model.name());
- Assertions.assertEquals(RoutingSource.DEVICE_JOB_LIFECYCLE_EVENTS, model.source());
- Assertions.assertEquals("qszf", model.condition());
- Assertions.assertEquals("eyp", model.endpointNames().get(0));
+ Assertions.assertEquals("tsthsucocm", model.name());
+ Assertions.assertEquals(RoutingSource.DEVICE_LIFECYCLE_EVENTS, model.source());
+ Assertions.assertEquals("azt", model.condition());
+ Assertions.assertEquals("twwrqp", model.endpointNames().get(0));
Assertions.assertEquals(true, model.isEnabled());
}
@@ -29,16 +29,16 @@ public void testDeserialize() throws Exception {
public void testSerialize() throws Exception {
FallbackRouteProperties model =
new FallbackRouteProperties()
- .withName("lyaxuc")
- .withSource(RoutingSource.DEVICE_JOB_LIFECYCLE_EVENTS)
- .withCondition("qszf")
- .withEndpointNames(Arrays.asList("eyp", "wrmjmwvvjektc", "senhwlrs"))
+ .withName("tsthsucocm")
+ .withSource(RoutingSource.DEVICE_LIFECYCLE_EVENTS)
+ .withCondition("azt")
+ .withEndpointNames(Arrays.asList("twwrqp"))
.withIsEnabled(true);
model = BinaryData.fromObject(model).toObject(FallbackRouteProperties.class);
- Assertions.assertEquals("lyaxuc", model.name());
- Assertions.assertEquals(RoutingSource.DEVICE_JOB_LIFECYCLE_EVENTS, model.source());
- Assertions.assertEquals("qszf", model.condition());
- Assertions.assertEquals("eyp", model.endpointNames().get(0));
+ Assertions.assertEquals("tsthsucocm", model.name());
+ Assertions.assertEquals(RoutingSource.DEVICE_LIFECYCLE_EVENTS, model.source());
+ Assertions.assertEquals("azt", model.condition());
+ Assertions.assertEquals("twwrqp", model.endpointNames().get(0));
Assertions.assertEquals(true, 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 4f02379b21b8d..2ae1116e9c606 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
@@ -15,23 +15,23 @@ public void testDeserialize() throws Exception {
FeedbackProperties model =
BinaryData
.fromString(
- "{\"lockDurationAsIso8601\":\"PT19H28M11S\",\"ttlAsIso8601\":\"PT104H38M10S\",\"maxDeliveryCount\":1236632858}")
+ "{\"lockDurationAsIso8601\":\"PT101H36M29S\",\"ttlAsIso8601\":\"PT205H18M18S\",\"maxDeliveryCount\":551724215}")
.toObject(FeedbackProperties.class);
- Assertions.assertEquals(Duration.parse("PT19H28M11S"), model.lockDurationAsIso8601());
- Assertions.assertEquals(Duration.parse("PT104H38M10S"), model.ttlAsIso8601());
- Assertions.assertEquals(1236632858, model.maxDeliveryCount());
+ Assertions.assertEquals(Duration.parse("PT101H36M29S"), model.lockDurationAsIso8601());
+ Assertions.assertEquals(Duration.parse("PT205H18M18S"), model.ttlAsIso8601());
+ Assertions.assertEquals(551724215, model.maxDeliveryCount());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
FeedbackProperties model =
new FeedbackProperties()
- .withLockDurationAsIso8601(Duration.parse("PT19H28M11S"))
- .withTtlAsIso8601(Duration.parse("PT104H38M10S"))
- .withMaxDeliveryCount(1236632858);
+ .withLockDurationAsIso8601(Duration.parse("PT101H36M29S"))
+ .withTtlAsIso8601(Duration.parse("PT205H18M18S"))
+ .withMaxDeliveryCount(551724215);
model = BinaryData.fromObject(model).toObject(FeedbackProperties.class);
- Assertions.assertEquals(Duration.parse("PT19H28M11S"), model.lockDurationAsIso8601());
- Assertions.assertEquals(Duration.parse("PT104H38M10S"), model.ttlAsIso8601());
- Assertions.assertEquals(1236632858, model.maxDeliveryCount());
+ Assertions.assertEquals(Duration.parse("PT101H36M29S"), model.lockDurationAsIso8601());
+ Assertions.assertEquals(Duration.parse("PT205H18M18S"), model.ttlAsIso8601());
+ Assertions.assertEquals(551724215, 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 aebfbfba55526..314cf2835e73b 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
@@ -16,11 +16,11 @@ public void testDeserialize() throws Exception {
GroupIdInformationInner model =
BinaryData
.fromString(
- "{\"id\":\"nzar\",\"name\":\"lquuijfqkacewii\",\"type\":\"pubjibw\",\"properties\":{\"groupId\":\"f\",\"requiredMembers\":[\"qkvpuvksgplsakn\",\"n\",\"synljphuopxodl\",\"iyntorzihle\"],\"requiredZoneNames\":[\"swsrms\",\"yzrpzbchckqqzq\",\"ox\"]}}")
+ "{\"id\":\"uvarmywdmjsjq\",\"name\":\"hhyxxrw\",\"type\":\"co\",\"properties\":{\"groupId\":\"hp\",\"requiredMembers\":[\"gymare\",\"n\",\"jxqugjhky\",\"ubeddg\"],\"requiredZoneNames\":[\"fwqmzqalkrmn\"]}}")
.toObject(GroupIdInformationInner.class);
- Assertions.assertEquals("f", model.properties().groupId());
- Assertions.assertEquals("qkvpuvksgplsakn", model.properties().requiredMembers().get(0));
- Assertions.assertEquals("swsrms", model.properties().requiredZoneNames().get(0));
+ Assertions.assertEquals("hp", model.properties().groupId());
+ Assertions.assertEquals("gymare", model.properties().requiredMembers().get(0));
+ Assertions.assertEquals("fwqmzqalkrmn", model.properties().requiredZoneNames().get(0));
}
@org.junit.jupiter.api.Test
@@ -29,12 +29,12 @@ public void testSerialize() throws Exception {
new GroupIdInformationInner()
.withProperties(
new GroupIdInformationProperties()
- .withGroupId("f")
- .withRequiredMembers(Arrays.asList("qkvpuvksgplsakn", "n", "synljphuopxodl", "iyntorzihle"))
- .withRequiredZoneNames(Arrays.asList("swsrms", "yzrpzbchckqqzq", "ox")));
+ .withGroupId("hp")
+ .withRequiredMembers(Arrays.asList("gymare", "n", "jxqugjhky", "ubeddg"))
+ .withRequiredZoneNames(Arrays.asList("fwqmzqalkrmn")));
model = BinaryData.fromObject(model).toObject(GroupIdInformationInner.class);
- Assertions.assertEquals("f", model.properties().groupId());
- Assertions.assertEquals("qkvpuvksgplsakn", model.properties().requiredMembers().get(0));
- Assertions.assertEquals("swsrms", model.properties().requiredZoneNames().get(0));
+ Assertions.assertEquals("hp", model.properties().groupId());
+ Assertions.assertEquals("gymare", model.properties().requiredMembers().get(0));
+ Assertions.assertEquals("fwqmzqalkrmn", 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 706bb7733ff46..7d43745251db6 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
@@ -15,23 +15,23 @@ public void testDeserialize() throws Exception {
GroupIdInformationProperties model =
BinaryData
.fromString(
- "{\"groupId\":\"suiizynkedyat\",\"requiredMembers\":[\"hqmibzyhwit\",\"mypyynpcdpu\",\"nzgmwznmabik\"],\"requiredZoneNames\":[\"rgjhxb\",\"dtlwwrlkd\",\"tncvokot\"]}")
+ "{\"groupId\":\"jpxac\",\"requiredMembers\":[\"dfnbyxbaaabjyv\",\"yffimrzrtuzqogs\",\"xnevfdnwn\"],\"requiredZoneNames\":[\"wzsyyceuzs\",\"i\",\"judpfrxt\",\"thzvaytdwkqbrqu\"]}")
.toObject(GroupIdInformationProperties.class);
- Assertions.assertEquals("suiizynkedyat", model.groupId());
- Assertions.assertEquals("hqmibzyhwit", model.requiredMembers().get(0));
- Assertions.assertEquals("rgjhxb", model.requiredZoneNames().get(0));
+ Assertions.assertEquals("jpxac", model.groupId());
+ Assertions.assertEquals("dfnbyxbaaabjyv", model.requiredMembers().get(0));
+ Assertions.assertEquals("wzsyyceuzs", model.requiredZoneNames().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
GroupIdInformationProperties model =
new GroupIdInformationProperties()
- .withGroupId("suiizynkedyat")
- .withRequiredMembers(Arrays.asList("hqmibzyhwit", "mypyynpcdpu", "nzgmwznmabik"))
- .withRequiredZoneNames(Arrays.asList("rgjhxb", "dtlwwrlkd", "tncvokot"));
+ .withGroupId("jpxac")
+ .withRequiredMembers(Arrays.asList("dfnbyxbaaabjyv", "yffimrzrtuzqogs", "xnevfdnwn"))
+ .withRequiredZoneNames(Arrays.asList("wzsyyceuzs", "i", "judpfrxt", "thzvaytdwkqbrqu"));
model = BinaryData.fromObject(model).toObject(GroupIdInformationProperties.class);
- Assertions.assertEquals("suiizynkedyat", model.groupId());
- Assertions.assertEquals("hqmibzyhwit", model.requiredMembers().get(0));
- Assertions.assertEquals("rgjhxb", model.requiredZoneNames().get(0));
+ Assertions.assertEquals("jpxac", model.groupId());
+ Assertions.assertEquals("dfnbyxbaaabjyv", model.requiredMembers().get(0));
+ Assertions.assertEquals("wzsyyceuzs", 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 ff9c5af048d5f..9d50924c3f20d 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
@@ -16,38 +16,38 @@ public void testDeserialize() throws Exception {
ImportDevicesRequest model =
BinaryData
.fromString(
- "{\"inputBlobContainerUri\":\"fcnihgwq\",\"outputBlobContainerUri\":\"pnedgf\",\"inputBlobName\":\"vkcvqvpkeqd\",\"outputBlobName\":\"drhvoodsotbo\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"cjwvn\"},\"includeConfigurations\":false,\"configurationsBlobName\":\"wmgxcxrsl\"}")
+ "{\"inputBlobContainerUri\":\"ejrjxgciqibrho\",\"outputBlobContainerUri\":\"xsdqrhzoymibmrqy\",\"inputBlobName\":\"ahwfluszdtmhrk\",\"outputBlobName\":\"fyyvoq\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"xpbtgiwbwo\"},\"includeConfigurations\":false,\"configurationsBlobName\":\"shrtdtkcnqxwb\"}")
.toObject(ImportDevicesRequest.class);
- Assertions.assertEquals("fcnihgwq", model.inputBlobContainerUri());
- Assertions.assertEquals("pnedgf", model.outputBlobContainerUri());
- Assertions.assertEquals("vkcvqvpkeqd", model.inputBlobName());
- Assertions.assertEquals("drhvoodsotbo", model.outputBlobName());
+ Assertions.assertEquals("ejrjxgciqibrho", model.inputBlobContainerUri());
+ Assertions.assertEquals("xsdqrhzoymibmrqy", model.outputBlobContainerUri());
+ Assertions.assertEquals("ahwfluszdtmhrk", model.inputBlobName());
+ Assertions.assertEquals("fyyvoq", model.outputBlobName());
Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
- Assertions.assertEquals("cjwvn", model.identity().userAssignedIdentity());
+ Assertions.assertEquals("xpbtgiwbwo", model.identity().userAssignedIdentity());
Assertions.assertEquals(false, model.includeConfigurations());
- Assertions.assertEquals("wmgxcxrsl", model.configurationsBlobName());
+ Assertions.assertEquals("shrtdtkcnqxwb", model.configurationsBlobName());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
ImportDevicesRequest model =
new ImportDevicesRequest()
- .withInputBlobContainerUri("fcnihgwq")
- .withOutputBlobContainerUri("pnedgf")
- .withInputBlobName("vkcvqvpkeqd")
- .withOutputBlobName("drhvoodsotbo")
+ .withInputBlobContainerUri("ejrjxgciqibrho")
+ .withOutputBlobContainerUri("xsdqrhzoymibmrqy")
+ .withInputBlobName("ahwfluszdtmhrk")
+ .withOutputBlobName("fyyvoq")
.withAuthenticationType(AuthenticationType.IDENTITY_BASED)
- .withIdentity(new ManagedIdentity().withUserAssignedIdentity("cjwvn"))
+ .withIdentity(new ManagedIdentity().withUserAssignedIdentity("xpbtgiwbwo"))
.withIncludeConfigurations(false)
- .withConfigurationsBlobName("wmgxcxrsl");
+ .withConfigurationsBlobName("shrtdtkcnqxwb");
model = BinaryData.fromObject(model).toObject(ImportDevicesRequest.class);
- Assertions.assertEquals("fcnihgwq", model.inputBlobContainerUri());
- Assertions.assertEquals("pnedgf", model.outputBlobContainerUri());
- Assertions.assertEquals("vkcvqvpkeqd", model.inputBlobName());
- Assertions.assertEquals("drhvoodsotbo", model.outputBlobName());
+ Assertions.assertEquals("ejrjxgciqibrho", model.inputBlobContainerUri());
+ Assertions.assertEquals("xsdqrhzoymibmrqy", model.outputBlobContainerUri());
+ Assertions.assertEquals("ahwfluszdtmhrk", model.inputBlobName());
+ Assertions.assertEquals("fyyvoq", model.outputBlobName());
Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
- Assertions.assertEquals("cjwvn", model.identity().userAssignedIdentity());
+ Assertions.assertEquals("xpbtgiwbwo", model.identity().userAssignedIdentity());
Assertions.assertEquals(false, model.includeConfigurations());
- Assertions.assertEquals("wmgxcxrsl", model.configurationsBlobName());
+ Assertions.assertEquals("shrtdtkcnqxwb", 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 3e9f46fecce54..755397742c3d5 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
@@ -13,7 +13,7 @@ public void testDeserialize() throws Exception {
IotHubCapacity model =
BinaryData
.fromString(
- "{\"minimum\":2874780118088744582,\"maximum\":9144697658006681867,\"default\":8641218324516083606,\"scaleType\":\"Manual\"}")
+ "{\"minimum\":3064589321807470193,\"maximum\":2903733515306491145,\"default\":354375671209585609,\"scaleType\":\"None\"}")
.toObject(IotHubCapacity.class);
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubDescriptionListResultTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubDescriptionListResultTests.java
deleted file mode 100644
index 198063445ee55..0000000000000
--- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubDescriptionListResultTests.java
+++ /dev/null
@@ -1,125 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.iothub.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.iothub.fluent.models.IotHubDescriptionInner;
-import com.azure.resourcemanager.iothub.models.ArmIdentity;
-import com.azure.resourcemanager.iothub.models.Capabilities;
-import com.azure.resourcemanager.iothub.models.IotHubDescriptionListResult;
-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.PublicNetworkAccess;
-import com.azure.resourcemanager.iothub.models.ResourceIdentityType;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class IotHubDescriptionListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- IotHubDescriptionListResult model =
- BinaryData
- .fromString(
- "{\"value\":[{\"etag\":\"gnxytxhpzxbz\",\"properties\":{\"authorizationPolicies\":[],\"disableLocalAuth\":false,\"disableDeviceSAS\":true,\"disableModuleSAS\":true,\"restrictOutboundNetworkAccess\":true,\"allowedFqdnList\":[],\"publicNetworkAccess\":\"Enabled\",\"ipFilterRules\":[],\"minTlsVersion\":\"iklbbovpl\",\"privateEndpointConnections\":[],\"provisioningState\":\"hvgyuguosvmk\",\"state\":\"sxqu\",\"hostName\":\"fpl\",\"eventHubEndpoints\":{},\"storageEndpoints\":{},\"messagingEndpoints\":{},\"enableFileUploadNotifications\":false,\"comments\":\"kde\",\"features\":\"DeviceManagement\",\"locations\":[],\"enableDataResidency\":true,\"ipVersion\":\"ipv4ipv6\"},\"sku\":{\"name\":\"S3\",\"tier\":\"Free\",\"capacity\":8474633220472193573},\"identity\":{\"principalId\":\"baiuebbaumny\",\"tenantId\":\"ped\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"location\":\"bckhsmtxpsi\",\"tags\":{\"rdqmhjjdhtldwkyz\":\"fhvpesaps\",\"cwsvlxotog\":\"uutkncw\",\"o\":\"wrupqsxvnmicykvc\",\"vnotyfjfcnj\":\"eil\"},\"id\":\"k\",\"name\":\"nxdhbt\",\"type\":\"kphywpnvjto\"}],\"nextLink\":\"ermclfplphoxuscr\"}")
- .toObject(IotHubDescriptionListResult.class);
- Assertions.assertEquals("bckhsmtxpsi", model.value().get(0).location());
- Assertions.assertEquals("fhvpesaps", model.value().get(0).tags().get("rdqmhjjdhtldwkyz"));
- Assertions.assertEquals("gnxytxhpzxbz", model.value().get(0).etag());
- Assertions.assertEquals(false, model.value().get(0).properties().disableLocalAuth());
- Assertions.assertEquals(true, model.value().get(0).properties().disableDeviceSas());
- Assertions.assertEquals(true, model.value().get(0).properties().disableModuleSas());
- Assertions.assertEquals(true, model.value().get(0).properties().restrictOutboundNetworkAccess());
- Assertions.assertEquals(PublicNetworkAccess.ENABLED, model.value().get(0).properties().publicNetworkAccess());
- Assertions.assertEquals("iklbbovpl", model.value().get(0).properties().minTlsVersion());
- Assertions.assertEquals(false, model.value().get(0).properties().enableFileUploadNotifications());
- Assertions.assertEquals("kde", model.value().get(0).properties().comments());
- Assertions.assertEquals(Capabilities.DEVICE_MANAGEMENT, model.value().get(0).properties().features());
- Assertions.assertEquals(true, model.value().get(0).properties().enableDataResidency());
- Assertions.assertEquals(IpVersion.IPV4IPV6, model.value().get(0).properties().ipVersion());
- Assertions.assertEquals(IotHubSku.S3, model.value().get(0).sku().name());
- Assertions.assertEquals(8474633220472193573L, model.value().get(0).sku().capacity());
- Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.value().get(0).identity().type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- IotHubDescriptionListResult model =
- new IotHubDescriptionListResult()
- .withValue(
- Arrays
- .asList(
- new IotHubDescriptionInner()
- .withLocation("bckhsmtxpsi")
- .withTags(
- mapOf(
- "rdqmhjjdhtldwkyz",
- "fhvpesaps",
- "cwsvlxotog",
- "uutkncw",
- "o",
- "wrupqsxvnmicykvc",
- "vnotyfjfcnj",
- "eil"))
- .withEtag("gnxytxhpzxbz")
- .withProperties(
- new IotHubProperties()
- .withAuthorizationPolicies(Arrays.asList())
- .withDisableLocalAuth(false)
- .withDisableDeviceSas(true)
- .withDisableModuleSas(true)
- .withRestrictOutboundNetworkAccess(true)
- .withAllowedFqdnList(Arrays.asList())
- .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
- .withIpFilterRules(Arrays.asList())
- .withMinTlsVersion("iklbbovpl")
- .withPrivateEndpointConnections(Arrays.asList())
- .withEventHubEndpoints(mapOf())
- .withStorageEndpoints(mapOf())
- .withMessagingEndpoints(mapOf())
- .withEnableFileUploadNotifications(false)
- .withComments("kde")
- .withFeatures(Capabilities.DEVICE_MANAGEMENT)
- .withEnableDataResidency(true)
- .withIpVersion(IpVersion.IPV4IPV6))
- .withSku(new IotHubSkuInfo().withName(IotHubSku.S3).withCapacity(8474633220472193573L))
- .withIdentity(
- new ArmIdentity()
- .withType(ResourceIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))));
- model = BinaryData.fromObject(model).toObject(IotHubDescriptionListResult.class);
- Assertions.assertEquals("bckhsmtxpsi", model.value().get(0).location());
- Assertions.assertEquals("fhvpesaps", model.value().get(0).tags().get("rdqmhjjdhtldwkyz"));
- Assertions.assertEquals("gnxytxhpzxbz", model.value().get(0).etag());
- Assertions.assertEquals(false, model.value().get(0).properties().disableLocalAuth());
- Assertions.assertEquals(true, model.value().get(0).properties().disableDeviceSas());
- Assertions.assertEquals(true, model.value().get(0).properties().disableModuleSas());
- Assertions.assertEquals(true, model.value().get(0).properties().restrictOutboundNetworkAccess());
- Assertions.assertEquals(PublicNetworkAccess.ENABLED, model.value().get(0).properties().publicNetworkAccess());
- Assertions.assertEquals("iklbbovpl", model.value().get(0).properties().minTlsVersion());
- Assertions.assertEquals(false, model.value().get(0).properties().enableFileUploadNotifications());
- Assertions.assertEquals("kde", model.value().get(0).properties().comments());
- Assertions.assertEquals(Capabilities.DEVICE_MANAGEMENT, model.value().get(0).properties().features());
- Assertions.assertEquals(true, model.value().get(0).properties().enableDataResidency());
- Assertions.assertEquals(IpVersion.IPV4IPV6, model.value().get(0).properties().ipVersion());
- Assertions.assertEquals(IotHubSku.S3, model.value().get(0).sku().name());
- Assertions.assertEquals(8474633220472193573L, model.value().get(0).sku().capacity());
- Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.value().get(0).identity().type());
- }
-
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
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 c0c8bb8600d41..13d6c8afcffb5 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
@@ -14,18 +14,18 @@ public final class IotHubLocationDescriptionTests {
public void testDeserialize() throws Exception {
IotHubLocationDescription model =
BinaryData
- .fromString("{\"location\":\"ijhtxf\",\"role\":\"primary\"}")
+ .fromString("{\"location\":\"klbb\",\"role\":\"secondary\"}")
.toObject(IotHubLocationDescription.class);
- Assertions.assertEquals("ijhtxf", model.location());
- Assertions.assertEquals(IotHubReplicaRoleType.PRIMARY, model.role());
+ Assertions.assertEquals("klbb", model.location());
+ Assertions.assertEquals(IotHubReplicaRoleType.SECONDARY, model.role());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
IotHubLocationDescription model =
- new IotHubLocationDescription().withLocation("ijhtxf").withRole(IotHubReplicaRoleType.PRIMARY);
+ new IotHubLocationDescription().withLocation("klbb").withRole(IotHubReplicaRoleType.SECONDARY);
model = BinaryData.fromObject(model).toObject(IotHubLocationDescription.class);
- Assertions.assertEquals("ijhtxf", model.location());
- Assertions.assertEquals(IotHubReplicaRoleType.PRIMARY, model.role());
+ Assertions.assertEquals("klbb", model.location());
+ Assertions.assertEquals(IotHubReplicaRoleType.SECONDARY, model.role());
}
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubManagerTests.java b/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubManagerTests.java
deleted file mode 100644
index c6bbc17d308be..0000000000000
--- a/sdk/iothub/azure-resourcemanager-iothub/src/test/java/com/azure/resourcemanager/iothub/generated/IotHubManagerTests.java
+++ /dev/null
@@ -1,161 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.resourcemanager.iothub.generated;
-
-import com.azure.core.credential.TokenCredential;
-import com.azure.core.http.policy.HttpLogDetailLevel;
-import com.azure.core.http.policy.HttpLogOptions;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.Region;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.TestBase;
-import com.azure.core.test.annotation.DoNotRecord;
-import com.azure.core.util.Configuration;
-import com.azure.core.util.CoreUtils;
-import com.azure.identity.DefaultAzureCredentialBuilder;
-import com.azure.resourcemanager.iothub.IotHubManager;
-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.EventHubProperties;
-import com.azure.resourcemanager.iothub.models.FallbackRouteProperties;
-import com.azure.resourcemanager.iothub.models.FeedbackProperties;
-import com.azure.resourcemanager.iothub.models.IotHubDescription;
-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.MessagingEndpointProperties;
-import com.azure.resourcemanager.iothub.models.RoutingProperties;
-import com.azure.resourcemanager.iothub.models.RoutingSource;
-import com.azure.resourcemanager.iothub.models.ResourceIdentityType;
-import com.azure.resourcemanager.iothub.models.StorageEndpointProperties;
-import com.azure.resourcemanager.resources.ResourceManager;
-import io.netty.util.internal.StringUtil;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-import java.time.Duration;
-import java.util.Arrays;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.Random;
-
-public class IotHubManagerTests extends TestBase {
-
- private static final Random RANDOM = new Random();
- private static final Region REGION = Region.US_WEST2;
- private String resourceGroupName = "rg" + randomPadding();
- private IotHubManager iotHubManager;
- private ResourceManager resourceManager;
- private boolean testEnv;
-
- @Override
- public void beforeTest() {
- final TokenCredential credential = new DefaultAzureCredentialBuilder().build();
- final AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
-
- iotHubManager = IotHubManager
- .configure()
- .withLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC))
- .authenticate(credential, profile);
-
- resourceManager = ResourceManager
- .configure()
- .withLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC))
- .authenticate(credential, profile)
- .withDefaultSubscription();
-
- // use AZURE_RESOURCE_GROUP_NAME if run in LIVE CI
- String testResourceGroup = Configuration.getGlobalConfiguration().get("AZURE_RESOURCE_GROUP_NAME");
- testEnv = !CoreUtils.isNullOrEmpty(testResourceGroup);
- if (testEnv) {
- resourceGroupName = testResourceGroup;
- } else {
- resourceManager.resourceGroups()
- .define(resourceGroupName)
- .withRegion(REGION)
- .create();
- }
- }
-
- @Override
- protected void afterTest() {
- if (!testEnv) {
- resourceManager.resourceGroups().beginDeleteByName(resourceGroupName);
- }
- }
-
- @Test
- @DoNotRecord(skipInPlayback = true)
- public void testIotHubDescription() {
- IotHubDescription iotHubDescription = null;
- try {
- String iothubName = "iotHub" + randomPadding();
-
- // @embedmeStart
- Map eventHubEndpointsMap = new HashMap<>();
- eventHubEndpointsMap.put("events", new EventHubProperties()
- .withRetentionTimeInDays(1L).withPartitionCount(2));
-
- Map storageEndpointsMap = new HashMap<>();
- storageEndpointsMap.put("$default", new StorageEndpointProperties()
- .withSasTtlAsIso8601(Duration.ofHours(1L))
- .withConnectionString(StringUtil.EMPTY_STRING)
- .withContainerName(StringUtil.EMPTY_STRING));
-
- Map messagingEndpointsMap = new HashMap<>();
- messagingEndpointsMap.put("fileNotifications", new MessagingEndpointProperties()
- .withLockDurationAsIso8601(Duration.ofMinutes(1L))
- .withTtlAsIso8601(Duration.ofHours(1L))
- .withMaxDeliveryCount(10));
-
- iotHubDescription = iotHubManager.iotHubResources()
- .define(iothubName)
- .withRegion(REGION)
- .withExistingResourceGroup(resourceGroupName)
- .withSku(new IotHubSkuInfo().withName(IotHubSku.F1).withCapacity(1L))
- .withIdentity(new ArmIdentity().withType(ResourceIdentityType.NONE))
- .withProperties(
- new IotHubProperties()
- .withEventHubEndpoints(eventHubEndpointsMap)
- .withRouting(new RoutingProperties()
- .withFallbackRoute(
- new FallbackRouteProperties()
- .withName("$fallback")
- .withSource(RoutingSource.DEVICE_MESSAGES)
- .withCondition("true")
- .withIsEnabled(true)
- .withEndpointNames(Arrays.asList("events"))))
- .withStorageEndpoints(storageEndpointsMap)
- .withMessagingEndpoints(messagingEndpointsMap)
- .withEnableFileUploadNotifications(false)
- .withCloudToDevice(new CloudToDeviceProperties()
- .withMaxDeliveryCount(10)
- .withDefaultTtlAsIso8601(Duration.ofHours(1L))
- .withFeedback(new FeedbackProperties()
- .withLockDurationAsIso8601(Duration.ofMinutes(1L))
- .withTtlAsIso8601(Duration.ofHours(1L))
- .withMaxDeliveryCount(10)))
- .withFeatures(Capabilities.NONE)
- .withDisableLocalAuth(false)
- .withEnableDataResidency(false)
- )
- .create();
- // @embedmeEnd
- iotHubDescription.refresh();
-
- Assertions.assertEquals(iotHubDescription.name(), iothubName);
- Assertions.assertEquals(iotHubDescription.name(), iotHubManager.iotHubResources().getById(iotHubDescription.id()).name());
- Assertions.assertTrue(iotHubManager.iotHubResources().list().stream().count() > 0);
- } finally {
- if (iotHubDescription != null) {
- iotHubManager.iotHubResources().deleteById(iotHubDescription.id());
- }
- }
- }
-
- private static String randomPadding() {
- return String.format("%05d", Math.abs(RANDOM.nextInt() % 100000));
- }
-}
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 9fa8712a25353..984584f541c60 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
@@ -13,15 +13,15 @@ public final class IotHubNameAvailabilityInfoInnerTests {
public void testDeserialize() throws Exception {
IotHubNameAvailabilityInfoInner model =
BinaryData
- .fromString("{\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"vbxwyjsflhh\"}")
+ .fromString("{\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"r\"}")
.toObject(IotHubNameAvailabilityInfoInner.class);
- Assertions.assertEquals("vbxwyjsflhh", model.message());
+ Assertions.assertEquals("r", model.message());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- IotHubNameAvailabilityInfoInner model = new IotHubNameAvailabilityInfoInner().withMessage("vbxwyjsflhh");
+ IotHubNameAvailabilityInfoInner model = new IotHubNameAvailabilityInfoInner().withMessage("r");
model = BinaryData.fromObject(model).toObject(IotHubNameAvailabilityInfoInner.class);
- Assertions.assertEquals("vbxwyjsflhh", model.message());
+ Assertions.assertEquals("r", 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 023e53084d2d2..245c98680945a 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
@@ -14,17 +14,16 @@ public final class IotHubPropertiesDeviceStreamsTests {
public void testDeserialize() throws Exception {
IotHubPropertiesDeviceStreams model =
BinaryData
- .fromString("{\"streamingEndpoints\":[\"pcyvahfnljkyqx\",\"vuujq\",\"idokgjlj\"]}")
+ .fromString("{\"streamingEndpoints\":[\"xytxhpzxbz\",\"fzab\"]}")
.toObject(IotHubPropertiesDeviceStreams.class);
- Assertions.assertEquals("pcyvahfnljkyqx", model.streamingEndpoints().get(0));
+ Assertions.assertEquals("xytxhpzxbz", model.streamingEndpoints().get(0));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
IotHubPropertiesDeviceStreams model =
- new IotHubPropertiesDeviceStreams()
- .withStreamingEndpoints(Arrays.asList("pcyvahfnljkyqx", "vuujq", "idokgjlj"));
+ new IotHubPropertiesDeviceStreams().withStreamingEndpoints(Arrays.asList("xytxhpzxbz", "fzab"));
model = BinaryData.fromObject(model).toObject(IotHubPropertiesDeviceStreams.class);
- Assertions.assertEquals("pcyvahfnljkyqx", model.streamingEndpoints().get(0));
+ Assertions.assertEquals("xytxhpzxbz", 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 94c7bf06abad8..52a6614aec0c9 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
@@ -12,7 +12,7 @@ public final class IotHubQuotaMetricInfoInnerTests {
public void testDeserialize() throws Exception {
IotHubQuotaMetricInfoInner model =
BinaryData
- .fromString("{\"name\":\"ibycno\",\"currentValue\":4247317532240790185,\"maxValue\":35726863806871709}")
+ .fromString("{\"name\":\"mgucna\",\"currentValue\":205181204066008471,\"maxValue\":873943782746801040}")
.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 199f26c2b0a14..550e34da3408a 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
@@ -15,7 +15,7 @@ public void testDeserialize() throws Exception {
IotHubQuotaMetricInfoListResult model =
BinaryData
.fromString(
- "{\"value\":[{\"name\":\"vlvqhjkbegi\",\"currentValue\":7757966335492850327,\"maxValue\":8168827985153452849},{\"name\":\"wwaloayqcgwrt\",\"currentValue\":1503893081288679809,\"maxValue\":203566108787836432},{\"name\":\"mhtxongmtsavjcb\",\"currentValue\":4203274454921698643,\"maxValue\":273530932074575825},{\"name\":\"nftguvriuhpr\",\"currentValue\":4550073852873606939,\"maxValue\":2697266994096414506}],\"nextLink\":\"ayriwwroyqbexrm\"}")
+ "{\"value\":[{\"name\":\"lhbnxkna\",\"currentValue\":8671713501253407728,\"maxValue\":101346809014856718},{\"name\":\"dtpnapnyiropuhp\",\"currentValue\":6182920214786392878,\"maxValue\":8589982683631142861},{\"name\":\"qgitxmed\",\"currentValue\":513856937711822481,\"maxValue\":6530746203139727560}],\"nextLink\":\"wwncwzzhxgk\"}")
.toObject(IotHubQuotaMetricInfoListResult.class);
}
@@ -26,7 +26,6 @@ public void testSerialize() throws Exception {
.withValue(
Arrays
.asList(
- new IotHubQuotaMetricInfoInner(),
new IotHubQuotaMetricInfoInner(),
new IotHubQuotaMetricInfoInner(),
new IotHubQuotaMetricInfoInner()));
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 a1e5554d90519..9eb69ce6b7bd3 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
@@ -31,7 +31,7 @@ public void testCheckNameAvailabilityWithResponse() throws Exception {
HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
- String responseStr = "{\"nameAvailable\":true,\"reason\":\"Invalid\",\"message\":\"uslfead\"}";
+ String responseStr = "{\"nameAvailable\":true,\"reason\":\"Invalid\",\"message\":\"hairsbrgzdwms\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -63,9 +63,9 @@ public void testCheckNameAvailabilityWithResponse() throws Exception {
manager
.iotHubResources()
.checkNameAvailabilityWithResponse(
- new OperationInputs().withName("dtclusiypb"), com.azure.core.util.Context.NONE)
+ new OperationInputs().withName("h"), com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("uslfead", response.message());
+ Assertions.assertEquals("hairsbrgzdwms", 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 54e510be0fdc7..0b3197f2068f4 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
@@ -31,7 +31,7 @@ public void testCreateEventHubConsumerGroupWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"properties\":{\"dhtmdvypgikd\":\"datangwfqatm\"},\"etag\":\"zywkb\",\"id\":\"rryuzhlhkjo\",\"name\":\"rvqqaatj\",\"type\":\"nrvgoupmfiibfgg\"}";
+ "{\"properties\":{\"yjsvfyc\":\"dataqahqkghtpwijn\",\"fvoow\":\"dataz\",\"pyostronzmyhgfi\":\"datarvmtgjq\"},\"etag\":\"sxkm\",\"id\":\"waekrrjreafxtsgu\",\"name\":\"hjglikk\",\"type\":\"wslolbqp\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -62,9 +62,9 @@ public void testCreateEventHubConsumerGroupWithResponse() throws Exception {
EventHubConsumerGroupInfo response =
manager
.iotHubResources()
- .defineEventHubConsumerGroup("csnjvcdwxlpqekft")
- .withExistingEventHubEndpoint("opgxedkowepb", "pc", "fkbw")
- .withProperties(new EventHubConsumerGroupName().withName("khtj"))
+ .defineEventHubConsumerGroup("pna")
+ .withExistingEventHubEndpoint("gitvg", "mhrixkwmyijejve", "rh")
+ .withProperties(new EventHubConsumerGroupName().withName("xexccbdreaxhcexd"))
.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 5b4001c8d8523..23697956703b6 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
@@ -59,6 +59,6 @@ public void testDeleteEventHubConsumerGroupWithResponse() throws Exception {
manager
.iotHubResources()
.deleteEventHubConsumerGroupWithResponse(
- "qgsfraoyzkoow", "lmnguxaw", "aldsy", "uximerqfobw", com.azure.core.util.Context.NONE);
+ "i", "ybxarzgszu", "oxciqopidoamcio", "hkh", 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 3e334d389ceff..24b4cc425410e 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
@@ -33,9 +33,9 @@ public void testGetEndpointHealth() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"value\":[{\"endpointId\":\"gicccnxqhuex\",\"healthStatus\":\"healthy\",\"lastKnownError\":\"lstvlzywe\",\"lastKnownErrorTime\":\"Fri,"
- + " 10 Dec 2021 13:38:49 GMT\",\"lastSuccessfulSendAttemptTime\":\"Tue, 25 May 2021 03:52:53"
- + " GMT\",\"lastSendAttemptTime\":\"Wed, 07 Apr 2021 16:00:46 GMT\"}]}";
+ "{\"value\":[{\"endpointId\":\"piyylhalnswhccsp\",\"healthStatus\":\"unhealthy\",\"lastKnownError\":\"vwitqscyw\",\"lastKnownErrorTime\":\"Wed,"
+ + " 25 Aug 2021 09:04:10 GMT\",\"lastSuccessfulSendAttemptTime\":\"Sat, 13 Feb 2021 16:07:26"
+ + " GMT\",\"lastSendAttemptTime\":\"Tue, 12 Jan 2021 18:05:25 GMT\"}]}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -64,20 +64,20 @@ public void testGetEndpointHealth() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response =
- manager.iotHubResources().getEndpointHealth("swe", "pqwd", com.azure.core.util.Context.NONE);
+ manager.iotHubResources().getEndpointHealth("oftrmaequia", "xicslfao", com.azure.core.util.Context.NONE);
- Assertions.assertEquals("gicccnxqhuex", response.iterator().next().endpointId());
- Assertions.assertEquals(EndpointHealthStatus.HEALTHY, response.iterator().next().healthStatus());
- Assertions.assertEquals("lstvlzywe", response.iterator().next().lastKnownError());
+ Assertions.assertEquals("piyylhalnswhccsp", response.iterator().next().endpointId());
+ Assertions.assertEquals(EndpointHealthStatus.UNHEALTHY, response.iterator().next().healthStatus());
+ Assertions.assertEquals("vwitqscyw", response.iterator().next().lastKnownError());
Assertions
.assertEquals(
- OffsetDateTime.parse("2021-12-10T13:38:49Z"), response.iterator().next().lastKnownErrorTime());
+ OffsetDateTime.parse("2021-08-25T09:04:10Z"), response.iterator().next().lastKnownErrorTime());
Assertions
.assertEquals(
- OffsetDateTime.parse("2021-05-25T03:52:53Z"),
+ OffsetDateTime.parse("2021-02-13T16:07:26Z"),
response.iterator().next().lastSuccessfulSendAttemptTime());
Assertions
.assertEquals(
- OffsetDateTime.parse("2021-04-07T16:00:46Z"), response.iterator().next().lastSendAttemptTime());
+ OffsetDateTime.parse("2021-01-12T18:05:25Z"), 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 a9a3c87be377b..3bd655e4d3cf7 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
@@ -30,7 +30,7 @@ public void testGetEventHubConsumerGroupWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"properties\":{\"ujmqlgkfbtndoa\":\"datau\",\"bjcntujitc\":\"datan\",\"twwaezkojvdcpzf\":\"dataed\",\"foxciq\":\"dataqouicybxarzgsz\"},\"etag\":\"idoamciodhkha\",\"id\":\"xkhnzbonlwnto\",\"name\":\"gokdwbwhks\",\"type\":\"zcmrvexztvb\"}";
+ "{\"properties\":{\"c\":\"datantuji\"},\"etag\":\"df\",\"id\":\"wwa\",\"name\":\"zkoj\",\"type\":\"dcpzfoqo\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -62,7 +62,7 @@ public void testGetEventHubConsumerGroupWithResponse() throws Exception {
manager
.iotHubResources()
.getEventHubConsumerGroupWithResponse(
- "wjue", "aeburuvdmo", "s", "zlxwabmqoefkifr", com.azure.core.util.Context.NONE)
+ "s", "zlxwabmqoefkifr", "tpuqujmq", "gkfbtndoaong", 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 cbb47a86f79ba..ef2211e0137b6 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
@@ -30,9 +30,9 @@ public void testGetJobWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"jobId\":\"fozbhdmsmlmzqhof\",\"startTimeUtc\":\"Wed, 05 May 2021 04:42:21 GMT\",\"endTimeUtc\":\"Tue,"
- + " 16 Nov 2021 17:43:34"
- + " GMT\",\"type\":\"readDeviceProperties\",\"status\":\"failed\",\"failureReason\":\"xicslfao\",\"statusMessage\":\"piyylhalnswhccsp\",\"parentJobId\":\"aivwitqscywu\"}";
+ "{\"jobId\":\"kgtdlmkkze\",\"startTimeUtc\":\"Sun, 20 Dec 2020 17:30:39 GMT\",\"endTimeUtc\":\"Thu, 23 Sep"
+ + " 2021 16:40:17"
+ + " GMT\",\"type\":\"readDeviceProperties\",\"status\":\"unknown\",\"failureReason\":\"sttwvogvbbe\",\"statusMessage\":\"cngqqmoakufgmjz\",\"parentJobId\":\"rdgrtw\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -63,7 +63,7 @@ public void testGetJobWithResponse() throws Exception {
JobResponse response =
manager
.iotHubResources()
- .getJobWithResponse("enuuzkopbm", "nrfdw", "yuhhziu", com.azure.core.util.Context.NONE)
+ .getJobWithResponse("ykutwpf", "pagmhrskdsnf", "sd", 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 3658c94013826..75798fa8551ef 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
@@ -31,7 +31,7 @@ public void testGetQuotaMetrics() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"value\":[{\"name\":\"bwemhairs\",\"currentValue\":2396598992556522813,\"maxValue\":1910924176223083649}]}";
+ "{\"value\":[{\"name\":\"uhhziuiefozbhdm\",\"currentValue\":41888991515235103,\"maxValue\":5817084203386777544}]}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -60,6 +60,6 @@ public void testGetQuotaMetrics() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response =
- manager.iotHubResources().getQuotaMetrics("gwol", "h", com.azure.core.util.Context.NONE);
+ manager.iotHubResources().getQuotaMetrics("enuuzkopbm", "nrfdw", 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 403f7571037d9..2ec36aa12bb91 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
@@ -30,7 +30,7 @@ public void testGetStatsWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"totalDeviceCount\":1881000145918379423,\"enabledDeviceCount\":5500271153534098761,\"disabledDeviceCount\":6702265057684474491}";
+ "{\"totalDeviceCount\":8804003083177191933,\"enabledDeviceCount\":3150020911489361675,\"disabledDeviceCount\":2375573863438681592}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -61,7 +61,7 @@ public void testGetStatsWithResponse() throws Exception {
RegistryStatistics response =
manager
.iotHubResources()
- .getStatsWithResponse("ofncckwyfzqwhxxb", "yq", com.azure.core.util.Context.NONE)
+ .getStatsWithResponse("zkfzbeyv", "nqicvinvkjjxdxrb", 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 006754707ca61..1a368bc89b2e1 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
@@ -33,7 +33,7 @@ public void testGetValidSkus() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"value\":[{\"resourceType\":\"bqwcsdbnwdcf\",\"sku\":{\"name\":\"S2\",\"tier\":\"Standard\",\"capacity\":3846405596035643939},\"capacity\":{\"minimum\":1028769978978951070,\"maximum\":4684256943455156597,\"default\":6093345050470116807,\"scaleType\":\"Manual\"}}]}";
+ "{\"value\":[{\"resourceType\":\"fz\",\"sku\":{\"name\":\"S2\",\"tier\":\"Basic\",\"capacity\":3103220879835924511},\"capacity\":{\"minimum\":1707656907900121561,\"maximum\":1881000145918379423,\"default\":5500271153534098761,\"scaleType\":\"Manual\"}}]}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -62,9 +62,9 @@ public void testGetValidSkus() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response =
- manager.iotHubResources().getValidSkus("riolxorjalt", "lmncw", com.azure.core.util.Context.NONE);
+ manager.iotHubResources().getValidSkus("mlwpazt", "pofncck", com.azure.core.util.Context.NONE);
Assertions.assertEquals(IotHubSku.S2, response.iterator().next().sku().name());
- Assertions.assertEquals(3846405596035643939L, response.iterator().next().sku().capacity());
+ Assertions.assertEquals(3103220879835924511L, 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 6419a1058e68b..d2298a1d11c84 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
@@ -33,9 +33,9 @@ public void testImportDevicesWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"jobId\":\"kvtvsexso\",\"startTimeUtc\":\"Sat, 09 Jan 2021 15:20:12 GMT\",\"endTimeUtc\":\"Thu, 28 Jan"
- + " 2021 09:30:25"
- + " GMT\",\"type\":\"readDeviceProperties\",\"status\":\"completed\",\"failureReason\":\"hxvrhmzkwpjg\",\"statusMessage\":\"spughftqsxhq\",\"parentJobId\":\"j\"}";
+ "{\"jobId\":\"kj\",\"startTimeUtc\":\"Mon, 15 Nov 2021 06:41:50 GMT\",\"endTimeUtc\":\"Tue, 13 Jul 2021"
+ + " 23:55:09"
+ + " GMT\",\"type\":\"factoryResetDevice\",\"status\":\"running\",\"failureReason\":\"inrvgoupmfi\",\"statusMessage\":\"fggjioolvr\",\"parentJobId\":\"kvtkkg\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -67,17 +67,17 @@ public void testImportDevicesWithResponse() throws Exception {
manager
.iotHubResources()
.importDevicesWithResponse(
- "gzpfrla",
- "szrnwo",
+ "bopgxedkowepbqp",
+ "rfkbwccsnjvcdwxl",
new ImportDevicesRequest()
- .withInputBlobContainerUri("indfpwpjyl")
- .withOutputBlobContainerUri("bt")
- .withInputBlobName("flsjc")
- .withOutputBlobName("szfjvfbgofelja")
- .withAuthenticationType(AuthenticationType.IDENTITY_BASED)
- .withIdentity(new ManagedIdentity().withUserAssignedIdentity("hldvriii"))
+ .withInputBlobContainerUri("qek")
+ .withOutputBlobContainerUri("tn")
+ .withInputBlobName("tjsyin")
+ .withOutputBlobName("fq")
+ .withAuthenticationType(AuthenticationType.KEY_BASED)
+ .withIdentity(new ManagedIdentity().withUserAssignedIdentity("htmdvy"))
.withIncludeConfigurations(true)
- .withConfigurationsBlobName("lg"),
+ .withConfigurationsBlobName("dgszywkbirryuzh"),
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 5f7e916f70486..db5a5261ef36d 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
@@ -31,7 +31,7 @@ public void testListEventHubConsumerGroups() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"value\":[{\"properties\":{\"kgjubgdknnqvsazn\":\"datalxqtvcofudfl\"},\"etag\":\"tor\",\"id\":\"dsg\",\"name\":\"a\",\"type\":\"mkycgra\"}]}";
+ "{\"value\":[{\"properties\":{\"sbjjc\":\"datadpfuvg\",\"udutnco\":\"datanvxbvt\",\"xqtvcofu\":\"datamr\",\"vkg\":\"dataf\"},\"etag\":\"bgdknnqv\",\"id\":\"aznqntoru\",\"name\":\"sgsahmkycgr\",\"type\":\"uwjuetaeburuvdmo\"}]}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -62,6 +62,7 @@ public void testListEventHubConsumerGroups() throws Exception {
PagedIterable response =
manager
.iotHubResources()
- .listEventHubConsumerGroups("vxb", "t", "udutnco", com.azure.core.util.Context.NONE);
+ .listEventHubConsumerGroups(
+ "priolx", "rjaltolmncw", "obqwcsdbnwdcfh", 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 029b1156ec604..fb5db3fd71ff7 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
@@ -31,9 +31,9 @@ public void testListJobs() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"value\":[{\"jobId\":\"dsnfdsdoakgtdl\",\"startTimeUtc\":\"Sat, 23 Oct 2021 18:05:06"
- + " GMT\",\"endTimeUtc\":\"Mon, 21 Jun 2021 09:18:55"
- + " GMT\",\"type\":\"writeDeviceProperties\",\"status\":\"enqueued\",\"failureReason\":\"wpusdsttwvogv\",\"statusMessage\":\"ejdcngqqmoakuf\",\"parentJobId\":\"jzrwrdgrtw\"}]}";
+ "{\"value\":[{\"jobId\":\"cmrvexzt\",\"startTimeUtc\":\"Sun, 06 Jun 2021 12:33:17"
+ + " GMT\",\"endTimeUtc\":\"Fri, 01 Jan 2021 05:45:24"
+ + " GMT\",\"type\":\"unknown\",\"status\":\"completed\",\"failureReason\":\"yzkoowtlmngu\",\"statusMessage\":\"wqaldsyu\",\"parentJobId\":\"imerqfobwyznk\"}]}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -62,6 +62,6 @@ public void testListJobs() throws Exception {
new AzureProfile("", "", AzureEnvironment.AZURE));
PagedIterable response =
- manager.iotHubResources().listJobs("znkbykutwpfhpagm", "r", com.azure.core.util.Context.NONE);
+ manager.iotHubResources().listJobs("zxkhnzbonlwnto", "gokdwbwhks", 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 94215f051155f..78b4e5ebf4951 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
@@ -23,6 +23,7 @@
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
+import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
@@ -36,7 +37,8 @@ public void testTestAllRoutesWithResponse() throws Exception {
HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
- String responseStr = "{\"routes\":[{}]}";
+ String responseStr =
+ "{\"routes\":[{\"properties\":{\"name\":\"xccedcpnmdyodn\",\"source\":\"DeviceLifecycleEvents\",\"condition\":\"ltjcvnhltiugcxna\",\"endpointNames\":[\"wxqibyq\",\"nyowxwlmdjrkvfg\",\"vfvpdbodaciz\"],\"isEnabled\":false}},{\"properties\":{\"name\":\"lhkrribdeibqipqk\",\"source\":\"MqttBrokerMessages\",\"condition\":\"xndzwm\",\"endpointNames\":[\"efajpj\",\"rwkq\",\"yhgbijtjivfx\",\"sjabibs\"],\"isEnabled\":true}},{\"properties\":{\"name\":\"awfsdjpvkvpbjxbk\",\"source\":\"TwinChangeEvents\",\"condition\":\"kd\",\"endpointNames\":[\"cjabudurgkakmo\"],\"isEnabled\":true}}]}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -68,26 +70,34 @@ public void testTestAllRoutesWithResponse() throws Exception {
manager
.iotHubResources()
.testAllRoutesWithResponse(
- "ygqukyhejh",
- "isxgfp",
+ "eypqwdxggicccn",
+ "qhuexm",
new TestAllRoutesInput()
- .withRoutingSource(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS)
+ .withRoutingSource(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS)
.withMessage(
new RoutingMessage()
- .withBody("pv")
- .withAppProperties(mapOf("swibyr", "pqvujzraehtwdwrf"))
- .withSystemProperties(mapOf("hevxcced", "bhshfwpracstwity")))
+ .withBody("tvlz")
+ .withAppProperties(
+ mapOf("sdtclusiypbs", "mhzrn", "ygqukyhejh", "gytguslfead", "lolp", "isxgfp"))
+ .withSystemProperties(mapOf("vu", "srp", "r", "zraehtwd")))
.withTwin(
new RoutingTwin()
- .withTags("datamd")
+ .withTags("datawib")
.withProperties(
new RoutingTwinProperties()
- .withDesired("datanwzxltjcv")
- .withReported("dataltiugcxnavv"))),
+ .withDesired("datadl")
+ .withReported("datashfwpracstwity"))),
com.azure.core.util.Context.NONE)
.getValue();
+
+ Assertions.assertEquals("xccedcpnmdyodn", response.routes().get(0).properties().name());
+ Assertions.assertEquals(RoutingSource.DEVICE_LIFECYCLE_EVENTS, response.routes().get(0).properties().source());
+ Assertions.assertEquals("ltjcvnhltiugcxna", response.routes().get(0).properties().condition());
+ Assertions.assertEquals("wxqibyq", response.routes().get(0).properties().endpointNames().get(0));
+ Assertions.assertEquals(false, response.routes().get(0).properties().isEnabled());
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 e62cb8cf08c88..064563e98041a 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
@@ -12,6 +12,7 @@
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
import com.azure.resourcemanager.iothub.IotHubManager;
+import com.azure.resourcemanager.iothub.models.RouteErrorSeverity;
import com.azure.resourcemanager.iothub.models.RouteProperties;
import com.azure.resourcemanager.iothub.models.RoutingMessage;
import com.azure.resourcemanager.iothub.models.RoutingSource;
@@ -40,7 +41,8 @@ public void testTestRouteWithResponse() throws Exception {
HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
- String responseStr = "{\"result\":\"undefined\",\"details\":{\"compilationErrors\":[]}}";
+ String responseStr =
+ "{\"result\":\"undefined\",\"details\":{\"compilationErrors\":[{\"message\":\"xdigrjg\",\"severity\":\"error\",\"location\":{\"start\":{},\"end\":{}}},{\"message\":\"yqtfihwh\",\"severity\":\"warning\",\"location\":{\"start\":{},\"end\":{}}},{\"message\":\"amvpphoszqzudph\",\"severity\":\"error\",\"location\":{\"start\":{},\"end\":{}}},{\"message\":\"wynwcvtbvkayhm\",\"severity\":\"error\",\"location\":{\"start\":{},\"end\":{}}}]}}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -72,34 +74,47 @@ public void testTestRouteWithResponse() throws Exception {
manager
.iotHubResources()
.testRouteWithResponse(
- "byqunyow",
- "wlmdjrkv",
+ "hjjklff",
+ "mouwqlgzrfzeey",
new TestRouteInput()
.withMessage(
new RoutingMessage()
- .withBody("vfvpdbodaciz")
- .withAppProperties(mapOf("hvxndzwmkrefajpj", "lhkrribdeibqipqk"))
- .withSystemProperties(mapOf("b", "kqnyh", "jivfxzsjabib", "j")))
+ .withBody("zi")
+ .withAppProperties(
+ mapOf(
+ "dgmfpgvmpipasl",
+ "uhqlbjbsybbqwrvt",
+ "x",
+ "haq",
+ "hneuyowqkd",
+ "smwutwbdsrezpd",
+ "gpikpzimejza",
+ "ytisibir"))
+ .withSystemProperties(
+ mapOf("zonokixrjqci", "zxiavrm", "szrnwo", "gzpfrla", "bt", "indfpwpjyl")))
.withRoute(
new RouteProperties()
- .withName("ystawfsdjpvkvp")
- .withSource(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS)
- .withCondition("bkzbzkd")
- .withEndpointNames(Arrays.asList("cjabudurgkakmo"))
+ .withName("h")
+ .withSource(RoutingSource.DEVICE_MESSAGES)
+ .withCondition("jcdh")
+ .withEndpointNames(Arrays.asList("fjvfbgofeljagr", "mqhldvrii", "ojnal"))
.withIsEnabled(true))
.withTwin(
new RoutingTwin()
- .withTags("datajk")
+ .withTags("datavtvsexsowueluq")
.withProperties(
new RoutingTwinProperties()
- .withDesired("datahmouwqlgzrfze")
- .withReported("dataebizikayuh"))),
+ .withDesired("datahhxvrhmzkwpj")
+ .withReported("datawspughftqsxhqx"))),
com.azure.core.util.Context.NONE)
.getValue();
Assertions.assertEquals(TestResultStatus.UNDEFINED, response.result());
+ Assertions.assertEquals("xdigrjg", response.details().compilationErrors().get(0).message());
+ Assertions.assertEquals(RouteErrorSeverity.ERROR, response.details().compilationErrors().get(0).severity());
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 1d052317f7607..164f7207301a3 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
@@ -17,20 +17,20 @@ public void testDeserialize() throws Exception {
IotHubSkuDescriptionInner model =
BinaryData
.fromString(
- "{\"resourceType\":\"srtslhspkdeem\",\"sku\":{\"name\":\"S3\",\"tier\":\"Basic\",\"capacity\":1461011233299690621},\"capacity\":{\"minimum\":1611861407793999607,\"maximum\":5342331061504753909,\"default\":2936969663422181948,\"scaleType\":\"Automatic\"}}")
+ "{\"resourceType\":\"jzwf\",\"sku\":{\"name\":\"B1\",\"tier\":\"Free\",\"capacity\":2752624738826273376},\"capacity\":{\"minimum\":2895240290674738337,\"maximum\":722648832186407891,\"default\":5846205401797666469,\"scaleType\":\"Automatic\"}}")
.toObject(IotHubSkuDescriptionInner.class);
- Assertions.assertEquals(IotHubSku.S3, model.sku().name());
- Assertions.assertEquals(1461011233299690621L, model.sku().capacity());
+ Assertions.assertEquals(IotHubSku.B1, model.sku().name());
+ Assertions.assertEquals(2752624738826273376L, model.sku().capacity());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
IotHubSkuDescriptionInner model =
new IotHubSkuDescriptionInner()
- .withSku(new IotHubSkuInfo().withName(IotHubSku.S3).withCapacity(1461011233299690621L))
+ .withSku(new IotHubSkuInfo().withName(IotHubSku.B1).withCapacity(2752624738826273376L))
.withCapacity(new IotHubCapacity());
model = BinaryData.fromObject(model).toObject(IotHubSkuDescriptionInner.class);
- Assertions.assertEquals(IotHubSku.S3, model.sku().name());
- Assertions.assertEquals(1461011233299690621L, model.sku().capacity());
+ Assertions.assertEquals(IotHubSku.B1, model.sku().name());
+ Assertions.assertEquals(2752624738826273376L, 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 f5610049f6e7e..0de8b417be8b0 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
@@ -19,10 +19,10 @@ public void testDeserialize() throws Exception {
IotHubSkuDescriptionListResult model =
BinaryData
.fromString(
- "{\"value\":[{\"resourceType\":\"qugxywpmueefjzwf\",\"sku\":{\"name\":\"B1\",\"tier\":\"Free\",\"capacity\":2752624738826273376},\"capacity\":{\"minimum\":2895240290674738337,\"maximum\":722648832186407891,\"default\":5846205401797666469,\"scaleType\":\"Automatic\"}},{\"resourceType\":\"qxtccmgyudx\",\"sku\":{\"name\":\"B2\",\"tier\":\"Standard\",\"capacity\":5036022727729954665},\"capacity\":{\"minimum\":5697722366346871182,\"maximum\":328428173774055677,\"default\":1705151259952930874,\"scaleType\":\"None\"}},{\"resourceType\":\"hdzhlrqj\",\"sku\":{\"name\":\"B2\",\"tier\":\"Standard\",\"capacity\":6374623406138918990},\"capacity\":{\"minimum\":8781176229641624570,\"maximum\":5275318016138914703,\"default\":1967797899884280622,\"scaleType\":\"None\"}},{\"resourceType\":\"n\",\"sku\":{\"name\":\"S2\",\"tier\":\"Free\",\"capacity\":5373828477618369096},\"capacity\":{\"minimum\":739899630467630797,\"maximum\":574839923891984639,\"default\":6504833090063292182,\"scaleType\":\"Automatic\"}}],\"nextLink\":\"hhseyv\"}")
+ "{\"value\":[{\"resourceType\":\"togt\",\"sku\":{\"name\":\"S3\",\"tier\":\"Free\",\"capacity\":1377433518907384393},\"capacity\":{\"minimum\":3534987396424038530,\"maximum\":8043422391436901501,\"default\":2405613311223281971,\"scaleType\":\"None\"}},{\"resourceType\":\"eil\",\"sku\":{\"name\":\"S3\",\"tier\":\"Free\",\"capacity\":2732685754264877829},\"capacity\":{\"minimum\":3928242933963476014,\"maximum\":5836396385888459826,\"default\":2295075824007541561,\"scaleType\":\"Automatic\"}},{\"resourceType\":\"bttk\",\"sku\":{\"name\":\"B3\",\"tier\":\"Standard\",\"capacity\":2116320352279967667},\"capacity\":{\"minimum\":962291776216015099,\"maximum\":6718667665096544770,\"default\":6306167539521806768,\"scaleType\":\"Manual\"}},{\"resourceType\":\"lphox\",\"sku\":{\"name\":\"S1\",\"tier\":\"Basic\",\"capacity\":4392160629829565824},\"capacity\":{\"minimum\":1781523879629973808,\"maximum\":3301208873451353508,\"default\":8481136103419413526,\"scaleType\":\"Manual\"}}],\"nextLink\":\"gxywpmue\"}")
.toObject(IotHubSkuDescriptionListResult.class);
- Assertions.assertEquals(IotHubSku.B1, model.value().get(0).sku().name());
- Assertions.assertEquals(2752624738826273376L, model.value().get(0).sku().capacity());
+ Assertions.assertEquals(IotHubSku.S3, model.value().get(0).sku().name());
+ Assertions.assertEquals(1377433518907384393L, model.value().get(0).sku().capacity());
}
@org.junit.jupiter.api.Test
@@ -33,19 +33,19 @@ public void testSerialize() throws Exception {
Arrays
.asList(
new IotHubSkuDescriptionInner()
- .withSku(new IotHubSkuInfo().withName(IotHubSku.B1).withCapacity(2752624738826273376L))
+ .withSku(new IotHubSkuInfo().withName(IotHubSku.S3).withCapacity(1377433518907384393L))
.withCapacity(new IotHubCapacity()),
new IotHubSkuDescriptionInner()
- .withSku(new IotHubSkuInfo().withName(IotHubSku.B2).withCapacity(5036022727729954665L))
+ .withSku(new IotHubSkuInfo().withName(IotHubSku.S3).withCapacity(2732685754264877829L))
.withCapacity(new IotHubCapacity()),
new IotHubSkuDescriptionInner()
- .withSku(new IotHubSkuInfo().withName(IotHubSku.B2).withCapacity(6374623406138918990L))
+ .withSku(new IotHubSkuInfo().withName(IotHubSku.B3).withCapacity(2116320352279967667L))
.withCapacity(new IotHubCapacity()),
new IotHubSkuDescriptionInner()
- .withSku(new IotHubSkuInfo().withName(IotHubSku.S2).withCapacity(5373828477618369096L))
+ .withSku(new IotHubSkuInfo().withName(IotHubSku.S1).withCapacity(4392160629829565824L))
.withCapacity(new IotHubCapacity())));
model = BinaryData.fromObject(model).toObject(IotHubSkuDescriptionListResult.class);
- Assertions.assertEquals(IotHubSku.B1, model.value().get(0).sku().name());
- Assertions.assertEquals(2752624738826273376L, model.value().get(0).sku().capacity());
+ Assertions.assertEquals(IotHubSku.S3, model.value().get(0).sku().name());
+ Assertions.assertEquals(1377433518907384393L, model.value().get(0).sku().capacity());
}
}
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 3fe350ea04735..56f29e7ae405e 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
@@ -14,17 +14,17 @@ public final class IotHubSkuInfoTests {
public void testDeserialize() throws Exception {
IotHubSkuInfo model =
BinaryData
- .fromString("{\"name\":\"F1\",\"tier\":\"Free\",\"capacity\":6629328138871723809}")
+ .fromString("{\"name\":\"B1\",\"tier\":\"Free\",\"capacity\":151235075959718301}")
.toObject(IotHubSkuInfo.class);
- Assertions.assertEquals(IotHubSku.F1, model.name());
- Assertions.assertEquals(6629328138871723809L, model.capacity());
+ Assertions.assertEquals(IotHubSku.B1, model.name());
+ Assertions.assertEquals(151235075959718301L, model.capacity());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- IotHubSkuInfo model = new IotHubSkuInfo().withName(IotHubSku.F1).withCapacity(6629328138871723809L);
+ IotHubSkuInfo model = new IotHubSkuInfo().withName(IotHubSku.B1).withCapacity(151235075959718301L);
model = BinaryData.fromObject(model).toObject(IotHubSkuInfo.class);
- Assertions.assertEquals(IotHubSku.F1, model.name());
- Assertions.assertEquals(6629328138871723809L, model.capacity());
+ Assertions.assertEquals(IotHubSku.B1, model.name());
+ Assertions.assertEquals(151235075959718301L, 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 6e80d396a3fcf..1be6d7ac45a96 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
@@ -60,9 +60,9 @@ public void testManualFailover() throws Exception {
manager
.iotHubs()
.manualFailover(
- "ggufhyaomtb",
- "hhavgrvkffovjz",
- new FailoverInput().withFailoverRegion("pjbi"),
+ "dfcea",
+ "vlhv",
+ new FailoverInput().withFailoverRegion("gdyftumrtwna"),
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 f67fb5faa5c3d..36d70096736b2 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
@@ -13,9 +13,9 @@ public void testDeserialize() throws Exception {
JobResponseInner model =
BinaryData
.fromString(
- "{\"jobId\":\"lupj\",\"startTimeUtc\":\"Wed, 21 Apr 2021 08:53:38 GMT\",\"endTimeUtc\":\"Mon, 26"
- + " Apr 2021 22:12:21"
- + " GMT\",\"type\":\"import\",\"status\":\"completed\",\"failureReason\":\"wsrtjriplrbpbe\",\"statusMessage\":\"ghfg\",\"parentJobId\":\"c\"}")
+ "{\"jobId\":\"bxwyjsflhhcaa\",\"startTimeUtc\":\"Fri, 06 Aug 2021 05:51:03"
+ + " GMT\",\"endTimeUtc\":\"Thu, 25 Mar 2021 19:19:56"
+ + " GMT\",\"type\":\"updateDeviceConfiguration\",\"status\":\"enqueued\",\"failureReason\":\"wjo\",\"statusMessage\":\"qcslyjpkiid\",\"parentJobId\":\"exznelixhnr\"}")
.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 356fda77e2ad0..ab42241eae198 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
@@ -15,15 +15,21 @@ public void testDeserialize() throws Exception {
JobResponseListResult model =
BinaryData
.fromString(
- "{\"value\":[{\"jobId\":\"skxfbk\",\"startTimeUtc\":\"Fri, 05 Feb 2021 18:39:24"
- + " GMT\",\"endTimeUtc\":\"Sun, 14 Feb 2021 18:57:00"
- + " GMT\",\"type\":\"writeDeviceProperties\",\"status\":\"completed\",\"failureReason\":\"hjdauwhvylwz\",\"statusMessage\":\"dhxujznbmpo\",\"parentJobId\":\"wpr\"}],\"nextLink\":\"lve\"}")
+ "{\"value\":[{\"jobId\":\"vxqtayriwwroyqbe\",\"startTimeUtc\":\"Fri, 25 Jun 2021 11:51:15"
+ + " GMT\",\"endTimeUtc\":\"Sun, 11 Apr 2021 16:05:14"
+ + " GMT\",\"type\":\"readDeviceProperties\",\"status\":\"failed\",\"failureReason\":\"ojvknmefqsgzvaha\",\"statusMessage\":\"y\",\"parentJobId\":\"pvgqzcjrvxdjzlm\"},{\"jobId\":\"xkvugfhzov\",\"startTimeUtc\":\"Tue,"
+ + " 06 Apr 2021 17:45:34 GMT\",\"endTimeUtc\":\"Mon, 30 Aug 2021 15:15:07"
+ + " GMT\",\"type\":\"readDeviceProperties\",\"status\":\"enqueued\",\"failureReason\":\"hnnpr\",\"statusMessage\":\"i\",\"parentJobId\":\"ilpjzuaejxdult\"},{\"jobId\":\"zbbtdzumveek\",\"startTimeUtc\":\"Mon,"
+ + " 08 Feb 2021 12:29:03 GMT\",\"endTimeUtc\":\"Fri, 03 Sep 2021 13:43:44"
+ + " GMT\",\"type\":\"factoryResetDevice\",\"status\":\"running\",\"failureReason\":\"bsjyofdx\",\"statusMessage\":\"us\",\"parentJobId\":\"touwaboekqv\"}],\"nextLink\":\"lns\"}")
.toObject(JobResponseListResult.class);
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- JobResponseListResult model = new JobResponseListResult().withValue(Arrays.asList(new JobResponseInner()));
+ JobResponseListResult model =
+ new JobResponseListResult()
+ .withValue(Arrays.asList(new JobResponseInner(), new JobResponseInner(), new JobResponseInner()));
model = BinaryData.fromObject(model).toObject(JobResponseListResult.class);
}
}
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 ae9f03a5015c2..ac864c07a9617 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\":\"czvyifq\"}").toObject(ManagedIdentity.class);
- Assertions.assertEquals("czvyifq", model.userAssignedIdentity());
+ BinaryData.fromString("{\"userAssignedIdentity\":\"deyeamdphagalpbu\"}").toObject(ManagedIdentity.class);
+ Assertions.assertEquals("deyeamdphagalpbu", model.userAssignedIdentity());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ManagedIdentity model = new ManagedIdentity().withUserAssignedIdentity("czvyifq");
+ ManagedIdentity model = new ManagedIdentity().withUserAssignedIdentity("deyeamdphagalpbu");
model = BinaryData.fromObject(model).toObject(ManagedIdentity.class);
- Assertions.assertEquals("czvyifq", model.userAssignedIdentity());
+ Assertions.assertEquals("deyeamdphagalpbu", 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 935cf6b5d5b77..37e37fb616991 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
@@ -17,12 +17,12 @@ public void testDeserialize() throws Exception {
MatchedRoute model =
BinaryData
.fromString(
- "{\"properties\":{\"name\":\"gynduha\",\"source\":\"DigitalTwinChangeEvents\",\"condition\":\"lkthu\",\"endpointNames\":[\"qolbgyc\",\"uie\",\"tgccymvaolpss\",\"qlfmmdnbb\"],\"isEnabled\":true}}")
+ "{\"properties\":{\"name\":\"ttdumorppxebmnzb\",\"source\":\"DeviceConnectionStateEvents\",\"condition\":\"jpglkfgohdne\",\"endpointNames\":[\"lfphsdyhtozfikd\"],\"isEnabled\":true}}")
.toObject(MatchedRoute.class);
- Assertions.assertEquals("gynduha", model.properties().name());
- Assertions.assertEquals(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS, model.properties().source());
- Assertions.assertEquals("lkthu", model.properties().condition());
- Assertions.assertEquals("qolbgyc", model.properties().endpointNames().get(0));
+ Assertions.assertEquals("ttdumorppxebmnzb", model.properties().name());
+ Assertions.assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.properties().source());
+ Assertions.assertEquals("jpglkfgohdne", model.properties().condition());
+ Assertions.assertEquals("lfphsdyhtozfikd", model.properties().endpointNames().get(0));
Assertions.assertEquals(true, model.properties().isEnabled());
}
@@ -32,16 +32,16 @@ public void testSerialize() throws Exception {
new MatchedRoute()
.withProperties(
new RouteProperties()
- .withName("gynduha")
- .withSource(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS)
- .withCondition("lkthu")
- .withEndpointNames(Arrays.asList("qolbgyc", "uie", "tgccymvaolpss", "qlfmmdnbb"))
+ .withName("ttdumorppxebmnzb")
+ .withSource(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS)
+ .withCondition("jpglkfgohdne")
+ .withEndpointNames(Arrays.asList("lfphsdyhtozfikd"))
.withIsEnabled(true));
model = BinaryData.fromObject(model).toObject(MatchedRoute.class);
- Assertions.assertEquals("gynduha", model.properties().name());
- Assertions.assertEquals(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS, model.properties().source());
- Assertions.assertEquals("lkthu", model.properties().condition());
- Assertions.assertEquals("qolbgyc", model.properties().endpointNames().get(0));
+ Assertions.assertEquals("ttdumorppxebmnzb", model.properties().name());
+ Assertions.assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.properties().source());
+ Assertions.assertEquals("jpglkfgohdne", model.properties().condition());
+ Assertions.assertEquals("lfphsdyhtozfikd", model.properties().endpointNames().get(0));
Assertions.assertEquals(true, 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 012ac5d117367..a1a60d6590fcd 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
@@ -15,23 +15,23 @@ public void testDeserialize() throws Exception {
MessagingEndpointProperties model =
BinaryData
.fromString(
- "{\"lockDurationAsIso8601\":\"PT61H42M35S\",\"ttlAsIso8601\":\"PT18H25M44S\",\"maxDeliveryCount\":1688727412}")
+ "{\"lockDurationAsIso8601\":\"PT135H19M21S\",\"ttlAsIso8601\":\"PT18M41S\",\"maxDeliveryCount\":1400002261}")
.toObject(MessagingEndpointProperties.class);
- Assertions.assertEquals(Duration.parse("PT61H42M35S"), model.lockDurationAsIso8601());
- Assertions.assertEquals(Duration.parse("PT18H25M44S"), model.ttlAsIso8601());
- Assertions.assertEquals(1688727412, model.maxDeliveryCount());
+ Assertions.assertEquals(Duration.parse("PT135H19M21S"), model.lockDurationAsIso8601());
+ Assertions.assertEquals(Duration.parse("PT18M41S"), model.ttlAsIso8601());
+ Assertions.assertEquals(1400002261, model.maxDeliveryCount());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
MessagingEndpointProperties model =
new MessagingEndpointProperties()
- .withLockDurationAsIso8601(Duration.parse("PT61H42M35S"))
- .withTtlAsIso8601(Duration.parse("PT18H25M44S"))
- .withMaxDeliveryCount(1688727412);
+ .withLockDurationAsIso8601(Duration.parse("PT135H19M21S"))
+ .withTtlAsIso8601(Duration.parse("PT18M41S"))
+ .withMaxDeliveryCount(1400002261);
model = BinaryData.fromObject(model).toObject(MessagingEndpointProperties.class);
- Assertions.assertEquals(Duration.parse("PT61H42M35S"), model.lockDurationAsIso8601());
- Assertions.assertEquals(Duration.parse("PT18H25M44S"), model.ttlAsIso8601());
- Assertions.assertEquals(1688727412, model.maxDeliveryCount());
+ Assertions.assertEquals(Duration.parse("PT135H19M21S"), model.lockDurationAsIso8601());
+ Assertions.assertEquals(Duration.parse("PT18M41S"), model.ttlAsIso8601());
+ Assertions.assertEquals(1400002261, model.maxDeliveryCount());
}
}
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 04edc5aef8cf7..612ae2321ae19 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
@@ -13,17 +13,17 @@ public final class NameTests {
public void testDeserialize() throws Exception {
Name model =
BinaryData
- .fromString("{\"value\":\"gktrmgucnapkte\",\"localizedValue\":\"llwptfdy\"}")
+ .fromString("{\"value\":\"nduhavhqlkthum\",\"localizedValue\":\"olbgycduiertgccy\"}")
.toObject(Name.class);
- Assertions.assertEquals("gktrmgucnapkte", model.value());
- Assertions.assertEquals("llwptfdy", model.localizedValue());
+ Assertions.assertEquals("nduhavhqlkthum", model.value());
+ Assertions.assertEquals("olbgycduiertgccy", model.localizedValue());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- Name model = new Name().withValue("gktrmgucnapkte").withLocalizedValue("llwptfdy");
+ Name model = new Name().withValue("nduhavhqlkthum").withLocalizedValue("olbgycduiertgccy");
model = BinaryData.fromObject(model).toObject(Name.class);
- Assertions.assertEquals("gktrmgucnapkte", model.value());
- Assertions.assertEquals("llwptfdy", model.localizedValue());
+ Assertions.assertEquals("nduhavhqlkthum", model.value());
+ Assertions.assertEquals("olbgycduiertgccy", 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 6ef78cd8ea4ee..bb8c36daf7d58 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\":\"touwaboekqv\"}").toObject(OperationInputs.class);
- Assertions.assertEquals("touwaboekqv", model.name());
+ OperationInputs model = BinaryData.fromString("{\"name\":\"n\"}").toObject(OperationInputs.class);
+ Assertions.assertEquals("n", model.name());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- OperationInputs model = new OperationInputs().withName("touwaboekqv");
+ OperationInputs model = new OperationInputs().withName("n");
model = BinaryData.fromObject(model).toObject(OperationInputs.class);
- Assertions.assertEquals("touwaboekqv", model.name());
+ Assertions.assertEquals("n", 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 4bbe3a9cb3fcd..51d7f11d9d129 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
@@ -31,7 +31,7 @@ public void testList() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"value\":[{\"name\":\"xdy\",\"display\":{\"provider\":\"y\",\"resource\":\"ogjltdtbnnhad\",\"operation\":\"crkvcikhnv\",\"description\":\"mqg\"}}]}";
+ "{\"value\":[{\"name\":\"axhexiilivp\",\"display\":{\"provider\":\"irqtdqoa\",\"resource\":\"r\",\"operation\":\"fgsqu\",\"description\":\"xrxxlep\"}}]}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
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 5bdc17b521b97..ec543d2b42c69 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
@@ -32,7 +32,7 @@ public void testDelete() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"properties\":{\"privateEndpoint\":{\"id\":\"ubkwdle\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"d\",\"actionsRequired\":\"tujbazpju\"}},\"id\":\"hminyflnorwmduv\",\"name\":\"pklvxw\",\"type\":\"ygdxpgpqchis\"}";
+ "{\"properties\":{\"privateEndpoint\":{\"id\":\"ibyowbblgyavutp\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"joxoism\",\"actionsRequired\":\"sbpimlq\"}},\"id\":\"ljxkcgxxlx\",\"name\":\"ffgcvizqz\",\"type\":\"wlvwlyoupf\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -63,14 +63,13 @@ public void testDelete() throws Exception {
PrivateEndpointConnection response =
manager
.privateEndpointConnections()
- .delete("kahzo", "ajjziuxxpshne", "kulfg", com.azure.core.util.Context.NONE);
+ .delete("rrilbywdxsmic", "wrwfscjfnyns", "qujizdvo", com.azure.core.util.Context.NONE);
Assertions
.assertEquals(
- PrivateLinkServiceConnectionStatus.PENDING,
+ PrivateLinkServiceConnectionStatus.APPROVED,
response.properties().privateLinkServiceConnectionState().status());
- Assertions.assertEquals("d", response.properties().privateLinkServiceConnectionState().description());
- Assertions
- .assertEquals("tujbazpju", response.properties().privateLinkServiceConnectionState().actionsRequired());
+ Assertions.assertEquals("joxoism", response.properties().privateLinkServiceConnectionState().description());
+ Assertions.assertEquals("sbpimlq", response.properties().privateLinkServiceConnectionState().actionsRequired());
}
}
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 850119b6c0932..48233a7bfaed8 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
@@ -32,7 +32,7 @@ public void testGetWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"properties\":{\"privateEndpoint\":{\"id\":\"tbaxk\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"ywrckp\",\"actionsRequired\":\"lyhpluodpvruud\"}},\"id\":\"gzibthostgktstv\",\"name\":\"xeclzedqbcvhzlhp\",\"type\":\"odqkdlwwqfb\"}";
+ "{\"properties\":{\"privateEndpoint\":{\"id\":\"wmd\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"wpklvxw\",\"actionsRequired\":\"gdxpg\"}},\"id\":\"qchiszep\",\"name\":\"nb\",\"type\":\"crxgibb\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -63,16 +63,14 @@ public void testGetWithResponse() throws Exception {
PrivateEndpointConnection response =
manager
.privateEndpointConnections()
- .getWithResponse("sdshmkxmaehvb", "xu", "iplt", com.azure.core.util.Context.NONE)
+ .getWithResponse("d", "utujba", "pjuohminyfl", com.azure.core.util.Context.NONE)
.getValue();
Assertions
.assertEquals(
- PrivateLinkServiceConnectionStatus.PENDING,
+ PrivateLinkServiceConnectionStatus.DISCONNECTED,
response.properties().privateLinkServiceConnectionState().status());
- Assertions.assertEquals("ywrckp", response.properties().privateLinkServiceConnectionState().description());
- Assertions
- .assertEquals(
- "lyhpluodpvruud", response.properties().privateLinkServiceConnectionState().actionsRequired());
+ Assertions.assertEquals("wpklvxw", response.properties().privateLinkServiceConnectionState().description());
+ Assertions.assertEquals("gdxpg", 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 750eac4353385..bd0a9386e3804 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
@@ -13,10 +13,12 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.resourcemanager.iothub.IotHubManager;
import com.azure.resourcemanager.iothub.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.iothub.models.PrivateLinkServiceConnectionStatus;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.time.OffsetDateTime;
import java.util.List;
+import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
@@ -31,7 +33,7 @@ public void testListWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "[{\"properties\":{},\"id\":\"qgaifmviklbydv\",\"name\":\"hbejdznxcvdsrhnj\",\"type\":\"volvtn\"},{\"properties\":{},\"id\":\"qfzgemjdftul\",\"name\":\"ltducea\",\"type\":\"tmczuomejwcwwqi\"},{\"properties\":{},\"id\":\"nssxmojmsvpk\",\"name\":\"prvkwcfzqljyxgtc\",\"type\":\"heyd\"}]";
+ "[{\"properties\":{\"privateEndpoint\":{\"id\":\"slesjcbhernnt\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"w\",\"actionsRequired\":\"cv\"}},\"id\":\"quwrbehwag\",\"name\":\"hbuffkmrq\",\"type\":\"mvvhmxtdrjfuta\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"bj\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"wzcjznmwcpmgua\",\"actionsRequired\":\"raufactkahzova\"}},\"id\":\"j\",\"name\":\"iuxxpshneekulfg\",\"type\":\"lqubkwdlen\"}]";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -62,7 +64,15 @@ public void testListWithResponse() throws Exception {
List response =
manager
.privateEndpointConnections()
- .listWithResponse("fmznba", "qphchqnrnrpxehuw", com.azure.core.util.Context.NONE)
+ .listWithResponse("yeua", "jkqa", com.azure.core.util.Context.NONE)
.getValue();
+
+ Assertions
+ .assertEquals(
+ PrivateLinkServiceConnectionStatus.REJECTED,
+ response.get(0).properties().privateLinkServiceConnectionState().status());
+ Assertions.assertEquals("w", response.get(0).properties().privateLinkServiceConnectionState().description());
+ Assertions
+ .assertEquals("cv", 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 883a23e14bb3e..b2f06a84a5762 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
@@ -36,7 +36,7 @@ public void testUpdate() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"properties\":{\"privateEndpoint\":{\"id\":\"quwrbehwag\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"buffkmrqemvvhm\",\"actionsRequired\":\"drjf\"}},\"id\":\"tac\",\"name\":\"ebjvewzcjzn\",\"type\":\"wcpmguaadraufac\"}";
+ "{\"properties\":{\"privateEndpoint\":{\"id\":\"vcyy\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"fgdo\",\"actionsRequired\":\"ubiipuipwoqonma\"}},\"id\":\"jeknizshq\",\"name\":\"cimpevfg\",\"type\":\"b\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -68,26 +68,27 @@ public void testUpdate() throws Exception {
manager
.privateEndpointConnections()
.update(
- "mlkxtrqjfs",
- "lmbtxhwgfwsrt",
- "wcoezbrhub",
+ "axconfozauo",
+ "sukokwbqplhl",
+ "nuuepzlrp",
new PrivateEndpointConnectionInner()
.withProperties(
new PrivateEndpointConnectionProperties()
.withPrivateEndpoint(new PrivateEndpoint())
.withPrivateLinkServiceConnectionState(
new PrivateLinkServiceConnectionState()
- .withStatus(PrivateLinkServiceConnectionStatus.APPROVED)
- .withDescription("qfqjbvleorfm")
- .withActionsRequired("iqtqzfavyvnq"))),
+ .withStatus(PrivateLinkServiceConnectionStatus.REJECTED)
+ .withDescription("nrwrbiork")
+ .withActionsRequired("lywjhh"))),
com.azure.core.util.Context.NONE);
Assertions
.assertEquals(
- PrivateLinkServiceConnectionStatus.REJECTED,
+ PrivateLinkServiceConnectionStatus.PENDING,
response.properties().privateLinkServiceConnectionState().status());
+ Assertions.assertEquals("fgdo", response.properties().privateLinkServiceConnectionState().description());
Assertions
- .assertEquals("buffkmrqemvvhm", response.properties().privateLinkServiceConnectionState().description());
- Assertions.assertEquals("drjf", response.properties().privateLinkServiceConnectionState().actionsRequired());
+ .assertEquals(
+ "ubiipuipwoqonma", 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 4a8acf0aec6a9..19928df8969f3 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
@@ -17,9 +17,11 @@ public void testDeserialize() throws Exception {
PrivateLinkResourcesInner model =
BinaryData
.fromString(
- "{\"value\":[{\"id\":\"kuwhh\",\"name\":\"ykojoxafnndlpic\",\"type\":\"o\",\"properties\":{\"groupId\":\"kcdyhbpk\",\"requiredMembers\":[],\"requiredZoneNames\":[]}},{\"id\":\"reqnovvqfov\",\"name\":\"xywsuws\",\"type\":\"s\",\"properties\":{\"groupId\":\"sytgadgvraea\",\"requiredMembers\":[],\"requiredZoneNames\":[]}}]}")
+ "{\"value\":[{\"id\":\"njhf\",\"name\":\"wmszkk\",\"type\":\"qreyfkzi\",\"properties\":{\"groupId\":\"jawneaiv\",\"requiredMembers\":[\"zel\",\"c\",\"r\"],\"requiredZoneNames\":[\"feaenwab\",\"atklddxbjhwuaa\",\"oz\"]}},{\"id\":\"sphyoulpjrvxa\",\"name\":\"rvimjwosytxitcsk\",\"type\":\"k\",\"properties\":{\"groupId\":\"umiekkezzi\",\"requiredMembers\":[\"yf\"],\"requiredZoneNames\":[\"gqggebdunygae\",\"idb\",\"fatpxllrxcyjmoa\"]}}]}")
.toObject(PrivateLinkResourcesInner.class);
- Assertions.assertEquals("kcdyhbpk", model.value().get(0).properties().groupId());
+ Assertions.assertEquals("jawneaiv", model.value().get(0).properties().groupId());
+ Assertions.assertEquals("zel", model.value().get(0).properties().requiredMembers().get(0));
+ Assertions.assertEquals("feaenwab", model.value().get(0).properties().requiredZoneNames().get(0));
}
@org.junit.jupiter.api.Test
@@ -32,16 +34,19 @@ public void testSerialize() throws Exception {
new GroupIdInformationInner()
.withProperties(
new GroupIdInformationProperties()
- .withGroupId("kcdyhbpk")
- .withRequiredMembers(Arrays.asList())
- .withRequiredZoneNames(Arrays.asList())),
+ .withGroupId("jawneaiv")
+ .withRequiredMembers(Arrays.asList("zel", "c", "r"))
+ .withRequiredZoneNames(Arrays.asList("feaenwab", "atklddxbjhwuaa", "oz"))),
new GroupIdInformationInner()
.withProperties(
new GroupIdInformationProperties()
- .withGroupId("sytgadgvraea")
- .withRequiredMembers(Arrays.asList())
- .withRequiredZoneNames(Arrays.asList()))));
+ .withGroupId("umiekkezzi")
+ .withRequiredMembers(Arrays.asList("yf"))
+ .withRequiredZoneNames(
+ Arrays.asList("gqggebdunygae", "idb", "fatpxllrxcyjmoa")))));
model = BinaryData.fromObject(model).toObject(PrivateLinkResourcesInner.class);
- Assertions.assertEquals("kcdyhbpk", model.value().get(0).properties().groupId());
+ Assertions.assertEquals("jawneaiv", model.value().get(0).properties().groupId());
+ Assertions.assertEquals("zel", model.value().get(0).properties().requiredMembers().get(0));
+ Assertions.assertEquals("feaenwab", 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 92f619ee0810c..b365734657c75 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
@@ -31,7 +31,7 @@ public void testGetWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"id\":\"sutrgjup\",\"name\":\"utpwoqhihejqgw\",\"type\":\"nfqn\",\"properties\":{\"groupId\":\"ypsxjvfoim\",\"requiredMembers\":[\"lirc\",\"zjxvydfcea\"],\"requiredZoneNames\":[\"hvygdyftumr\",\"wnawjslbiw\",\"ojgcyzt\"]}}";
+ "{\"id\":\"h\",\"name\":\"odqkdlwwqfb\",\"type\":\"lkxt\",\"properties\":{\"groupId\":\"jfsmlmbtxhwgfwsr\",\"requiredMembers\":[\"coezbrhubskh\",\"dyg\",\"ookk\"],\"requiredZoneNames\":[\"jb\",\"leorfmluiqtqz\",\"avyvnqqyba\"]}}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -62,11 +62,11 @@ public void testGetWithResponse() throws Exception {
GroupIdInformation response =
manager
.privateLinkResourcesOperations()
- .getWithResponse("amrsreuzv", "urisjnhnytxifqj", "gxmrhublwp", com.azure.core.util.Context.NONE)
+ .getWithResponse("thost", "ktst", "dxeclzedqbcvh", com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("ypsxjvfoim", response.properties().groupId());
- Assertions.assertEquals("lirc", response.properties().requiredMembers().get(0));
- Assertions.assertEquals("hvygdyftumr", response.properties().requiredZoneNames().get(0));
+ Assertions.assertEquals("jfsmlmbtxhwgfwsr", response.properties().groupId());
+ Assertions.assertEquals("coezbrhubskh", response.properties().requiredMembers().get(0));
+ Assertions.assertEquals("jb", 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 15f380902b0b5..ac7e49ac3533b 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
@@ -16,6 +16,7 @@
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.time.OffsetDateTime;
+import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
@@ -30,7 +31,7 @@ public void testListWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"value\":[{\"id\":\"bkfezzxscyhwzdgi\",\"name\":\"jbzbomvzzbtdcq\",\"type\":\"niyujv\"},{\"id\":\"l\",\"name\":\"shfssnrbgyef\",\"type\":\"msgaoj\"},{\"id\":\"wncot\",\"name\":\"fhir\",\"type\":\"ymoxoftpipiwyczu\"},{\"id\":\"a\",\"name\":\"qjlihhyuspska\",\"type\":\"vlmfwdgzxulucv\"}]}";
+ "{\"value\":[{\"id\":\"ph\",\"name\":\"qnrnrpxehuwryk\",\"type\":\"aifmvikl\",\"properties\":{\"groupId\":\"dvk\",\"requiredMembers\":[\"jdz\"],\"requiredZoneNames\":[\"vdsrhnjiv\",\"lvtno\"]}},{\"id\":\"fzg\",\"name\":\"jdftuljltd\",\"type\":\"eamtmcz\",\"properties\":{\"groupId\":\"m\",\"requiredMembers\":[\"cwwqiokn\"],\"requiredZoneNames\":[\"mojmsvpkjprvkw\",\"fz\",\"ljyxgtczhe\"]}},{\"id\":\"bsdshmkxmaehvbbx\",\"name\":\"iplt\",\"type\":\"htba\",\"properties\":{\"groupId\":\"gx\",\"requiredMembers\":[\"ckpyklyhplu\"],\"requiredZoneNames\":[\"vruu\",\"lgzi\"]}}]}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -61,7 +62,11 @@ public void testListWithResponse() throws Exception {
PrivateLinkResources response =
manager
.privateLinkResourcesOperations()
- .listWithResponse("gjmfxumvfcl", "yo", com.azure.core.util.Context.NONE)
+ .listWithResponse("jslb", "wkojgcyztsfmzn", com.azure.core.util.Context.NONE)
.getValue();
+
+ Assertions.assertEquals("dvk", response.value().get(0).properties().groupId());
+ Assertions.assertEquals("jdz", response.value().get(0).properties().requiredMembers().get(0));
+ Assertions.assertEquals("vdsrhnjiv", 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 4c50c3f4fe7a9..f577bbb4e3140 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
@@ -13,7 +13,7 @@ public void testDeserialize() throws Exception {
RegistryStatisticsInner model =
BinaryData
.fromString(
- "{\"totalDeviceCount\":8751195016646991326,\"enabledDeviceCount\":1457030135916183053,\"disabledDeviceCount\":6300383751543557162}")
+ "{\"totalDeviceCount\":5199326091751618415,\"enabledDeviceCount\":5760355452079192141,\"disabledDeviceCount\":4951290031331541829}")
.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 72d210e21ceb2..968044b9094e8 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
@@ -31,7 +31,7 @@ public void testGetSubscriptionQuotaWithResponse() throws Exception {
ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
String responseStr =
- "{\"value\":[{\"id\":\"lvrwxkvtkk\",\"type\":\"lqwjygvjayvblm\",\"unit\":\"k\",\"currentValue\":2100624724,\"limit\":919724990}],\"nextLink\":\"yhgsopbyrqufe\"}";
+ "{\"value\":[{\"id\":\"m\",\"type\":\"elfk\",\"unit\":\"plcrpwjxeznoig\",\"currentValue\":1629929143,\"limit\":78326163,\"name\":{\"value\":\"kpnb\",\"localizedValue\":\"zejjoqk\"}},{\"id\":\"fhsxttaugz\",\"type\":\"faazpxdtnkdmkqjj\",\"unit\":\"uenvrkp\",\"currentValue\":1149694160,\"limit\":1074259109,\"name\":{\"value\":\"ebqaaysjkixqtnq\",\"localizedValue\":\"ezl\"}},{\"id\":\"ffiakp\",\"type\":\"qqmtedltmmji\",\"unit\":\"eozphv\",\"currentValue\":1760801565,\"limit\":404997188,\"name\":{\"value\":\"ygupkv\",\"localizedValue\":\"mdscwxqupev\"}}],\"nextLink\":\"f\"}";
Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
@@ -65,10 +65,12 @@ public void testGetSubscriptionQuotaWithResponse() throws Exception {
.getSubscriptionQuotaWithResponse(com.azure.core.util.Context.NONE)
.getValue();
- Assertions.assertEquals("lvrwxkvtkk", response.value().get(0).id());
- Assertions.assertEquals("lqwjygvjayvblm", response.value().get(0).type());
- Assertions.assertEquals("k", response.value().get(0).unit());
- Assertions.assertEquals(2100624724, response.value().get(0).currentValue());
- Assertions.assertEquals(919724990, response.value().get(0).limit());
+ Assertions.assertEquals("m", response.value().get(0).id());
+ Assertions.assertEquals("elfk", response.value().get(0).type());
+ Assertions.assertEquals("plcrpwjxeznoig", response.value().get(0).unit());
+ Assertions.assertEquals(1629929143, response.value().get(0).currentValue());
+ Assertions.assertEquals(78326163, response.value().get(0).limit());
+ Assertions.assertEquals("kpnb", response.value().get(0).name().value());
+ Assertions.assertEquals("zejjoqk", 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 f448465f57712..86e28880bcb34 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
@@ -13,15 +13,15 @@ public final class RootCertificatePropertiesTests {
public void testDeserialize() throws Exception {
RootCertificateProperties model =
BinaryData
- .fromString("{\"enableRootCertificateV2\":false,\"lastUpdatedTimeUtc\":\"2021-01-10T16:47:02Z\"}")
+ .fromString("{\"enableRootCertificateV2\":true,\"lastUpdatedTimeUtc\":\"2021-08-16T02:09:31Z\"}")
.toObject(RootCertificateProperties.class);
- Assertions.assertEquals(false, model.enableRootCertificateV2());
+ Assertions.assertEquals(true, model.enableRootCertificateV2());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- RootCertificateProperties model = new RootCertificateProperties().withEnableRootCertificateV2(false);
+ RootCertificateProperties model = new RootCertificateProperties().withEnableRootCertificateV2(true);
model = BinaryData.fromObject(model).toObject(RootCertificateProperties.class);
- Assertions.assertEquals(false, model.enableRootCertificateV2());
+ Assertions.assertEquals(true, 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 b46be8b5e6377..eac5403e50110 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
@@ -17,32 +17,32 @@ public void testDeserialize() throws Exception {
RouteCompilationError model =
BinaryData
.fromString(
- "{\"message\":\"dsjnka\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":600848345,\"column\":1914741160},\"end\":{\"line\":1975902978,\"column\":2043531661}}}")
+ "{\"message\":\"whojvp\",\"severity\":\"error\",\"location\":{\"start\":{\"line\":1647253865,\"column\":1746293745},\"end\":{\"line\":478734436,\"column\":829612504}}}")
.toObject(RouteCompilationError.class);
- Assertions.assertEquals("dsjnka", model.message());
- Assertions.assertEquals(RouteErrorSeverity.WARNING, model.severity());
- Assertions.assertEquals(600848345, model.location().start().line());
- Assertions.assertEquals(1914741160, model.location().start().column());
- Assertions.assertEquals(1975902978, model.location().end().line());
- Assertions.assertEquals(2043531661, model.location().end().column());
+ Assertions.assertEquals("whojvp", model.message());
+ Assertions.assertEquals(RouteErrorSeverity.ERROR, model.severity());
+ Assertions.assertEquals(1647253865, model.location().start().line());
+ Assertions.assertEquals(1746293745, model.location().start().column());
+ Assertions.assertEquals(478734436, model.location().end().line());
+ Assertions.assertEquals(829612504, model.location().end().column());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RouteCompilationError model =
new RouteCompilationError()
- .withMessage("dsjnka")
- .withSeverity(RouteErrorSeverity.WARNING)
+ .withMessage("whojvp")
+ .withSeverity(RouteErrorSeverity.ERROR)
.withLocation(
new RouteErrorRange()
- .withStart(new RouteErrorPosition().withLine(600848345).withColumn(1914741160))
- .withEnd(new RouteErrorPosition().withLine(1975902978).withColumn(2043531661)));
+ .withStart(new RouteErrorPosition().withLine(1647253865).withColumn(1746293745))
+ .withEnd(new RouteErrorPosition().withLine(478734436).withColumn(829612504)));
model = BinaryData.fromObject(model).toObject(RouteCompilationError.class);
- Assertions.assertEquals("dsjnka", model.message());
- Assertions.assertEquals(RouteErrorSeverity.WARNING, model.severity());
- Assertions.assertEquals(600848345, model.location().start().line());
- Assertions.assertEquals(1914741160, model.location().start().column());
- Assertions.assertEquals(1975902978, model.location().end().line());
- Assertions.assertEquals(2043531661, model.location().end().column());
+ Assertions.assertEquals("whojvp", model.message());
+ Assertions.assertEquals(RouteErrorSeverity.ERROR, model.severity());
+ Assertions.assertEquals(1647253865, model.location().start().line());
+ Assertions.assertEquals(1746293745, model.location().start().column());
+ Assertions.assertEquals(478734436, model.location().end().line());
+ Assertions.assertEquals(829612504, 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 d88ccda0380d2..a42deddbdb60f 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,16 +12,16 @@ public final class RouteErrorPositionTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
RouteErrorPosition model =
- BinaryData.fromString("{\"line\":875285248,\"column\":1367629772}").toObject(RouteErrorPosition.class);
- Assertions.assertEquals(875285248, model.line());
- Assertions.assertEquals(1367629772, model.column());
+ BinaryData.fromString("{\"line\":294676582,\"column\":2066979028}").toObject(RouteErrorPosition.class);
+ Assertions.assertEquals(294676582, model.line());
+ Assertions.assertEquals(2066979028, model.column());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- RouteErrorPosition model = new RouteErrorPosition().withLine(875285248).withColumn(1367629772);
+ RouteErrorPosition model = new RouteErrorPosition().withLine(294676582).withColumn(2066979028);
model = BinaryData.fromObject(model).toObject(RouteErrorPosition.class);
- Assertions.assertEquals(875285248, model.line());
- Assertions.assertEquals(1367629772, model.column());
+ Assertions.assertEquals(294676582, model.line());
+ Assertions.assertEquals(2066979028, 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 ee095b5ca31ba..95771c695a252 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
@@ -15,24 +15,24 @@ public void testDeserialize() throws Exception {
RouteErrorRange model =
BinaryData
.fromString(
- "{\"start\":{\"line\":900444322,\"column\":1157139188},\"end\":{\"line\":2137392775,\"column\":1769895546}}")
+ "{\"start\":{\"line\":484454898,\"column\":1023043004},\"end\":{\"line\":2143349080,\"column\":109668081}}")
.toObject(RouteErrorRange.class);
- Assertions.assertEquals(900444322, model.start().line());
- Assertions.assertEquals(1157139188, model.start().column());
- Assertions.assertEquals(2137392775, model.end().line());
- Assertions.assertEquals(1769895546, model.end().column());
+ Assertions.assertEquals(484454898, model.start().line());
+ Assertions.assertEquals(1023043004, model.start().column());
+ Assertions.assertEquals(2143349080, model.end().line());
+ Assertions.assertEquals(109668081, model.end().column());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RouteErrorRange model =
new RouteErrorRange()
- .withStart(new RouteErrorPosition().withLine(900444322).withColumn(1157139188))
- .withEnd(new RouteErrorPosition().withLine(2137392775).withColumn(1769895546));
+ .withStart(new RouteErrorPosition().withLine(484454898).withColumn(1023043004))
+ .withEnd(new RouteErrorPosition().withLine(2143349080).withColumn(109668081));
model = BinaryData.fromObject(model).toObject(RouteErrorRange.class);
- Assertions.assertEquals(900444322, model.start().line());
- Assertions.assertEquals(1157139188, model.start().column());
- Assertions.assertEquals(2137392775, model.end().line());
- Assertions.assertEquals(1769895546, model.end().column());
+ Assertions.assertEquals(484454898, model.start().line());
+ Assertions.assertEquals(1023043004, model.start().column());
+ Assertions.assertEquals(2143349080, model.end().line());
+ Assertions.assertEquals(109668081, 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 68207e7e9d52d..f777e7fca5222 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
@@ -16,29 +16,29 @@ public void testDeserialize() throws Exception {
RouteProperties model =
BinaryData
.fromString(
- "{\"name\":\"uzoqft\",\"source\":\"DeviceConnectionStateEvents\",\"condition\":\"zrnkcqvyxlwh\",\"endpointNames\":[\"sicohoqqnwvlry\",\"vwhheunmmqhgyx\",\"konocu\"],\"isEnabled\":true}")
+ "{\"name\":\"dbhrbnlankxm\",\"source\":\"MqttBrokerMessages\",\"condition\":\"pbh\",\"endpointNames\":[\"btkcxywnytnrsyn\",\"qidybyx\",\"zfcl\",\"aaxdbabphlwrq\"],\"isEnabled\":false}")
.toObject(RouteProperties.class);
- Assertions.assertEquals("uzoqft", model.name());
- Assertions.assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.source());
- Assertions.assertEquals("zrnkcqvyxlwh", model.condition());
- Assertions.assertEquals("sicohoqqnwvlry", model.endpointNames().get(0));
- Assertions.assertEquals(true, model.isEnabled());
+ Assertions.assertEquals("dbhrbnlankxm", model.name());
+ Assertions.assertEquals(RoutingSource.MQTT_BROKER_MESSAGES, model.source());
+ Assertions.assertEquals("pbh", model.condition());
+ Assertions.assertEquals("btkcxywnytnrsyn", model.endpointNames().get(0));
+ Assertions.assertEquals(false, model.isEnabled());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RouteProperties model =
new RouteProperties()
- .withName("uzoqft")
- .withSource(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS)
- .withCondition("zrnkcqvyxlwh")
- .withEndpointNames(Arrays.asList("sicohoqqnwvlry", "vwhheunmmqhgyx", "konocu"))
- .withIsEnabled(true);
+ .withName("dbhrbnlankxm")
+ .withSource(RoutingSource.MQTT_BROKER_MESSAGES)
+ .withCondition("pbh")
+ .withEndpointNames(Arrays.asList("btkcxywnytnrsyn", "qidybyx", "zfcl", "aaxdbabphlwrq"))
+ .withIsEnabled(false);
model = BinaryData.fromObject(model).toObject(RouteProperties.class);
- Assertions.assertEquals("uzoqft", model.name());
- Assertions.assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.source());
- Assertions.assertEquals("zrnkcqvyxlwh", model.condition());
- Assertions.assertEquals("sicohoqqnwvlry", model.endpointNames().get(0));
- Assertions.assertEquals(true, model.isEnabled());
+ Assertions.assertEquals("dbhrbnlankxm", model.name());
+ Assertions.assertEquals(RoutingSource.MQTT_BROKER_MESSAGES, model.source());
+ Assertions.assertEquals("pbh", model.condition());
+ Assertions.assertEquals("btkcxywnytnrsyn", model.endpointNames().get(0));
+ Assertions.assertEquals(false, 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 3fc1631b02bcf..859f9ae1cb5fb 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
@@ -16,41 +16,41 @@ public void testDeserialize() throws Exception {
RoutingEventHubProperties model =
BinaryData
.fromString(
- "{\"id\":\"mjmvxieduugidyjr\",\"connectionString\":\"byao\",\"endpointUri\":\"e\",\"entityPath\":\"sonpclhocohs\",\"authenticationType\":\"keyBased\",\"identity\":{\"userAssignedIdentity\":\"eggzfb\"},\"name\":\"hfmvfaxkffe\",\"subscriptionId\":\"th\",\"resourceGroup\":\"m\"}")
+ "{\"id\":\"onuq\",\"connectionString\":\"fkbey\",\"endpointUri\":\"wrmjmwvvjektc\",\"entityPath\":\"enhwlrs\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"wvlqdqgb\"},\"name\":\"qylihkaetckt\",\"subscriptionId\":\"civfsnkymuctq\",\"resourceGroup\":\"fbebrjcxer\"}")
.toObject(RoutingEventHubProperties.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("onuq", model.id());
+ Assertions.assertEquals("fkbey", model.connectionString());
+ Assertions.assertEquals("wrmjmwvvjektc", model.endpointUri());
+ Assertions.assertEquals("enhwlrs", model.entityPath());
+ Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
+ Assertions.assertEquals("wvlqdqgb", model.identity().userAssignedIdentity());
+ Assertions.assertEquals("qylihkaetckt", model.name());
+ Assertions.assertEquals("civfsnkymuctq", model.subscriptionId());
+ Assertions.assertEquals("fbebrjcxer", model.resourceGroup());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RoutingEventHubProperties model =
new RoutingEventHubProperties()
- .withId("mjmvxieduugidyjr")
- .withConnectionString("byao")
- .withEndpointUri("e")
- .withEntityPath("sonpclhocohs")
- .withAuthenticationType(AuthenticationType.KEY_BASED)
- .withIdentity(new ManagedIdentity().withUserAssignedIdentity("eggzfb"))
- .withName("hfmvfaxkffe")
- .withSubscriptionId("th")
- .withResourceGroup("m");
+ .withId("onuq")
+ .withConnectionString("fkbey")
+ .withEndpointUri("wrmjmwvvjektc")
+ .withEntityPath("enhwlrs")
+ .withAuthenticationType(AuthenticationType.IDENTITY_BASED)
+ .withIdentity(new ManagedIdentity().withUserAssignedIdentity("wvlqdqgb"))
+ .withName("qylihkaetckt")
+ .withSubscriptionId("civfsnkymuctq")
+ .withResourceGroup("fbebrjcxer");
model = BinaryData.fromObject(model).toObject(RoutingEventHubProperties.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("onuq", model.id());
+ Assertions.assertEquals("fkbey", model.connectionString());
+ Assertions.assertEquals("wrmjmwvvjektc", model.endpointUri());
+ Assertions.assertEquals("enhwlrs", model.entityPath());
+ Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
+ Assertions.assertEquals("wvlqdqgb", model.identity().userAssignedIdentity());
+ Assertions.assertEquals("qylihkaetckt", model.name());
+ Assertions.assertEquals("civfsnkymuctq", model.subscriptionId());
+ Assertions.assertEquals("fbebrjcxer", model.resourceGroup());
}
}
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 ab3f5e9b4ecc2..36a0e1018bcbd 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
@@ -16,27 +16,27 @@ public void testDeserialize() throws Exception {
RoutingMessage model =
BinaryData
.fromString(
- "{\"body\":\"xoblytkbl\",\"appProperties\":{\"rn\":\"wwwfbkr\",\"bfovasrruvwbhsq\":\"vshqjohxcr\",\"gjb\":\"sub\",\"rfbjf\":\"rxbpyb\"},\"systemProperties\":{\"zbexilzznfqqnvw\":\"ssotftpv\"}}")
+ "{\"body\":\"plvwiwubmwmbes\",\"appProperties\":{\"wtppjflcxogaoko\":\"k\"},\"systemProperties\":{\"fzxmhhvhgureodkw\":\"nsikvmkqzeqqkdl\"}}")
.toObject(RoutingMessage.class);
- Assertions.assertEquals("xoblytkbl", model.body());
- Assertions.assertEquals("wwwfbkr", model.appProperties().get("rn"));
- Assertions.assertEquals("ssotftpv", model.systemProperties().get("zbexilzznfqqnvw"));
+ Assertions.assertEquals("plvwiwubmwmbes", model.body());
+ Assertions.assertEquals("k", model.appProperties().get("wtppjflcxogaoko"));
+ Assertions.assertEquals("nsikvmkqzeqqkdl", model.systemProperties().get("fzxmhhvhgureodkw"));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RoutingMessage model =
new RoutingMessage()
- .withBody("xoblytkbl")
- .withAppProperties(
- mapOf("rn", "wwwfbkr", "bfovasrruvwbhsq", "vshqjohxcr", "gjb", "sub", "rfbjf", "rxbpyb"))
- .withSystemProperties(mapOf("zbexilzznfqqnvw", "ssotftpv"));
+ .withBody("plvwiwubmwmbes")
+ .withAppProperties(mapOf("wtppjflcxogaoko", "k"))
+ .withSystemProperties(mapOf("fzxmhhvhgureodkw", "nsikvmkqzeqqkdl"));
model = BinaryData.fromObject(model).toObject(RoutingMessage.class);
- Assertions.assertEquals("xoblytkbl", model.body());
- Assertions.assertEquals("wwwfbkr", model.appProperties().get("rn"));
- Assertions.assertEquals("ssotftpv", model.systemProperties().get("zbexilzznfqqnvw"));
+ Assertions.assertEquals("plvwiwubmwmbes", model.body());
+ Assertions.assertEquals("k", model.appProperties().get("wtppjflcxogaoko"));
+ Assertions.assertEquals("nsikvmkqzeqqkdl", model.systemProperties().get("fzxmhhvhgureodkw"));
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 c992353afbc07..b83e992593d68 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
@@ -16,41 +16,41 @@ public void testDeserialize() throws Exception {
RoutingServiceBusQueueEndpointProperties model =
BinaryData
.fromString(
- "{\"id\":\"aodsfcpkv\",\"connectionString\":\"dpuozmyz\",\"endpointUri\":\"agfuaxbezyiu\",\"entityPath\":\"ktwh\",\"authenticationType\":\"keyBased\",\"identity\":{\"userAssignedIdentity\":\"ywqsmbsurexim\"},\"name\":\"ryocfsfksymdd\",\"subscriptionId\":\"tki\",\"resourceGroup\":\"xhqyudxorrqnb\"}")
+ "{\"id\":\"pazyxoegukg\",\"connectionString\":\"piu\",\"endpointUri\":\"ygevqzntypmrbpiz\",\"entityPath\":\"r\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"ydnfyhxdeoejz\"},\"name\":\"cwif\",\"subscriptionId\":\"ttgzfbis\",\"resourceGroup\":\"bkh\"}")
.toObject(RoutingServiceBusQueueEndpointProperties.class);
- Assertions.assertEquals("aodsfcpkv", model.id());
- Assertions.assertEquals("dpuozmyz", model.connectionString());
- Assertions.assertEquals("agfuaxbezyiu", model.endpointUri());
- Assertions.assertEquals("ktwh", model.entityPath());
- Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType());
- Assertions.assertEquals("ywqsmbsurexim", model.identity().userAssignedIdentity());
- Assertions.assertEquals("ryocfsfksymdd", model.name());
- Assertions.assertEquals("tki", model.subscriptionId());
- Assertions.assertEquals("xhqyudxorrqnb", model.resourceGroup());
+ Assertions.assertEquals("pazyxoegukg", model.id());
+ Assertions.assertEquals("piu", model.connectionString());
+ Assertions.assertEquals("ygevqzntypmrbpiz", model.endpointUri());
+ Assertions.assertEquals("r", model.entityPath());
+ Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
+ Assertions.assertEquals("ydnfyhxdeoejz", model.identity().userAssignedIdentity());
+ Assertions.assertEquals("cwif", model.name());
+ Assertions.assertEquals("ttgzfbis", model.subscriptionId());
+ Assertions.assertEquals("bkh", model.resourceGroup());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RoutingServiceBusQueueEndpointProperties model =
new RoutingServiceBusQueueEndpointProperties()
- .withId("aodsfcpkv")
- .withConnectionString("dpuozmyz")
- .withEndpointUri("agfuaxbezyiu")
- .withEntityPath("ktwh")
- .withAuthenticationType(AuthenticationType.KEY_BASED)
- .withIdentity(new ManagedIdentity().withUserAssignedIdentity("ywqsmbsurexim"))
- .withName("ryocfsfksymdd")
- .withSubscriptionId("tki")
- .withResourceGroup("xhqyudxorrqnb");
+ .withId("pazyxoegukg")
+ .withConnectionString("piu")
+ .withEndpointUri("ygevqzntypmrbpiz")
+ .withEntityPath("r")
+ .withAuthenticationType(AuthenticationType.IDENTITY_BASED)
+ .withIdentity(new ManagedIdentity().withUserAssignedIdentity("ydnfyhxdeoejz"))
+ .withName("cwif")
+ .withSubscriptionId("ttgzfbis")
+ .withResourceGroup("bkh");
model = BinaryData.fromObject(model).toObject(RoutingServiceBusQueueEndpointProperties.class);
- Assertions.assertEquals("aodsfcpkv", model.id());
- Assertions.assertEquals("dpuozmyz", model.connectionString());
- Assertions.assertEquals("agfuaxbezyiu", model.endpointUri());
- Assertions.assertEquals("ktwh", model.entityPath());
- Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType());
- Assertions.assertEquals("ywqsmbsurexim", model.identity().userAssignedIdentity());
- Assertions.assertEquals("ryocfsfksymdd", model.name());
- Assertions.assertEquals("tki", model.subscriptionId());
- Assertions.assertEquals("xhqyudxorrqnb", model.resourceGroup());
+ Assertions.assertEquals("pazyxoegukg", model.id());
+ Assertions.assertEquals("piu", model.connectionString());
+ Assertions.assertEquals("ygevqzntypmrbpiz", model.endpointUri());
+ Assertions.assertEquals("r", model.entityPath());
+ Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
+ Assertions.assertEquals("ydnfyhxdeoejz", model.identity().userAssignedIdentity());
+ Assertions.assertEquals("cwif", model.name());
+ Assertions.assertEquals("ttgzfbis", model.subscriptionId());
+ Assertions.assertEquals("bkh", model.resourceGroup());
}
}
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 bc7d4bd4a8e9f..e60ab8b78a454 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
@@ -16,41 +16,41 @@ public void testDeserialize() throws Exception {
RoutingServiceBusTopicEndpointProperties model =
BinaryData
.fromString(
- "{\"id\":\"kdvjsll\",\"connectionString\":\"vvdfwatkpnpul\",\"endpointUri\":\"xbczwtruwiqz\",\"entityPath\":\"j\",\"authenticationType\":\"keyBased\",\"identity\":{\"userAssignedIdentity\":\"yokacspkw\"},\"name\":\"hzdobpxjmflbvvnc\",\"subscriptionId\":\"kcciwwzjuqkhr\",\"resourceGroup\":\"jiwkuofoskghsau\"}")
+ "{\"id\":\"gipwhonowkg\",\"connectionString\":\"wankixzbi\",\"endpointUri\":\"eputtmrywnuzoqf\",\"entityPath\":\"yqzrnkcqvyxlw\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"cohoq\"},\"name\":\"nwvlryavwhheunmm\",\"subscriptionId\":\"gyxzk\",\"resourceGroup\":\"ocukoklyax\"}")
.toObject(RoutingServiceBusTopicEndpointProperties.class);
- Assertions.assertEquals("kdvjsll", model.id());
- Assertions.assertEquals("vvdfwatkpnpul", model.connectionString());
- Assertions.assertEquals("xbczwtruwiqz", model.endpointUri());
- Assertions.assertEquals("j", model.entityPath());
- Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType());
- Assertions.assertEquals("yokacspkw", model.identity().userAssignedIdentity());
- Assertions.assertEquals("hzdobpxjmflbvvnc", model.name());
- Assertions.assertEquals("kcciwwzjuqkhr", model.subscriptionId());
- Assertions.assertEquals("jiwkuofoskghsau", model.resourceGroup());
+ Assertions.assertEquals("gipwhonowkg", model.id());
+ Assertions.assertEquals("wankixzbi", model.connectionString());
+ Assertions.assertEquals("eputtmrywnuzoqf", model.endpointUri());
+ Assertions.assertEquals("yqzrnkcqvyxlw", model.entityPath());
+ Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
+ Assertions.assertEquals("cohoq", model.identity().userAssignedIdentity());
+ Assertions.assertEquals("nwvlryavwhheunmm", model.name());
+ Assertions.assertEquals("gyxzk", model.subscriptionId());
+ Assertions.assertEquals("ocukoklyax", model.resourceGroup());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RoutingServiceBusTopicEndpointProperties model =
new RoutingServiceBusTopicEndpointProperties()
- .withId("kdvjsll")
- .withConnectionString("vvdfwatkpnpul")
- .withEndpointUri("xbczwtruwiqz")
- .withEntityPath("j")
- .withAuthenticationType(AuthenticationType.KEY_BASED)
- .withIdentity(new ManagedIdentity().withUserAssignedIdentity("yokacspkw"))
- .withName("hzdobpxjmflbvvnc")
- .withSubscriptionId("kcciwwzjuqkhr")
- .withResourceGroup("jiwkuofoskghsau");
+ .withId("gipwhonowkg")
+ .withConnectionString("wankixzbi")
+ .withEndpointUri("eputtmrywnuzoqf")
+ .withEntityPath("yqzrnkcqvyxlw")
+ .withAuthenticationType(AuthenticationType.IDENTITY_BASED)
+ .withIdentity(new ManagedIdentity().withUserAssignedIdentity("cohoq"))
+ .withName("nwvlryavwhheunmm")
+ .withSubscriptionId("gyxzk")
+ .withResourceGroup("ocukoklyax");
model = BinaryData.fromObject(model).toObject(RoutingServiceBusTopicEndpointProperties.class);
- Assertions.assertEquals("kdvjsll", model.id());
- Assertions.assertEquals("vvdfwatkpnpul", model.connectionString());
- Assertions.assertEquals("xbczwtruwiqz", model.endpointUri());
- Assertions.assertEquals("j", model.entityPath());
- Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType());
- Assertions.assertEquals("yokacspkw", model.identity().userAssignedIdentity());
- Assertions.assertEquals("hzdobpxjmflbvvnc", model.name());
- Assertions.assertEquals("kcciwwzjuqkhr", model.subscriptionId());
- Assertions.assertEquals("jiwkuofoskghsau", model.resourceGroup());
+ Assertions.assertEquals("gipwhonowkg", model.id());
+ Assertions.assertEquals("wankixzbi", model.connectionString());
+ Assertions.assertEquals("eputtmrywnuzoqf", model.endpointUri());
+ Assertions.assertEquals("yqzrnkcqvyxlw", model.entityPath());
+ Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
+ Assertions.assertEquals("cohoq", model.identity().userAssignedIdentity());
+ Assertions.assertEquals("nwvlryavwhheunmm", model.name());
+ Assertions.assertEquals("gyxzk", model.subscriptionId());
+ Assertions.assertEquals("ocukoklyax", model.resourceGroup());
}
}
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 683a2d9453862..8003f90b3cab6 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
@@ -17,53 +17,53 @@ public void testDeserialize() throws Exception {
RoutingStorageContainerProperties model =
BinaryData
.fromString(
- "{\"id\":\"yvshxmz\",\"connectionString\":\"bzoggigrx\",\"endpointUri\":\"ur\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"nspydptkoenkoukn\"},\"name\":\"udwtiukbl\",\"subscriptionId\":\"gkpocipazyxoe\",\"resourceGroup\":\"kgjn\",\"containerName\":\"iucgygevqzn\",\"fileNameFormat\":\"pmr\",\"batchFrequencyInSeconds\":129742346,\"maxChunkSizeInBytes\":173387394,\"encoding\":\"Avro\"}")
+ "{\"id\":\"wutttxfvjrbi\",\"connectionString\":\"hxepcyvahfnlj\",\"endpointUri\":\"qxj\",\"authenticationType\":\"keyBased\",\"identity\":{\"userAssignedIdentity\":\"gidokgjljyoxgvcl\"},\"name\":\"bgsncghkjeszzhb\",\"subscriptionId\":\"htxfvgxbfsmxnehm\",\"resourceGroup\":\"ec\",\"containerName\":\"godebfqkkrbmpu\",\"fileNameFormat\":\"riwflzlfb\",\"batchFrequencyInSeconds\":599393599,\"maxChunkSizeInBytes\":1728715445,\"encoding\":\"JSON\"}")
.toObject(RoutingStorageContainerProperties.class);
- Assertions.assertEquals("yvshxmz", model.id());
- Assertions.assertEquals("bzoggigrx", model.connectionString());
- Assertions.assertEquals("ur", model.endpointUri());
- Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
- Assertions.assertEquals("nspydptkoenkoukn", model.identity().userAssignedIdentity());
- Assertions.assertEquals("udwtiukbl", model.name());
- Assertions.assertEquals("gkpocipazyxoe", model.subscriptionId());
- Assertions.assertEquals("kgjn", model.resourceGroup());
- Assertions.assertEquals("iucgygevqzn", model.containerName());
- Assertions.assertEquals("pmr", model.fileNameFormat());
- Assertions.assertEquals(129742346, model.batchFrequencyInSeconds());
- Assertions.assertEquals(173387394, model.maxChunkSizeInBytes());
- Assertions.assertEquals(RoutingStorageContainerPropertiesEncoding.AVRO, model.encoding());
+ Assertions.assertEquals("wutttxfvjrbi", model.id());
+ Assertions.assertEquals("hxepcyvahfnlj", model.connectionString());
+ Assertions.assertEquals("qxj", model.endpointUri());
+ Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType());
+ Assertions.assertEquals("gidokgjljyoxgvcl", model.identity().userAssignedIdentity());
+ Assertions.assertEquals("bgsncghkjeszzhb", model.name());
+ Assertions.assertEquals("htxfvgxbfsmxnehm", model.subscriptionId());
+ Assertions.assertEquals("ec", model.resourceGroup());
+ Assertions.assertEquals("godebfqkkrbmpu", model.containerName());
+ Assertions.assertEquals("riwflzlfb", model.fileNameFormat());
+ Assertions.assertEquals(599393599, model.batchFrequencyInSeconds());
+ Assertions.assertEquals(1728715445, model.maxChunkSizeInBytes());
+ Assertions.assertEquals(RoutingStorageContainerPropertiesEncoding.JSON, model.encoding());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RoutingStorageContainerProperties model =
new RoutingStorageContainerProperties()
- .withId("yvshxmz")
- .withConnectionString("bzoggigrx")
- .withEndpointUri("ur")
- .withAuthenticationType(AuthenticationType.IDENTITY_BASED)
- .withIdentity(new ManagedIdentity().withUserAssignedIdentity("nspydptkoenkoukn"))
- .withName("udwtiukbl")
- .withSubscriptionId("gkpocipazyxoe")
- .withResourceGroup("kgjn")
- .withContainerName("iucgygevqzn")
- .withFileNameFormat("pmr")
- .withBatchFrequencyInSeconds(129742346)
- .withMaxChunkSizeInBytes(173387394)
- .withEncoding(RoutingStorageContainerPropertiesEncoding.AVRO);
+ .withId("wutttxfvjrbi")
+ .withConnectionString("hxepcyvahfnlj")
+ .withEndpointUri("qxj")
+ .withAuthenticationType(AuthenticationType.KEY_BASED)
+ .withIdentity(new ManagedIdentity().withUserAssignedIdentity("gidokgjljyoxgvcl"))
+ .withName("bgsncghkjeszzhb")
+ .withSubscriptionId("htxfvgxbfsmxnehm")
+ .withResourceGroup("ec")
+ .withContainerName("godebfqkkrbmpu")
+ .withFileNameFormat("riwflzlfb")
+ .withBatchFrequencyInSeconds(599393599)
+ .withMaxChunkSizeInBytes(1728715445)
+ .withEncoding(RoutingStorageContainerPropertiesEncoding.JSON);
model = BinaryData.fromObject(model).toObject(RoutingStorageContainerProperties.class);
- Assertions.assertEquals("yvshxmz", model.id());
- Assertions.assertEquals("bzoggigrx", model.connectionString());
- Assertions.assertEquals("ur", model.endpointUri());
- Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
- Assertions.assertEquals("nspydptkoenkoukn", model.identity().userAssignedIdentity());
- Assertions.assertEquals("udwtiukbl", model.name());
- Assertions.assertEquals("gkpocipazyxoe", model.subscriptionId());
- Assertions.assertEquals("kgjn", model.resourceGroup());
- Assertions.assertEquals("iucgygevqzn", model.containerName());
- Assertions.assertEquals("pmr", model.fileNameFormat());
- Assertions.assertEquals(129742346, model.batchFrequencyInSeconds());
- Assertions.assertEquals(173387394, model.maxChunkSizeInBytes());
- Assertions.assertEquals(RoutingStorageContainerPropertiesEncoding.AVRO, model.encoding());
+ Assertions.assertEquals("wutttxfvjrbi", model.id());
+ Assertions.assertEquals("hxepcyvahfnlj", model.connectionString());
+ Assertions.assertEquals("qxj", model.endpointUri());
+ Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType());
+ Assertions.assertEquals("gidokgjljyoxgvcl", model.identity().userAssignedIdentity());
+ Assertions.assertEquals("bgsncghkjeszzhb", model.name());
+ Assertions.assertEquals("htxfvgxbfsmxnehm", model.subscriptionId());
+ Assertions.assertEquals("ec", model.resourceGroup());
+ Assertions.assertEquals("godebfqkkrbmpu", model.containerName());
+ Assertions.assertEquals("riwflzlfb", model.fileNameFormat());
+ Assertions.assertEquals(599393599, model.batchFrequencyInSeconds());
+ Assertions.assertEquals(1728715445, model.maxChunkSizeInBytes());
+ Assertions.assertEquals(RoutingStorageContainerPropertiesEncoding.JSON, model.encoding());
}
}
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 037ecc960f200..99913d1b84761 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
@@ -12,14 +12,14 @@ public final class RoutingTwinPropertiesTests {
public void testDeserialize() throws Exception {
RoutingTwinProperties model =
BinaryData
- .fromString("{\"desired\":\"dataewgdrjervn\",\"reported\":\"datanqpeh\"}")
+ .fromString("{\"desired\":\"dataxunkbebxmubyynt\",\"reported\":\"datarbqtkoie\"}")
.toObject(RoutingTwinProperties.class);
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
RoutingTwinProperties model =
- new RoutingTwinProperties().withDesired("dataewgdrjervn").withReported("datanqpeh");
+ new RoutingTwinProperties().withDesired("dataxunkbebxmubyynt").withReported("datarbqtkoie");
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 2798b1fa76cee..3bfff48a818d9 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
@@ -14,7 +14,7 @@ public void testDeserialize() throws Exception {
RoutingTwin model =
BinaryData
.fromString(
- "{\"tags\":\"dataqtaruoujmkcjhwq\",\"properties\":{\"desired\":\"datar\",\"reported\":\"datan\"}}")
+ "{\"tags\":\"datadagxtibqd\",\"properties\":{\"desired\":\"datawakbogqxndl\",\"reported\":\"datagxhuriplbp\"}}")
.toObject(RoutingTwin.class);
}
@@ -22,8 +22,9 @@ public void testDeserialize() throws Exception {
public void testSerialize() throws Exception {
RoutingTwin model =
new RoutingTwin()
- .withTags("dataqtaruoujmkcjhwq")
- .withProperties(new RoutingTwinProperties().withDesired("datar").withReported("datan"));
+ .withTags("datadagxtibqd")
+ .withProperties(
+ new RoutingTwinProperties().withDesired("datawakbogqxndl").withReported("datagxhuriplbp"));
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 9d9c0339af2f7..7e676309ab98e 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
@@ -17,29 +17,29 @@ public void testDeserialize() throws Exception {
StorageEndpointProperties model =
BinaryData
.fromString(
- "{\"sasTtlAsIso8601\":\"PT227H21M53S\",\"connectionString\":\"hkaetcktvfc\",\"containerName\":\"vf\",\"authenticationType\":\"identityBased\",\"identity\":{\"userAssignedIdentity\":\"uctqhjfbe\"}}")
+ "{\"sasTtlAsIso8601\":\"PT189H2M8S\",\"connectionString\":\"ue\",\"containerName\":\"xibxujwbhqwalm\",\"authenticationType\":\"keyBased\",\"identity\":{\"userAssignedIdentity\":\"aepdkzjanc\"}}")
.toObject(StorageEndpointProperties.class);
- Assertions.assertEquals(Duration.parse("PT227H21M53S"), model.sasTtlAsIso8601());
- Assertions.assertEquals("hkaetcktvfc", model.connectionString());
- Assertions.assertEquals("vf", model.containerName());
- Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
- Assertions.assertEquals("uctqhjfbe", model.identity().userAssignedIdentity());
+ Assertions.assertEquals(Duration.parse("PT189H2M8S"), model.sasTtlAsIso8601());
+ Assertions.assertEquals("ue", model.connectionString());
+ Assertions.assertEquals("xibxujwbhqwalm", model.containerName());
+ Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType());
+ Assertions.assertEquals("aepdkzjanc", model.identity().userAssignedIdentity());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
StorageEndpointProperties model =
new StorageEndpointProperties()
- .withSasTtlAsIso8601(Duration.parse("PT227H21M53S"))
- .withConnectionString("hkaetcktvfc")
- .withContainerName("vf")
- .withAuthenticationType(AuthenticationType.IDENTITY_BASED)
- .withIdentity(new ManagedIdentity().withUserAssignedIdentity("uctqhjfbe"));
+ .withSasTtlAsIso8601(Duration.parse("PT189H2M8S"))
+ .withConnectionString("ue")
+ .withContainerName("xibxujwbhqwalm")
+ .withAuthenticationType(AuthenticationType.KEY_BASED)
+ .withIdentity(new ManagedIdentity().withUserAssignedIdentity("aepdkzjanc"));
model = BinaryData.fromObject(model).toObject(StorageEndpointProperties.class);
- Assertions.assertEquals(Duration.parse("PT227H21M53S"), model.sasTtlAsIso8601());
- Assertions.assertEquals("hkaetcktvfc", model.connectionString());
- Assertions.assertEquals("vf", model.containerName());
- Assertions.assertEquals(AuthenticationType.IDENTITY_BASED, model.authenticationType());
- Assertions.assertEquals("uctqhjfbe", model.identity().userAssignedIdentity());
+ Assertions.assertEquals(Duration.parse("PT189H2M8S"), model.sasTtlAsIso8601());
+ Assertions.assertEquals("ue", model.connectionString());
+ Assertions.assertEquals("xibxujwbhqwalm", model.containerName());
+ Assertions.assertEquals(AuthenticationType.KEY_BASED, model.authenticationType());
+ Assertions.assertEquals("aepdkzjanc", 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 f5b21cb02db78..0f24d9c3617ee 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,31 +14,18 @@ public final class TagsResourceTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
TagsResource model =
- BinaryData
- .fromString(
- "{\"tags\":{\"nyyazttbtwwrqpue\":\"ucoc\",\"xibxujwbhqwalm\":\"ckzywbiexzfeyue\",\"ux\":\"zyoxaepdkzjan\",\"zt\":\"hdwbavxbniwdjs\"}}")
- .toObject(TagsResource.class);
- Assertions.assertEquals("ucoc", model.tags().get("nyyazttbtwwrqpue"));
+ BinaryData.fromString("{\"tags\":{\"hsmtxpsiebtfhvp\":\"eojnabc\"}}").toObject(TagsResource.class);
+ Assertions.assertEquals("eojnabc", model.tags().get("hsmtxpsiebtfhvp"));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- TagsResource model =
- new TagsResource()
- .withTags(
- mapOf(
- "nyyazttbtwwrqpue",
- "ucoc",
- "xibxujwbhqwalm",
- "ckzywbiexzfeyue",
- "ux",
- "zyoxaepdkzjan",
- "zt",
- "hdwbavxbniwdjs"));
+ TagsResource model = new TagsResource().withTags(mapOf("hsmtxpsiebtfhvp", "eojnabc"));
model = BinaryData.fromObject(model).toObject(TagsResource.class);
- Assertions.assertEquals("ucoc", model.tags().get("nyyazttbtwwrqpue"));
+ Assertions.assertEquals("eojnabc", model.tags().get("hsmtxpsiebtfhvp"));
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 ff56c98199e0f..f679216bcfd6a 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
@@ -20,39 +20,38 @@ public void testDeserialize() throws Exception {
TestAllRoutesInput model =
BinaryData
.fromString(
- "{\"routingSource\":\"DigitalTwinChangeEvents\",\"message\":{\"body\":\"uaceopzfqrhhu\",\"appProperties\":{\"ahzxctobgbk\":\"ppcqeqxolz\",\"mgrcfbu\":\"moizpos\",\"mjh\":\"rmfqjhhkxbpvj\"},\"systemProperties\":{\"tswb\":\"yngudivk\"}},\"twin\":{\"tags\":\"datavszjfauvjfdxxi\",\"properties\":{\"desired\":\"datavtcqaqtdo\",\"reported\":\"datacbxvwvxyslqbh\"}}}")
+ "{\"routingSource\":\"TwinChangeEvents\",\"message\":{\"body\":\"psslqlfmm\",\"appProperties\":{\"d\":\"bglzpswi\",\"bzmnvdfznud\":\"cwyhzdxssa\",\"xzb\":\"od\",\"dzu\":\"cblylpstdbhhxsr\"},\"systemProperties\":{\"wjmy\":\"scdntnevf\"}},\"twin\":{\"tags\":\"datasslswtmweriof\",\"properties\":{\"desired\":\"dataqsemwabne\",\"reported\":\"datahhszh\"}}}")
.toObject(TestAllRoutesInput.class);
- Assertions.assertEquals(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS, model.routingSource());
- Assertions.assertEquals("uaceopzfqrhhu", model.message().body());
- Assertions.assertEquals("ppcqeqxolz", model.message().appProperties().get("ahzxctobgbk"));
- Assertions.assertEquals("yngudivk", model.message().systemProperties().get("tswb"));
+ Assertions.assertEquals(RoutingSource.TWIN_CHANGE_EVENTS, model.routingSource());
+ Assertions.assertEquals("psslqlfmm", model.message().body());
+ Assertions.assertEquals("bglzpswi", model.message().appProperties().get("d"));
+ Assertions.assertEquals("scdntnevf", model.message().systemProperties().get("wjmy"));
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
TestAllRoutesInput model =
new TestAllRoutesInput()
- .withRoutingSource(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS)
+ .withRoutingSource(RoutingSource.TWIN_CHANGE_EVENTS)
.withMessage(
new RoutingMessage()
- .withBody("uaceopzfqrhhu")
+ .withBody("psslqlfmm")
.withAppProperties(
- mapOf("ahzxctobgbk", "ppcqeqxolz", "mgrcfbu", "moizpos", "mjh", "rmfqjhhkxbpvj"))
- .withSystemProperties(mapOf("tswb", "yngudivk")))
+ mapOf("d", "bglzpswi", "bzmnvdfznud", "cwyhzdxssa", "xzb", "od", "dzu", "cblylpstdbhhxsr"))
+ .withSystemProperties(mapOf("wjmy", "scdntnevf")))
.withTwin(
new RoutingTwin()
- .withTags("datavszjfauvjfdxxi")
+ .withTags("datasslswtmweriof")
.withProperties(
- new RoutingTwinProperties()
- .withDesired("datavtcqaqtdo")
- .withReported("datacbxvwvxyslqbh")));
+ new RoutingTwinProperties().withDesired("dataqsemwabne").withReported("datahhszh")));
model = BinaryData.fromObject(model).toObject(TestAllRoutesInput.class);
- Assertions.assertEquals(RoutingSource.DIGITAL_TWIN_CHANGE_EVENTS, model.routingSource());
- Assertions.assertEquals("uaceopzfqrhhu", model.message().body());
- Assertions.assertEquals("ppcqeqxolz", model.message().appProperties().get("ahzxctobgbk"));
- Assertions.assertEquals("yngudivk", model.message().systemProperties().get("tswb"));
+ Assertions.assertEquals(RoutingSource.TWIN_CHANGE_EVENTS, model.routingSource());
+ Assertions.assertEquals("psslqlfmm", model.message().body());
+ Assertions.assertEquals("bglzpswi", model.message().appProperties().get("d"));
+ Assertions.assertEquals("scdntnevf", model.message().systemProperties().get("wjmy"));
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 c29252e0b7d80..b5377831c23e5 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
@@ -18,11 +18,13 @@ public void testDeserialize() throws Exception {
TestAllRoutesResultInner model =
BinaryData
.fromString(
- "{\"routes\":[{\"properties\":{\"name\":\"ygmi\",\"source\":\"TwinChangeEvents\",\"condition\":\"nzdndslgna\",\"endpointNames\":[],\"isEnabled\":false}}]}")
+ "{\"routes\":[{\"properties\":{\"name\":\"tgqr\",\"source\":\"DeviceConnectionStateEvents\",\"condition\":\"muwlauwzizxbm\",\"endpointNames\":[\"cjefuzmu\"],\"isEnabled\":false}}]}")
.toObject(TestAllRoutesResultInner.class);
- Assertions.assertEquals("ygmi", model.routes().get(0).properties().name());
- Assertions.assertEquals(RoutingSource.TWIN_CHANGE_EVENTS, model.routes().get(0).properties().source());
- Assertions.assertEquals("nzdndslgna", model.routes().get(0).properties().condition());
+ Assertions.assertEquals("tgqr", model.routes().get(0).properties().name());
+ Assertions
+ .assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.routes().get(0).properties().source());
+ Assertions.assertEquals("muwlauwzizxbm", model.routes().get(0).properties().condition());
+ Assertions.assertEquals("cjefuzmu", model.routes().get(0).properties().endpointNames().get(0));
Assertions.assertEquals(false, model.routes().get(0).properties().isEnabled());
}
@@ -36,15 +38,17 @@ public void testSerialize() throws Exception {
new MatchedRoute()
.withProperties(
new RouteProperties()
- .withName("ygmi")
- .withSource(RoutingSource.TWIN_CHANGE_EVENTS)
- .withCondition("nzdndslgna")
- .withEndpointNames(Arrays.asList())
+ .withName("tgqr")
+ .withSource(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS)
+ .withCondition("muwlauwzizxbm")
+ .withEndpointNames(Arrays.asList("cjefuzmu"))
.withIsEnabled(false))));
model = BinaryData.fromObject(model).toObject(TestAllRoutesResultInner.class);
- Assertions.assertEquals("ygmi", model.routes().get(0).properties().name());
- Assertions.assertEquals(RoutingSource.TWIN_CHANGE_EVENTS, model.routes().get(0).properties().source());
- Assertions.assertEquals("nzdndslgna", model.routes().get(0).properties().condition());
+ Assertions.assertEquals("tgqr", model.routes().get(0).properties().name());
+ Assertions
+ .assertEquals(RoutingSource.DEVICE_CONNECTION_STATE_EVENTS, model.routes().get(0).properties().source());
+ Assertions.assertEquals("muwlauwzizxbm", model.routes().get(0).properties().condition());
+ Assertions.assertEquals("cjefuzmu", model.routes().get(0).properties().endpointNames().get(0));
Assertions.assertEquals(false, 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 5703ac8c25dd4..f95f25fa15961 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
@@ -22,16 +22,16 @@ public void testDeserialize() throws Exception {
TestRouteInput model =
BinaryData
.fromString(
- "{\"message\":{\"body\":\"swiydmcwyhzdx\",\"appProperties\":{\"vdfznudaodvxzb\":\"dbzm\",\"dzu\":\"cblylpstdbhhxsr\",\"fiwjmygtdssls\":\"erscdntne\",\"emwabnet\":\"tmweriofzpyq\"},\"systemProperties\":{\"wubmwmbesldn\":\"szhedplvw\",\"lcxog\":\"wwtppj\",\"qqkdltfzxmhhvhgu\":\"okonzmnsikvmkqz\",\"xtibqdxbxwakbog\":\"eodkwobda\"}},\"route\":{\"name\":\"xndlkzgxhu\",\"source\":\"MqttBrokerMessages\",\"condition\":\"lbpodxunk\",\"endpointNames\":[\"bxmubyynt\",\"lrb\",\"tkoievseotgq\"],\"isEnabled\":false},\"twin\":{\"tags\":\"datamuwlauwzizxbm\",\"properties\":{\"desired\":\"datajefuzmuvpbttdumo\",\"reported\":\"datapxebmnzbt\"}}}")
+ "{\"message\":{\"body\":\"uuvxz\",\"appProperties\":{\"zonosgg\":\"vithh\",\"ljuti\":\"hcohfwdsjnk\",\"wkfvhqcrailvp\":\"swacffgdkzz\",\"wdmhdlxyjrxs\":\"ppfufl\"},\"systemProperties\":{\"pnedgf\":\"fcnihgwq\",\"rhvoods\":\"cvkcvqvpkeqdcv\"}},\"route\":{\"name\":\"tbobz\",\"source\":\"DeviceJobLifecycleEvents\",\"condition\":\"cjwvn\",\"endpointNames\":[\"ld\",\"mgxcxrslpm\"],\"isEnabled\":true},\"twin\":{\"tags\":\"dataoegrpkhjwn\",\"properties\":{\"desired\":\"datasluicpdggkzz\",\"reported\":\"datambmpaxmodfvuefy\"}}}")
.toObject(TestRouteInput.class);
- Assertions.assertEquals("swiydmcwyhzdx", model.message().body());
- Assertions.assertEquals("dbzm", model.message().appProperties().get("vdfznudaodvxzb"));
- Assertions.assertEquals("szhedplvw", model.message().systemProperties().get("wubmwmbesldn"));
- Assertions.assertEquals("xndlkzgxhu", model.route().name());
- Assertions.assertEquals(RoutingSource.MQTT_BROKER_MESSAGES, model.route().source());
- Assertions.assertEquals("lbpodxunk", model.route().condition());
- Assertions.assertEquals("bxmubyynt", model.route().endpointNames().get(0));
- Assertions.assertEquals(false, model.route().isEnabled());
+ Assertions.assertEquals("uuvxz", model.message().body());
+ Assertions.assertEquals("vithh", model.message().appProperties().get("zonosgg"));
+ Assertions.assertEquals("fcnihgwq", model.message().systemProperties().get("pnedgf"));
+ Assertions.assertEquals("tbobz", model.route().name());
+ Assertions.assertEquals(RoutingSource.DEVICE_JOB_LIFECYCLE_EVENTS, model.route().source());
+ Assertions.assertEquals("cjwvn", model.route().condition());
+ Assertions.assertEquals("ld", model.route().endpointNames().get(0));
+ Assertions.assertEquals(true, model.route().isEnabled());
}
@org.junit.jupiter.api.Test
@@ -40,52 +40,44 @@ public void testSerialize() throws Exception {
new TestRouteInput()
.withMessage(
new RoutingMessage()
- .withBody("swiydmcwyhzdx")
+ .withBody("uuvxz")
.withAppProperties(
mapOf(
- "vdfznudaodvxzb",
- "dbzm",
- "dzu",
- "cblylpstdbhhxsr",
- "fiwjmygtdssls",
- "erscdntne",
- "emwabnet",
- "tmweriofzpyq"))
- .withSystemProperties(
- mapOf(
- "wubmwmbesldn",
- "szhedplvw",
- "lcxog",
- "wwtppj",
- "qqkdltfzxmhhvhgu",
- "okonzmnsikvmkqz",
- "xtibqdxbxwakbog",
- "eodkwobda")))
+ "zonosgg",
+ "vithh",
+ "ljuti",
+ "hcohfwdsjnk",
+ "wkfvhqcrailvp",
+ "swacffgdkzz",
+ "wdmhdlxyjrxs",
+ "ppfufl"))
+ .withSystemProperties(mapOf("pnedgf", "fcnihgwq", "rhvoods", "cvkcvqvpkeqdcv")))
.withRoute(
new RouteProperties()
- .withName("xndlkzgxhu")
- .withSource(RoutingSource.MQTT_BROKER_MESSAGES)
- .withCondition("lbpodxunk")
- .withEndpointNames(Arrays.asList("bxmubyynt", "lrb", "tkoievseotgq"))
- .withIsEnabled(false))
+ .withName("tbobz")
+ .withSource(RoutingSource.DEVICE_JOB_LIFECYCLE_EVENTS)
+ .withCondition("cjwvn")
+ .withEndpointNames(Arrays.asList("ld", "mgxcxrslpm"))
+ .withIsEnabled(true))
.withTwin(
new RoutingTwin()
- .withTags("datamuwlauwzizxbm")
+ .withTags("dataoegrpkhjwn")
.withProperties(
new RoutingTwinProperties()
- .withDesired("datajefuzmuvpbttdumo")
- .withReported("datapxebmnzbt")));
+ .withDesired("datasluicpdggkzz")
+ .withReported("datambmpaxmodfvuefy")));
model = BinaryData.fromObject(model).toObject(TestRouteInput.class);
- Assertions.assertEquals("swiydmcwyhzdx", model.message().body());
- Assertions.assertEquals("dbzm", model.message().appProperties().get("vdfznudaodvxzb"));
- Assertions.assertEquals("szhedplvw", model.message().systemProperties().get("wubmwmbesldn"));
- Assertions.assertEquals("xndlkzgxhu", model.route().name());
- Assertions.assertEquals(RoutingSource.MQTT_BROKER_MESSAGES, model.route().source());
- Assertions.assertEquals("lbpodxunk", model.route().condition());
- Assertions.assertEquals("bxmubyynt", model.route().endpointNames().get(0));
- Assertions.assertEquals(false, model.route().isEnabled());
+ Assertions.assertEquals("uuvxz", model.message().body());
+ Assertions.assertEquals("vithh", model.message().appProperties().get("zonosgg"));
+ Assertions.assertEquals("fcnihgwq", model.message().systemProperties().get("pnedgf"));
+ Assertions.assertEquals("tbobz", model.route().name());
+ Assertions.assertEquals(RoutingSource.DEVICE_JOB_LIFECYCLE_EVENTS, model.route().source());
+ Assertions.assertEquals("cjwvn", model.route().condition());
+ Assertions.assertEquals("ld", model.route().endpointNames().get(0));
+ Assertions.assertEquals(true, model.route().isEnabled());
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
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 5998c1664a5d2..6cdc82a0374e9 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
@@ -6,6 +6,7 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.iothub.models.RouteCompilationError;
+import com.azure.resourcemanager.iothub.models.RouteErrorPosition;
import com.azure.resourcemanager.iothub.models.RouteErrorRange;
import com.azure.resourcemanager.iothub.models.RouteErrorSeverity;
import com.azure.resourcemanager.iothub.models.TestRouteResultDetails;
@@ -18,10 +19,14 @@ public void testDeserialize() throws Exception {
TestRouteResultDetails model =
BinaryData
.fromString(
- "{\"compilationErrors\":[{\"message\":\"ikdowwquuvx\",\"severity\":\"error\",\"location\":{}},{\"message\":\"hhqzonosgg\",\"severity\":\"error\",\"location\":{}}]}")
+ "{\"compilationErrors\":[{\"message\":\"ksmond\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":882489574,\"column\":336917419},\"end\":{\"line\":1838860649,\"column\":11863753}}}]}")
.toObject(TestRouteResultDetails.class);
- Assertions.assertEquals("ikdowwquuvx", model.compilationErrors().get(0).message());
- Assertions.assertEquals(RouteErrorSeverity.ERROR, model.compilationErrors().get(0).severity());
+ Assertions.assertEquals("ksmond", model.compilationErrors().get(0).message());
+ Assertions.assertEquals(RouteErrorSeverity.WARNING, model.compilationErrors().get(0).severity());
+ Assertions.assertEquals(882489574, model.compilationErrors().get(0).location().start().line());
+ Assertions.assertEquals(336917419, model.compilationErrors().get(0).location().start().column());
+ Assertions.assertEquals(1838860649, model.compilationErrors().get(0).location().end().line());
+ Assertions.assertEquals(11863753, model.compilationErrors().get(0).location().end().column());
}
@org.junit.jupiter.api.Test
@@ -32,15 +37,18 @@ public void testSerialize() throws Exception {
Arrays
.asList(
new RouteCompilationError()
- .withMessage("ikdowwquuvx")
- .withSeverity(RouteErrorSeverity.ERROR)
- .withLocation(new RouteErrorRange()),
- new RouteCompilationError()
- .withMessage("hhqzonosgg")
- .withSeverity(RouteErrorSeverity.ERROR)
- .withLocation(new RouteErrorRange())));
+ .withMessage("ksmond")
+ .withSeverity(RouteErrorSeverity.WARNING)
+ .withLocation(
+ new RouteErrorRange()
+ .withStart(new RouteErrorPosition().withLine(882489574).withColumn(336917419))
+ .withEnd(new RouteErrorPosition().withLine(1838860649).withColumn(11863753)))));
model = BinaryData.fromObject(model).toObject(TestRouteResultDetails.class);
- Assertions.assertEquals("ikdowwquuvx", model.compilationErrors().get(0).message());
- Assertions.assertEquals(RouteErrorSeverity.ERROR, model.compilationErrors().get(0).severity());
+ Assertions.assertEquals("ksmond", model.compilationErrors().get(0).message());
+ Assertions.assertEquals(RouteErrorSeverity.WARNING, model.compilationErrors().get(0).severity());
+ Assertions.assertEquals(882489574, model.compilationErrors().get(0).location().start().line());
+ Assertions.assertEquals(336917419, model.compilationErrors().get(0).location().start().column());
+ Assertions.assertEquals(1838860649, model.compilationErrors().get(0).location().end().line());
+ Assertions.assertEquals(11863753, 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 cadef67fcf41c..ae25d694bb490 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
@@ -7,6 +7,8 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.iothub.fluent.models.TestRouteResultInner;
import com.azure.resourcemanager.iothub.models.RouteCompilationError;
+import com.azure.resourcemanager.iothub.models.RouteErrorPosition;
+import com.azure.resourcemanager.iothub.models.RouteErrorRange;
import com.azure.resourcemanager.iothub.models.RouteErrorSeverity;
import com.azure.resourcemanager.iothub.models.TestResultStatus;
import com.azure.resourcemanager.iothub.models.TestRouteResultDetails;
@@ -19,11 +21,15 @@ public void testDeserialize() throws Exception {
TestRouteResultInner model =
BinaryData
.fromString(
- "{\"result\":\"true\",\"details\":{\"compilationErrors\":[{\"message\":\"fgohdneuelfphs\",\"severity\":\"warning\"}]}}")
+ "{\"result\":\"true\",\"details\":{\"compilationErrors\":[{\"message\":\"wyhrfouyftaakc\",\"severity\":\"warning\",\"location\":{\"start\":{\"line\":842537299,\"column\":1679264198},\"end\":{\"line\":1283701188,\"column\":661760953}}}]}}")
.toObject(TestRouteResultInner.class);
Assertions.assertEquals(TestResultStatus.TRUE, model.result());
- Assertions.assertEquals("fgohdneuelfphs", model.details().compilationErrors().get(0).message());
+ Assertions.assertEquals("wyhrfouyftaakc", model.details().compilationErrors().get(0).message());
Assertions.assertEquals(RouteErrorSeverity.WARNING, model.details().compilationErrors().get(0).severity());
+ Assertions.assertEquals(842537299, model.details().compilationErrors().get(0).location().start().line());
+ Assertions.assertEquals(1679264198, model.details().compilationErrors().get(0).location().start().column());
+ Assertions.assertEquals(1283701188, model.details().compilationErrors().get(0).location().end().line());
+ Assertions.assertEquals(661760953, model.details().compilationErrors().get(0).location().end().column());
}
@org.junit.jupiter.api.Test
@@ -37,11 +43,23 @@ public void testSerialize() throws Exception {
Arrays
.asList(
new RouteCompilationError()
- .withMessage("fgohdneuelfphs")
- .withSeverity(RouteErrorSeverity.WARNING))));
+ .withMessage("wyhrfouyftaakc")
+ .withSeverity(RouteErrorSeverity.WARNING)
+ .withLocation(
+ new RouteErrorRange()
+ .withStart(
+ new RouteErrorPosition().withLine(842537299).withColumn(1679264198))
+ .withEnd(
+ new RouteErrorPosition()
+ .withLine(1283701188)
+ .withColumn(661760953))))));
model = BinaryData.fromObject(model).toObject(TestRouteResultInner.class);
Assertions.assertEquals(TestResultStatus.TRUE, model.result());
- Assertions.assertEquals("fgohdneuelfphs", model.details().compilationErrors().get(0).message());
+ Assertions.assertEquals("wyhrfouyftaakc", model.details().compilationErrors().get(0).message());
Assertions.assertEquals(RouteErrorSeverity.WARNING, model.details().compilationErrors().get(0).severity());
+ Assertions.assertEquals(842537299, model.details().compilationErrors().get(0).location().start().line());
+ Assertions.assertEquals(1679264198, model.details().compilationErrors().get(0).location().start().column());
+ Assertions.assertEquals(1283701188, model.details().compilationErrors().get(0).location().end().line());
+ Assertions.assertEquals(661760953, model.details().compilationErrors().get(0).location().end().column());
}
}
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 20e6950355874..7df3a1e5ded6f 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
@@ -17,15 +17,15 @@ public void testDeserialize() throws Exception {
UserSubscriptionQuotaListResultInner model =
BinaryData
.fromString(
- "{\"value\":[{\"id\":\"n\",\"type\":\"xisxyawjoyaqcsl\",\"unit\":\"pkii\",\"currentValue\":983085062,\"limit\":1211885049,\"name\":{\"value\":\"eli\",\"localizedValue\":\"nr\"}}],\"nextLink\":\"folhbnxknal\"}")
+ "{\"value\":[{\"id\":\"xqzvszjfa\",\"type\":\"j\",\"unit\":\"xxivetv\",\"currentValue\":1920566576,\"limit\":928990245,\"name\":{\"value\":\"oqmcbxvwvxyslq\",\"localizedValue\":\"sfxobl\"}},{\"id\":\"k\",\"type\":\"mpew\",\"unit\":\"fbkrvrnsvs\",\"currentValue\":2131802432,\"limit\":925506689,\"name\":{\"value\":\"rsbfovasrruvw\",\"localizedValue\":\"sqfsubcgjbirxb\"}},{\"id\":\"bsrfbj\",\"type\":\"twss\",\"unit\":\"ftpvjzbexil\",\"currentValue\":1948356330,\"limit\":2126872967,\"name\":{\"value\":\"vwpm\",\"localizedValue\":\"aruoujmkcjhwqyt\"}}],\"nextLink\":\"ybn\"}")
.toObject(UserSubscriptionQuotaListResultInner.class);
- Assertions.assertEquals("n", model.value().get(0).id());
- Assertions.assertEquals("xisxyawjoyaqcsl", model.value().get(0).type());
- Assertions.assertEquals("pkii", model.value().get(0).unit());
- Assertions.assertEquals(983085062, model.value().get(0).currentValue());
- Assertions.assertEquals(1211885049, model.value().get(0).limit());
- Assertions.assertEquals("eli", model.value().get(0).name().value());
- Assertions.assertEquals("nr", model.value().get(0).name().localizedValue());
+ Assertions.assertEquals("xqzvszjfa", model.value().get(0).id());
+ Assertions.assertEquals("j", model.value().get(0).type());
+ Assertions.assertEquals("xxivetv", model.value().get(0).unit());
+ Assertions.assertEquals(1920566576, model.value().get(0).currentValue());
+ Assertions.assertEquals(928990245, model.value().get(0).limit());
+ Assertions.assertEquals("oqmcbxvwvxyslq", model.value().get(0).name().value());
+ Assertions.assertEquals("sfxobl", model.value().get(0).name().localizedValue());
}
@org.junit.jupiter.api.Test
@@ -36,19 +36,33 @@ public void testSerialize() throws Exception {
Arrays
.asList(
new UserSubscriptionQuota()
- .withId("n")
- .withType("xisxyawjoyaqcsl")
- .withUnit("pkii")
- .withCurrentValue(983085062)
- .withLimit(1211885049)
- .withName(new Name().withValue("eli").withLocalizedValue("nr"))));
+ .withId("xqzvszjfa")
+ .withType("j")
+ .withUnit("xxivetv")
+ .withCurrentValue(1920566576)
+ .withLimit(928990245)
+ .withName(new Name().withValue("oqmcbxvwvxyslq").withLocalizedValue("sfxobl")),
+ new UserSubscriptionQuota()
+ .withId("k")
+ .withType("mpew")
+ .withUnit("fbkrvrnsvs")
+ .withCurrentValue(2131802432)
+ .withLimit(925506689)
+ .withName(new Name().withValue("rsbfovasrruvw").withLocalizedValue("sqfsubcgjbirxb")),
+ new UserSubscriptionQuota()
+ .withId("bsrfbj")
+ .withType("twss")
+ .withUnit("ftpvjzbexil")
+ .withCurrentValue(1948356330)
+ .withLimit(2126872967)
+ .withName(new Name().withValue("vwpm").withLocalizedValue("aruoujmkcjhwqyt"))));
model = BinaryData.fromObject(model).toObject(UserSubscriptionQuotaListResultInner.class);
- Assertions.assertEquals("n", model.value().get(0).id());
- Assertions.assertEquals("xisxyawjoyaqcsl", model.value().get(0).type());
- Assertions.assertEquals("pkii", model.value().get(0).unit());
- Assertions.assertEquals(983085062, model.value().get(0).currentValue());
- Assertions.assertEquals(1211885049, model.value().get(0).limit());
- Assertions.assertEquals("eli", model.value().get(0).name().value());
- Assertions.assertEquals("nr", model.value().get(0).name().localizedValue());
+ Assertions.assertEquals("xqzvszjfa", model.value().get(0).id());
+ Assertions.assertEquals("j", model.value().get(0).type());
+ Assertions.assertEquals("xxivetv", model.value().get(0).unit());
+ Assertions.assertEquals(1920566576, model.value().get(0).currentValue());
+ Assertions.assertEquals(928990245, model.value().get(0).limit());
+ Assertions.assertEquals("oqmcbxvwvxyslq", model.value().get(0).name().value());
+ Assertions.assertEquals("sfxobl", 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 3cdb18b126796..3c138e04b7dab 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
@@ -15,34 +15,34 @@ public void testDeserialize() throws Exception {
UserSubscriptionQuota model =
BinaryData
.fromString(
- "{\"id\":\"lp\",\"type\":\"gdtpnapnyiro\",\"unit\":\"hpigv\",\"currentValue\":2000011197,\"limit\":1573909011,\"name\":{\"value\":\"itxmedjvcslynqww\",\"localizedValue\":\"wzz\"}}")
+ "{\"id\":\"ewgdrjervn\",\"type\":\"nqpeh\",\"unit\":\"doy\",\"currentValue\":1553722584,\"limit\":1126761283,\"name\":{\"value\":\"zdnds\",\"localizedValue\":\"nayqi\"}}")
.toObject(UserSubscriptionQuota.class);
- Assertions.assertEquals("lp", model.id());
- Assertions.assertEquals("gdtpnapnyiro", model.type());
- Assertions.assertEquals("hpigv", model.unit());
- Assertions.assertEquals(2000011197, model.currentValue());
- Assertions.assertEquals(1573909011, model.limit());
- Assertions.assertEquals("itxmedjvcslynqww", model.name().value());
- Assertions.assertEquals("wzz", model.name().localizedValue());
+ Assertions.assertEquals("ewgdrjervn", model.id());
+ Assertions.assertEquals("nqpeh", model.type());
+ Assertions.assertEquals("doy", model.unit());
+ Assertions.assertEquals(1553722584, model.currentValue());
+ Assertions.assertEquals(1126761283, model.limit());
+ Assertions.assertEquals("zdnds", model.name().value());
+ Assertions.assertEquals("nayqi", model.name().localizedValue());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
UserSubscriptionQuota model =
new UserSubscriptionQuota()
- .withId("lp")
- .withType("gdtpnapnyiro")
- .withUnit("hpigv")
- .withCurrentValue(2000011197)
- .withLimit(1573909011)
- .withName(new Name().withValue("itxmedjvcslynqww").withLocalizedValue("wzz"));
+ .withId("ewgdrjervn")
+ .withType("nqpeh")
+ .withUnit("doy")
+ .withCurrentValue(1553722584)
+ .withLimit(1126761283)
+ .withName(new Name().withValue("zdnds").withLocalizedValue("nayqi"));
model = BinaryData.fromObject(model).toObject(UserSubscriptionQuota.class);
- Assertions.assertEquals("lp", model.id());
- Assertions.assertEquals("gdtpnapnyiro", model.type());
- Assertions.assertEquals("hpigv", model.unit());
- Assertions.assertEquals(2000011197, model.currentValue());
- Assertions.assertEquals(1573909011, model.limit());
- Assertions.assertEquals("itxmedjvcslynqww", model.name().value());
- Assertions.assertEquals("wzz", model.name().localizedValue());
+ Assertions.assertEquals("ewgdrjervn", model.id());
+ Assertions.assertEquals("nqpeh", model.type());
+ Assertions.assertEquals("doy", model.unit());
+ Assertions.assertEquals(1553722584, model.currentValue());
+ Assertions.assertEquals(1126761283, model.limit());
+ Assertions.assertEquals("zdnds", model.name().value());
+ Assertions.assertEquals("nayqi", model.name().localizedValue());
}
}