diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md b/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md
index ffd51bebf11e4..50d7a9989e184 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.10 (Unreleased)
+## 1.0.0-beta.1 (2023-06-26)
+
+- Azure Resource Manager StorageCache client library for Java. This package contains Microsoft Azure SDK for StorageCache Management SDK. Azure Managed Lustre provides a fully managed LustreĀ® file system, integrated with Blob storage, for use on demand. These operations create and manage Azure Managed Lustre file systems. Package tag package-2023-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/README.md b/sdk/storagecache/azure-resourcemanager-storagecache/README.md
index be3e5b2adbf80..0e983ea4fc032 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/README.md
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-storagecache
- 1.0.0-beta.9
+ 1.0.0-beta.10
```
[//]: # ({x-version-update-end})
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/StorageCacheManager.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/StorageCacheManager.java
index a723e541848a6..6e91eb859dfea 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/StorageCacheManager.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/StorageCacheManager.java
@@ -242,7 +242,7 @@ public StorageCacheManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.storagecache")
.append("/")
- .append("1.0.0-beta.9");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemArchiveInfoTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemArchiveInfoTests.java
deleted file mode 100644
index 3d05ab870efd2..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemArchiveInfoTests.java
+++ /dev/null
@@ -1,25 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemArchiveInfoTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemArchiveInfo model =
- BinaryData.fromString("{\"filesystemPath\":\"fsrpymzidnse\"}").toObject(AmlFilesystemArchiveInfo.class);
- Assertions.assertEquals("fsrpymzidnse", model.filesystemPath());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemArchiveInfo model = new AmlFilesystemArchiveInfo().withFilesystemPath("fsrpymzidnse");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemArchiveInfo.class);
- Assertions.assertEquals("fsrpymzidnse", model.filesystemPath());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorFilesystemSubnetTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorFilesystemSubnetTests.java
deleted file mode 100644
index 09393a6640ef8..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorFilesystemSubnetTests.java
+++ /dev/null
@@ -1,33 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetErrorFilesystemSubnet;
-import com.azure.resourcemanager.storagecache.models.FilesystemSubnetStatusType;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemCheckSubnetErrorFilesystemSubnetTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemCheckSubnetErrorFilesystemSubnet model =
- BinaryData
- .fromString("{\"status\":\"Invalid\",\"message\":\"pvswjdkirso\"}")
- .toObject(AmlFilesystemCheckSubnetErrorFilesystemSubnet.class);
- Assertions.assertEquals(FilesystemSubnetStatusType.INVALID, model.status());
- Assertions.assertEquals("pvswjdkirso", model.message());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemCheckSubnetErrorFilesystemSubnet model =
- new AmlFilesystemCheckSubnetErrorFilesystemSubnet()
- .withStatus(FilesystemSubnetStatusType.INVALID)
- .withMessage("pvswjdkirso");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemCheckSubnetErrorFilesystemSubnet.class);
- Assertions.assertEquals(FilesystemSubnetStatusType.INVALID, model.status());
- Assertions.assertEquals("pvswjdkirso", model.message());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorTests.java
deleted file mode 100644
index 353dcdbffb7a7..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorTests.java
+++ /dev/null
@@ -1,36 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetError;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetErrorFilesystemSubnet;
-import com.azure.resourcemanager.storagecache.models.FilesystemSubnetStatusType;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemCheckSubnetErrorTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemCheckSubnetError model =
- BinaryData
- .fromString("{\"filesystemSubnet\":{\"status\":\"Invalid\",\"message\":\"i\"}}")
- .toObject(AmlFilesystemCheckSubnetError.class);
- Assertions.assertEquals(FilesystemSubnetStatusType.INVALID, model.filesystemSubnet().status());
- Assertions.assertEquals("i", model.filesystemSubnet().message());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemCheckSubnetError model =
- new AmlFilesystemCheckSubnetError()
- .withFilesystemSubnet(
- new AmlFilesystemCheckSubnetErrorFilesystemSubnet()
- .withStatus(FilesystemSubnetStatusType.INVALID)
- .withMessage("i"));
- model = BinaryData.fromObject(model).toObject(AmlFilesystemCheckSubnetError.class);
- Assertions.assertEquals(FilesystemSubnetStatusType.INVALID, model.filesystemSubnet().status());
- Assertions.assertEquals("i", model.filesystemSubnet().message());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemClientInfoTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemClientInfoTests.java
deleted file mode 100644
index 775f1dacb9f3a..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemClientInfoTests.java
+++ /dev/null
@@ -1,25 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemClientInfo;
-
-public final class AmlFilesystemClientInfoTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemClientInfo model =
- BinaryData
- .fromString(
- "{\"mgsAddress\":\"giawx\",\"mountCommand\":\"ryplwckbasyypn\",\"lustreVersion\":\"hsgcbacphejkot\",\"containerStorageInterface\":{\"persistentVolumeClaim\":\"gou\",\"persistentVolume\":\"ndlik\",\"storageClass\":\"qkgfgibma\"}}")
- .toObject(AmlFilesystemClientInfo.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemClientInfo model = new AmlFilesystemClientInfo();
- model = BinaryData.fromObject(model).toObject(AmlFilesystemClientInfo.class);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemContainerStorageInterfaceTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemContainerStorageInterfaceTests.java
deleted file mode 100644
index 9f5292caeacca..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemContainerStorageInterfaceTests.java
+++ /dev/null
@@ -1,25 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemContainerStorageInterface;
-
-public final class AmlFilesystemContainerStorageInterfaceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemContainerStorageInterface model =
- BinaryData
- .fromString(
- "{\"persistentVolumeClaim\":\"akeqs\",\"persistentVolume\":\"yb\",\"storageClass\":\"qedqytbciqfoufl\"}")
- .toObject(AmlFilesystemContainerStorageInterface.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemContainerStorageInterface model = new AmlFilesystemContainerStorageInterface();
- model = BinaryData.fromObject(model).toObject(AmlFilesystemContainerStorageInterface.class);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemHsmSettingsTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemHsmSettingsTests.java
deleted file mode 100644
index 89c20a1f72cc6..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemHsmSettingsTests.java
+++ /dev/null
@@ -1,36 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemHsmSettings;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemHsmSettingsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemHsmSettings model =
- BinaryData
- .fromString(
- "{\"container\":\"jgzjaoyfhrtx\",\"loggingContainer\":\"lnerkujysvleju\",\"importPrefix\":\"qawrlyxwj\"}")
- .toObject(AmlFilesystemHsmSettings.class);
- Assertions.assertEquals("jgzjaoyfhrtx", model.container());
- Assertions.assertEquals("lnerkujysvleju", model.loggingContainer());
- Assertions.assertEquals("qawrlyxwj", model.importPrefix());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemHsmSettings model =
- new AmlFilesystemHsmSettings()
- .withContainer("jgzjaoyfhrtx")
- .withLoggingContainer("lnerkujysvleju")
- .withImportPrefix("qawrlyxwj");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemHsmSettings.class);
- Assertions.assertEquals("jgzjaoyfhrtx", model.container());
- Assertions.assertEquals("lnerkujysvleju", model.loggingContainer());
- Assertions.assertEquals("qawrlyxwj", model.importPrefix());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemIdentityTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemIdentityTests.java
deleted file mode 100644
index e22b3dca2deeb..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemIdentityTests.java
+++ /dev/null
@@ -1,46 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentity;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentityType;
-import com.azure.resourcemanager.storagecache.models.UserAssignedIdentitiesValue;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemIdentity model =
- BinaryData
- .fromString(
- "{\"principalId\":\"bvmgxsabkyqduuji\",\"tenantId\":\"jczdzevndh\",\"type\":\"None\",\"userAssignedIdentities\":{\"tmrldhugjzzdatq\":{\"principalId\":\"ppdsbdkvwrwj\",\"clientId\":\"usnhutje\"}}}")
- .toObject(AmlFilesystemIdentity.class);
- Assertions.assertEquals(AmlFilesystemIdentityType.NONE, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemIdentity model =
- new AmlFilesystemIdentity()
- .withType(AmlFilesystemIdentityType.NONE)
- .withUserAssignedIdentities(mapOf("tmrldhugjzzdatq", new UserAssignedIdentitiesValue()));
- model = BinaryData.fromObject(model).toObject(AmlFilesystemIdentity.class);
- Assertions.assertEquals(AmlFilesystemIdentityType.NONE, model.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/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemPropertiesMaintenanceWindowTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemPropertiesMaintenanceWindowTests.java
deleted file mode 100644
index 080e5c4a6d38e..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemPropertiesMaintenanceWindowTests.java
+++ /dev/null
@@ -1,33 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesMaintenanceWindow;
-import com.azure.resourcemanager.storagecache.models.MaintenanceDayOfWeekType;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemPropertiesMaintenanceWindowTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemPropertiesMaintenanceWindow model =
- BinaryData
- .fromString("{\"dayOfWeek\":\"Thursday\",\"timeOfDayUTC\":\"cuertu\"}")
- .toObject(AmlFilesystemPropertiesMaintenanceWindow.class);
- Assertions.assertEquals(MaintenanceDayOfWeekType.THURSDAY, model.dayOfWeek());
- Assertions.assertEquals("cuertu", model.timeOfDayUtc());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemPropertiesMaintenanceWindow model =
- new AmlFilesystemPropertiesMaintenanceWindow()
- .withDayOfWeek(MaintenanceDayOfWeekType.THURSDAY)
- .withTimeOfDayUtc("cuertu");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemPropertiesMaintenanceWindow.class);
- Assertions.assertEquals(MaintenanceDayOfWeekType.THURSDAY, model.dayOfWeek());
- Assertions.assertEquals("cuertu", model.timeOfDayUtc());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemSubnetInfoTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemSubnetInfoTests.java
deleted file mode 100644
index d011dd8e7ded6..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemSubnetInfoTests.java
+++ /dev/null
@@ -1,40 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemSubnetInfo;
-import com.azure.resourcemanager.storagecache.models.SkuName;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemSubnetInfoTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemSubnetInfo model =
- BinaryData
- .fromString(
- "{\"filesystemSubnet\":\"xtbzsgfyccsne\",\"storageCapacityTiB\":54.53775,\"sku\":{\"name\":\"jeiachboosfl\"},\"location\":\"osfqpteehzzv\"}")
- .toObject(AmlFilesystemSubnetInfo.class);
- Assertions.assertEquals("xtbzsgfyccsne", model.filesystemSubnet());
- Assertions.assertEquals(54.53775F, model.storageCapacityTiB());
- Assertions.assertEquals("jeiachboosfl", model.sku().name());
- Assertions.assertEquals("osfqpteehzzv", model.location());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemSubnetInfo model =
- new AmlFilesystemSubnetInfo()
- .withFilesystemSubnet("xtbzsgfyccsne")
- .withStorageCapacityTiB(54.53775F)
- .withSku(new SkuName().withName("jeiachboosfl"))
- .withLocation("osfqpteehzzv");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemSubnetInfo.class);
- Assertions.assertEquals("xtbzsgfyccsne", model.filesystemSubnet());
- Assertions.assertEquals(54.53775F, model.storageCapacityTiB());
- Assertions.assertEquals("jeiachboosfl", model.sku().name());
- Assertions.assertEquals("osfqpteehzzv", model.location());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdatePropertiesMaintenanceWindowTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdatePropertiesMaintenanceWindowTests.java
deleted file mode 100644
index 355937be26dd7..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdatePropertiesMaintenanceWindowTests.java
+++ /dev/null
@@ -1,33 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow;
-import com.azure.resourcemanager.storagecache.models.MaintenanceDayOfWeekType;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemUpdatePropertiesMaintenanceWindowTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemUpdatePropertiesMaintenanceWindow model =
- BinaryData
- .fromString("{\"dayOfWeek\":\"Monday\",\"timeOfDayUTC\":\"xdcu\"}")
- .toObject(AmlFilesystemUpdatePropertiesMaintenanceWindow.class);
- Assertions.assertEquals(MaintenanceDayOfWeekType.MONDAY, model.dayOfWeek());
- Assertions.assertEquals("xdcu", model.timeOfDayUtc());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemUpdatePropertiesMaintenanceWindow model =
- new AmlFilesystemUpdatePropertiesMaintenanceWindow()
- .withDayOfWeek(MaintenanceDayOfWeekType.MONDAY)
- .withTimeOfDayUtc("xdcu");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemUpdatePropertiesMaintenanceWindow.class);
- Assertions.assertEquals(MaintenanceDayOfWeekType.MONDAY, model.dayOfWeek());
- Assertions.assertEquals("xdcu", model.timeOfDayUtc());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdateTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdateTests.java
deleted file mode 100644
index 3ceacf67eb2ef..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdateTests.java
+++ /dev/null
@@ -1,55 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdate;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow;
-import com.azure.resourcemanager.storagecache.models.MaintenanceDayOfWeekType;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemUpdateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemUpdate model =
- BinaryData
- .fromString(
- "{\"tags\":{\"x\":\"a\",\"hr\":\"fizuckyf\"},\"properties\":{\"encryptionSettings\":{},\"maintenanceWindow\":{\"dayOfWeek\":\"Wednesday\",\"timeOfDayUTC\":\"zuhtymwisdkfthwx\"}}}")
- .toObject(AmlFilesystemUpdate.class);
- Assertions.assertEquals("a", model.tags().get("x"));
- Assertions.assertEquals(MaintenanceDayOfWeekType.WEDNESDAY, model.maintenanceWindow().dayOfWeek());
- Assertions.assertEquals("zuhtymwisdkfthwx", model.maintenanceWindow().timeOfDayUtc());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemUpdate model =
- new AmlFilesystemUpdate()
- .withTags(mapOf("x", "a", "hr", "fizuckyf"))
- .withEncryptionSettings(new AmlFilesystemEncryptionSettings())
- .withMaintenanceWindow(
- new AmlFilesystemUpdatePropertiesMaintenanceWindow()
- .withDayOfWeek(MaintenanceDayOfWeekType.WEDNESDAY)
- .withTimeOfDayUtc("zuhtymwisdkfthwx"));
- model = BinaryData.fromObject(model).toObject(AmlFilesystemUpdate.class);
- Assertions.assertEquals("a", model.tags().get("x"));
- Assertions.assertEquals(MaintenanceDayOfWeekType.WEDNESDAY, model.maintenanceWindow().dayOfWeek());
- Assertions.assertEquals("zuhtymwisdkfthwx", model.maintenanceWindow().timeOfDayUtc());
- }
-
- @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/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveWithResponseMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveWithResponseMockTests.java
deleted file mode 100644
index 6f245d3c7e6c3..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveWithResponseMockTests.java
+++ /dev/null
@@ -1,68 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AmlFilesystemsArchiveWithResponseMockTests {
- @Test
- public void testArchiveWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .amlFilesystems()
- .archiveWithResponse(
- "mzqa",
- "krmnjijpxacqqud",
- new AmlFilesystemArchiveInfo().withFilesystemPath("byxbaaabjy"),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveWithResponseMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveWithResponseMockTests.java
deleted file mode 100644
index aabb1479a3f6f..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveWithResponseMockTests.java
+++ /dev/null
@@ -1,61 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AmlFilesystemsCancelArchiveWithResponseMockTests {
- @Test
- public void testCancelArchiveWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.amlFilesystems().cancelArchiveWithResponse("ayffim", "zrtuzq", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteMockTests.java
deleted file mode 100644
index 401841402f290..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteMockTests.java
+++ /dev/null
@@ -1,61 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AmlFilesystemsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.amlFilesystems().delete("gge", "dunyg", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListResultTests.java
deleted file mode 100644
index c59ecba98efa2..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListResultTests.java
+++ /dev/null
@@ -1,118 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.AmlFilesystemInner;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentity;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentityType;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemsListResult;
-import com.azure.resourcemanager.storagecache.models.SkuName;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemsListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemsListResult model =
- BinaryData
- .fromString(
- "{\"nextLink\":\"mhquvgjxp\",\"value\":[{\"identity\":{\"principalId\":\"ehmtzop\",\"tenantId\":\"phrupidgsybbejhp\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"sku\":{\"name\":\"xaobhdxbmtqioqjz\"},\"zones\":[\"bmufpown\",\"izhwlrxy\"],\"properties\":{\"storageCapacityTiB\":33.52534,\"provisioningState\":\"Creating\",\"filesystemSubnet\":\"jgkdmbpazlobcu\",\"throughputProvisionedMBps\":1053599723},\"location\":\"t\",\"tags\":{\"ooojywifsqe\":\"jnqglhqgnu\",\"zlhjxrifkwmrvkt\":\"aagdfmg\",\"ajpsquc\":\"izntocipao\",\"gjofjd\":\"poyfdkfogkn\"},\"id\":\"eqsrdeupewnwreit\",\"name\":\"zyf\",\"type\":\"usarhmofc\"},{\"identity\":{\"principalId\":\"my\",\"tenantId\":\"kdtmlxhekuk\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"sku\":{\"name\":\"cdm\"},\"zones\":[\"cryuan\",\"w\",\"xzdxtayrlhmwh\",\"pmrqobm\"],\"properties\":{\"storageCapacityTiB\":59.327854,\"provisioningState\":\"Failed\",\"filesystemSubnet\":\"yrtih\",\"throughputProvisionedMBps\":1773018691},\"location\":\"zvgnwzs\",\"tags\":{\"anufhfcbjysag\":\"lzufcyzkohdbi\",\"qhabifpikxwcz\":\"th\"},\"id\":\"yscnpqxu\",\"name\":\"ivyqniwbybrkxvd\",\"type\":\"mjgr\"},{\"identity\":{\"principalId\":\"vukxgau\",\"tenantId\":\"cs\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"sku\":{\"name\":\"yejhk\"},\"zones\":[\"tnapczwlokjyemkk\",\"ni\",\"joxzjnchgejspodm\",\"ilzyd\"],\"properties\":{\"storageCapacityTiB\":1.213932,\"provisioningState\":\"Updating\",\"filesystemSubnet\":\"ahuxinpm\",\"throughputProvisionedMBps\":972887206},\"location\":\"xj\",\"tags\":{\"gjvw\":\"ozvcput\"},\"id\":\"fdatsc\",\"name\":\"dvpjhulsuuvmk\",\"type\":\"ozkrwfndiodjpslw\"},{\"identity\":{\"principalId\":\"pvwryoqpsoacc\",\"tenantId\":\"zakljlahbc\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"sku\":{\"name\":\"dosyg\"},\"zones\":[\"aojakhmsbzjhcrz\",\"vdphlxaolthqtr\",\"qjbpfzfsin\",\"gvfcj\"],\"properties\":{\"storageCapacityTiB\":42.41827,\"provisioningState\":\"Deleting\",\"filesystemSubnet\":\"j\",\"throughputProvisionedMBps\":1190609144},\"location\":\"fziton\",\"tags\":{\"vhpfxxypininmay\":\"fpjkjlxofp\",\"oginuvamiheognar\":\"uybbkpodep\"},\"id\":\"zxtheotusivyevcc\",\"name\":\"qi\",\"type\":\"nhungbw\"}]}")
- .toObject(AmlFilesystemsListResult.class);
- Assertions.assertEquals("mhquvgjxp", model.nextLink());
- Assertions.assertEquals("t", model.value().get(0).location());
- Assertions.assertEquals("jnqglhqgnu", model.value().get(0).tags().get("ooojywifsqe"));
- Assertions.assertEquals(AmlFilesystemIdentityType.USER_ASSIGNED, model.value().get(0).identity().type());
- Assertions.assertEquals("xaobhdxbmtqioqjz", model.value().get(0).sku().name());
- Assertions.assertEquals("bmufpown", model.value().get(0).zones().get(0));
- Assertions.assertEquals(33.52534f, model.value().get(0).storageCapacityTiB());
- Assertions.assertEquals("jgkdmbpazlobcu", model.value().get(0).filesystemSubnet());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemsListResult model =
- new AmlFilesystemsListResult()
- .withNextLink("mhquvgjxp")
- .withValue(
- Arrays
- .asList(
- new AmlFilesystemInner()
- .withLocation("t")
- .withTags(
- mapOf(
- "ooojywifsqe",
- "jnqglhqgnu",
- "zlhjxrifkwmrvkt",
- "aagdfmg",
- "ajpsquc",
- "izntocipao",
- "gjofjd",
- "poyfdkfogkn"))
- .withIdentity(
- new AmlFilesystemIdentity()
- .withType(AmlFilesystemIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withSku(new SkuName().withName("xaobhdxbmtqioqjz"))
- .withZones(Arrays.asList("bmufpown", "izhwlrxy"))
- .withStorageCapacityTiB(33.52534f)
- .withFilesystemSubnet("jgkdmbpazlobcu"),
- new AmlFilesystemInner()
- .withLocation("zvgnwzs")
- .withTags(mapOf("anufhfcbjysag", "lzufcyzkohdbi", "qhabifpikxwcz", "th"))
- .withIdentity(
- new AmlFilesystemIdentity()
- .withType(AmlFilesystemIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withSku(new SkuName().withName("cdm"))
- .withZones(Arrays.asList("cryuan", "w", "xzdxtayrlhmwh", "pmrqobm"))
- .withStorageCapacityTiB(59.327854f)
- .withFilesystemSubnet("yrtih"),
- new AmlFilesystemInner()
- .withLocation("xj")
- .withTags(mapOf("gjvw", "ozvcput"))
- .withIdentity(
- new AmlFilesystemIdentity()
- .withType(AmlFilesystemIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withSku(new SkuName().withName("yejhk"))
- .withZones(Arrays.asList("tnapczwlokjyemkk", "ni", "joxzjnchgejspodm", "ilzyd"))
- .withStorageCapacityTiB(1.213932f)
- .withFilesystemSubnet("ahuxinpm"),
- new AmlFilesystemInner()
- .withLocation("fziton")
- .withTags(mapOf("vhpfxxypininmay", "fpjkjlxofp", "oginuvamiheognar", "uybbkpodep"))
- .withIdentity(
- new AmlFilesystemIdentity()
- .withType(AmlFilesystemIdentityType.NONE)
- .withUserAssignedIdentities(mapOf()))
- .withSku(new SkuName().withName("dosyg"))
- .withZones(Arrays.asList("aojakhmsbzjhcrz", "vdphlxaolthqtr", "qjbpfzfsin", "gvfcj"))
- .withStorageCapacityTiB(42.41827f)
- .withFilesystemSubnet("j")));
- model = BinaryData.fromObject(model).toObject(AmlFilesystemsListResult.class);
- Assertions.assertEquals("mhquvgjxp", model.nextLink());
- Assertions.assertEquals("t", model.value().get(0).location());
- Assertions.assertEquals("jnqglhqgnu", model.value().get(0).tags().get("ooojywifsqe"));
- Assertions.assertEquals(AmlFilesystemIdentityType.USER_ASSIGNED, model.value().get(0).identity().type());
- Assertions.assertEquals("xaobhdxbmtqioqjz", model.value().get(0).sku().name());
- Assertions.assertEquals("bmufpown", model.value().get(0).zones().get(0));
- Assertions.assertEquals(33.52534f, model.value().get(0).storageCapacityTiB());
- Assertions.assertEquals("jgkdmbpazlobcu", model.value().get(0).filesystemSubnet());
- }
-
- @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/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationDisplayTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationDisplayTests.java
deleted file mode 100644
index fdfc1b95057dc..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationDisplayTests.java
+++ /dev/null
@@ -1,39 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.ApiOperationDisplay;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApiOperationDisplayTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiOperationDisplay model =
- BinaryData
- .fromString(
- "{\"operation\":\"gddtocj\",\"provider\":\"hvpmoue\",\"resource\":\"dzxibqeojnxqbzvd\",\"description\":\"t\"}")
- .toObject(ApiOperationDisplay.class);
- Assertions.assertEquals("gddtocj", model.operation());
- Assertions.assertEquals("hvpmoue", model.provider());
- Assertions.assertEquals("dzxibqeojnxqbzvd", model.resource());
- Assertions.assertEquals("t", model.description());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiOperationDisplay model =
- new ApiOperationDisplay()
- .withOperation("gddtocj")
- .withProvider("hvpmoue")
- .withResource("dzxibqeojnxqbzvd")
- .withDescription("t");
- model = BinaryData.fromObject(model).toObject(ApiOperationDisplay.class);
- Assertions.assertEquals("gddtocj", model.operation());
- Assertions.assertEquals("hvpmoue", model.provider());
- Assertions.assertEquals("dzxibqeojnxqbzvd", model.resource());
- Assertions.assertEquals("t", model.description());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationInnerTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationInnerTests.java
deleted file mode 100644
index 2548226eaae0e..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationInnerTests.java
+++ /dev/null
@@ -1,57 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.ApiOperationInner;
-import com.azure.resourcemanager.storagecache.models.ApiOperationDisplay;
-import com.azure.resourcemanager.storagecache.models.ApiOperationPropertiesServiceSpecification;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApiOperationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiOperationInner model =
- BinaryData
- .fromString(
- "{\"display\":{\"operation\":\"po\",\"provider\":\"maajrmvdjwzrlo\",\"resource\":\"clwhijcoejctbz\",\"description\":\"s\"},\"origin\":\"y\",\"isDataAction\":false,\"name\":\"fkgukdkexxppof\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[],\"logSpecifications\":[]}}}")
- .toObject(ApiOperationInner.class);
- Assertions.assertEquals("po", model.display().operation());
- Assertions.assertEquals("maajrmvdjwzrlo", model.display().provider());
- Assertions.assertEquals("clwhijcoejctbz", model.display().resource());
- Assertions.assertEquals("s", model.display().description());
- Assertions.assertEquals("y", model.origin());
- Assertions.assertEquals(false, model.isDataAction());
- Assertions.assertEquals("fkgukdkexxppof", model.name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiOperationInner model =
- new ApiOperationInner()
- .withDisplay(
- new ApiOperationDisplay()
- .withOperation("po")
- .withProvider("maajrmvdjwzrlo")
- .withResource("clwhijcoejctbz")
- .withDescription("s"))
- .withOrigin("y")
- .withIsDataAction(false)
- .withName("fkgukdkexxppof")
- .withServiceSpecification(
- new ApiOperationPropertiesServiceSpecification()
- .withMetricSpecifications(Arrays.asList())
- .withLogSpecifications(Arrays.asList()));
- model = BinaryData.fromObject(model).toObject(ApiOperationInner.class);
- Assertions.assertEquals("po", model.display().operation());
- Assertions.assertEquals("maajrmvdjwzrlo", model.display().provider());
- Assertions.assertEquals("clwhijcoejctbz", model.display().resource());
- Assertions.assertEquals("s", model.display().description());
- Assertions.assertEquals("y", model.origin());
- Assertions.assertEquals(false, model.isDataAction());
- Assertions.assertEquals("fkgukdkexxppof", model.name());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationListResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationListResultTests.java
deleted file mode 100644
index ce14773aedb1b..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationListResultTests.java
+++ /dev/null
@@ -1,70 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.ApiOperationInner;
-import com.azure.resourcemanager.storagecache.models.ApiOperationDisplay;
-import com.azure.resourcemanager.storagecache.models.ApiOperationListResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApiOperationListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiOperationListResult model =
- BinaryData
- .fromString(
- "{\"nextLink\":\"yip\",\"value\":[{\"display\":{\"operation\":\"pgrjbz\",\"provider\":\"rcjxvsnbyxqabn\",\"resource\":\"cpc\",\"description\":\"hurzafblj\"},\"origin\":\"pbtoqcjmkl\",\"isDataAction\":false,\"name\":\"qidtqajzyu\",\"properties\":{}},{\"display\":{\"operation\":\"jkrlkhbzhfepg\",\"provider\":\"qex\",\"resource\":\"ocxscpaierhhbcs\",\"description\":\"ummajtjaod\"},\"origin\":\"bnbdxkqpxokajion\",\"isDataAction\":true,\"name\":\"xg\",\"properties\":{}}]}")
- .toObject(ApiOperationListResult.class);
- Assertions.assertEquals("yip", model.nextLink());
- Assertions.assertEquals("pgrjbz", model.value().get(0).display().operation());
- Assertions.assertEquals("rcjxvsnbyxqabn", model.value().get(0).display().provider());
- Assertions.assertEquals("cpc", model.value().get(0).display().resource());
- Assertions.assertEquals("hurzafblj", model.value().get(0).display().description());
- Assertions.assertEquals("pbtoqcjmkl", model.value().get(0).origin());
- Assertions.assertEquals(false, model.value().get(0).isDataAction());
- Assertions.assertEquals("qidtqajzyu", model.value().get(0).name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiOperationListResult model =
- new ApiOperationListResult()
- .withNextLink("yip")
- .withValue(
- Arrays
- .asList(
- new ApiOperationInner()
- .withDisplay(
- new ApiOperationDisplay()
- .withOperation("pgrjbz")
- .withProvider("rcjxvsnbyxqabn")
- .withResource("cpc")
- .withDescription("hurzafblj"))
- .withOrigin("pbtoqcjmkl")
- .withIsDataAction(false)
- .withName("qidtqajzyu"),
- new ApiOperationInner()
- .withDisplay(
- new ApiOperationDisplay()
- .withOperation("jkrlkhbzhfepg")
- .withProvider("qex")
- .withResource("ocxscpaierhhbcs")
- .withDescription("ummajtjaod"))
- .withOrigin("bnbdxkqpxokajion")
- .withIsDataAction(true)
- .withName("xg")));
- model = BinaryData.fromObject(model).toObject(ApiOperationListResult.class);
- Assertions.assertEquals("yip", model.nextLink());
- Assertions.assertEquals("pgrjbz", model.value().get(0).display().operation());
- Assertions.assertEquals("rcjxvsnbyxqabn", model.value().get(0).display().provider());
- Assertions.assertEquals("cpc", model.value().get(0).display().resource());
- Assertions.assertEquals("hurzafblj", model.value().get(0).display().description());
- Assertions.assertEquals("pbtoqcjmkl", model.value().get(0).origin());
- Assertions.assertEquals(false, model.value().get(0).isDataAction());
- Assertions.assertEquals("qidtqajzyu", model.value().get(0).name());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationPropertiesServiceSpecificationTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationPropertiesServiceSpecificationTests.java
deleted file mode 100644
index 096eed93ea46c..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationPropertiesServiceSpecificationTests.java
+++ /dev/null
@@ -1,80 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.ApiOperationPropertiesServiceSpecification;
-import com.azure.resourcemanager.storagecache.models.LogSpecification;
-import com.azure.resourcemanager.storagecache.models.MetricAggregationType;
-import com.azure.resourcemanager.storagecache.models.MetricSpecification;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApiOperationPropertiesServiceSpecificationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiOperationPropertiesServiceSpecification model =
- BinaryData
- .fromString(
- "{\"metricSpecifications\":[{\"name\":\"vdfgiotk\",\"displayName\":\"utqxlngx\",\"displayDescription\":\"fgugnxkrxdqmid\",\"unit\":\"hzrvqd\",\"aggregationType\":\"bhj\",\"supportedAggregationTypes\":[\"NotSpecified\",\"Total\"],\"metricClass\":\"oqfbowskanyk\",\"dimensions\":[]},{\"name\":\"u\",\"displayName\":\"wgqyw\",\"displayDescription\":\"drvyn\",\"unit\":\"gpphrcgyn\",\"aggregationType\":\"cpecfvmmcoofs\",\"supportedAggregationTypes\":[\"Maximum\",\"None\"],\"metricClass\":\"bmqj\",\"dimensions\":[]}],\"logSpecifications\":[{\"name\":\"mivkwlzuvcc\",\"displayName\":\"nfnbacfionlebxe\"}]}")
- .toObject(ApiOperationPropertiesServiceSpecification.class);
- Assertions.assertEquals("vdfgiotk", model.metricSpecifications().get(0).name());
- Assertions.assertEquals("utqxlngx", model.metricSpecifications().get(0).displayName());
- Assertions.assertEquals("fgugnxkrxdqmid", model.metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("hzrvqd", model.metricSpecifications().get(0).unit());
- Assertions.assertEquals("bhj", model.metricSpecifications().get(0).aggregationType());
- Assertions
- .assertEquals(
- MetricAggregationType.NOT_SPECIFIED,
- model.metricSpecifications().get(0).supportedAggregationTypes().get(0));
- Assertions.assertEquals("oqfbowskanyk", model.metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("mivkwlzuvcc", model.logSpecifications().get(0).name());
- Assertions.assertEquals("nfnbacfionlebxe", model.logSpecifications().get(0).displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiOperationPropertiesServiceSpecification model =
- new ApiOperationPropertiesServiceSpecification()
- .withMetricSpecifications(
- Arrays
- .asList(
- new MetricSpecification()
- .withName("vdfgiotk")
- .withDisplayName("utqxlngx")
- .withDisplayDescription("fgugnxkrxdqmid")
- .withUnit("hzrvqd")
- .withAggregationType("bhj")
- .withSupportedAggregationTypes(
- Arrays.asList(MetricAggregationType.NOT_SPECIFIED, MetricAggregationType.TOTAL))
- .withMetricClass("oqfbowskanyk")
- .withDimensions(Arrays.asList()),
- new MetricSpecification()
- .withName("u")
- .withDisplayName("wgqyw")
- .withDisplayDescription("drvyn")
- .withUnit("gpphrcgyn")
- .withAggregationType("cpecfvmmcoofs")
- .withSupportedAggregationTypes(
- Arrays.asList(MetricAggregationType.MAXIMUM, MetricAggregationType.NONE))
- .withMetricClass("bmqj")
- .withDimensions(Arrays.asList())))
- .withLogSpecifications(
- Arrays.asList(new LogSpecification().withName("mivkwlzuvcc").withDisplayName("nfnbacfionlebxe")));
- model = BinaryData.fromObject(model).toObject(ApiOperationPropertiesServiceSpecification.class);
- Assertions.assertEquals("vdfgiotk", model.metricSpecifications().get(0).name());
- Assertions.assertEquals("utqxlngx", model.metricSpecifications().get(0).displayName());
- Assertions.assertEquals("fgugnxkrxdqmid", model.metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("hzrvqd", model.metricSpecifications().get(0).unit());
- Assertions.assertEquals("bhj", model.metricSpecifications().get(0).aggregationType());
- Assertions
- .assertEquals(
- MetricAggregationType.NOT_SPECIFIED,
- model.metricSpecifications().get(0).supportedAggregationTypes().get(0));
- Assertions.assertEquals("oqfbowskanyk", model.metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("mivkwlzuvcc", model.logSpecifications().get(0).name());
- Assertions.assertEquals("nfnbacfionlebxe", model.logSpecifications().get(0).displayName());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationPropertiesTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationPropertiesTests.java
deleted file mode 100644
index 1125a98cb8052..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationPropertiesTests.java
+++ /dev/null
@@ -1,71 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.ApiOperationProperties;
-import com.azure.resourcemanager.storagecache.models.ApiOperationPropertiesServiceSpecification;
-import com.azure.resourcemanager.storagecache.models.LogSpecification;
-import com.azure.resourcemanager.storagecache.models.MetricSpecification;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ApiOperationPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiOperationProperties model =
- BinaryData
- .fromString(
- "{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"cbtwnpzaoqvuh\",\"displayName\":\"cffcyddglmj\",\"displayDescription\":\"jqkwpyeicx\",\"unit\":\"ciwqvhk\",\"aggregationType\":\"xuigdtopbobj\",\"supportedAggregationTypes\":[],\"metricClass\":\"m\",\"dimensions\":[]}],\"logSpecifications\":[{\"name\":\"a\",\"displayName\":\"rzayv\"}]}}")
- .toObject(ApiOperationProperties.class);
- Assertions.assertEquals("cbtwnpzaoqvuh", model.serviceSpecification().metricSpecifications().get(0).name());
- Assertions
- .assertEquals("cffcyddglmj", model.serviceSpecification().metricSpecifications().get(0).displayName());
- Assertions
- .assertEquals(
- "jqkwpyeicx", model.serviceSpecification().metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("ciwqvhk", model.serviceSpecification().metricSpecifications().get(0).unit());
- Assertions
- .assertEquals("xuigdtopbobj", model.serviceSpecification().metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals("m", model.serviceSpecification().metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("a", model.serviceSpecification().logSpecifications().get(0).name());
- Assertions.assertEquals("rzayv", model.serviceSpecification().logSpecifications().get(0).displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiOperationProperties model =
- new ApiOperationProperties()
- .withServiceSpecification(
- new ApiOperationPropertiesServiceSpecification()
- .withMetricSpecifications(
- Arrays
- .asList(
- new MetricSpecification()
- .withName("cbtwnpzaoqvuh")
- .withDisplayName("cffcyddglmj")
- .withDisplayDescription("jqkwpyeicx")
- .withUnit("ciwqvhk")
- .withAggregationType("xuigdtopbobj")
- .withSupportedAggregationTypes(Arrays.asList())
- .withMetricClass("m")
- .withDimensions(Arrays.asList())))
- .withLogSpecifications(
- Arrays.asList(new LogSpecification().withName("a").withDisplayName("rzayv"))));
- model = BinaryData.fromObject(model).toObject(ApiOperationProperties.class);
- Assertions.assertEquals("cbtwnpzaoqvuh", model.serviceSpecification().metricSpecifications().get(0).name());
- Assertions
- .assertEquals("cffcyddglmj", model.serviceSpecification().metricSpecifications().get(0).displayName());
- Assertions
- .assertEquals(
- "jqkwpyeicx", model.serviceSpecification().metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("ciwqvhk", model.serviceSpecification().metricSpecifications().get(0).unit());
- Assertions
- .assertEquals("xuigdtopbobj", model.serviceSpecification().metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals("m", model.serviceSpecification().metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("a", model.serviceSpecification().logSpecifications().get(0).name());
- Assertions.assertEquals("rzayv", model.serviceSpecification().logSpecifications().get(0).displayName());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscOperationPropertiesTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscOperationPropertiesTests.java
deleted file mode 100644
index 6202332d2a524..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscOperationPropertiesTests.java
+++ /dev/null
@@ -1,40 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.AscOperationProperties;
-import java.util.HashMap;
-import java.util.Map;
-
-public final class AscOperationPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AscOperationProperties model =
- BinaryData
- .fromString(
- "{\"output\":{\"lsicohoqqnwv\":\"datalwh\",\"yxzk\":\"dataryavwhheunmmqh\",\"koklya\":\"datanoc\"}}")
- .toObject(AscOperationProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AscOperationProperties model =
- new AscOperationProperties()
- .withOutput(mapOf("lsicohoqqnwv", "datalwh", "yxzk", "dataryavwhheunmmqh", "koklya", "datanoc"));
- model = BinaryData.fromObject(model).toObject(AscOperationProperties.class);
- }
-
- @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/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListMockTests.java
deleted file mode 100644
index 9f6a77b9526d0..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListMockTests.java
+++ /dev/null
@@ -1,65 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.ResourceUsage;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class AscUsagesListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"limit\":465027307,\"unit\":\"qgsfraoyzkoow\",\"currentValue\":1422593899,\"name\":{\"value\":\"ux\",\"localizedValue\":\"q\"}}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.ascUsages().list("dwbwhkszzcmrvexz", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/BlobNfsTargetTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/BlobNfsTargetTests.java
deleted file mode 100644
index 2615451c4c2d9..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/BlobNfsTargetTests.java
+++ /dev/null
@@ -1,39 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.BlobNfsTarget;
-import org.junit.jupiter.api.Assertions;
-
-public final class BlobNfsTargetTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- BlobNfsTarget model =
- BinaryData
- .fromString(
- "{\"target\":\"lmfmtdaay\",\"usageModel\":\"v\",\"verificationTimer\":1689077175,\"writeBackTimer\":772691250}")
- .toObject(BlobNfsTarget.class);
- Assertions.assertEquals("lmfmtdaay", model.target());
- Assertions.assertEquals("v", model.usageModel());
- Assertions.assertEquals(1689077175, model.verificationTimer());
- Assertions.assertEquals(772691250, model.writeBackTimer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BlobNfsTarget model =
- new BlobNfsTarget()
- .withTarget("lmfmtdaay")
- .withUsageModel("v")
- .withVerificationTimer(1689077175)
- .withWriteBackTimer(772691250);
- model = BinaryData.fromObject(model).toObject(BlobNfsTarget.class);
- Assertions.assertEquals("lmfmtdaay", model.target());
- Assertions.assertEquals("v", model.usageModel());
- Assertions.assertEquals(1689077175, model.verificationTimer());
- Assertions.assertEquals(772691250, model.writeBackTimer());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheHealthTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheHealthTests.java
deleted file mode 100644
index 01efbe4010a13..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheHealthTests.java
+++ /dev/null
@@ -1,31 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.CacheHealth;
-import com.azure.resourcemanager.storagecache.models.HealthStateType;
-import org.junit.jupiter.api.Assertions;
-
-public final class CacheHealthTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CacheHealth model =
- BinaryData
- .fromString(
- "{\"state\":\"UpgradeFailed\",\"statusDescription\":\"aq\",\"conditions\":[{\"timestamp\":\"2021-01-14T07:52:43Z\",\"message\":\"iidzyexzne\"},{\"timestamp\":\"2021-06-14T02:46Z\",\"message\":\"nr\"}]}")
- .toObject(CacheHealth.class);
- Assertions.assertEquals(HealthStateType.UPGRADE_FAILED, model.state());
- Assertions.assertEquals("aq", model.statusDescription());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheHealth model = new CacheHealth().withState(HealthStateType.UPGRADE_FAILED).withStatusDescription("aq");
- model = BinaryData.fromObject(model).toObject(CacheHealth.class);
- Assertions.assertEquals(HealthStateType.UPGRADE_FAILED, model.state());
- Assertions.assertEquals("aq", model.statusDescription());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheIdentityTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheIdentityTests.java
deleted file mode 100644
index 48f376b404d89..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheIdentityTests.java
+++ /dev/null
@@ -1,53 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.CacheIdentity;
-import com.azure.resourcemanager.storagecache.models.CacheIdentityType;
-import com.azure.resourcemanager.storagecache.models.UserAssignedIdentitiesValueAutoGenerated;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class CacheIdentityTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CacheIdentity model =
- BinaryData
- .fromString(
- "{\"principalId\":\"py\",\"tenantId\":\"klwndnhjdauwhv\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"qlveualupjmkh\":{\"principalId\":\"dhxujznbmpo\",\"clientId\":\"wpr\"},\"tjrip\":{\"principalId\":\"obbc\",\"clientId\":\"s\"},\"zvlvqhjkbegib\":{\"principalId\":\"bpbewtghfgb\",\"clientId\":\"gw\"}}}")
- .toObject(CacheIdentity.class);
- Assertions.assertEquals(CacheIdentityType.USER_ASSIGNED, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheIdentity model =
- new CacheIdentity()
- .withType(CacheIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(
- mapOf(
- "qlveualupjmkh",
- new UserAssignedIdentitiesValueAutoGenerated(),
- "tjrip",
- new UserAssignedIdentitiesValueAutoGenerated(),
- "zvlvqhjkbegib",
- new UserAssignedIdentitiesValueAutoGenerated()));
- model = BinaryData.fromObject(model).toObject(CacheIdentity.class);
- Assertions.assertEquals(CacheIdentityType.USER_ASSIGNED, model.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/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheNetworkSettingsTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheNetworkSettingsTests.java
deleted file mode 100644
index 13fdb472b48ac..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheNetworkSettingsTests.java
+++ /dev/null
@@ -1,40 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.CacheNetworkSettings;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class CacheNetworkSettingsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CacheNetworkSettings model =
- BinaryData
- .fromString(
- "{\"mtu\":613009021,\"utilityAddresses\":[\"v\"],\"dnsServers\":[\"ynqwwncwzzhxgk\",\"rmgucnap\",\"t\"],\"dnsSearchDomain\":\"ellwptfdy\",\"ntpServer\":\"fqbuaceopzf\"}")
- .toObject(CacheNetworkSettings.class);
- Assertions.assertEquals(613009021, model.mtu());
- Assertions.assertEquals("ynqwwncwzzhxgk", model.dnsServers().get(0));
- Assertions.assertEquals("ellwptfdy", model.dnsSearchDomain());
- Assertions.assertEquals("fqbuaceopzf", model.ntpServer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheNetworkSettings model =
- new CacheNetworkSettings()
- .withMtu(613009021)
- .withDnsServers(Arrays.asList("ynqwwncwzzhxgk", "rmgucnap", "t"))
- .withDnsSearchDomain("ellwptfdy")
- .withNtpServer("fqbuaceopzf");
- model = BinaryData.fromObject(model).toObject(CacheNetworkSettings.class);
- Assertions.assertEquals(613009021, model.mtu());
- Assertions.assertEquals("ynqwwncwzzhxgk", model.dnsServers().get(0));
- Assertions.assertEquals("ellwptfdy", model.dnsSearchDomain());
- Assertions.assertEquals("fqbuaceopzf", model.ntpServer());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheSecuritySettingsTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheSecuritySettingsTests.java
deleted file mode 100644
index 16c07392b63a0..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheSecuritySettingsTests.java
+++ /dev/null
@@ -1,36 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.CacheSecuritySettings;
-import com.azure.resourcemanager.storagecache.models.NfsAccessPolicy;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class CacheSecuritySettingsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CacheSecuritySettings model =
- BinaryData
- .fromString(
- "{\"accessPolicies\":[{\"name\":\"cq\",\"accessRules\":[]},{\"name\":\"xolzdahzx\",\"accessRules\":[]}]}")
- .toObject(CacheSecuritySettings.class);
- Assertions.assertEquals("cq", model.accessPolicies().get(0).name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheSecuritySettings model =
- new CacheSecuritySettings()
- .withAccessPolicies(
- Arrays
- .asList(
- new NfsAccessPolicy().withName("cq").withAccessRules(Arrays.asList()),
- new NfsAccessPolicy().withName("xolzdahzx").withAccessRules(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(CacheSecuritySettings.class);
- Assertions.assertEquals("cq", model.accessPolicies().get(0).name());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheSkuTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheSkuTests.java
deleted file mode 100644
index f71da7a6afdbc..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheSkuTests.java
+++ /dev/null
@@ -1,24 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.CacheSku;
-import org.junit.jupiter.api.Assertions;
-
-public final class CacheSkuTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CacheSku model = BinaryData.fromString("{\"name\":\"muwlauwzizxbm\"}").toObject(CacheSku.class);
- Assertions.assertEquals("muwlauwzizxbm", model.name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheSku model = new CacheSku().withName("muwlauwzizxbm");
- model = BinaryData.fromObject(model).toObject(CacheSku.class);
- Assertions.assertEquals("muwlauwzizxbm", model.name());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheUpgradeSettingsTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheUpgradeSettingsTests.java
deleted file mode 100644
index cbfdb6f172727..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheUpgradeSettingsTests.java
+++ /dev/null
@@ -1,33 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.CacheUpgradeSettings;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-
-public final class CacheUpgradeSettingsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CacheUpgradeSettings model =
- BinaryData
- .fromString("{\"upgradeScheduleEnabled\":true,\"scheduledTime\":\"2021-03-14T02:00:51Z\"}")
- .toObject(CacheUpgradeSettings.class);
- Assertions.assertEquals(true, model.upgradeScheduleEnabled());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-14T02:00:51Z"), model.scheduledTime());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheUpgradeSettings model =
- new CacheUpgradeSettings()
- .withUpgradeScheduleEnabled(true)
- .withScheduledTime(OffsetDateTime.parse("2021-03-14T02:00:51Z"));
- model = BinaryData.fromObject(model).toObject(CacheUpgradeSettings.class);
- Assertions.assertEquals(true, model.upgradeScheduleEnabled());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-14T02:00:51Z"), model.scheduledTime());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheUpgradeStatusTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheUpgradeStatusTests.java
deleted file mode 100644
index ae3de1cbbfa68..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheUpgradeStatusTests.java
+++ /dev/null
@@ -1,25 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.CacheUpgradeStatus;
-
-public final class CacheUpgradeStatusTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CacheUpgradeStatus model =
- BinaryData
- .fromString(
- "{\"currentFirmwareVersion\":\"ulppggdtpnapnyir\",\"firmwareUpdateStatus\":\"available\",\"firmwareUpdateDeadline\":\"2021-02-20T09:26:33Z\",\"lastFirmwareUpdate\":\"2020-12-20T18:46:56Z\",\"pendingFirmwareVersion\":\"pgylg\"}")
- .toObject(CacheUpgradeStatus.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheUpgradeStatus model = new CacheUpgradeStatus();
- model = BinaryData.fromObject(model).toObject(CacheUpgradeStatus.class);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesDebugInfoMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesDebugInfoMockTests.java
deleted file mode 100644
index 8d619e3d4d383..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesDebugInfoMockTests.java
+++ /dev/null
@@ -1,61 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CachesDebugInfoMockTests {
- @Test
- public void testDebugInfo() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.caches().debugInfo("jpjorwkqnyhgb", "j", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesDeleteMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesDeleteMockTests.java
deleted file mode 100644
index a64bb9ade30ef..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesDeleteMockTests.java
+++ /dev/null
@@ -1,61 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CachesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.caches().delete("jhzi", "xgfpelolppv", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesFlushMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesFlushMockTests.java
deleted file mode 100644
index 2f7e3f92ad984..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesFlushMockTests.java
+++ /dev/null
@@ -1,61 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CachesFlushMockTests {
- @Test
- public void testFlush() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.caches().flush("jivfxzsjabib", "ystawfsdjpvkvp", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesListResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesListResultTests.java
deleted file mode 100644
index f3b9db468713e..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesListResultTests.java
+++ /dev/null
@@ -1,115 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.CacheInner;
-import com.azure.resourcemanager.storagecache.models.CacheIdentity;
-import com.azure.resourcemanager.storagecache.models.CacheIdentityType;
-import com.azure.resourcemanager.storagecache.models.CacheSku;
-import com.azure.resourcemanager.storagecache.models.CachesListResult;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class CachesListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CachesListResult model =
- BinaryData
- .fromString(
- "{\"nextLink\":\"lzlfbxzpuz\",\"value\":[{\"identity\":{\"principalId\":\"nqzahmgkbrpyyd\",\"tenantId\":\"bnuqqkpik\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"cacheSizeGB\":902769225,\"mountAddresses\":[],\"provisioningState\":\"Creating\",\"subnet\":\"nhijggmebfsi\",\"zones\":[],\"primingJobs\":[],\"spaceAllocation\":[]},\"sku\":{\"name\":\"zmhjrunmp\"},\"location\":\"ttdbhrbnl\",\"tags\":{\"henbtkcxywnytn\":\"xmyskp\"},\"id\":\"synlqidybyxczfc\",\"name\":\"haaxdbabphl\",\"type\":\"rqlfktsthsucocmn\"},{\"identity\":{\"principalId\":\"zt\",\"tenantId\":\"twwrqp\",\"type\":\"SystemAssigned,"
- + " UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"cacheSizeGB\":261140124,\"mountAddresses\":[],\"provisioningState\":\"Deleting\",\"subnet\":\"fey\",\"zones\":[],\"primingJobs\":[],\"spaceAllocation\":[]},\"sku\":{\"name\":\"qwalmuzyoxaepd\"},\"location\":\"zjancuxr\",\"tags\":{\"dbpgnxytxhp\":\"bavxbniwdjswzt\",\"lcuhxwtctyqiklb\":\"xbzpfzab\",\"bhvgy\":\"ovplw\"},\"id\":\"gu\",\"name\":\"svmkfssxquk\",\"type\":\"fpl\"},{\"identity\":{\"principalId\":\"sxnkjzkdeslpvlo\",\"tenantId\":\"i\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"cacheSizeGB\":1945649701,\"mountAddresses\":[],\"provisioningState\":\"Updating\",\"subnet\":\"uebbaumnyqup\",\"zones\":[],\"primingJobs\":[],\"spaceAllocation\":[]},\"sku\":{\"name\":\"mtxpsiebtfh\"},\"location\":\"pesapskrdqmhjj\",\"tags\":{\"ws\":\"ldwkyzxuutkn\",\"vnm\":\"wsvlxotogtwrupqs\",\"eil\":\"cykvceo\"},\"id\":\"vnotyfjfcnj\",\"name\":\"k\",\"type\":\"nxdhbt\"},{\"identity\":{\"principalId\":\"h\",\"tenantId\":\"pnvjtoqnermclf\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"cacheSizeGB\":1467620924,\"mountAddresses\":[],\"provisioningState\":\"Failed\",\"subnet\":\"gyepsbjt\",\"zones\":[],\"primingJobs\":[],\"spaceAllocation\":[]},\"sku\":{\"name\":\"ef\"},\"location\":\"zwfqkqujidsuyon\",\"tags\":{\"udxytlmoyrx\":\"laocqxtccmg\",\"qj\":\"wfudwpzntxhdzhl\"},\"id\":\"hckfrlhrx\",\"name\":\"bkyvp\",\"type\":\"ca\"}]}")
- .toObject(CachesListResult.class);
- Assertions.assertEquals("lzlfbxzpuz", model.nextLink());
- Assertions.assertEquals("ttdbhrbnl", model.value().get(0).location());
- Assertions.assertEquals("xmyskp", model.value().get(0).tags().get("henbtkcxywnytn"));
- Assertions.assertEquals(CacheIdentityType.USER_ASSIGNED, model.value().get(0).identity().type());
- Assertions.assertEquals("zmhjrunmp", model.value().get(0).sku().name());
- Assertions.assertEquals(902769225, model.value().get(0).cacheSizeGB());
- Assertions.assertEquals("nhijggmebfsi", model.value().get(0).subnet());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CachesListResult model =
- new CachesListResult()
- .withNextLink("lzlfbxzpuz")
- .withValue(
- Arrays
- .asList(
- new CacheInner()
- .withLocation("ttdbhrbnl")
- .withTags(mapOf("henbtkcxywnytn", "xmyskp"))
- .withIdentity(
- new CacheIdentity()
- .withType(CacheIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withSku(new CacheSku().withName("zmhjrunmp"))
- .withCacheSizeGB(902769225)
- .withSubnet("nhijggmebfsi")
- .withZones(Arrays.asList()),
- new CacheInner()
- .withLocation("zjancuxr")
- .withTags(
- mapOf(
- "dbpgnxytxhp",
- "bavxbniwdjswzt",
- "lcuhxwtctyqiklb",
- "xbzpfzab",
- "bhvgy",
- "ovplw"))
- .withIdentity(
- new CacheIdentity()
- .withType(CacheIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withSku(new CacheSku().withName("qwalmuzyoxaepd"))
- .withCacheSizeGB(261140124)
- .withSubnet("fey")
- .withZones(Arrays.asList()),
- new CacheInner()
- .withLocation("pesapskrdqmhjj")
- .withTags(mapOf("ws", "ldwkyzxuutkn", "vnm", "wsvlxotogtwrupqs", "eil", "cykvceo"))
- .withIdentity(
- new CacheIdentity()
- .withType(CacheIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withSku(new CacheSku().withName("mtxpsiebtfh"))
- .withCacheSizeGB(1945649701)
- .withSubnet("uebbaumnyqup")
- .withZones(Arrays.asList()),
- new CacheInner()
- .withLocation("zwfqkqujidsuyon")
- .withTags(mapOf("udxytlmoyrx", "laocqxtccmg", "qj", "wfudwpzntxhdzhl"))
- .withIdentity(
- new CacheIdentity()
- .withType(CacheIdentityType.USER_ASSIGNED)
- .withUserAssignedIdentities(mapOf()))
- .withSku(new CacheSku().withName("ef"))
- .withCacheSizeGB(1467620924)
- .withSubnet("gyepsbjt")
- .withZones(Arrays.asList())));
- model = BinaryData.fromObject(model).toObject(CachesListResult.class);
- Assertions.assertEquals("lzlfbxzpuz", model.nextLink());
- Assertions.assertEquals("ttdbhrbnl", model.value().get(0).location());
- Assertions.assertEquals("xmyskp", model.value().get(0).tags().get("henbtkcxywnytn"));
- Assertions.assertEquals(CacheIdentityType.USER_ASSIGNED, model.value().get(0).identity().type());
- Assertions.assertEquals("zmhjrunmp", model.value().get(0).sku().name());
- Assertions.assertEquals(902769225, model.value().get(0).cacheSizeGB());
- Assertions.assertEquals("nhijggmebfsi", model.value().get(0).subnet());
- }
-
- @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/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStartMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStartMockTests.java
deleted file mode 100644
index 70ce96a1f3b1f..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStartMockTests.java
+++ /dev/null
@@ -1,61 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CachesStartMockTests {
- @Test
- public void testStart() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.caches().start("jxbkzbzkdvn", "jabudurgkakmo", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStopMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStopMockTests.java
deleted file mode 100644
index 7dcbd23a144e9..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStopMockTests.java
+++ /dev/null
@@ -1,61 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class CachesStopMockTests {
- @Test
- public void testStop() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.caches().stop("zhjjklffhmouwq", "gzrf", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ClfsTargetTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ClfsTargetTests.java
deleted file mode 100644
index d9f629d34ae00..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ClfsTargetTests.java
+++ /dev/null
@@ -1,24 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.ClfsTarget;
-import org.junit.jupiter.api.Assertions;
-
-public final class ClfsTargetTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ClfsTarget model = BinaryData.fromString("{\"target\":\"gxqquezik\"}").toObject(ClfsTarget.class);
- Assertions.assertEquals("gxqquezik", model.target());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ClfsTarget model = new ClfsTarget().withTarget("gxqquezik");
- model = BinaryData.fromObject(model).toObject(ClfsTarget.class);
- Assertions.assertEquals("gxqquezik", model.target());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ConditionTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ConditionTests.java
deleted file mode 100644
index c42b4ca153366..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ConditionTests.java
+++ /dev/null
@@ -1,24 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.Condition;
-
-public final class ConditionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Condition model =
- BinaryData
- .fromString("{\"timestamp\":\"2021-05-07T02:19:01Z\",\"message\":\"lhbnxkna\"}")
- .toObject(Condition.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Condition model = new Condition();
- model = BinaryData.fromObject(model).toObject(Condition.class);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/KeyVaultKeyReferenceSourceVaultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/KeyVaultKeyReferenceSourceVaultTests.java
deleted file mode 100644
index 3774d3c32938a..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/KeyVaultKeyReferenceSourceVaultTests.java
+++ /dev/null
@@ -1,25 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.KeyVaultKeyReferenceSourceVault;
-import org.junit.jupiter.api.Assertions;
-
-public final class KeyVaultKeyReferenceSourceVaultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- KeyVaultKeyReferenceSourceVault model =
- BinaryData.fromString("{\"id\":\"uqktap\"}").toObject(KeyVaultKeyReferenceSourceVault.class);
- Assertions.assertEquals("uqktap", model.id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- KeyVaultKeyReferenceSourceVault model = new KeyVaultKeyReferenceSourceVault().withId("uqktap");
- model = BinaryData.fromObject(model).toObject(KeyVaultKeyReferenceSourceVault.class);
- Assertions.assertEquals("uqktap", model.id());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/LogSpecificationTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/LogSpecificationTests.java
deleted file mode 100644
index 298a771c25980..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/LogSpecificationTests.java
+++ /dev/null
@@ -1,29 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.LogSpecification;
-import org.junit.jupiter.api.Assertions;
-
-public final class LogSpecificationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- LogSpecification model =
- BinaryData
- .fromString("{\"name\":\"qweykhmenev\",\"displayName\":\"exfwhy\"}")
- .toObject(LogSpecification.class);
- Assertions.assertEquals("qweykhmenev", model.name());
- Assertions.assertEquals("exfwhy", model.displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- LogSpecification model = new LogSpecification().withName("qweykhmenev").withDisplayName("exfwhy");
- model = BinaryData.fromObject(model).toObject(LogSpecification.class);
- Assertions.assertEquals("qweykhmenev", model.name());
- Assertions.assertEquals("exfwhy", model.displayName());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricDimensionTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricDimensionTests.java
deleted file mode 100644
index bba37f91675b3..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricDimensionTests.java
+++ /dev/null
@@ -1,39 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.MetricDimension;
-import org.junit.jupiter.api.Assertions;
-
-public final class MetricDimensionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MetricDimension model =
- BinaryData
- .fromString(
- "{\"name\":\"gwdkcglhsl\",\"displayName\":\"jdyggdtji\",\"internalName\":\"b\",\"toBeExportedForShoebox\":true}")
- .toObject(MetricDimension.class);
- Assertions.assertEquals("gwdkcglhsl", model.name());
- Assertions.assertEquals("jdyggdtji", model.displayName());
- Assertions.assertEquals("b", model.internalName());
- Assertions.assertEquals(true, model.toBeExportedForShoebox());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MetricDimension model =
- new MetricDimension()
- .withName("gwdkcglhsl")
- .withDisplayName("jdyggdtji")
- .withInternalName("b")
- .withToBeExportedForShoebox(true);
- model = BinaryData.fromObject(model).toObject(MetricDimension.class);
- Assertions.assertEquals("gwdkcglhsl", model.name());
- Assertions.assertEquals("jdyggdtji", model.displayName());
- Assertions.assertEquals("b", model.internalName());
- Assertions.assertEquals(true, model.toBeExportedForShoebox());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricSpecificationTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricSpecificationTests.java
deleted file mode 100644
index 5f9b4381beb0b..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricSpecificationTests.java
+++ /dev/null
@@ -1,88 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.MetricAggregationType;
-import com.azure.resourcemanager.storagecache.models.MetricDimension;
-import com.azure.resourcemanager.storagecache.models.MetricSpecification;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class MetricSpecificationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MetricSpecification model =
- BinaryData
- .fromString(
- "{\"name\":\"gtzxdpn\",\"displayName\":\"qqwx\",\"displayDescription\":\"feallnwsu\",\"unit\":\"snjampmng\",\"aggregationType\":\"scxaq\",\"supportedAggregationTypes\":[\"Average\",\"Maximum\",\"None\",\"Maximum\"],\"metricClass\":\"nqvpkvlrxnje\",\"dimensions\":[{\"name\":\"pheoflokeyy\",\"displayName\":\"nj\",\"internalName\":\"lwtgrhpdj\",\"toBeExportedForShoebox\":true},{\"name\":\"asxazjpqyegualhb\",\"displayName\":\"hejjz\",\"internalName\":\"dudgwdslfhot\",\"toBeExportedForShoebox\":true},{\"name\":\"npwlbjnpg\",\"displayName\":\"ftadehxnltyfs\",\"internalName\":\"pusuesn\",\"toBeExportedForShoebox\":false},{\"name\":\"jbavorxzdm\",\"displayName\":\"ctbqvudwx\",\"internalName\":\"dnvowg\",\"toBeExportedForShoebox\":true}]}")
- .toObject(MetricSpecification.class);
- Assertions.assertEquals("gtzxdpn", model.name());
- Assertions.assertEquals("qqwx", model.displayName());
- Assertions.assertEquals("feallnwsu", model.displayDescription());
- Assertions.assertEquals("snjampmng", model.unit());
- Assertions.assertEquals("scxaq", model.aggregationType());
- Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0));
- Assertions.assertEquals("nqvpkvlrxnje", model.metricClass());
- Assertions.assertEquals("pheoflokeyy", model.dimensions().get(0).name());
- Assertions.assertEquals("nj", model.dimensions().get(0).displayName());
- Assertions.assertEquals("lwtgrhpdj", model.dimensions().get(0).internalName());
- Assertions.assertEquals(true, model.dimensions().get(0).toBeExportedForShoebox());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MetricSpecification model =
- new MetricSpecification()
- .withName("gtzxdpn")
- .withDisplayName("qqwx")
- .withDisplayDescription("feallnwsu")
- .withUnit("snjampmng")
- .withAggregationType("scxaq")
- .withSupportedAggregationTypes(
- Arrays
- .asList(
- MetricAggregationType.AVERAGE,
- MetricAggregationType.MAXIMUM,
- MetricAggregationType.NONE,
- MetricAggregationType.MAXIMUM))
- .withMetricClass("nqvpkvlrxnje")
- .withDimensions(
- Arrays
- .asList(
- new MetricDimension()
- .withName("pheoflokeyy")
- .withDisplayName("nj")
- .withInternalName("lwtgrhpdj")
- .withToBeExportedForShoebox(true),
- new MetricDimension()
- .withName("asxazjpqyegualhb")
- .withDisplayName("hejjz")
- .withInternalName("dudgwdslfhot")
- .withToBeExportedForShoebox(true),
- new MetricDimension()
- .withName("npwlbjnpg")
- .withDisplayName("ftadehxnltyfs")
- .withInternalName("pusuesn")
- .withToBeExportedForShoebox(false),
- new MetricDimension()
- .withName("jbavorxzdm")
- .withDisplayName("ctbqvudwx")
- .withInternalName("dnvowg")
- .withToBeExportedForShoebox(true)));
- model = BinaryData.fromObject(model).toObject(MetricSpecification.class);
- Assertions.assertEquals("gtzxdpn", model.name());
- Assertions.assertEquals("qqwx", model.displayName());
- Assertions.assertEquals("feallnwsu", model.displayDescription());
- Assertions.assertEquals("snjampmng", model.unit());
- Assertions.assertEquals("scxaq", model.aggregationType());
- Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0));
- Assertions.assertEquals("nqvpkvlrxnje", model.metricClass());
- Assertions.assertEquals("pheoflokeyy", model.dimensions().get(0).name());
- Assertions.assertEquals("nj", model.dimensions().get(0).displayName());
- Assertions.assertEquals("lwtgrhpdj", model.dimensions().get(0).internalName());
- Assertions.assertEquals(true, model.dimensions().get(0).toBeExportedForShoebox());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NamespaceJunctionTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NamespaceJunctionTests.java
deleted file mode 100644
index 4d69fbceae4fe..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NamespaceJunctionTests.java
+++ /dev/null
@@ -1,39 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.NamespaceJunction;
-import org.junit.jupiter.api.Assertions;
-
-public final class NamespaceJunctionTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- NamespaceJunction model =
- BinaryData
- .fromString(
- "{\"namespacePath\":\"mabiknsorgjhxb\",\"targetPath\":\"tlwwrlk\",\"nfsExport\":\"tncvokot\",\"nfsAccessPolicy\":\"xdy\"}")
- .toObject(NamespaceJunction.class);
- Assertions.assertEquals("mabiknsorgjhxb", model.namespacePath());
- Assertions.assertEquals("tlwwrlk", model.targetPath());
- Assertions.assertEquals("tncvokot", model.nfsExport());
- Assertions.assertEquals("xdy", model.nfsAccessPolicy());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- NamespaceJunction model =
- new NamespaceJunction()
- .withNamespacePath("mabiknsorgjhxb")
- .withTargetPath("tlwwrlk")
- .withNfsExport("tncvokot")
- .withNfsAccessPolicy("xdy");
- model = BinaryData.fromObject(model).toObject(NamespaceJunction.class);
- Assertions.assertEquals("mabiknsorgjhxb", model.namespacePath());
- Assertions.assertEquals("tlwwrlk", model.targetPath());
- Assertions.assertEquals("tncvokot", model.nfsExport());
- Assertions.assertEquals("xdy", model.nfsAccessPolicy());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/Nfs3TargetTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/Nfs3TargetTests.java
deleted file mode 100644
index 3a3ba992e9873..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/Nfs3TargetTests.java
+++ /dev/null
@@ -1,39 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.Nfs3Target;
-import org.junit.jupiter.api.Assertions;
-
-public final class Nfs3TargetTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- Nfs3Target model =
- BinaryData
- .fromString(
- "{\"target\":\"syocogjltdtbnnha\",\"usageModel\":\"ocrkvcikh\",\"verificationTimer\":44638091,\"writeBackTimer\":703916773}")
- .toObject(Nfs3Target.class);
- Assertions.assertEquals("syocogjltdtbnnha", model.target());
- Assertions.assertEquals("ocrkvcikh", model.usageModel());
- Assertions.assertEquals(44638091, model.verificationTimer());
- Assertions.assertEquals(703916773, model.writeBackTimer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Nfs3Target model =
- new Nfs3Target()
- .withTarget("syocogjltdtbnnha")
- .withUsageModel("ocrkvcikh")
- .withVerificationTimer(44638091)
- .withWriteBackTimer(703916773);
- model = BinaryData.fromObject(model).toObject(Nfs3Target.class);
- Assertions.assertEquals("syocogjltdtbnnha", model.target());
- Assertions.assertEquals("ocrkvcikh", model.usageModel());
- Assertions.assertEquals(44638091, model.verificationTimer());
- Assertions.assertEquals(703916773, model.writeBackTimer());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NfsAccessPolicyTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NfsAccessPolicyTests.java
deleted file mode 100644
index 1ea7dd495d508..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NfsAccessPolicyTests.java
+++ /dev/null
@@ -1,89 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.NfsAccessPolicy;
-import com.azure.resourcemanager.storagecache.models.NfsAccessRule;
-import com.azure.resourcemanager.storagecache.models.NfsAccessRuleAccess;
-import com.azure.resourcemanager.storagecache.models.NfsAccessRuleScope;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class NfsAccessPolicyTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- NfsAccessPolicy model =
- BinaryData
- .fromString(
- "{\"name\":\"obgbkdmoizp\",\"accessRules\":[{\"scope\":\"default\",\"filter\":\"grcfb\",\"access\":\"rw\",\"suid\":true,\"submountAccess\":true,\"rootSquash\":false,\"anonymousUID\":\"kxbpvj\",\"anonymousGID\":\"jhxxjyn\"},{\"scope\":\"default\",\"filter\":\"ivkrtsw\",\"access\":\"ro\",\"suid\":false,\"submountAccess\":true,\"rootSquash\":true,\"anonymousUID\":\"auvjfdxxivet\",\"anonymousGID\":\"cqaqtdoqmcbx\"},{\"scope\":\"network\",\"filter\":\"xyslqbh\",\"access\":\"no\",\"suid\":false,\"submountAccess\":false,\"rootSquash\":true,\"anonymousUID\":\"blmpewww\",\"anonymousGID\":\"krvrns\"},{\"scope\":\"network\",\"filter\":\"q\",\"access\":\"no\",\"suid\":false,\"submountAccess\":true,\"rootSquash\":true,\"anonymousUID\":\"ovasrruvwbhsqfsu\",\"anonymousGID\":\"gjb\"}]}")
- .toObject(NfsAccessPolicy.class);
- Assertions.assertEquals("obgbkdmoizp", model.name());
- Assertions.assertEquals(NfsAccessRuleScope.DEFAULT, model.accessRules().get(0).scope());
- Assertions.assertEquals("grcfb", model.accessRules().get(0).filter());
- Assertions.assertEquals(NfsAccessRuleAccess.RW, model.accessRules().get(0).access());
- Assertions.assertEquals(true, model.accessRules().get(0).suid());
- Assertions.assertEquals(true, model.accessRules().get(0).submountAccess());
- Assertions.assertEquals(false, model.accessRules().get(0).rootSquash());
- Assertions.assertEquals("kxbpvj", model.accessRules().get(0).anonymousUid());
- Assertions.assertEquals("jhxxjyn", model.accessRules().get(0).anonymousGid());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- NfsAccessPolicy model =
- new NfsAccessPolicy()
- .withName("obgbkdmoizp")
- .withAccessRules(
- Arrays
- .asList(
- new NfsAccessRule()
- .withScope(NfsAccessRuleScope.DEFAULT)
- .withFilter("grcfb")
- .withAccess(NfsAccessRuleAccess.RW)
- .withSuid(true)
- .withSubmountAccess(true)
- .withRootSquash(false)
- .withAnonymousUid("kxbpvj")
- .withAnonymousGid("jhxxjyn"),
- new NfsAccessRule()
- .withScope(NfsAccessRuleScope.DEFAULT)
- .withFilter("ivkrtsw")
- .withAccess(NfsAccessRuleAccess.RO)
- .withSuid(false)
- .withSubmountAccess(true)
- .withRootSquash(true)
- .withAnonymousUid("auvjfdxxivet")
- .withAnonymousGid("cqaqtdoqmcbx"),
- new NfsAccessRule()
- .withScope(NfsAccessRuleScope.NETWORK)
- .withFilter("xyslqbh")
- .withAccess(NfsAccessRuleAccess.NO)
- .withSuid(false)
- .withSubmountAccess(false)
- .withRootSquash(true)
- .withAnonymousUid("blmpewww")
- .withAnonymousGid("krvrns"),
- new NfsAccessRule()
- .withScope(NfsAccessRuleScope.NETWORK)
- .withFilter("q")
- .withAccess(NfsAccessRuleAccess.NO)
- .withSuid(false)
- .withSubmountAccess(true)
- .withRootSquash(true)
- .withAnonymousUid("ovasrruvwbhsqfsu")
- .withAnonymousGid("gjb")));
- model = BinaryData.fromObject(model).toObject(NfsAccessPolicy.class);
- Assertions.assertEquals("obgbkdmoizp", model.name());
- Assertions.assertEquals(NfsAccessRuleScope.DEFAULT, model.accessRules().get(0).scope());
- Assertions.assertEquals("grcfb", model.accessRules().get(0).filter());
- Assertions.assertEquals(NfsAccessRuleAccess.RW, model.accessRules().get(0).access());
- Assertions.assertEquals(true, model.accessRules().get(0).suid());
- Assertions.assertEquals(true, model.accessRules().get(0).submountAccess());
- Assertions.assertEquals(false, model.accessRules().get(0).rootSquash());
- Assertions.assertEquals("kxbpvj", model.accessRules().get(0).anonymousUid());
- Assertions.assertEquals("jhxxjyn", model.accessRules().get(0).anonymousGid());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NfsAccessRuleTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NfsAccessRuleTests.java
deleted file mode 100644
index c856eefff02a7..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NfsAccessRuleTests.java
+++ /dev/null
@@ -1,53 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.NfsAccessRule;
-import com.azure.resourcemanager.storagecache.models.NfsAccessRuleAccess;
-import com.azure.resourcemanager.storagecache.models.NfsAccessRuleScope;
-import org.junit.jupiter.api.Assertions;
-
-public final class NfsAccessRuleTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- NfsAccessRule model =
- BinaryData
- .fromString(
- "{\"scope\":\"network\",\"filter\":\"bpybsrfbjf\",\"access\":\"no\",\"suid\":false,\"submountAccess\":true,\"rootSquash\":true,\"anonymousUID\":\"pvjzbe\",\"anonymousGID\":\"l\"}")
- .toObject(NfsAccessRule.class);
- Assertions.assertEquals(NfsAccessRuleScope.NETWORK, model.scope());
- Assertions.assertEquals("bpybsrfbjf", model.filter());
- Assertions.assertEquals(NfsAccessRuleAccess.NO, model.access());
- Assertions.assertEquals(false, model.suid());
- Assertions.assertEquals(true, model.submountAccess());
- Assertions.assertEquals(true, model.rootSquash());
- Assertions.assertEquals("pvjzbe", model.anonymousUid());
- Assertions.assertEquals("l", model.anonymousGid());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- NfsAccessRule model =
- new NfsAccessRule()
- .withScope(NfsAccessRuleScope.NETWORK)
- .withFilter("bpybsrfbjf")
- .withAccess(NfsAccessRuleAccess.NO)
- .withSuid(false)
- .withSubmountAccess(true)
- .withRootSquash(true)
- .withAnonymousUid("pvjzbe")
- .withAnonymousGid("l");
- model = BinaryData.fromObject(model).toObject(NfsAccessRule.class);
- Assertions.assertEquals(NfsAccessRuleScope.NETWORK, model.scope());
- Assertions.assertEquals("bpybsrfbjf", model.filter());
- Assertions.assertEquals(NfsAccessRuleAccess.NO, model.access());
- Assertions.assertEquals(false, model.suid());
- Assertions.assertEquals(true, model.submountAccess());
- Assertions.assertEquals(true, model.rootSquash());
- Assertions.assertEquals("pvjzbe", model.anonymousUid());
- Assertions.assertEquals("l", model.anonymousGid());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/OperationsListMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/OperationsListMockTests.java
deleted file mode 100644
index 420ff29fd6952..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/OperationsListMockTests.java
+++ /dev/null
@@ -1,73 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.ApiOperation;
-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;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class OperationsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"display\":{\"operation\":\"lt\",\"provider\":\"cjvefkdlfo\",\"resource\":\"ggkfpagaowpul\",\"description\":\"blylsyxkqjnsj\"},\"origin\":\"vti\",\"isDataAction\":true,\"name\":\"dszue\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[],\"logSpecifications\":[]}}}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("lt", response.iterator().next().display().operation());
- Assertions.assertEquals("cjvefkdlfo", response.iterator().next().display().provider());
- Assertions.assertEquals("ggkfpagaowpul", response.iterator().next().display().resource());
- Assertions.assertEquals("blylsyxkqjnsj", response.iterator().next().display().description());
- Assertions.assertEquals("vti", response.iterator().next().origin());
- Assertions.assertEquals(true, response.iterator().next().isDataAction());
- Assertions.assertEquals("dszue", response.iterator().next().name());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/PrimingJobIdParameterTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/PrimingJobIdParameterTests.java
deleted file mode 100644
index 9641aaf1ce90f..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/PrimingJobIdParameterTests.java
+++ /dev/null
@@ -1,25 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.PrimingJobIdParameter;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrimingJobIdParameterTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrimingJobIdParameter model =
- BinaryData.fromString("{\"primingJobId\":\"dblx\"}").toObject(PrimingJobIdParameter.class);
- Assertions.assertEquals("dblx", model.primingJobId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrimingJobIdParameter model = new PrimingJobIdParameter().withPrimingJobId("dblx");
- model = BinaryData.fromObject(model).toObject(PrimingJobIdParameter.class);
- Assertions.assertEquals("dblx", model.primingJobId());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/PrimingJobTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/PrimingJobTests.java
deleted file mode 100644
index e4b0b63b2ff63..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/PrimingJobTests.java
+++ /dev/null
@@ -1,30 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.PrimingJob;
-import org.junit.jupiter.api.Assertions;
-
-public final class PrimingJobTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- PrimingJob model =
- BinaryData
- .fromString(
- "{\"primingJobName\":\"gureodkwobdag\",\"primingManifestUrl\":\"tibqdxbxwakb\",\"primingJobId\":\"qxn\",\"primingJobState\":\"Paused\",\"primingJobStatus\":\"gxhuriplbp\",\"primingJobDetails\":\"xunkbebxmubyynt\",\"primingJobPercentComplete\":46.729428955175365}")
- .toObject(PrimingJob.class);
- Assertions.assertEquals("gureodkwobdag", model.primingJobName());
- Assertions.assertEquals("tibqdxbxwakb", model.primingManifestUrl());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrimingJob model = new PrimingJob().withPrimingJobName("gureodkwobdag").withPrimingManifestUrl("tibqdxbxwakb");
- model = BinaryData.fromObject(model).toObject(PrimingJob.class);
- Assertions.assertEquals("gureodkwobdag", model.primingJobName());
- Assertions.assertEquals("tibqdxbxwakb", model.primingManifestUrl());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInfoTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInfoTests.java
deleted file mode 100644
index 60efeac4645e3..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInfoTests.java
+++ /dev/null
@@ -1,33 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSizeInfo;
-import com.azure.resourcemanager.storagecache.models.SkuName;
-import org.junit.jupiter.api.Assertions;
-
-public final class RequiredAmlFilesystemSubnetsSizeInfoTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- RequiredAmlFilesystemSubnetsSizeInfo model =
- BinaryData
- .fromString("{\"storageCapacityTiB\":38.036823,\"sku\":{\"name\":\"crmnohjtckwhds\"}}")
- .toObject(RequiredAmlFilesystemSubnetsSizeInfo.class);
- Assertions.assertEquals(38.036823F, model.storageCapacityTiB());
- Assertions.assertEquals("crmnohjtckwhds", model.sku().name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RequiredAmlFilesystemSubnetsSizeInfo model =
- new RequiredAmlFilesystemSubnetsSizeInfo()
- .withStorageCapacityTiB(38.036823F)
- .withSku(new SkuName().withName("crmnohjtckwhds"));
- model = BinaryData.fromObject(model).toObject(RequiredAmlFilesystemSubnetsSizeInfo.class);
- Assertions.assertEquals(38.036823F, model.storageCapacityTiB());
- Assertions.assertEquals("crmnohjtckwhds", model.sku().name());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInnerTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInnerTests.java
deleted file mode 100644
index 824d7cc146757..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInnerTests.java
+++ /dev/null
@@ -1,28 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.RequiredAmlFilesystemSubnetsSizeInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class RequiredAmlFilesystemSubnetsSizeInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- RequiredAmlFilesystemSubnetsSizeInner model =
- BinaryData
- .fromString("{\"filesystemSubnetSize\":1580515344}")
- .toObject(RequiredAmlFilesystemSubnetsSizeInner.class);
- Assertions.assertEquals(1580515344, model.filesystemSubnetSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RequiredAmlFilesystemSubnetsSizeInner model =
- new RequiredAmlFilesystemSubnetsSizeInner().withFilesystemSubnetSize(1580515344);
- model = BinaryData.fromObject(model).toObject(RequiredAmlFilesystemSubnetsSizeInner.class);
- Assertions.assertEquals(1580515344, model.filesystemSubnetSize());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersCheckAmlFSSubnetsWithResponseMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersCheckAmlFSSubnetsWithResponseMockTests.java
deleted file mode 100644
index f26be4bd2d7ca..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersCheckAmlFSSubnetsWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemSubnetInfo;
-import com.azure.resourcemanager.storagecache.models.SkuName;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ResourceProvidersCheckAmlFSSubnetsWithResponseMockTests {
- @Test
- public void testCheckAmlFSSubnetsWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .resourceProviders()
- .checkAmlFSSubnetsWithResponse(
- new AmlFilesystemSubnetInfo()
- .withFilesystemSubnet("xuqlcvydypat")
- .withStorageCapacityTiB(8.170676F)
- .withSku(new SkuName().withName("jkniodko"))
- .withLocation("bw"),
- com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersGetRequiredAmlFSSubnetsSizeWithResponseMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersGetRequiredAmlFSSubnetsSizeWithResponseMockTests.java
deleted file mode 100644
index 4206130c7cd97..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersGetRequiredAmlFSSubnetsSizeWithResponseMockTests.java
+++ /dev/null
@@ -1,75 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSize;
-import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSizeInfo;
-import com.azure.resourcemanager.storagecache.models.SkuName;
-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;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class ResourceProvidersGetRequiredAmlFSSubnetsSizeWithResponseMockTests {
- @Test
- public void testGetRequiredAmlFSSubnetsSizeWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{\"filesystemSubnetSize\":2127235728}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- RequiredAmlFilesystemSubnetsSize response =
- manager
- .resourceProviders()
- .getRequiredAmlFSSubnetsSizeWithResponse(
- new RequiredAmlFilesystemSubnetsSizeInfo()
- .withStorageCapacityTiB(34.47978F)
- .withSku(new SkuName().withName("mmsbvdkcrodtjin")),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(2127235728, response.filesystemSubnetSize());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkuCapabilitiesTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkuCapabilitiesTests.java
deleted file mode 100644
index 89ee94b570433..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkuCapabilitiesTests.java
+++ /dev/null
@@ -1,27 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.ResourceSkuCapabilities;
-import org.junit.jupiter.api.Assertions;
-
-public final class ResourceSkuCapabilitiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ResourceSkuCapabilities model =
- BinaryData.fromString("{\"name\":\"iwwzjuqk\",\"value\":\"sa\"}").toObject(ResourceSkuCapabilities.class);
- Assertions.assertEquals("iwwzjuqk", model.name());
- Assertions.assertEquals("sa", model.value());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceSkuCapabilities model = new ResourceSkuCapabilities().withName("iwwzjuqk").withValue("sa");
- model = BinaryData.fromObject(model).toObject(ResourceSkuCapabilities.class);
- Assertions.assertEquals("iwwzjuqk", model.name());
- Assertions.assertEquals("sa", model.value());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkuLocationInfoTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkuLocationInfoTests.java
deleted file mode 100644
index 825cb25f9d557..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkuLocationInfoTests.java
+++ /dev/null
@@ -1,31 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.ResourceSkuLocationInfo;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ResourceSkuLocationInfoTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ResourceSkuLocationInfo model =
- BinaryData
- .fromString("{\"location\":\"wkuofoskghsauu\",\"zones\":[\"mvxi\",\"duugidyjr\"]}")
- .toObject(ResourceSkuLocationInfo.class);
- Assertions.assertEquals("wkuofoskghsauu", model.location());
- Assertions.assertEquals("mvxi", model.zones().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceSkuLocationInfo model =
- new ResourceSkuLocationInfo().withLocation("wkuofoskghsauu").withZones(Arrays.asList("mvxi", "duugidyjr"));
- model = BinaryData.fromObject(model).toObject(ResourceSkuLocationInfo.class);
- Assertions.assertEquals("wkuofoskghsauu", model.location());
- Assertions.assertEquals("mvxi", model.zones().get(0));
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkusResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkusResultTests.java
deleted file mode 100644
index eaf4997ff8f61..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkusResultTests.java
+++ /dev/null
@@ -1,28 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.ResourceSkusResult;
-import org.junit.jupiter.api.Assertions;
-
-public final class ResourceSkusResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ResourceSkusResult model =
- BinaryData
- .fromString(
- "{\"nextLink\":\"i\",\"value\":[{\"resourceType\":\"dcsi\",\"capabilities\":[],\"locations\":[\"amdecte\",\"f\"],\"locationInfo\":[],\"name\":\"jeyp\",\"restrictions\":[]},{\"resourceType\":\"rkgqhcjrefo\",\"capabilities\":[],\"locations\":[\"sle\"],\"locationInfo\":[],\"name\":\"yqjpkcatt\",\"restrictions\":[]},{\"resourceType\":\"cr\",\"capabilities\":[],\"locations\":[\"pjhvmdajvnys\",\"unqecanoae\"],\"locationInfo\":[],\"name\":\"yhltrpmopjmcm\",\"restrictions\":[]}]}")
- .toObject(ResourceSkusResult.class);
- Assertions.assertEquals("i", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceSkusResult model = new ResourceSkusResult().withNextLink("i");
- model = BinaryData.fromObject(model).toObject(ResourceSkusResult.class);
- Assertions.assertEquals("i", model.nextLink());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageInnerTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageInnerTests.java
deleted file mode 100644
index 89c7e4ade481d..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageInnerTests.java
+++ /dev/null
@@ -1,25 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.ResourceUsageInner;
-
-public final class ResourceUsageInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ResourceUsageInner model =
- BinaryData
- .fromString(
- "{\"limit\":1125977089,\"unit\":\"vcltbgsncgh\",\"currentValue\":630804167,\"name\":{\"value\":\"zhbijhtxfv\",\"localizedValue\":\"bfs\"}}")
- .toObject(ResourceUsageInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceUsageInner model = new ResourceUsageInner();
- model = BinaryData.fromObject(model).toObject(ResourceUsageInner.class);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageNameTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageNameTests.java
deleted file mode 100644
index 9587b0947a0ab..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageNameTests.java
+++ /dev/null
@@ -1,29 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.ResourceUsageName;
-import org.junit.jupiter.api.Assertions;
-
-public final class ResourceUsageNameTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ResourceUsageName model =
- BinaryData
- .fromString("{\"value\":\"nehmpvecx\",\"localizedValue\":\"debfqkkrbmpukgri\"}")
- .toObject(ResourceUsageName.class);
- Assertions.assertEquals("nehmpvecx", model.value());
- Assertions.assertEquals("debfqkkrbmpukgri", model.localizedValue());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceUsageName model = new ResourceUsageName().withValue("nehmpvecx").withLocalizedValue("debfqkkrbmpukgri");
- model = BinaryData.fromObject(model).toObject(ResourceUsageName.class);
- Assertions.assertEquals("nehmpvecx", model.value());
- Assertions.assertEquals("debfqkkrbmpukgri", model.localizedValue());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsagesListResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsagesListResultTests.java
deleted file mode 100644
index 73fe239d5bd6b..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsagesListResultTests.java
+++ /dev/null
@@ -1,25 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.ResourceUsagesListResult;
-
-public final class ResourceUsagesListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ResourceUsagesListResult model =
- BinaryData
- .fromString(
- "{\"nextLink\":\"conuqszfkbeype\",\"value\":[{\"limit\":1769488182,\"unit\":\"vvjektcxsenhwlrs\",\"currentValue\":1160903159,\"name\":{\"value\":\"wvlqdqgb\",\"localizedValue\":\"ylihkaetckt\"}},{\"limit\":1161915494,\"unit\":\"vf\",\"currentValue\":1439839130,\"name\":{\"value\":\"uctqhjfbe\",\"localizedValue\":\"jcxerfuwu\"}},{\"limit\":743526122,\"unit\":\"fvjrbirphxepcy\",\"currentValue\":1901169400,\"name\":{\"value\":\"ljkyqxjvuuj\",\"localizedValue\":\"idokgjlj\"}}]}")
- .toObject(ResourceUsagesListResult.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceUsagesListResult model = new ResourceUsagesListResult();
- model = BinaryData.fromObject(model).toObject(ResourceUsagesListResult.class);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/SkuNameTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/SkuNameTests.java
deleted file mode 100644
index eeca97c952f7a..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/SkuNameTests.java
+++ /dev/null
@@ -1,24 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.SkuName;
-import org.junit.jupiter.api.Assertions;
-
-public final class SkuNameTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SkuName model = BinaryData.fromString("{\"name\":\"uticndvkaozwyif\"}").toObject(SkuName.class);
- Assertions.assertEquals("uticndvkaozwyif", model.name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SkuName model = new SkuName().withName("uticndvkaozwyif");
- model = BinaryData.fromObject(model).toObject(SkuName.class);
- Assertions.assertEquals("uticndvkaozwyif", model.name());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetInnerTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetInnerTests.java
deleted file mode 100644
index 205a54196b07e..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetInnerTests.java
+++ /dev/null
@@ -1,114 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.StorageTargetInner;
-import com.azure.resourcemanager.storagecache.models.BlobNfsTarget;
-import com.azure.resourcemanager.storagecache.models.ClfsTarget;
-import com.azure.resourcemanager.storagecache.models.NamespaceJunction;
-import com.azure.resourcemanager.storagecache.models.Nfs3Target;
-import com.azure.resourcemanager.storagecache.models.OperationalStateType;
-import com.azure.resourcemanager.storagecache.models.StorageTargetType;
-import com.azure.resourcemanager.storagecache.models.UnknownTarget;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class StorageTargetInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StorageTargetInner model =
- BinaryData
- .fromString(
- "{\"properties\":{\"junctions\":[{\"namespacePath\":\"hvoodsotbobzd\",\"targetPath\":\"cjwvn\",\"nfsExport\":\"ld\",\"nfsAccessPolicy\":\"gx\"},{\"namespacePath\":\"rslpmutwuoeg\",\"targetPath\":\"khjwn\",\"nfsExport\":\"qsluicp\",\"nfsAccessPolicy\":\"gk\"},{\"namespacePath\":\"lvmbmpaxmodfvuef\",\"targetPath\":\"sbpfvmwyhr\",\"nfsExport\":\"uyfta\",\"nfsAccessPolicy\":\"cpwi\"}],\"targetType\":\"unknown\",\"provisioningState\":\"Failed\",\"state\":\"Flushing\",\"nfs3\":{\"target\":\"bexkpzksmondj\",\"usageModel\":\"uxvypomgkopkwh\",\"verificationTimer\":10985850,\"writeBackTimer\":1397433575},\"clfs\":{\"target\":\"gxysmocmbqfqvm\"},\"unknown\":{\"attributes\":{\"rgly\":\"zapvhelx\"}},\"blobNfs\":{\"target\":\"dckcbc\",\"usageModel\":\"jrjxgciqibrhosx\",\"verificationTimer\":1655789286,\"writeBackTimer\":656063523},\"allocationPercentage\":218775906},\"location\":\"m\",\"id\":\"m\",\"name\":\"qyib\",\"type\":\"hwflu\"}")
- .toObject(StorageTargetInner.class);
- Assertions.assertEquals("hvoodsotbobzd", model.junctions().get(0).namespacePath());
- Assertions.assertEquals("cjwvn", model.junctions().get(0).targetPath());
- Assertions.assertEquals("ld", model.junctions().get(0).nfsExport());
- Assertions.assertEquals("gx", model.junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.UNKNOWN, model.targetType());
- Assertions.assertEquals(OperationalStateType.FLUSHING, model.state());
- Assertions.assertEquals("bexkpzksmondj", model.nfs3().target());
- Assertions.assertEquals("uxvypomgkopkwh", model.nfs3().usageModel());
- Assertions.assertEquals(10985850, model.nfs3().verificationTimer());
- Assertions.assertEquals(1397433575, model.nfs3().writeBackTimer());
- Assertions.assertEquals("gxysmocmbqfqvm", model.clfs().target());
- Assertions.assertEquals("zapvhelx", model.unknown().attributes().get("rgly"));
- Assertions.assertEquals("dckcbc", model.blobNfs().target());
- Assertions.assertEquals("jrjxgciqibrhosx", model.blobNfs().usageModel());
- Assertions.assertEquals(1655789286, model.blobNfs().verificationTimer());
- Assertions.assertEquals(656063523, model.blobNfs().writeBackTimer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- StorageTargetInner model =
- new StorageTargetInner()
- .withJunctions(
- Arrays
- .asList(
- new NamespaceJunction()
- .withNamespacePath("hvoodsotbobzd")
- .withTargetPath("cjwvn")
- .withNfsExport("ld")
- .withNfsAccessPolicy("gx"),
- new NamespaceJunction()
- .withNamespacePath("rslpmutwuoeg")
- .withTargetPath("khjwn")
- .withNfsExport("qsluicp")
- .withNfsAccessPolicy("gk"),
- new NamespaceJunction()
- .withNamespacePath("lvmbmpaxmodfvuef")
- .withTargetPath("sbpfvmwyhr")
- .withNfsExport("uyfta")
- .withNfsAccessPolicy("cpwi")))
- .withTargetType(StorageTargetType.UNKNOWN)
- .withState(OperationalStateType.FLUSHING)
- .withNfs3(
- new Nfs3Target()
- .withTarget("bexkpzksmondj")
- .withUsageModel("uxvypomgkopkwh")
- .withVerificationTimer(10985850)
- .withWriteBackTimer(1397433575))
- .withClfs(new ClfsTarget().withTarget("gxysmocmbqfqvm"))
- .withUnknown(new UnknownTarget().withAttributes(mapOf("rgly", "zapvhelx")))
- .withBlobNfs(
- new BlobNfsTarget()
- .withTarget("dckcbc")
- .withUsageModel("jrjxgciqibrhosx")
- .withVerificationTimer(1655789286)
- .withWriteBackTimer(656063523));
- model = BinaryData.fromObject(model).toObject(StorageTargetInner.class);
- Assertions.assertEquals("hvoodsotbobzd", model.junctions().get(0).namespacePath());
- Assertions.assertEquals("cjwvn", model.junctions().get(0).targetPath());
- Assertions.assertEquals("ld", model.junctions().get(0).nfsExport());
- Assertions.assertEquals("gx", model.junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.UNKNOWN, model.targetType());
- Assertions.assertEquals(OperationalStateType.FLUSHING, model.state());
- Assertions.assertEquals("bexkpzksmondj", model.nfs3().target());
- Assertions.assertEquals("uxvypomgkopkwh", model.nfs3().usageModel());
- Assertions.assertEquals(10985850, model.nfs3().verificationTimer());
- Assertions.assertEquals(1397433575, model.nfs3().writeBackTimer());
- Assertions.assertEquals("gxysmocmbqfqvm", model.clfs().target());
- Assertions.assertEquals("zapvhelx", model.unknown().attributes().get("rgly"));
- Assertions.assertEquals("dckcbc", model.blobNfs().target());
- Assertions.assertEquals("jrjxgciqibrhosx", model.blobNfs().usageModel());
- Assertions.assertEquals(1655789286, model.blobNfs().verificationTimer());
- Assertions.assertEquals(656063523, model.blobNfs().writeBackTimer());
- }
-
- @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/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsFlushMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsFlushMockTests.java
deleted file mode 100644
index e224de0b42e86..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsFlushMockTests.java
+++ /dev/null
@@ -1,63 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetOperationsFlushMockTests {
- @Test
- public void testFlush() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .storageTargetOperations()
- .flush("pyouaibrebqaays", "kixqtnqtt", "zlwfffiakp", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsInvalidateMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsInvalidateMockTests.java
deleted file mode 100644
index 5c15d62434c36..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsInvalidateMockTests.java
+++ /dev/null
@@ -1,63 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetOperationsInvalidateMockTests {
- @Test
- public void testInvalidate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .storageTargetOperations()
- .invalidate("lmcuvhixb", "xyfwnylrcool", "ttpkiwkkbnujrywv", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsResumeMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsResumeMockTests.java
deleted file mode 100644
index 30728f2d88934..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsResumeMockTests.java
+++ /dev/null
@@ -1,63 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetOperationsResumeMockTests {
- @Test
- public void testResume() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .storageTargetOperations()
- .resume("qncygupkvi", "mdscwxqupev", "hfstotxhojujbyp", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsSuspendMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsSuspendMockTests.java
deleted file mode 100644
index 7971956d5c39d..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsSuspendMockTests.java
+++ /dev/null
@@ -1,61 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetOperationsSuspendMockTests {
- @Test
- public void testSuspend() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.storageTargetOperations().suspend("pqqmted", "tmmjihyeozph", "wau", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetPropertiesTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetPropertiesTests.java
deleted file mode 100644
index 37f6a218b3c14..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetPropertiesTests.java
+++ /dev/null
@@ -1,123 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.StorageTargetProperties;
-import com.azure.resourcemanager.storagecache.models.BlobNfsTarget;
-import com.azure.resourcemanager.storagecache.models.ClfsTarget;
-import com.azure.resourcemanager.storagecache.models.NamespaceJunction;
-import com.azure.resourcemanager.storagecache.models.Nfs3Target;
-import com.azure.resourcemanager.storagecache.models.OperationalStateType;
-import com.azure.resourcemanager.storagecache.models.StorageTargetType;
-import com.azure.resourcemanager.storagecache.models.UnknownTarget;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class StorageTargetPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StorageTargetProperties model =
- BinaryData
- .fromString(
- "{\"junctions\":[{\"namespacePath\":\"mhrkwofyyvoqacp\",\"targetPath\":\"xpbtgiwbwo\",\"nfsExport\":\"washr\",\"nfsAccessPolicy\":\"tkcnqxwb\"},{\"namespacePath\":\"kulpiujwaasi\",\"targetPath\":\"i\",\"nfsExport\":\"byuqerpqlp\",\"nfsAccessPolicy\":\"cciuqgbdbutau\"},{\"namespacePath\":\"btkuwhh\",\"targetPath\":\"ykojoxafnndlpic\",\"nfsExport\":\"o\",\"nfsAccessPolicy\":\"kcdyhbpk\"},{\"namespacePath\":\"wdreqnovvqfovl\",\"targetPath\":\"ywsuwsy\",\"nfsExport\":\"ndsytgadg\",\"nfsAccessPolicy\":\"aeaeneqnzarrw\"}],\"targetType\":\"nfs3\",\"provisioningState\":\"Deleting\",\"state\":\"Busy\",\"nfs3\":{\"target\":\"kacewiipfp\",\"usageModel\":\"ji\",\"verificationTimer\":1113434704,\"writeBackTimer\":254804801},\"clfs\":{\"target\":\"hqkvpuvksgplsak\"},\"unknown\":{\"attributes\":{\"iyntorzihle\":\"synljphuopxodl\",\"yzrpzbchckqqzq\":\"sjswsrms\",\"ysuiizynkedya\":\"ox\"}},\"blobNfs\":{\"target\":\"yhqmibzyhwi\",\"usageModel\":\"mypyynpcdpu\",\"verificationTimer\":1107344942,\"writeBackTimer\":998287381},\"allocationPercentage\":83591449}")
- .toObject(StorageTargetProperties.class);
- Assertions.assertEquals("mhrkwofyyvoqacp", model.junctions().get(0).namespacePath());
- Assertions.assertEquals("xpbtgiwbwo", model.junctions().get(0).targetPath());
- Assertions.assertEquals("washr", model.junctions().get(0).nfsExport());
- Assertions.assertEquals("tkcnqxwb", model.junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.NFS3, model.targetType());
- Assertions.assertEquals(OperationalStateType.BUSY, model.state());
- Assertions.assertEquals("kacewiipfp", model.nfs3().target());
- Assertions.assertEquals("ji", model.nfs3().usageModel());
- Assertions.assertEquals(1113434704, model.nfs3().verificationTimer());
- Assertions.assertEquals(254804801, model.nfs3().writeBackTimer());
- Assertions.assertEquals("hqkvpuvksgplsak", model.clfs().target());
- Assertions.assertEquals("synljphuopxodl", model.unknown().attributes().get("iyntorzihle"));
- Assertions.assertEquals("yhqmibzyhwi", model.blobNfs().target());
- Assertions.assertEquals("mypyynpcdpu", model.blobNfs().usageModel());
- Assertions.assertEquals(1107344942, model.blobNfs().verificationTimer());
- Assertions.assertEquals(998287381, model.blobNfs().writeBackTimer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- StorageTargetProperties model =
- new StorageTargetProperties()
- .withJunctions(
- Arrays
- .asList(
- new NamespaceJunction()
- .withNamespacePath("mhrkwofyyvoqacp")
- .withTargetPath("xpbtgiwbwo")
- .withNfsExport("washr")
- .withNfsAccessPolicy("tkcnqxwb"),
- new NamespaceJunction()
- .withNamespacePath("kulpiujwaasi")
- .withTargetPath("i")
- .withNfsExport("byuqerpqlp")
- .withNfsAccessPolicy("cciuqgbdbutau"),
- new NamespaceJunction()
- .withNamespacePath("btkuwhh")
- .withTargetPath("ykojoxafnndlpic")
- .withNfsExport("o")
- .withNfsAccessPolicy("kcdyhbpk"),
- new NamespaceJunction()
- .withNamespacePath("wdreqnovvqfovl")
- .withTargetPath("ywsuwsy")
- .withNfsExport("ndsytgadg")
- .withNfsAccessPolicy("aeaeneqnzarrw")))
- .withTargetType(StorageTargetType.NFS3)
- .withState(OperationalStateType.BUSY)
- .withNfs3(
- new Nfs3Target()
- .withTarget("kacewiipfp")
- .withUsageModel("ji")
- .withVerificationTimer(1113434704)
- .withWriteBackTimer(254804801))
- .withClfs(new ClfsTarget().withTarget("hqkvpuvksgplsak"))
- .withUnknown(
- new UnknownTarget()
- .withAttributes(
- mapOf(
- "iyntorzihle", "synljphuopxodl", "yzrpzbchckqqzq", "sjswsrms", "ysuiizynkedya", "ox")))
- .withBlobNfs(
- new BlobNfsTarget()
- .withTarget("yhqmibzyhwi")
- .withUsageModel("mypyynpcdpu")
- .withVerificationTimer(1107344942)
- .withWriteBackTimer(998287381));
- model = BinaryData.fromObject(model).toObject(StorageTargetProperties.class);
- Assertions.assertEquals("mhrkwofyyvoqacp", model.junctions().get(0).namespacePath());
- Assertions.assertEquals("xpbtgiwbwo", model.junctions().get(0).targetPath());
- Assertions.assertEquals("washr", model.junctions().get(0).nfsExport());
- Assertions.assertEquals("tkcnqxwb", model.junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.NFS3, model.targetType());
- Assertions.assertEquals(OperationalStateType.BUSY, model.state());
- Assertions.assertEquals("kacewiipfp", model.nfs3().target());
- Assertions.assertEquals("ji", model.nfs3().usageModel());
- Assertions.assertEquals(1113434704, model.nfs3().verificationTimer());
- Assertions.assertEquals(254804801, model.nfs3().writeBackTimer());
- Assertions.assertEquals("hqkvpuvksgplsak", model.clfs().target());
- Assertions.assertEquals("synljphuopxodl", model.unknown().attributes().get("iyntorzihle"));
- Assertions.assertEquals("yhqmibzyhwi", model.blobNfs().target());
- Assertions.assertEquals("mypyynpcdpu", model.blobNfs().usageModel());
- Assertions.assertEquals(1107344942, model.blobNfs().verificationTimer());
- Assertions.assertEquals(998287381, model.blobNfs().writeBackTimer());
- }
-
- @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/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetResourceTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetResourceTests.java
deleted file mode 100644
index 160fcc5d4acb4..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetResourceTests.java
+++ /dev/null
@@ -1,24 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.StorageTargetResource;
-
-public final class StorageTargetResourceTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StorageTargetResource model =
- BinaryData
- .fromString("{\"location\":\"hgwxrtfudx\",\"id\":\"xg\",\"name\":\"qagvrvm\",\"type\":\"pkukghi\"}")
- .toObject(StorageTargetResource.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- StorageTargetResource model = new StorageTargetResource();
- model = BinaryData.fromObject(model).toObject(StorageTargetResource.class);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetSpaceAllocationTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetSpaceAllocationTests.java
deleted file mode 100644
index 8c84f20f2c1be..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetSpaceAllocationTests.java
+++ /dev/null
@@ -1,30 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.StorageTargetSpaceAllocation;
-import org.junit.jupiter.api.Assertions;
-
-public final class StorageTargetSpaceAllocationTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StorageTargetSpaceAllocation model =
- BinaryData
- .fromString("{\"name\":\"tkoievseotgq\",\"allocationPercentage\":1291535699}")
- .toObject(StorageTargetSpaceAllocation.class);
- Assertions.assertEquals("tkoievseotgq", model.name());
- Assertions.assertEquals(1291535699, model.allocationPercentage());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- StorageTargetSpaceAllocation model =
- new StorageTargetSpaceAllocation().withName("tkoievseotgq").withAllocationPercentage(1291535699);
- model = BinaryData.fromObject(model).toObject(StorageTargetSpaceAllocation.class);
- Assertions.assertEquals("tkoievseotgq", model.name());
- Assertions.assertEquals(1291535699, model.allocationPercentage());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsCreateOrUpdateMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsCreateOrUpdateMockTests.java
deleted file mode 100644
index 8023fbd956328..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,118 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.BlobNfsTarget;
-import com.azure.resourcemanager.storagecache.models.ClfsTarget;
-import com.azure.resourcemanager.storagecache.models.Nfs3Target;
-import com.azure.resourcemanager.storagecache.models.OperationalStateType;
-import com.azure.resourcemanager.storagecache.models.StorageTarget;
-import com.azure.resourcemanager.storagecache.models.StorageTargetType;
-import com.azure.resourcemanager.storagecache.models.UnknownTarget;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-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;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"junctions\":[],\"targetType\":\"clfs\",\"provisioningState\":\"Succeeded\",\"state\":\"Flushing\",\"nfs3\":{\"target\":\"fxtsgum\",\"usageModel\":\"glikkxwslolb\",\"verificationTimer\":1224144822,\"writeBackTimer\":845097361},\"clfs\":{\"target\":\"vfelfktgplcrpwj\"},\"unknown\":{\"attributes\":{}},\"blobNfs\":{\"target\":\"igbrnjw\",\"usageModel\":\"kpnb\",\"verificationTimer\":1716189852,\"writeBackTimer\":1901897096},\"allocationPercentage\":1268634918},\"location\":\"kagfhsxtt\",\"id\":\"gzxnfaazpxdtnk\",\"name\":\"mkqjj\",\"type\":\"wuenvr\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- StorageTarget response =
- manager
- .storageTargets()
- .define("gsopbyrqufegxu")
- .withExistingCache("wjygvjayvblmhvk", "uhbxvvy")
- .withJunctions(Arrays.asList())
- .withTargetType(StorageTargetType.CLFS)
- .withState(OperationalStateType.SUSPENDED)
- .withNfs3(
- new Nfs3Target()
- .withTarget("l")
- .withUsageModel("ngitvgbmhrixkwm")
- .withVerificationTimer(1594893264)
- .withWriteBackTimer(2074654020))
- .withClfs(new ClfsTarget().withTarget("grhbpn"))
- .withUnknown(new UnknownTarget().withAttributes(mapOf()))
- .withBlobNfs(
- new BlobNfsTarget()
- .withTarget("ccbdre")
- .withUsageModel("hcexdrrvqa")
- .withVerificationTimer(396764740)
- .withWriteBackTimer(1584778168))
- .create();
-
- Assertions.assertEquals(StorageTargetType.CLFS, response.targetType());
- Assertions.assertEquals(OperationalStateType.FLUSHING, response.state());
- Assertions.assertEquals("fxtsgum", response.nfs3().target());
- Assertions.assertEquals("glikkxwslolb", response.nfs3().usageModel());
- Assertions.assertEquals(1224144822, response.nfs3().verificationTimer());
- Assertions.assertEquals(845097361, response.nfs3().writeBackTimer());
- Assertions.assertEquals("vfelfktgplcrpwj", response.clfs().target());
- Assertions.assertEquals("igbrnjw", response.blobNfs().target());
- Assertions.assertEquals("kpnb", response.blobNfs().usageModel());
- Assertions.assertEquals(1716189852, response.blobNfs().verificationTimer());
- Assertions.assertEquals(1901897096, response.blobNfs().writeBackTimer());
- }
-
- @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/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteMockTests.java
deleted file mode 100644
index f7e98605ffd0d..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteMockTests.java
+++ /dev/null
@@ -1,63 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .storageTargets()
- .delete("lvdnkfx", "semdwzrmu", "apfcqdpsq", "qvpsvuoymg", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDnsRefreshMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDnsRefreshMockTests.java
deleted file mode 100644
index e4a1b9173a8e1..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDnsRefreshMockTests.java
+++ /dev/null
@@ -1,63 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsDnsRefreshMockTests {
- @Test
- public void testDnsRefresh() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager
- .storageTargets()
- .dnsRefresh("hfkvtvsexsowuel", "qhhahhxvrhmzkwpj", "wws", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsGetWithResponseMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsGetWithResponseMockTests.java
deleted file mode 100644
index dfad676cab3df..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,82 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.OperationalStateType;
-import com.azure.resourcemanager.storagecache.models.StorageTarget;
-import com.azure.resourcemanager.storagecache.models.StorageTargetType;
-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;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"properties\":{\"junctions\":[],\"targetType\":\"unknown\",\"provisioningState\":\"Deleting\",\"state\":\"Ready\",\"nfs3\":{\"target\":\"cr\",\"usageModel\":\"bwccsnjvcdwxlpqe\",\"verificationTimer\":426754390,\"writeBackTimer\":839437170},\"clfs\":{\"target\":\"jsyingwfqatm\"},\"unknown\":{\"attributes\":{}},\"blobNfs\":{\"target\":\"dvypgikdgsz\",\"usageModel\":\"kbir\",\"verificationTimer\":574847492,\"writeBackTimer\":1689730147},\"allocationPercentage\":1361399231},\"location\":\"joqrvqqaatj\",\"id\":\"rv\",\"name\":\"oupmfii\",\"type\":\"fggjioolvr\"}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- StorageTarget response =
- manager
- .storageTargets()
- .getWithResponse("celve", "rypqlmfeo", "erqwkyhkobopg", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(StorageTargetType.UNKNOWN, response.targetType());
- Assertions.assertEquals(OperationalStateType.READY, response.state());
- Assertions.assertEquals("cr", response.nfs3().target());
- Assertions.assertEquals("bwccsnjvcdwxlpqe", response.nfs3().usageModel());
- Assertions.assertEquals(426754390, response.nfs3().verificationTimer());
- Assertions.assertEquals(839437170, response.nfs3().writeBackTimer());
- Assertions.assertEquals("jsyingwfqatm", response.clfs().target());
- Assertions.assertEquals("dvypgikdgsz", response.blobNfs().target());
- Assertions.assertEquals("kbir", response.blobNfs().usageModel());
- Assertions.assertEquals(574847492, response.blobNfs().verificationTimer());
- Assertions.assertEquals(1689730147, response.blobNfs().writeBackTimer());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsListByCacheMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsListByCacheMockTests.java
deleted file mode 100644
index 512d6e5620da1..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsListByCacheMockTests.java
+++ /dev/null
@@ -1,80 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.OperationalStateType;
-import com.azure.resourcemanager.storagecache.models.StorageTarget;
-import com.azure.resourcemanager.storagecache.models.StorageTargetType;
-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;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsListByCacheMockTests {
- @Test
- public void testListByCache() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"properties\":{\"junctions\":[],\"targetType\":\"clfs\",\"provisioningState\":\"Deleting\",\"state\":\"Suspended\",\"nfs3\":{\"target\":\"syqtfi\",\"usageModel\":\"hbotzingamvppho\",\"verificationTimer\":1799279870,\"writeBackTimer\":1534302042},\"clfs\":{\"target\":\"hqamvdkf\"},\"unknown\":{\"attributes\":{}},\"blobNfs\":{\"target\":\"vtbvkayh\",\"usageModel\":\"nvyq\",\"verificationTimer\":686807657,\"writeBackTimer\":1548045664},\"allocationPercentage\":887205376},\"location\":\"npwzcjaes\",\"id\":\"v\",\"name\":\"ccyajg\",\"type\":\"qfhwyg\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response =
- manager.storageTargets().listByCache("ughftqsx", "qxujxukndxd", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(StorageTargetType.CLFS, response.iterator().next().targetType());
- Assertions.assertEquals(OperationalStateType.SUSPENDED, response.iterator().next().state());
- Assertions.assertEquals("syqtfi", response.iterator().next().nfs3().target());
- Assertions.assertEquals("hbotzingamvppho", response.iterator().next().nfs3().usageModel());
- Assertions.assertEquals(1799279870, response.iterator().next().nfs3().verificationTimer());
- Assertions.assertEquals(1534302042, response.iterator().next().nfs3().writeBackTimer());
- Assertions.assertEquals("hqamvdkf", response.iterator().next().clfs().target());
- Assertions.assertEquals("vtbvkayh", response.iterator().next().blobNfs().target());
- Assertions.assertEquals("nvyq", response.iterator().next().blobNfs().usageModel());
- Assertions.assertEquals(686807657, response.iterator().next().blobNfs().verificationTimer());
- Assertions.assertEquals(1548045664, response.iterator().next().blobNfs().writeBackTimer());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsRestoreDefaultsMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsRestoreDefaultsMockTests.java
deleted file mode 100644
index 43d5598cbc070..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsRestoreDefaultsMockTests.java
+++ /dev/null
@@ -1,61 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsRestoreDefaultsMockTests {
- @Test
- public void testRestoreDefaults() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr = "{}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.storageTargets().restoreDefaults("x", "v", "kkgll", com.azure.core.util.Context.NONE);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsResultTests.java
deleted file mode 100644
index 199175bce87a3..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsResultTests.java
+++ /dev/null
@@ -1,53 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.StorageTargetInner;
-import com.azure.resourcemanager.storagecache.models.OperationalStateType;
-import com.azure.resourcemanager.storagecache.models.StorageTargetType;
-import com.azure.resourcemanager.storagecache.models.StorageTargetsResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class StorageTargetsResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StorageTargetsResult model =
- BinaryData
- .fromString(
- "{\"nextLink\":\"cjefuzmu\",\"value\":[{\"properties\":{\"junctions\":[],\"targetType\":\"nfs3\",\"provisioningState\":\"Canceled\",\"state\":\"Ready\",\"allocationPercentage\":964392835},\"location\":\"zbtbhj\",\"id\":\"lkfg\",\"name\":\"hdneuelfph\",\"type\":\"dyhtozfikdowwquu\"},{\"properties\":{\"junctions\":[],\"targetType\":\"clfs\",\"provisioningState\":\"Succeeded\",\"state\":\"Busy\",\"allocationPercentage\":176578322},\"location\":\"osggbhc\",\"id\":\"fwdsj\",\"name\":\"ka\",\"type\":\"jutiiswacff\"},{\"properties\":{\"junctions\":[],\"targetType\":\"blobNfs\",\"provisioningState\":\"Failed\",\"state\":\"Flushing\",\"allocationPercentage\":875285248},\"location\":\"ilvpnppfuflrwd\",\"id\":\"dlxyjrxs\",\"name\":\"gafcnihgwqapnedg\",\"type\":\"bcvkcvqvpkeq\"}]}")
- .toObject(StorageTargetsResult.class);
- Assertions.assertEquals("cjefuzmu", model.nextLink());
- Assertions.assertEquals(StorageTargetType.NFS3, model.value().get(0).targetType());
- Assertions.assertEquals(OperationalStateType.READY, model.value().get(0).state());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- StorageTargetsResult model =
- new StorageTargetsResult()
- .withNextLink("cjefuzmu")
- .withValue(
- Arrays
- .asList(
- new StorageTargetInner()
- .withJunctions(Arrays.asList())
- .withTargetType(StorageTargetType.NFS3)
- .withState(OperationalStateType.READY),
- new StorageTargetInner()
- .withJunctions(Arrays.asList())
- .withTargetType(StorageTargetType.CLFS)
- .withState(OperationalStateType.BUSY),
- new StorageTargetInner()
- .withJunctions(Arrays.asList())
- .withTargetType(StorageTargetType.BLOB_NFS)
- .withState(OperationalStateType.FLUSHING)));
- model = BinaryData.fromObject(model).toObject(StorageTargetsResult.class);
- Assertions.assertEquals("cjefuzmu", model.nextLink());
- Assertions.assertEquals(StorageTargetType.NFS3, model.value().get(0).targetType());
- Assertions.assertEquals(OperationalStateType.READY, model.value().get(0).state());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UnknownTargetTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UnknownTargetTests.java
deleted file mode 100644
index 192f1aa974136..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UnknownTargetTests.java
+++ /dev/null
@@ -1,44 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.UnknownTarget;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class UnknownTargetTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UnknownTarget model =
- BinaryData
- .fromString(
- "{\"attributes\":{\"lla\":\"gxk\",\"z\":\"melwuipiccjz\",\"vvcnayr\":\"v\",\"rdvstkwqqtch\":\"yrnxxmueedn\"}}")
- .toObject(UnknownTarget.class);
- Assertions.assertEquals("gxk", model.attributes().get("lla"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UnknownTarget model =
- new UnknownTarget()
- .withAttributes(
- mapOf("lla", "gxk", "z", "melwuipiccjz", "vvcnayr", "v", "rdvstkwqqtch", "yrnxxmueedn"));
- model = BinaryData.fromObject(model).toObject(UnknownTarget.class);
- Assertions.assertEquals("gxk", model.attributes().get("lla"));
- }
-
- @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/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelDisplayTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelDisplayTests.java
deleted file mode 100644
index 71c6fab52bfaa..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelDisplayTests.java
+++ /dev/null
@@ -1,24 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.UsageModelDisplay;
-import org.junit.jupiter.api.Assertions;
-
-public final class UsageModelDisplayTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UsageModelDisplay model = BinaryData.fromString("{\"description\":\"w\"}").toObject(UsageModelDisplay.class);
- Assertions.assertEquals("w", model.description());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UsageModelDisplay model = new UsageModelDisplay().withDescription("w");
- model = BinaryData.fromObject(model).toObject(UsageModelDisplay.class);
- Assertions.assertEquals("w", model.description());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelInnerTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelInnerTests.java
deleted file mode 100644
index a55659bf44f44..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelInnerTests.java
+++ /dev/null
@@ -1,37 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.UsageModelInner;
-import com.azure.resourcemanager.storagecache.models.UsageModelDisplay;
-import org.junit.jupiter.api.Assertions;
-
-public final class UsageModelInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UsageModelInner model =
- BinaryData
- .fromString(
- "{\"display\":{\"description\":\"yp\"},\"modelName\":\"bpizcdrqjsdpydn\",\"targetType\":\"hxdeoejz\"}")
- .toObject(UsageModelInner.class);
- Assertions.assertEquals("yp", model.display().description());
- Assertions.assertEquals("bpizcdrqjsdpydn", model.modelName());
- Assertions.assertEquals("hxdeoejz", model.targetType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UsageModelInner model =
- new UsageModelInner()
- .withDisplay(new UsageModelDisplay().withDescription("yp"))
- .withModelName("bpizcdrqjsdpydn")
- .withTargetType("hxdeoejz");
- model = BinaryData.fromObject(model).toObject(UsageModelInner.class);
- Assertions.assertEquals("yp", model.display().description());
- Assertions.assertEquals("bpizcdrqjsdpydn", model.modelName());
- Assertions.assertEquals("hxdeoejz", model.targetType());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelsListMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelsListMockTests.java
deleted file mode 100644
index 5672216b2c5b4..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelsListMockTests.java
+++ /dev/null
@@ -1,69 +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.storagecache.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpHeaders;
-import com.azure.core.http.HttpRequest;
-import com.azure.core.http.HttpResponse;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.UsageModel;
-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;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-public final class UsageModelsListMockTests {
- @Test
- public void testList() throws Exception {
- HttpClient httpClient = Mockito.mock(HttpClient.class);
- HttpResponse httpResponse = Mockito.mock(HttpResponse.class);
- ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class);
-
- String responseStr =
- "{\"value\":[{\"display\":{\"description\":\"u\"},\"modelName\":\"jmqlgkfb\",\"targetType\":\"doaon\"}]}";
-
- Mockito.when(httpResponse.getStatusCode()).thenReturn(200);
- Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders());
- Mockito
- .when(httpResponse.getBody())
- .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8))));
- Mockito
- .when(httpResponse.getBodyAsByteArray())
- .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8)));
- Mockito
- .when(httpClient.send(httpRequest.capture(), Mockito.any()))
- .thenReturn(
- Mono
- .defer(
- () -> {
- Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue());
- return Mono.just(httpResponse);
- }));
-
- StorageCacheManager manager =
- StorageCacheManager
- .configure()
- .withHttpClient(httpClient)
- .authenticate(
- tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.usageModels().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("u", response.iterator().next().display().description());
- Assertions.assertEquals("jmqlgkfb", response.iterator().next().modelName());
- Assertions.assertEquals("doaon", response.iterator().next().targetType());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelsResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelsResultTests.java
deleted file mode 100644
index c1c12ecfff31e..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelsResultTests.java
+++ /dev/null
@@ -1,58 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.UsageModelInner;
-import com.azure.resourcemanager.storagecache.models.UsageModelDisplay;
-import com.azure.resourcemanager.storagecache.models.UsageModelsResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class UsageModelsResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UsageModelsResult model =
- BinaryData
- .fromString(
- "{\"nextLink\":\"clhocohsl\",\"value\":[{\"display\":{\"description\":\"ggzfbu\"},\"modelName\":\"mvfaxkffeiith\",\"targetType\":\"m\"},{\"display\":{\"description\":\"v\"},\"modelName\":\"xmzsbbzogg\",\"targetType\":\"rxwburv\"},{\"display\":{\"description\":\"jnspydp\"},\"modelName\":\"oenkouknvudwti\",\"targetType\":\"bldngkpoc\"},{\"display\":{\"description\":\"z\"},\"modelName\":\"o\",\"targetType\":\"ukgjnpiucgygevq\"}]}")
- .toObject(UsageModelsResult.class);
- Assertions.assertEquals("clhocohsl", model.nextLink());
- Assertions.assertEquals("ggzfbu", model.value().get(0).display().description());
- Assertions.assertEquals("mvfaxkffeiith", model.value().get(0).modelName());
- Assertions.assertEquals("m", model.value().get(0).targetType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UsageModelsResult model =
- new UsageModelsResult()
- .withNextLink("clhocohsl")
- .withValue(
- Arrays
- .asList(
- new UsageModelInner()
- .withDisplay(new UsageModelDisplay().withDescription("ggzfbu"))
- .withModelName("mvfaxkffeiith")
- .withTargetType("m"),
- new UsageModelInner()
- .withDisplay(new UsageModelDisplay().withDescription("v"))
- .withModelName("xmzsbbzogg")
- .withTargetType("rxwburv"),
- new UsageModelInner()
- .withDisplay(new UsageModelDisplay().withDescription("jnspydp"))
- .withModelName("oenkouknvudwti")
- .withTargetType("bldngkpoc"),
- new UsageModelInner()
- .withDisplay(new UsageModelDisplay().withDescription("z"))
- .withModelName("o")
- .withTargetType("ukgjnpiucgygevq")));
- model = BinaryData.fromObject(model).toObject(UsageModelsResult.class);
- Assertions.assertEquals("clhocohsl", model.nextLink());
- Assertions.assertEquals("ggzfbu", model.value().get(0).display().description());
- Assertions.assertEquals("mvfaxkffeiith", model.value().get(0).modelName());
- Assertions.assertEquals("m", model.value().get(0).targetType());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueAutoGeneratedTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueAutoGeneratedTests.java
deleted file mode 100644
index 7c4676d6350be..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueAutoGeneratedTests.java
+++ /dev/null
@@ -1,24 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.UserAssignedIdentitiesValueAutoGenerated;
-
-public final class UserAssignedIdentitiesValueAutoGeneratedTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UserAssignedIdentitiesValueAutoGenerated model =
- BinaryData
- .fromString("{\"principalId\":\"mxiebw\",\"clientId\":\"loayqcgw\"}")
- .toObject(UserAssignedIdentitiesValueAutoGenerated.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UserAssignedIdentitiesValueAutoGenerated model = new UserAssignedIdentitiesValueAutoGenerated();
- model = BinaryData.fromObject(model).toObject(UserAssignedIdentitiesValueAutoGenerated.class);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueTests.java
deleted file mode 100644
index a4ddb27e31feb..0000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueTests.java
+++ /dev/null
@@ -1,24 +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.storagecache.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.UserAssignedIdentitiesValue;
-
-public final class UserAssignedIdentitiesValueTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UserAssignedIdentitiesValue model =
- BinaryData
- .fromString("{\"principalId\":\"oc\",\"clientId\":\"eablg\"}")
- .toObject(UserAssignedIdentitiesValue.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UserAssignedIdentitiesValue model = new UserAssignedIdentitiesValue();
- model = BinaryData.fromObject(model).toObject(UserAssignedIdentitiesValue.class);
- }
-}