diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md b/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md
index bd4961c53718..c12cbe02ea03 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md
@@ -1,14 +1,52 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2025-01-21)
+
+- 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-2024-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
-### Breaking Changes
+* `models.AutoExportJob$Update` was added
-### Bugs Fixed
+* `models.AutoExportJobUpdate` was added
-### Other Changes
+* `models.AutoExportStatusType` was added
+
+* `models.AutoExportJob$UpdateStages` was added
+
+* `models.ImportJobAdminStatus` was added
+
+* `models.AutoExportJob$Definition` was added
+
+* `models.AutoExportJob` was added
+
+* `models.AutoExportJobAdminStatus` was added
+
+* `models.AutoExportJobProvisioningStateType` was added
+
+* `models.AutoExportJob$DefinitionStages` was added
+
+* `models.AutoExportJobs` was added
+
+* `models.AutoExportJobsListResult` was added
+
+#### `models.ImportJob` was modified
+
+* `adminStatus()` was added
+* `importedSymlinks()` was added
+* `preexistingFiles()` was added
+* `importedFiles()` was added
+* `preexistingDirectories()` was added
+* `importedDirectories()` was added
+* `preexistingSymlinks()` was added
+
+#### `models.ImportJob$Definition` was modified
+
+* `withAdminStatus(models.ImportJobAdminStatus)` was added
+
+#### `StorageCacheManager` was modified
+
+* `autoExportJobs()` was added
## 1.0.0 (2024-12-23)
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/README.md b/sdk/storagecache/azure-resourcemanager-storagecache/README.md
index 7daf0fbd0a5f..65bfa27c9da6 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/README.md
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/README.md
@@ -2,7 +2,7 @@
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-2024-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for 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-2024-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-storagecache
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md b/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md
index 818aa4965b3c..0788b15a2efa 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md
@@ -20,6 +20,14 @@
- [List](#ascusages_list)
+## AutoExportJobs
+
+- [CreateOrUpdate](#autoexportjobs_createorupdate)
+- [Delete](#autoexportjobs_delete)
+- [Get](#autoexportjobs_get)
+- [ListByAmlFilesystem](#autoexportjobs_listbyamlfilesystem)
+- [Update](#autoexportjobs_update)
+
## Caches
- [CreateOrUpdate](#caches_createorupdate)
@@ -90,7 +98,7 @@ import com.azure.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo;
public final class AmlFilesystemsArchiveSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_Archive.json
*/
/**
@@ -115,7 +123,7 @@ public final class AmlFilesystemsArchiveSamples {
public final class AmlFilesystemsCancelArchiveSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_CancelArchive.json
*/
/**
@@ -155,7 +163,7 @@ import java.util.Map;
public final class AmlFilesystemsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_CreateOrUpdate.json
*/
/**
@@ -221,7 +229,7 @@ public final class AmlFilesystemsCreateOrUpdateSamples {
public final class AmlFilesystemsDeleteSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_Delete.json
*/
/**
@@ -244,7 +252,7 @@ public final class AmlFilesystemsDeleteSamples {
public final class AmlFilesystemsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/amlFilesystems_Get.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/amlFilesystems_Get.
* json
*/
/**
@@ -267,7 +275,7 @@ public final class AmlFilesystemsGetByResourceGroupSamples {
public final class AmlFilesystemsListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/amlFilesystems_List
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/amlFilesystems_List
* .json
*/
/**
@@ -290,7 +298,7 @@ public final class AmlFilesystemsListSamples {
public final class AmlFilesystemsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_ListByResourceGroup.json
*/
/**
@@ -325,7 +333,7 @@ import java.util.Map;
public final class AmlFilesystemsUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_Update.json
*/
/**
@@ -376,7 +384,7 @@ public final class AmlFilesystemsUpdateSamples {
public final class AscOperationsGetSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/AscOperations_Get.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/AscOperations_Get.
* json
*/
/**
@@ -399,7 +407,7 @@ public final class AscOperationsGetSamples {
public final class AscUsagesListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* AscResourceUsages_Get.json
*/
/**
@@ -413,6 +421,164 @@ public final class AscUsagesListSamples {
}
```
+### AutoExportJobs_CreateOrUpdate
+
+```java
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AutoExportJobs CreateOrUpdate.
+ */
+public final class AutoExportJobsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
+ * autoExportJobs_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: autoExportJobs_CreateOrUpdate.
+ *
+ * @param manager Entry point to StorageCacheManager.
+ */
+ public static void
+ autoExportJobsCreateOrUpdate(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
+ manager.autoExportJobs()
+ .define("job1")
+ .withRegion("eastus")
+ .withExistingAmlFilesystem("scgroup", "fs1")
+ .withTags(mapOf("Dept", "ContosoAds"))
+ .withAutoExportPrefixes(Arrays.asList("/"))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @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;
+ }
+}
+```
+
+### AutoExportJobs_Delete
+
+```java
+/**
+ * Samples for AutoExportJobs Delete.
+ */
+public final class AutoExportJobsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
+ * autoExportJobs_Delete.json
+ */
+ /**
+ * Sample code: autoExportJobs_Delete.
+ *
+ * @param manager Entry point to StorageCacheManager.
+ */
+ public static void autoExportJobsDelete(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
+ manager.autoExportJobs().delete("scgroup", "fs1", "job1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AutoExportJobs_Get
+
+```java
+/**
+ * Samples for AutoExportJobs Get.
+ */
+public final class AutoExportJobsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/autoExportJobs_Get.
+ * json
+ */
+ /**
+ * Sample code: autoExportJobs_Get.
+ *
+ * @param manager Entry point to StorageCacheManager.
+ */
+ public static void autoExportJobsGet(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
+ manager.autoExportJobs().getWithResponse("scgroup", "fs1", "job1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AutoExportJobs_ListByAmlFilesystem
+
+```java
+/**
+ * Samples for AutoExportJobs ListByAmlFilesystem.
+ */
+public final class AutoExportJobsListByAmlFilesystemSamples {
+ /*
+ * x-ms-original-file:
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
+ * autoExportJobs_ListByAmlFilesystem.json
+ */
+ /**
+ * Sample code: autoExportJobs_ListByAmlFilesystem.
+ *
+ * @param manager Entry point to StorageCacheManager.
+ */
+ public static void
+ autoExportJobsListByAmlFilesystem(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
+ manager.autoExportJobs().listByAmlFilesystem("scgroup", "fs1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AutoExportJobs_Update
+
+```java
+import com.azure.resourcemanager.storagecache.models.AutoExportJob;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AutoExportJobs Update.
+ */
+public final class AutoExportJobsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
+ * autoExportJobs_Update.json
+ */
+ /**
+ * Sample code: autoExportJobs_Update.
+ *
+ * @param manager Entry point to StorageCacheManager.
+ */
+ public static void autoExportJobsUpdate(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
+ AutoExportJob resource = manager.autoExportJobs()
+ .getWithResponse("scgroup", "fs1", "job1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("Dept", "ContosoAds")).apply();
+ }
+
+ // Use "Map.of" if available
+ @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;
+ }
+}
+```
+
### Caches_CreateOrUpdate
```java
@@ -446,7 +612,7 @@ import java.util.Map;
public final class CachesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* Caches_CreateOrUpdate_ldap_only.json
*/
/**
@@ -491,7 +657,7 @@ public final class CachesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* Caches_CreateOrUpdate.json
*/
/**
@@ -567,7 +733,7 @@ public final class CachesCreateOrUpdateSamples {
public final class CachesDebugInfoSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_DebugInfo.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_DebugInfo.
* json
*/
/**
@@ -590,7 +756,7 @@ public final class CachesDebugInfoSamples {
public final class CachesDeleteSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Delete.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Delete.json
*/
/**
* Sample code: Caches_Delete.
@@ -612,7 +778,7 @@ public final class CachesDeleteSamples {
public final class CachesFlushSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Flush.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Flush.json
*/
/**
* Sample code: Caches_Flush.
@@ -634,7 +800,7 @@ public final class CachesFlushSamples {
public final class CachesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Get.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Get.json
*/
/**
* Sample code: Caches_Get.
@@ -656,7 +822,7 @@ public final class CachesGetByResourceGroupSamples {
public final class CachesListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_List.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_List.json
*/
/**
* Sample code: Caches_List.
@@ -678,7 +844,7 @@ public final class CachesListSamples {
public final class CachesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* Caches_ListByResourceGroup.json
*/
/**
@@ -703,7 +869,7 @@ import com.azure.resourcemanager.storagecache.models.PrimingJobIdParameter;
public final class CachesPausePrimingJobSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/PausePrimingJob.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/PausePrimingJob.
* json
*/
/**
@@ -730,7 +896,7 @@ import com.azure.resourcemanager.storagecache.models.PrimingJobIdParameter;
public final class CachesResumePrimingJobSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/ResumePrimingJob.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/ResumePrimingJob.
* json
*/
/**
@@ -758,7 +924,7 @@ import java.util.Arrays;
public final class CachesSpaceAllocationSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* SpaceAllocation_Post.json
*/
/**
@@ -786,7 +952,7 @@ public final class CachesSpaceAllocationSamples {
public final class CachesStartSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Start.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Start.json
*/
/**
* Sample code: Caches_Start.
@@ -810,7 +976,7 @@ import com.azure.resourcemanager.storagecache.models.PrimingJob;
public final class CachesStartPrimingJobSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/StartPrimingJob.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/StartPrimingJob.
* json
*/
/**
@@ -837,7 +1003,7 @@ public final class CachesStartPrimingJobSamples {
public final class CachesStopSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Stop.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Stop.json
*/
/**
* Sample code: Caches_Stop.
@@ -861,7 +1027,7 @@ import com.azure.resourcemanager.storagecache.models.PrimingJobIdParameter;
public final class CachesStopPrimingJobSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/StopPrimingJob.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/StopPrimingJob.json
*/
/**
* Sample code: StopPrimingJob.
@@ -903,7 +1069,7 @@ import java.util.Map;
public final class CachesUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* Caches_Update_ldap_only.json
*/
/**
@@ -964,7 +1130,7 @@ public final class CachesUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Update.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Update.json
*/
/**
* Sample code: Caches_Update.
@@ -1045,7 +1211,7 @@ public final class CachesUpdateSamples {
public final class CachesUpgradeFirmwareSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* Caches_UpgradeFirmware.json
*/
/**
@@ -1073,7 +1239,7 @@ import java.util.Map;
public final class ImportJobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* importJobs_CreateOrUpdate.json
*/
/**
@@ -1116,7 +1282,7 @@ public final class ImportJobsCreateOrUpdateSamples {
public final class ImportJobsDeleteSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/importJobs_Delete.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/importJobs_Delete.
* json
*/
/**
@@ -1139,7 +1305,7 @@ public final class ImportJobsDeleteSamples {
public final class ImportJobsGetSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/importJobs_Get.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/importJobs_Get.json
*/
/**
* Sample code: importJobs_Get.
@@ -1161,7 +1327,7 @@ public final class ImportJobsGetSamples {
public final class ImportJobsListByAmlFilesystemSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* importJobs_ListByAmlFilesystem.json
*/
/**
@@ -1189,7 +1355,7 @@ import java.util.Map;
public final class ImportJobsUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/importJob_Update.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/importJob_Update.
* json
*/
/**
@@ -1227,7 +1393,7 @@ public final class ImportJobsUpdateSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Operations_List.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Operations_List.
* json
*/
/**
@@ -1253,7 +1419,7 @@ import com.azure.resourcemanager.storagecache.models.SkuName;
public final class ResourceProviderCheckAmlFSSubnetsSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/checkAmlFSSubnets.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/checkAmlFSSubnets.
* json
*/
/**
@@ -1281,7 +1447,7 @@ public final class ResourceProviderCheckAmlFSSubnetsSamples {
public final class ResourceProviderGetRequiredAmlFSSubnetsSizeSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* getRequiredAmlFSSubnetsSize.json
*/
/**
@@ -1305,7 +1471,7 @@ public final class ResourceProviderGetRequiredAmlFSSubnetsSizeSamples {
public final class SkusListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Skus_List.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Skus_List.json
*/
/**
* Sample code: Skus_List.
@@ -1327,7 +1493,7 @@ public final class SkusListSamples {
public final class StorageTargetOperationFlushSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_Flush.json
*/
/**
@@ -1350,7 +1516,7 @@ public final class StorageTargetOperationFlushSamples {
public final class StorageTargetOperationInvalidateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_Invalidate.json
*/
/**
@@ -1373,7 +1539,7 @@ public final class StorageTargetOperationInvalidateSamples {
public final class StorageTargetOperationResumeSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_Resume.json
*/
/**
@@ -1396,7 +1562,7 @@ public final class StorageTargetOperationResumeSamples {
public final class StorageTargetOperationSuspendSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_Suspend.json
*/
/**
@@ -1425,7 +1591,7 @@ import java.util.Arrays;
public final class StorageTargetsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_CreateOrUpdate.json
*/
/**
@@ -1454,7 +1620,7 @@ public final class StorageTargetsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_CreateOrUpdate_BlobNfs.json
*/
/**
@@ -1479,7 +1645,7 @@ public final class StorageTargetsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_CreateOrUpdate_NoJunctions.json
*/
/**
@@ -1508,7 +1674,7 @@ public final class StorageTargetsCreateOrUpdateSamples {
public final class StorageTargetsDeleteSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_Delete.json
*/
/**
@@ -1531,7 +1697,7 @@ public final class StorageTargetsDeleteSamples {
public final class StorageTargetsDnsRefreshSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_DnsRefresh.json
*/
/**
@@ -1554,7 +1720,7 @@ public final class StorageTargetsDnsRefreshSamples {
public final class StorageTargetsGetSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/StorageTargets_Get.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/StorageTargets_Get.
* json
*/
/**
@@ -1577,7 +1743,7 @@ public final class StorageTargetsGetSamples {
public final class StorageTargetsListByCacheSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_ListByCache.json
*/
/**
@@ -1600,7 +1766,7 @@ public final class StorageTargetsListByCacheSamples {
public final class StorageTargetsRestoreDefaultsSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_RestoreDefaults.json
*/
/**
@@ -1624,7 +1790,7 @@ public final class StorageTargetsRestoreDefaultsSamples {
public final class UsageModelsListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/UsageModels_List.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/UsageModels_List.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/pom.xml b/sdk/storagecache/azure-resourcemanager-storagecache/pom.xml
index c73e1567e85c..7894c42396b9 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/pom.xml
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for StorageCache Management
- This package contains Microsoft Azure SDK for StorageCache Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. 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-2024-03.
+ This package contains Microsoft Azure SDK for StorageCache Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. 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-2024-07.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
false
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 e598b25b8203..ee8b0d2eb54e 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
@@ -27,6 +27,7 @@
import com.azure.resourcemanager.storagecache.implementation.AmlFilesystemsImpl;
import com.azure.resourcemanager.storagecache.implementation.AscOperationsImpl;
import com.azure.resourcemanager.storagecache.implementation.AscUsagesImpl;
+import com.azure.resourcemanager.storagecache.implementation.AutoExportJobsImpl;
import com.azure.resourcemanager.storagecache.implementation.CachesImpl;
import com.azure.resourcemanager.storagecache.implementation.ImportJobsImpl;
import com.azure.resourcemanager.storagecache.implementation.OperationsImpl;
@@ -39,6 +40,7 @@
import com.azure.resourcemanager.storagecache.models.AmlFilesystems;
import com.azure.resourcemanager.storagecache.models.AscOperations;
import com.azure.resourcemanager.storagecache.models.AscUsages;
+import com.azure.resourcemanager.storagecache.models.AutoExportJobs;
import com.azure.resourcemanager.storagecache.models.Caches;
import com.azure.resourcemanager.storagecache.models.ImportJobs;
import com.azure.resourcemanager.storagecache.models.Operations;
@@ -62,6 +64,8 @@
public final class StorageCacheManager {
private AmlFilesystems amlFilesystems;
+ private AutoExportJobs autoExportJobs;
+
private ImportJobs importJobs;
private ResourceProviders resourceProviders;
@@ -246,7 +250,7 @@ public StorageCacheManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.storagecache")
.append("/")
- .append("1.0.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -304,6 +308,18 @@ public AmlFilesystems amlFilesystems() {
return amlFilesystems;
}
+ /**
+ * Gets the resource collection API of AutoExportJobs. It manages AutoExportJob.
+ *
+ * @return Resource collection API of AutoExportJobs.
+ */
+ public AutoExportJobs autoExportJobs() {
+ if (this.autoExportJobs == null) {
+ this.autoExportJobs = new AutoExportJobsImpl(clientObject.getAutoExportJobs(), this);
+ }
+ return autoExportJobs;
+ }
+
/**
* Gets the resource collection API of ImportJobs. It manages ImportJob.
*
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AutoExportJobsClient.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AutoExportJobsClient.java
new file mode 100644
index 000000000000..71d3a6a7b5f0
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AutoExportJobsClient.java
@@ -0,0 +1,306 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.storagecache.fluent.models.AutoExportJobInner;
+import com.azure.resourcemanager.storagecache.models.AutoExportJobUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in AutoExportJobsClient.
+ */
+public interface AutoExportJobsClient {
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName);
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, Context context);
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String amlFilesystemName, String autoExportJobName);
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String amlFilesystemName, String autoExportJobName, Context context);
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, Context context);
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AutoExportJobInner get(String resourceGroupName, String amlFilesystemName, String autoExportJobName);
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AutoExportJobInner> beginCreateOrUpdate(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobInner autoExportJob);
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AutoExportJobInner> beginCreateOrUpdate(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobInner autoExportJob, Context context);
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AutoExportJobInner createOrUpdate(String resourceGroupName, String amlFilesystemName, String autoExportJobName,
+ AutoExportJobInner autoExportJob);
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AutoExportJobInner createOrUpdate(String resourceGroupName, String amlFilesystemName, String autoExportJobName,
+ AutoExportJobInner autoExportJob, Context context);
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AutoExportJobInner> beginUpdate(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobUpdate autoExportJob);
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AutoExportJobInner> beginUpdate(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobUpdate autoExportJob, Context context);
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AutoExportJobInner update(String resourceGroupName, String amlFilesystemName, String autoExportJobName,
+ AutoExportJobUpdate autoExportJob);
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AutoExportJobInner update(String resourceGroupName, String amlFilesystemName, String autoExportJobName,
+ AutoExportJobUpdate autoExportJob, Context context);
+
+ /**
+ * Returns all the auto export jobs the user has access to under an AML File System.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAmlFilesystem(String resourceGroupName, String amlFilesystemName);
+
+ /**
+ * Returns all the auto export jobs the user has access to under an AML File System.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAmlFilesystem(String resourceGroupName, String amlFilesystemName,
+ Context context);
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/ImportJobsClient.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/ImportJobsClient.java
index 0942835ca2a7..7e7b2434feee 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/ImportJobsClient.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/ImportJobsClient.java
@@ -119,7 +119,7 @@ Response getWithResponse(String resourceGroupName, String amlFil
ImportJobInner get(String resourceGroupName, String amlFilesystemName, String importJobName);
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -138,7 +138,7 @@ SyncPoller, ImportJobInner> beginCreateOrUpdate(Strin
String amlFilesystemName, String importJobName, ImportJobInner importJob);
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -158,7 +158,7 @@ SyncPoller, ImportJobInner> beginCreateOrUpdate(Strin
String amlFilesystemName, String importJobName, ImportJobInner importJob, Context context);
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -177,7 +177,7 @@ ImportJobInner createOrUpdate(String resourceGroupName, String amlFilesystemName
ImportJobInner importJob);
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageCacheManagementClient.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageCacheManagementClient.java
index c5dddffa1ab3..019d8adcbdd0 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageCacheManagementClient.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageCacheManagementClient.java
@@ -53,6 +53,13 @@ public interface StorageCacheManagementClient {
*/
AmlFilesystemsClient getAmlFilesystems();
+ /**
+ * Gets the AutoExportJobsClient object to access its operations.
+ *
+ * @return the AutoExportJobsClient object.
+ */
+ AutoExportJobsClient getAutoExportJobs();
+
/**
* Gets the ImportJobsClient object to access its operations.
*
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AutoExportJobInner.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AutoExportJobInner.java
new file mode 100644
index 000000000000..a9d8a3596d9b
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AutoExportJobInner.java
@@ -0,0 +1,393 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.storagecache.models.AutoExportJobAdminStatus;
+import com.azure.resourcemanager.storagecache.models.AutoExportJobProvisioningStateType;
+import com.azure.resourcemanager.storagecache.models.AutoExportStatusType;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * An auto export job instance. Follows Azure Resource Manager standards:
+ * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md.
+ */
+@Fluent
+public final class AutoExportJobInner extends Resource {
+ /*
+ * Properties of the auto export job.
+ */
+ private AutoExportJobProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of AutoExportJobInner class.
+ */
+ public AutoExportJobInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties of the auto export job.
+ *
+ * @return the innerProperties value.
+ */
+ private AutoExportJobProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AutoExportJobInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AutoExportJobInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: ARM provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public AutoExportJobProvisioningStateType provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the adminStatus property: The administrative status of the auto export job. Possible values: 'Enable',
+ * 'Disable'. Passing in a value of 'Disable' will disable the current active auto export job. By default it is set
+ * to 'Enable'.
+ *
+ * @return the adminStatus value.
+ */
+ public AutoExportJobAdminStatus adminStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().adminStatus();
+ }
+
+ /**
+ * Set the adminStatus property: The administrative status of the auto export job. Possible values: 'Enable',
+ * 'Disable'. Passing in a value of 'Disable' will disable the current active auto export job. By default it is set
+ * to 'Enable'.
+ *
+ * @param adminStatus the adminStatus value to set.
+ * @return the AutoExportJobInner object itself.
+ */
+ public AutoExportJobInner withAdminStatus(AutoExportJobAdminStatus adminStatus) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AutoExportJobProperties();
+ }
+ this.innerProperties().withAdminStatus(adminStatus);
+ return this;
+ }
+
+ /**
+ * Get the autoExportPrefixes property: An array of blob paths/prefixes that get auto exported to the cluster
+ * namespace. It has '/' as the default value. Number of maximum allowed paths for now is 1.
+ *
+ * @return the autoExportPrefixes value.
+ */
+ public List autoExportPrefixes() {
+ return this.innerProperties() == null ? null : this.innerProperties().autoExportPrefixes();
+ }
+
+ /**
+ * Set the autoExportPrefixes property: An array of blob paths/prefixes that get auto exported to the cluster
+ * namespace. It has '/' as the default value. Number of maximum allowed paths for now is 1.
+ *
+ * @param autoExportPrefixes the autoExportPrefixes value to set.
+ * @return the AutoExportJobInner object itself.
+ */
+ public AutoExportJobInner withAutoExportPrefixes(List autoExportPrefixes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AutoExportJobProperties();
+ }
+ this.innerProperties().withAutoExportPrefixes(autoExportPrefixes);
+ return this;
+ }
+
+ /**
+ * Get the state property: The operational state of auto export. InProgress indicates the export is running.
+ * Disabling indicates the user has requested to disable the export but the disabling is still in progress. Disabled
+ * indicates auto export has been disabled. DisableFailed indicates the disabling has failed. Failed means the
+ * export was unable to continue, due to a fatal error.
+ *
+ * @return the state value.
+ */
+ public AutoExportStatusType state() {
+ return this.innerProperties() == null ? null : this.innerProperties().state();
+ }
+
+ /**
+ * Get the statusCode property: Server-defined status code for auto export job.
+ *
+ * @return the statusCode value.
+ */
+ public String statusCode() {
+ return this.innerProperties() == null ? null : this.innerProperties().statusCode();
+ }
+
+ /**
+ * Get the statusMessage property: Server-defined status message for auto export job.
+ *
+ * @return the statusMessage value.
+ */
+ public String statusMessage() {
+ return this.innerProperties() == null ? null : this.innerProperties().statusMessage();
+ }
+
+ /**
+ * Get the totalFilesExported property: Total files exported since the start of the export. This is accumulative,
+ * some files may be counted repeatedly.
+ *
+ * @return the totalFilesExported value.
+ */
+ public Long totalFilesExported() {
+ return this.innerProperties() == null ? null : this.innerProperties().totalFilesExported();
+ }
+
+ /**
+ * Get the totalMiBExported property: Total data (in MiB) exported since the start of the export. This is
+ * accumulative, some files may be counted repeatedly.
+ *
+ * @return the totalMiBExported value.
+ */
+ public Long totalMiBExported() {
+ return this.innerProperties() == null ? null : this.innerProperties().totalMiBExported();
+ }
+
+ /**
+ * Get the totalFilesFailed property: Total files failed to be export since the last successfully completed
+ * iteration. This is accumulative, some files may be counted repeatedly.
+ *
+ * @return the totalFilesFailed value.
+ */
+ public Long totalFilesFailed() {
+ return this.innerProperties() == null ? null : this.innerProperties().totalFilesFailed();
+ }
+
+ /**
+ * Get the exportIterationCount property: Number of iterations completed since the start of the export.
+ *
+ * @return the exportIterationCount value.
+ */
+ public Integer exportIterationCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().exportIterationCount();
+ }
+
+ /**
+ * Get the lastSuccessfulIterationCompletionTimeUtc property: Time (in UTC) of the last successfully completed
+ * export iteration. Look at logging container for details.
+ *
+ * @return the lastSuccessfulIterationCompletionTimeUtc value.
+ */
+ public OffsetDateTime lastSuccessfulIterationCompletionTimeUtc() {
+ return this.innerProperties() == null
+ ? null
+ : this.innerProperties().lastSuccessfulIterationCompletionTimeUtc();
+ }
+
+ /**
+ * Get the currentIterationFilesDiscovered property: Files discovered for export in current iteration. It may
+ * increase while more export items are found.
+ *
+ * @return the currentIterationFilesDiscovered value.
+ */
+ public Long currentIterationFilesDiscovered() {
+ return this.innerProperties() == null ? null : this.innerProperties().currentIterationFilesDiscovered();
+ }
+
+ /**
+ * Get the currentIterationMiBDiscovered property: Data (in MiB) discovered for export in current iteration. It may
+ * increase while more export items are found.
+ *
+ * @return the currentIterationMiBDiscovered value.
+ */
+ public Long currentIterationMiBDiscovered() {
+ return this.innerProperties() == null ? null : this.innerProperties().currentIterationMiBDiscovered();
+ }
+
+ /**
+ * Get the currentIterationFilesExported property: Files that have been exported in current iteration.
+ *
+ * @return the currentIterationFilesExported value.
+ */
+ public Long currentIterationFilesExported() {
+ return this.innerProperties() == null ? null : this.innerProperties().currentIterationFilesExported();
+ }
+
+ /**
+ * Get the currentIterationMiBExported property: Data (in MiB) that have been exported in current iteration.
+ *
+ * @return the currentIterationMiBExported value.
+ */
+ public Long currentIterationMiBExported() {
+ return this.innerProperties() == null ? null : this.innerProperties().currentIterationMiBExported();
+ }
+
+ /**
+ * Get the currentIterationFilesFailed property: Files failed to export in current iteration.
+ *
+ * @return the currentIterationFilesFailed value.
+ */
+ public Long currentIterationFilesFailed() {
+ return this.innerProperties() == null ? null : this.innerProperties().currentIterationFilesFailed();
+ }
+
+ /**
+ * Get the lastStartedTimeUtc property: The time (in UTC) the latest auto export job started.
+ *
+ * @return the lastStartedTimeUtc value.
+ */
+ public OffsetDateTime lastStartedTimeUtc() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastStartedTimeUtc();
+ }
+
+ /**
+ * Get the lastCompletionTimeUtc property: The time (in UTC) of the last completed auto export job.
+ *
+ * @return the lastCompletionTimeUtc value.
+ */
+ public OffsetDateTime lastCompletionTimeUtc() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastCompletionTimeUtc();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AutoExportJobInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AutoExportJobInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the AutoExportJobInner.
+ */
+ public static AutoExportJobInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AutoExportJobInner deserializedAutoExportJobInner = new AutoExportJobInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedAutoExportJobInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedAutoExportJobInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedAutoExportJobInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedAutoExportJobInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAutoExportJobInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedAutoExportJobInner.innerProperties = AutoExportJobProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedAutoExportJobInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAutoExportJobInner;
+ });
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AutoExportJobProperties.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AutoExportJobProperties.java
new file mode 100644
index 000000000000..bbda33abb86d
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AutoExportJobProperties.java
@@ -0,0 +1,334 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.storagecache.models.AutoExportJobAdminStatus;
+import com.azure.resourcemanager.storagecache.models.AutoExportJobProvisioningStateType;
+import com.azure.resourcemanager.storagecache.models.AutoExportStatusType;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/**
+ * Properties of the auto export job.
+ */
+@Fluent
+public final class AutoExportJobProperties implements JsonSerializable {
+ /*
+ * ARM provisioning state.
+ */
+ private AutoExportJobProvisioningStateType provisioningState;
+
+ /*
+ * The administrative status of the auto export job. Possible values: 'Enable', 'Disable'. Passing in a value of
+ * 'Disable' will disable the current active auto export job. By default it is set to 'Enable'.
+ */
+ private AutoExportJobAdminStatus adminStatus;
+
+ /*
+ * An array of blob paths/prefixes that get auto exported to the cluster namespace. It has '/' as the default value.
+ * Number of maximum allowed paths for now is 1.
+ */
+ private List autoExportPrefixes;
+
+ /*
+ * The status of the auto export
+ */
+ private AutoExportJobPropertiesStatus innerStatus;
+
+ /**
+ * Creates an instance of AutoExportJobProperties class.
+ */
+ public AutoExportJobProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: ARM provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public AutoExportJobProvisioningStateType provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the adminStatus property: The administrative status of the auto export job. Possible values: 'Enable',
+ * 'Disable'. Passing in a value of 'Disable' will disable the current active auto export job. By default it is set
+ * to 'Enable'.
+ *
+ * @return the adminStatus value.
+ */
+ public AutoExportJobAdminStatus adminStatus() {
+ return this.adminStatus;
+ }
+
+ /**
+ * Set the adminStatus property: The administrative status of the auto export job. Possible values: 'Enable',
+ * 'Disable'. Passing in a value of 'Disable' will disable the current active auto export job. By default it is set
+ * to 'Enable'.
+ *
+ * @param adminStatus the adminStatus value to set.
+ * @return the AutoExportJobProperties object itself.
+ */
+ public AutoExportJobProperties withAdminStatus(AutoExportJobAdminStatus adminStatus) {
+ this.adminStatus = adminStatus;
+ return this;
+ }
+
+ /**
+ * Get the autoExportPrefixes property: An array of blob paths/prefixes that get auto exported to the cluster
+ * namespace. It has '/' as the default value. Number of maximum allowed paths for now is 1.
+ *
+ * @return the autoExportPrefixes value.
+ */
+ public List autoExportPrefixes() {
+ return this.autoExportPrefixes;
+ }
+
+ /**
+ * Set the autoExportPrefixes property: An array of blob paths/prefixes that get auto exported to the cluster
+ * namespace. It has '/' as the default value. Number of maximum allowed paths for now is 1.
+ *
+ * @param autoExportPrefixes the autoExportPrefixes value to set.
+ * @return the AutoExportJobProperties object itself.
+ */
+ public AutoExportJobProperties withAutoExportPrefixes(List autoExportPrefixes) {
+ this.autoExportPrefixes = autoExportPrefixes;
+ return this;
+ }
+
+ /**
+ * Get the innerStatus property: The status of the auto export.
+ *
+ * @return the innerStatus value.
+ */
+ private AutoExportJobPropertiesStatus innerStatus() {
+ return this.innerStatus;
+ }
+
+ /**
+ * Get the state property: The operational state of auto export. InProgress indicates the export is running.
+ * Disabling indicates the user has requested to disable the export but the disabling is still in progress. Disabled
+ * indicates auto export has been disabled. DisableFailed indicates the disabling has failed. Failed means the
+ * export was unable to continue, due to a fatal error.
+ *
+ * @return the state value.
+ */
+ public AutoExportStatusType state() {
+ return this.innerStatus() == null ? null : this.innerStatus().state();
+ }
+
+ /**
+ * Set the state property: The operational state of auto export. InProgress indicates the export is running.
+ * Disabling indicates the user has requested to disable the export but the disabling is still in progress. Disabled
+ * indicates auto export has been disabled. DisableFailed indicates the disabling has failed. Failed means the
+ * export was unable to continue, due to a fatal error.
+ *
+ * @param state the state value to set.
+ * @return the AutoExportJobProperties object itself.
+ */
+ public AutoExportJobProperties withState(AutoExportStatusType state) {
+ if (this.innerStatus() == null) {
+ this.innerStatus = new AutoExportJobPropertiesStatus();
+ }
+ this.innerStatus().withState(state);
+ return this;
+ }
+
+ /**
+ * Get the statusCode property: Server-defined status code for auto export job.
+ *
+ * @return the statusCode value.
+ */
+ public String statusCode() {
+ return this.innerStatus() == null ? null : this.innerStatus().statusCode();
+ }
+
+ /**
+ * Get the statusMessage property: Server-defined status message for auto export job.
+ *
+ * @return the statusMessage value.
+ */
+ public String statusMessage() {
+ return this.innerStatus() == null ? null : this.innerStatus().statusMessage();
+ }
+
+ /**
+ * Get the totalFilesExported property: Total files exported since the start of the export. This is accumulative,
+ * some files may be counted repeatedly.
+ *
+ * @return the totalFilesExported value.
+ */
+ public Long totalFilesExported() {
+ return this.innerStatus() == null ? null : this.innerStatus().totalFilesExported();
+ }
+
+ /**
+ * Get the totalMiBExported property: Total data (in MiB) exported since the start of the export. This is
+ * accumulative, some files may be counted repeatedly.
+ *
+ * @return the totalMiBExported value.
+ */
+ public Long totalMiBExported() {
+ return this.innerStatus() == null ? null : this.innerStatus().totalMiBExported();
+ }
+
+ /**
+ * Get the totalFilesFailed property: Total files failed to be export since the last successfully completed
+ * iteration. This is accumulative, some files may be counted repeatedly.
+ *
+ * @return the totalFilesFailed value.
+ */
+ public Long totalFilesFailed() {
+ return this.innerStatus() == null ? null : this.innerStatus().totalFilesFailed();
+ }
+
+ /**
+ * Get the exportIterationCount property: Number of iterations completed since the start of the export.
+ *
+ * @return the exportIterationCount value.
+ */
+ public Integer exportIterationCount() {
+ return this.innerStatus() == null ? null : this.innerStatus().exportIterationCount();
+ }
+
+ /**
+ * Get the lastSuccessfulIterationCompletionTimeUtc property: Time (in UTC) of the last successfully completed
+ * export iteration. Look at logging container for details.
+ *
+ * @return the lastSuccessfulIterationCompletionTimeUtc value.
+ */
+ public OffsetDateTime lastSuccessfulIterationCompletionTimeUtc() {
+ return this.innerStatus() == null ? null : this.innerStatus().lastSuccessfulIterationCompletionTimeUtc();
+ }
+
+ /**
+ * Get the currentIterationFilesDiscovered property: Files discovered for export in current iteration. It may
+ * increase while more export items are found.
+ *
+ * @return the currentIterationFilesDiscovered value.
+ */
+ public Long currentIterationFilesDiscovered() {
+ return this.innerStatus() == null ? null : this.innerStatus().currentIterationFilesDiscovered();
+ }
+
+ /**
+ * Get the currentIterationMiBDiscovered property: Data (in MiB) discovered for export in current iteration. It may
+ * increase while more export items are found.
+ *
+ * @return the currentIterationMiBDiscovered value.
+ */
+ public Long currentIterationMiBDiscovered() {
+ return this.innerStatus() == null ? null : this.innerStatus().currentIterationMiBDiscovered();
+ }
+
+ /**
+ * Get the currentIterationFilesExported property: Files that have been exported in current iteration.
+ *
+ * @return the currentIterationFilesExported value.
+ */
+ public Long currentIterationFilesExported() {
+ return this.innerStatus() == null ? null : this.innerStatus().currentIterationFilesExported();
+ }
+
+ /**
+ * Get the currentIterationMiBExported property: Data (in MiB) that have been exported in current iteration.
+ *
+ * @return the currentIterationMiBExported value.
+ */
+ public Long currentIterationMiBExported() {
+ return this.innerStatus() == null ? null : this.innerStatus().currentIterationMiBExported();
+ }
+
+ /**
+ * Get the currentIterationFilesFailed property: Files failed to export in current iteration.
+ *
+ * @return the currentIterationFilesFailed value.
+ */
+ public Long currentIterationFilesFailed() {
+ return this.innerStatus() == null ? null : this.innerStatus().currentIterationFilesFailed();
+ }
+
+ /**
+ * Get the lastStartedTimeUtc property: The time (in UTC) the latest auto export job started.
+ *
+ * @return the lastStartedTimeUtc value.
+ */
+ public OffsetDateTime lastStartedTimeUtc() {
+ return this.innerStatus() == null ? null : this.innerStatus().lastStartedTimeUtc();
+ }
+
+ /**
+ * Get the lastCompletionTimeUtc property: The time (in UTC) of the last completed auto export job.
+ *
+ * @return the lastCompletionTimeUtc value.
+ */
+ public OffsetDateTime lastCompletionTimeUtc() {
+ return this.innerStatus() == null ? null : this.innerStatus().lastCompletionTimeUtc();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerStatus() != null) {
+ innerStatus().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("adminStatus", this.adminStatus == null ? null : this.adminStatus.toString());
+ jsonWriter.writeArrayField("autoExportPrefixes", this.autoExportPrefixes,
+ (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AutoExportJobProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AutoExportJobProperties if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the AutoExportJobProperties.
+ */
+ public static AutoExportJobProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AutoExportJobProperties deserializedAutoExportJobProperties = new AutoExportJobProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provisioningState".equals(fieldName)) {
+ deserializedAutoExportJobProperties.provisioningState
+ = AutoExportJobProvisioningStateType.fromString(reader.getString());
+ } else if ("adminStatus".equals(fieldName)) {
+ deserializedAutoExportJobProperties.adminStatus
+ = AutoExportJobAdminStatus.fromString(reader.getString());
+ } else if ("autoExportPrefixes".equals(fieldName)) {
+ List autoExportPrefixes = reader.readArray(reader1 -> reader1.getString());
+ deserializedAutoExportJobProperties.autoExportPrefixes = autoExportPrefixes;
+ } else if ("status".equals(fieldName)) {
+ deserializedAutoExportJobProperties.innerStatus = AutoExportJobPropertiesStatus.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAutoExportJobProperties;
+ });
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AutoExportJobPropertiesStatus.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AutoExportJobPropertiesStatus.java
new file mode 100644
index 000000000000..65f1013d4009
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AutoExportJobPropertiesStatus.java
@@ -0,0 +1,351 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.storagecache.models.AutoExportStatusType;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+
+/**
+ * The status of the auto export.
+ */
+@Fluent
+public final class AutoExportJobPropertiesStatus implements JsonSerializable {
+ /*
+ * The operational state of auto export. InProgress indicates the export is running. Disabling indicates the user
+ * has requested to disable the export but the disabling is still in progress. Disabled indicates auto export has
+ * been disabled. DisableFailed indicates the disabling has failed. Failed means the export was unable to continue,
+ * due to a fatal error.
+ */
+ private AutoExportStatusType state;
+
+ /*
+ * Server-defined status code for auto export job.
+ */
+ private String statusCode;
+
+ /*
+ * Server-defined status message for auto export job.
+ */
+ private String statusMessage;
+
+ /*
+ * Total files exported since the start of the export. This is accumulative, some files may be counted repeatedly.
+ */
+ private Long totalFilesExported;
+
+ /*
+ * Total data (in MiB) exported since the start of the export. This is accumulative, some files may be counted
+ * repeatedly.
+ */
+ private Long totalMiBExported;
+
+ /*
+ * Total files failed to be export since the last successfully completed iteration. This is accumulative, some files
+ * may be counted repeatedly.
+ */
+ private Long totalFilesFailed;
+
+ /*
+ * Number of iterations completed since the start of the export.
+ */
+ private Integer exportIterationCount;
+
+ /*
+ * Time (in UTC) of the last successfully completed export iteration. Look at logging container for details.
+ */
+ private OffsetDateTime lastSuccessfulIterationCompletionTimeUtc;
+
+ /*
+ * Files discovered for export in current iteration. It may increase while more export items are found.
+ */
+ private Long currentIterationFilesDiscovered;
+
+ /*
+ * Data (in MiB) discovered for export in current iteration. It may increase while more export items are found.
+ */
+ private Long currentIterationMiBDiscovered;
+
+ /*
+ * Files that have been exported in current iteration.
+ */
+ private Long currentIterationFilesExported;
+
+ /*
+ * Data (in MiB) that have been exported in current iteration.
+ */
+ private Long currentIterationMiBExported;
+
+ /*
+ * Files failed to export in current iteration.
+ */
+ private Long currentIterationFilesFailed;
+
+ /*
+ * The time (in UTC) the latest auto export job started.
+ */
+ private OffsetDateTime lastStartedTimeUtc;
+
+ /*
+ * The time (in UTC) of the last completed auto export job.
+ */
+ private OffsetDateTime lastCompletionTimeUtc;
+
+ /**
+ * Creates an instance of AutoExportJobPropertiesStatus class.
+ */
+ public AutoExportJobPropertiesStatus() {
+ }
+
+ /**
+ * Get the state property: The operational state of auto export. InProgress indicates the export is running.
+ * Disabling indicates the user has requested to disable the export but the disabling is still in progress. Disabled
+ * indicates auto export has been disabled. DisableFailed indicates the disabling has failed. Failed means the
+ * export was unable to continue, due to a fatal error.
+ *
+ * @return the state value.
+ */
+ public AutoExportStatusType state() {
+ return this.state;
+ }
+
+ /**
+ * Set the state property: The operational state of auto export. InProgress indicates the export is running.
+ * Disabling indicates the user has requested to disable the export but the disabling is still in progress. Disabled
+ * indicates auto export has been disabled. DisableFailed indicates the disabling has failed. Failed means the
+ * export was unable to continue, due to a fatal error.
+ *
+ * @param state the state value to set.
+ * @return the AutoExportJobPropertiesStatus object itself.
+ */
+ public AutoExportJobPropertiesStatus withState(AutoExportStatusType state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * Get the statusCode property: Server-defined status code for auto export job.
+ *
+ * @return the statusCode value.
+ */
+ public String statusCode() {
+ return this.statusCode;
+ }
+
+ /**
+ * Get the statusMessage property: Server-defined status message for auto export job.
+ *
+ * @return the statusMessage value.
+ */
+ public String statusMessage() {
+ return this.statusMessage;
+ }
+
+ /**
+ * Get the totalFilesExported property: Total files exported since the start of the export. This is accumulative,
+ * some files may be counted repeatedly.
+ *
+ * @return the totalFilesExported value.
+ */
+ public Long totalFilesExported() {
+ return this.totalFilesExported;
+ }
+
+ /**
+ * Get the totalMiBExported property: Total data (in MiB) exported since the start of the export. This is
+ * accumulative, some files may be counted repeatedly.
+ *
+ * @return the totalMiBExported value.
+ */
+ public Long totalMiBExported() {
+ return this.totalMiBExported;
+ }
+
+ /**
+ * Get the totalFilesFailed property: Total files failed to be export since the last successfully completed
+ * iteration. This is accumulative, some files may be counted repeatedly.
+ *
+ * @return the totalFilesFailed value.
+ */
+ public Long totalFilesFailed() {
+ return this.totalFilesFailed;
+ }
+
+ /**
+ * Get the exportIterationCount property: Number of iterations completed since the start of the export.
+ *
+ * @return the exportIterationCount value.
+ */
+ public Integer exportIterationCount() {
+ return this.exportIterationCount;
+ }
+
+ /**
+ * Get the lastSuccessfulIterationCompletionTimeUtc property: Time (in UTC) of the last successfully completed
+ * export iteration. Look at logging container for details.
+ *
+ * @return the lastSuccessfulIterationCompletionTimeUtc value.
+ */
+ public OffsetDateTime lastSuccessfulIterationCompletionTimeUtc() {
+ return this.lastSuccessfulIterationCompletionTimeUtc;
+ }
+
+ /**
+ * Get the currentIterationFilesDiscovered property: Files discovered for export in current iteration. It may
+ * increase while more export items are found.
+ *
+ * @return the currentIterationFilesDiscovered value.
+ */
+ public Long currentIterationFilesDiscovered() {
+ return this.currentIterationFilesDiscovered;
+ }
+
+ /**
+ * Get the currentIterationMiBDiscovered property: Data (in MiB) discovered for export in current iteration. It may
+ * increase while more export items are found.
+ *
+ * @return the currentIterationMiBDiscovered value.
+ */
+ public Long currentIterationMiBDiscovered() {
+ return this.currentIterationMiBDiscovered;
+ }
+
+ /**
+ * Get the currentIterationFilesExported property: Files that have been exported in current iteration.
+ *
+ * @return the currentIterationFilesExported value.
+ */
+ public Long currentIterationFilesExported() {
+ return this.currentIterationFilesExported;
+ }
+
+ /**
+ * Get the currentIterationMiBExported property: Data (in MiB) that have been exported in current iteration.
+ *
+ * @return the currentIterationMiBExported value.
+ */
+ public Long currentIterationMiBExported() {
+ return this.currentIterationMiBExported;
+ }
+
+ /**
+ * Get the currentIterationFilesFailed property: Files failed to export in current iteration.
+ *
+ * @return the currentIterationFilesFailed value.
+ */
+ public Long currentIterationFilesFailed() {
+ return this.currentIterationFilesFailed;
+ }
+
+ /**
+ * Get the lastStartedTimeUtc property: The time (in UTC) the latest auto export job started.
+ *
+ * @return the lastStartedTimeUtc value.
+ */
+ public OffsetDateTime lastStartedTimeUtc() {
+ return this.lastStartedTimeUtc;
+ }
+
+ /**
+ * Get the lastCompletionTimeUtc property: The time (in UTC) of the last completed auto export job.
+ *
+ * @return the lastCompletionTimeUtc value.
+ */
+ public OffsetDateTime lastCompletionTimeUtc() {
+ return this.lastCompletionTimeUtc;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AutoExportJobPropertiesStatus from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AutoExportJobPropertiesStatus if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the AutoExportJobPropertiesStatus.
+ */
+ public static AutoExportJobPropertiesStatus fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AutoExportJobPropertiesStatus deserializedAutoExportJobPropertiesStatus
+ = new AutoExportJobPropertiesStatus();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("state".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.state
+ = AutoExportStatusType.fromString(reader.getString());
+ } else if ("statusCode".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.statusCode = reader.getString();
+ } else if ("statusMessage".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.statusMessage = reader.getString();
+ } else if ("totalFilesExported".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.totalFilesExported
+ = reader.getNullable(JsonReader::getLong);
+ } else if ("totalMiBExported".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.totalMiBExported
+ = reader.getNullable(JsonReader::getLong);
+ } else if ("totalFilesFailed".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.totalFilesFailed
+ = reader.getNullable(JsonReader::getLong);
+ } else if ("exportIterationCount".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.exportIterationCount
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("lastSuccessfulIterationCompletionTimeUTC".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.lastSuccessfulIterationCompletionTimeUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("currentIterationFilesDiscovered".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.currentIterationFilesDiscovered
+ = reader.getNullable(JsonReader::getLong);
+ } else if ("currentIterationMiBDiscovered".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.currentIterationMiBDiscovered
+ = reader.getNullable(JsonReader::getLong);
+ } else if ("currentIterationFilesExported".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.currentIterationFilesExported
+ = reader.getNullable(JsonReader::getLong);
+ } else if ("currentIterationMiBExported".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.currentIterationMiBExported
+ = reader.getNullable(JsonReader::getLong);
+ } else if ("currentIterationFilesFailed".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.currentIterationFilesFailed
+ = reader.getNullable(JsonReader::getLong);
+ } else if ("lastStartedTimeUTC".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.lastStartedTimeUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("lastCompletionTimeUTC".equals(fieldName)) {
+ deserializedAutoExportJobPropertiesStatus.lastCompletionTimeUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAutoExportJobPropertiesStatus;
+ });
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobInner.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobInner.java
index 1906dabe2084..3ede666e7d72 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobInner.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobInner.java
@@ -11,6 +11,7 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.storagecache.models.ConflictResolutionMode;
+import com.azure.resourcemanager.storagecache.models.ImportJobAdminStatus;
import com.azure.resourcemanager.storagecache.models.ImportJobProvisioningStateType;
import com.azure.resourcemanager.storagecache.models.ImportStatusType;
import java.io.IOException;
@@ -130,6 +131,31 @@ public ImportJobProvisioningStateType provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
+ /**
+ * Get the adminStatus property: The administrative status of the import job. Possible values: 'Enable', 'Disable'.
+ * Passing in a value of 'Disable' will cancel the current active import job. By default it is set to 'Enable'.
+ *
+ * @return the adminStatus value.
+ */
+ public ImportJobAdminStatus adminStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().adminStatus();
+ }
+
+ /**
+ * Set the adminStatus property: The administrative status of the import job. Possible values: 'Enable', 'Disable'.
+ * Passing in a value of 'Disable' will cancel the current active import job. By default it is set to 'Enable'.
+ *
+ * @param adminStatus the adminStatus value to set.
+ * @return the ImportJobInner object itself.
+ */
+ public ImportJobInner withAdminStatus(ImportJobAdminStatus adminStatus) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ImportJobProperties();
+ }
+ this.innerProperties().withAdminStatus(adminStatus);
+ return this;
+ }
+
/**
* Get the importPrefixes property: An array of blob paths/prefixes that get imported into the cluster namespace. It
* has '/' as the default value.
@@ -218,11 +244,11 @@ public ImportJobInner withMaximumErrors(Integer maximumErrors) {
}
/**
- * Get the state property: The state of the import job. InProgress indicates the import is still running. Canceled
- * indicates it has been canceled by the user. Completed indicates import finished, successfully importing all
- * discovered blobs into the Lustre namespace. CompletedPartial indicates the import finished but some blobs either
- * were found to be conflicting and could not be imported or other errors were encountered. Failed means the import
- * was unable to complete due to a fatal error.
+ * Get the state property: The operational state of the import job. InProgress indicates the import is still
+ * running. Canceled indicates it has been canceled by the user. Completed indicates import finished, successfully
+ * importing all discovered blobs into the Lustre namespace. CompletedPartial indicates the import finished but some
+ * blobs either were found to be conflicting and could not be imported or other errors were encountered. Failed
+ * means the import was unable to complete due to a fatal error.
*
* @return the state value.
*/
@@ -266,6 +292,62 @@ public Long totalBlobsImported() {
return this.innerProperties() == null ? null : this.innerProperties().totalBlobsImported();
}
+ /**
+ * Get the importedFiles property: New or modified files that have been imported into the filesystem.
+ *
+ * @return the importedFiles value.
+ */
+ public Long importedFiles() {
+ return this.innerProperties() == null ? null : this.innerProperties().importedFiles();
+ }
+
+ /**
+ * Get the importedDirectories property: New or modified directories that have been imported into the filesystem.
+ *
+ * @return the importedDirectories value.
+ */
+ public Long importedDirectories() {
+ return this.innerProperties() == null ? null : this.innerProperties().importedDirectories();
+ }
+
+ /**
+ * Get the importedSymlinks property: Newly added symbolic links into the filesystem.
+ *
+ * @return the importedSymlinks value.
+ */
+ public Long importedSymlinks() {
+ return this.innerProperties() == null ? null : this.innerProperties().importedSymlinks();
+ }
+
+ /**
+ * Get the preexistingFiles property: Files that already exist in the filesystem and have not been modified.
+ *
+ * @return the preexistingFiles value.
+ */
+ public Long preexistingFiles() {
+ return this.innerProperties() == null ? null : this.innerProperties().preexistingFiles();
+ }
+
+ /**
+ * Get the preexistingDirectories property: Directories that already exist in the filesystem and have not been
+ * modified.
+ *
+ * @return the preexistingDirectories value.
+ */
+ public Long preexistingDirectories() {
+ return this.innerProperties() == null ? null : this.innerProperties().preexistingDirectories();
+ }
+
+ /**
+ * Get the preexistingSymlinks property: Symbolic links that already exist in the filesystem and have not been
+ * modified.
+ *
+ * @return the preexistingSymlinks value.
+ */
+ public Long preexistingSymlinks() {
+ return this.innerProperties() == null ? null : this.innerProperties().preexistingSymlinks();
+ }
+
/**
* Get the blobsImportedPerSecond property: A recent and frequently updated rate of total files, directories, and
* symlinks imported per second.
@@ -277,7 +359,7 @@ public Long blobsImportedPerSecond() {
}
/**
- * Get the lastCompletionTime property: The time of the last completed archive operation.
+ * Get the lastCompletionTime property: The time (in UTC) of the last completed import job.
*
* @return the lastCompletionTime value.
*/
@@ -286,7 +368,7 @@ public OffsetDateTime lastCompletionTime() {
}
/**
- * Get the lastStartedTime property: The time the latest archive operation started.
+ * Get the lastStartedTime property: The time (in UTC) the latest import job started.
*
* @return the lastStartedTime value.
*/
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobProperties.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobProperties.java
index a16edd518fd7..12637afc801c 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobProperties.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobProperties.java
@@ -10,6 +10,7 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.storagecache.models.ConflictResolutionMode;
+import com.azure.resourcemanager.storagecache.models.ImportJobAdminStatus;
import com.azure.resourcemanager.storagecache.models.ImportJobProvisioningStateType;
import com.azure.resourcemanager.storagecache.models.ImportStatusType;
import java.io.IOException;
@@ -26,6 +27,12 @@ public final class ImportJobProperties implements JsonSerializable writer.writeString(element));
jsonWriter.writeStringField("conflictResolutionMode",
@@ -293,6 +379,8 @@ public static ImportJobProperties fromJson(JsonReader jsonReader) throws IOExcep
if ("provisioningState".equals(fieldName)) {
deserializedImportJobProperties.provisioningState
= ImportJobProvisioningStateType.fromString(reader.getString());
+ } else if ("adminStatus".equals(fieldName)) {
+ deserializedImportJobProperties.adminStatus = ImportJobAdminStatus.fromString(reader.getString());
} else if ("importPrefixes".equals(fieldName)) {
List importPrefixes = reader.readArray(reader1 -> reader1.getString());
deserializedImportJobProperties.importPrefixes = importPrefixes;
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobPropertiesStatus.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobPropertiesStatus.java
index 9eaf2c63917a..20fcb6ad2639 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobPropertiesStatus.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/ImportJobPropertiesStatus.java
@@ -20,9 +20,9 @@
@Immutable
public final class ImportJobPropertiesStatus implements JsonSerializable {
/*
- * The state of the import job. InProgress indicates the import is still running. Canceled indicates it has been
- * canceled by the user. Completed indicates import finished, successfully importing all discovered blobs into the
- * Lustre namespace. CompletedPartial indicates the import finished but some blobs either were found to be
+ * The operational state of the import job. InProgress indicates the import is still running. Canceled indicates it
+ * has been canceled by the user. Completed indicates import finished, successfully importing all discovered blobs
+ * into the Lustre namespace. CompletedPartial indicates the import finished but some blobs either were found to be
* conflicting and could not be imported or other errors were encountered. Failed means the import was unable to
* complete due to a fatal error.
*/
@@ -48,18 +48,48 @@ public final class ImportJobPropertiesStatus implements JsonSerializable tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public AutoExportJobProvisioningStateType provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public AutoExportJobAdminStatus adminStatus() {
+ return this.innerModel().adminStatus();
+ }
+
+ public List autoExportPrefixes() {
+ List inner = this.innerModel().autoExportPrefixes();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public AutoExportStatusType state() {
+ return this.innerModel().state();
+ }
+
+ public String statusCode() {
+ return this.innerModel().statusCode();
+ }
+
+ public String statusMessage() {
+ return this.innerModel().statusMessage();
+ }
+
+ public Long totalFilesExported() {
+ return this.innerModel().totalFilesExported();
+ }
+
+ public Long totalMiBExported() {
+ return this.innerModel().totalMiBExported();
+ }
+
+ public Long totalFilesFailed() {
+ return this.innerModel().totalFilesFailed();
+ }
+
+ public Integer exportIterationCount() {
+ return this.innerModel().exportIterationCount();
+ }
+
+ public OffsetDateTime lastSuccessfulIterationCompletionTimeUtc() {
+ return this.innerModel().lastSuccessfulIterationCompletionTimeUtc();
+ }
+
+ public Long currentIterationFilesDiscovered() {
+ return this.innerModel().currentIterationFilesDiscovered();
+ }
+
+ public Long currentIterationMiBDiscovered() {
+ return this.innerModel().currentIterationMiBDiscovered();
+ }
+
+ public Long currentIterationFilesExported() {
+ return this.innerModel().currentIterationFilesExported();
+ }
+
+ public Long currentIterationMiBExported() {
+ return this.innerModel().currentIterationMiBExported();
+ }
+
+ public Long currentIterationFilesFailed() {
+ return this.innerModel().currentIterationFilesFailed();
+ }
+
+ public OffsetDateTime lastStartedTimeUtc() {
+ return this.innerModel().lastStartedTimeUtc();
+ }
+
+ public OffsetDateTime lastCompletionTimeUtc() {
+ return this.innerModel().lastCompletionTimeUtc();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public AutoExportJobInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.storagecache.StorageCacheManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String amlFilesystemName;
+
+ private String autoExportJobName;
+
+ private AutoExportJobUpdate updateAutoExportJob;
+
+ public AutoExportJobImpl withExistingAmlFilesystem(String resourceGroupName, String amlFilesystemName) {
+ this.resourceGroupName = resourceGroupName;
+ this.amlFilesystemName = amlFilesystemName;
+ return this;
+ }
+
+ public AutoExportJob create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getAutoExportJobs()
+ .createOrUpdate(resourceGroupName, amlFilesystemName, autoExportJobName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public AutoExportJob create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getAutoExportJobs()
+ .createOrUpdate(resourceGroupName, amlFilesystemName, autoExportJobName, this.innerModel(), context);
+ return this;
+ }
+
+ AutoExportJobImpl(String name, com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager) {
+ this.innerObject = new AutoExportJobInner();
+ this.serviceManager = serviceManager;
+ this.autoExportJobName = name;
+ }
+
+ public AutoExportJobImpl update() {
+ this.updateAutoExportJob = new AutoExportJobUpdate();
+ return this;
+ }
+
+ public AutoExportJob apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getAutoExportJobs()
+ .update(resourceGroupName, amlFilesystemName, autoExportJobName, updateAutoExportJob, Context.NONE);
+ return this;
+ }
+
+ public AutoExportJob apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getAutoExportJobs()
+ .update(resourceGroupName, amlFilesystemName, autoExportJobName, updateAutoExportJob, context);
+ return this;
+ }
+
+ AutoExportJobImpl(AutoExportJobInner innerObject,
+ com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.amlFilesystemName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "amlFilesystems");
+ this.autoExportJobName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "autoExportJobs");
+ }
+
+ public AutoExportJob refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getAutoExportJobs()
+ .getWithResponse(resourceGroupName, amlFilesystemName, autoExportJobName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AutoExportJob refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getAutoExportJobs()
+ .getWithResponse(resourceGroupName, amlFilesystemName, autoExportJobName, context)
+ .getValue();
+ return this;
+ }
+
+ public AutoExportJobImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public AutoExportJobImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public AutoExportJobImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateAutoExportJob.withTags(tags);
+ return this;
+ }
+ }
+
+ public AutoExportJobImpl withAdminStatus(AutoExportJobAdminStatus adminStatus) {
+ this.innerModel().withAdminStatus(adminStatus);
+ return this;
+ }
+
+ public AutoExportJobImpl withAutoExportPrefixes(List autoExportPrefixes) {
+ this.innerModel().withAutoExportPrefixes(autoExportPrefixes);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AutoExportJobsClientImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AutoExportJobsClientImpl.java
new file mode 100644
index 000000000000..c75fb5d0a38e
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AutoExportJobsClientImpl.java
@@ -0,0 +1,1309 @@
+// 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.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.storagecache.fluent.AutoExportJobsClient;
+import com.azure.resourcemanager.storagecache.fluent.models.AutoExportJobInner;
+import com.azure.resourcemanager.storagecache.models.AutoExportJobUpdate;
+import com.azure.resourcemanager.storagecache.models.AutoExportJobsListResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in AutoExportJobsClient.
+ */
+public final class AutoExportJobsClientImpl implements AutoExportJobsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final AutoExportJobsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final StorageCacheManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AutoExportJobsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AutoExportJobsClientImpl(StorageCacheManagementClientImpl client) {
+ this.service
+ = RestProxy.create(AutoExportJobsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for StorageCacheManagementClientAutoExportJobs to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "StorageCacheManageme")
+ public interface AutoExportJobsService {
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoExportJobs/{autoExportJobName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("amlFilesystemName") String amlFilesystemName, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("autoExportJobName") String autoExportJobName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoExportJobs/{autoExportJobName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("amlFilesystemName") String amlFilesystemName, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("autoExportJobName") String autoExportJobName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoExportJobs/{autoExportJobName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("amlFilesystemName") String amlFilesystemName,
+ @PathParam("autoExportJobName") String autoExportJobName,
+ @BodyParam("application/json") AutoExportJobInner autoExportJob, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoExportJobs/{autoExportJobName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("amlFilesystemName") String amlFilesystemName,
+ @PathParam("autoExportJobName") String autoExportJobName,
+ @BodyParam("application/json") AutoExportJobUpdate autoExportJob, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/autoExportJobs")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByAmlFilesystem(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("amlFilesystemName") String amlFilesystemName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByAmlFilesystemNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (amlFilesystemName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter amlFilesystemName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (autoExportJobName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter autoExportJobName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, amlFilesystemName,
+ this.client.getApiVersion(), this.client.getSubscriptionId(), autoExportJobName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (amlFilesystemName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter amlFilesystemName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (autoExportJobName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter autoExportJobName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), resourceGroupName, amlFilesystemName,
+ this.client.getApiVersion(), this.client.getSubscriptionId(), autoExportJobName, accept, context);
+ }
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, amlFilesystemName, autoExportJobName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, amlFilesystemName, autoExportJobName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName) {
+ return this.beginDeleteAsync(resourceGroupName, amlFilesystemName, autoExportJobName).getSyncPoller();
+ }
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, amlFilesystemName, autoExportJobName, context).getSyncPoller();
+ }
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String amlFilesystemName, String autoExportJobName) {
+ return beginDeleteAsync(resourceGroupName, amlFilesystemName, autoExportJobName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String amlFilesystemName, String autoExportJobName,
+ Context context) {
+ return beginDeleteAsync(resourceGroupName, amlFilesystemName, autoExportJobName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String amlFilesystemName, String autoExportJobName) {
+ deleteAsync(resourceGroupName, amlFilesystemName, autoExportJobName).block();
+ }
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String amlFilesystemName, String autoExportJobName, Context context) {
+ deleteAsync(resourceGroupName, amlFilesystemName, autoExportJobName, context).block();
+ }
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (amlFilesystemName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter amlFilesystemName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (autoExportJobName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter autoExportJobName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, amlFilesystemName,
+ this.client.getApiVersion(), this.client.getSubscriptionId(), autoExportJobName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (amlFilesystemName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter amlFilesystemName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (autoExportJobName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter autoExportJobName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), resourceGroupName, amlFilesystemName, this.client.getApiVersion(),
+ this.client.getSubscriptionId(), autoExportJobName, accept, context);
+ }
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName) {
+ return getWithResponseAsync(resourceGroupName, amlFilesystemName, autoExportJobName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, Context context) {
+ return getWithResponseAsync(resourceGroupName, amlFilesystemName, autoExportJobName, context).block();
+ }
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AutoExportJobInner get(String resourceGroupName, String amlFilesystemName, String autoExportJobName) {
+ return getWithResponse(resourceGroupName, amlFilesystemName, autoExportJobName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobInner autoExportJob) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (amlFilesystemName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter amlFilesystemName is required and cannot be null."));
+ }
+ if (autoExportJobName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter autoExportJobName is required and cannot be null."));
+ }
+ if (autoExportJob == null) {
+ return Mono.error(new IllegalArgumentException("Parameter autoExportJob is required and cannot be null."));
+ } else {
+ autoExportJob.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName,
+ this.client.getApiVersion(), this.client.getSubscriptionId(), amlFilesystemName, autoExportJobName,
+ autoExportJob, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobInner autoExportJob, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (amlFilesystemName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter amlFilesystemName is required and cannot be null."));
+ }
+ if (autoExportJobName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter autoExportJobName is required and cannot be null."));
+ }
+ if (autoExportJob == null) {
+ return Mono.error(new IllegalArgumentException("Parameter autoExportJob is required and cannot be null."));
+ } else {
+ autoExportJob.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(),
+ this.client.getSubscriptionId(), amlFilesystemName, autoExportJobName, autoExportJob, accept, context);
+ }
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, AutoExportJobInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String amlFilesystemName, String autoExportJobName,
+ AutoExportJobInner autoExportJob) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ AutoExportJobInner.class, AutoExportJobInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, AutoExportJobInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String amlFilesystemName, String autoExportJobName, AutoExportJobInner autoExportJob,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, amlFilesystemName,
+ autoExportJobName, autoExportJob, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ AutoExportJobInner.class, AutoExportJobInner.class, context);
+ }
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AutoExportJobInner> beginCreateOrUpdate(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobInner autoExportJob) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AutoExportJobInner> beginCreateOrUpdate(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobInner autoExportJob, Context context) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, AutoExportJobInner autoExportJob) {
+ return beginCreateOrUpdateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, AutoExportJobInner autoExportJob, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AutoExportJobInner createOrUpdate(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, AutoExportJobInner autoExportJob) {
+ return createOrUpdateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob).block();
+ }
+
+ /**
+ * Create or update an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AutoExportJobInner createOrUpdate(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, AutoExportJobInner autoExportJob, Context context) {
+ return createOrUpdateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob, context)
+ .block();
+ }
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, AutoExportJobUpdate autoExportJob) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (amlFilesystemName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter amlFilesystemName is required and cannot be null."));
+ }
+ if (autoExportJobName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter autoExportJobName is required and cannot be null."));
+ }
+ if (autoExportJob == null) {
+ return Mono.error(new IllegalArgumentException("Parameter autoExportJob is required and cannot be null."));
+ } else {
+ autoExportJob.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), resourceGroupName,
+ this.client.getApiVersion(), this.client.getSubscriptionId(), amlFilesystemName, autoExportJobName,
+ autoExportJob, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, AutoExportJobUpdate autoExportJob, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (amlFilesystemName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter amlFilesystemName is required and cannot be null."));
+ }
+ if (autoExportJobName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter autoExportJobName is required and cannot be null."));
+ }
+ if (autoExportJob == null) {
+ return Mono.error(new IllegalArgumentException("Parameter autoExportJob is required and cannot be null."));
+ } else {
+ autoExportJob.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(),
+ this.client.getSubscriptionId(), amlFilesystemName, autoExportJobName, autoExportJob, accept, context);
+ }
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, AutoExportJobInner> beginUpdateAsync(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobUpdate autoExportJob) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ AutoExportJobInner.class, AutoExportJobInner.class, this.client.getContext());
+ }
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, AutoExportJobInner> beginUpdateAsync(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobUpdate autoExportJob, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ AutoExportJobInner.class, AutoExportJobInner.class, context);
+ }
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AutoExportJobInner> beginUpdate(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobUpdate autoExportJob) {
+ return this.beginUpdateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AutoExportJobInner> beginUpdate(String resourceGroupName,
+ String amlFilesystemName, String autoExportJobName, AutoExportJobUpdate autoExportJob, Context context) {
+ return this.beginUpdateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, AutoExportJobUpdate autoExportJob) {
+ return beginUpdateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, AutoExportJobUpdate autoExportJob, Context context) {
+ return beginUpdateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AutoExportJobInner update(String resourceGroupName, String amlFilesystemName, String autoExportJobName,
+ AutoExportJobUpdate autoExportJob) {
+ return updateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob).block();
+ }
+
+ /**
+ * Update an auto export job instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJob Object containing the user-selectable properties of the auto export job. If read-only
+ * properties are included, they must match the existing values of those properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AutoExportJobInner update(String resourceGroupName, String amlFilesystemName, String autoExportJobName,
+ AutoExportJobUpdate autoExportJob, Context context) {
+ return updateAsync(resourceGroupName, amlFilesystemName, autoExportJobName, autoExportJob, context).block();
+ }
+
+ /**
+ * Returns all the auto export jobs the user has access to under an AML File System.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByAmlFilesystemSinglePageAsync(String resourceGroupName,
+ String amlFilesystemName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (amlFilesystemName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter amlFilesystemName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByAmlFilesystem(this.client.getEndpoint(), resourceGroupName,
+ this.client.getApiVersion(), this.client.getSubscriptionId(), amlFilesystemName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns all the auto export jobs the user has access to under an AML File System.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByAmlFilesystemSinglePageAsync(String resourceGroupName,
+ String amlFilesystemName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (amlFilesystemName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter amlFilesystemName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByAmlFilesystem(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(),
+ this.client.getSubscriptionId(), amlFilesystemName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Returns all the auto export jobs the user has access to under an AML File System.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByAmlFilesystemAsync(String resourceGroupName, String amlFilesystemName) {
+ return new PagedFlux<>(() -> listByAmlFilesystemSinglePageAsync(resourceGroupName, amlFilesystemName),
+ nextLink -> listByAmlFilesystemNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Returns all the auto export jobs the user has access to under an AML File System.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByAmlFilesystemAsync(String resourceGroupName, String amlFilesystemName,
+ Context context) {
+ return new PagedFlux<>(() -> listByAmlFilesystemSinglePageAsync(resourceGroupName, amlFilesystemName, context),
+ nextLink -> listByAmlFilesystemNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Returns all the auto export jobs the user has access to under an AML File System.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByAmlFilesystem(String resourceGroupName, String amlFilesystemName) {
+ return new PagedIterable<>(listByAmlFilesystemAsync(resourceGroupName, amlFilesystemName));
+ }
+
+ /**
+ * Returns all the auto export jobs the user has access to under an AML File System.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByAmlFilesystem(String resourceGroupName, String amlFilesystemName,
+ Context context) {
+ return new PagedIterable<>(listByAmlFilesystemAsync(resourceGroupName, amlFilesystemName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByAmlFilesystemNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByAmlFilesystemNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByAmlFilesystemNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listByAmlFilesystemNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AutoExportJobsImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AutoExportJobsImpl.java
new file mode 100644
index 000000000000..c92fa76a9dcf
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AutoExportJobsImpl.java
@@ -0,0 +1,159 @@
+// 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.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagecache.fluent.AutoExportJobsClient;
+import com.azure.resourcemanager.storagecache.fluent.models.AutoExportJobInner;
+import com.azure.resourcemanager.storagecache.models.AutoExportJob;
+import com.azure.resourcemanager.storagecache.models.AutoExportJobs;
+
+public final class AutoExportJobsImpl implements AutoExportJobs {
+ private static final ClientLogger LOGGER = new ClientLogger(AutoExportJobsImpl.class);
+
+ private final AutoExportJobsClient innerClient;
+
+ private final com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager;
+
+ public AutoExportJobsImpl(AutoExportJobsClient innerClient,
+ com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public void delete(String resourceGroupName, String amlFilesystemName, String autoExportJobName) {
+ this.serviceClient().delete(resourceGroupName, amlFilesystemName, autoExportJobName);
+ }
+
+ public void delete(String resourceGroupName, String amlFilesystemName, String autoExportJobName, Context context) {
+ this.serviceClient().delete(resourceGroupName, amlFilesystemName, autoExportJobName, context);
+ }
+
+ public Response getWithResponse(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, amlFilesystemName, autoExportJobName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new AutoExportJobImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public AutoExportJob get(String resourceGroupName, String amlFilesystemName, String autoExportJobName) {
+ AutoExportJobInner inner = this.serviceClient().get(resourceGroupName, amlFilesystemName, autoExportJobName);
+ if (inner != null) {
+ return new AutoExportJobImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable listByAmlFilesystem(String resourceGroupName, String amlFilesystemName) {
+ PagedIterable inner
+ = this.serviceClient().listByAmlFilesystem(resourceGroupName, amlFilesystemName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AutoExportJobImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByAmlFilesystem(String resourceGroupName, String amlFilesystemName,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByAmlFilesystem(resourceGroupName, amlFilesystemName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AutoExportJobImpl(inner1, this.manager()));
+ }
+
+ public AutoExportJob getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String amlFilesystemName = ResourceManagerUtils.getValueFromIdByName(id, "amlFilesystems");
+ if (amlFilesystemName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'amlFilesystems'.", id)));
+ }
+ String autoExportJobName = ResourceManagerUtils.getValueFromIdByName(id, "autoExportJobs");
+ if (autoExportJobName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'autoExportJobs'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, amlFilesystemName, autoExportJobName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String amlFilesystemName = ResourceManagerUtils.getValueFromIdByName(id, "amlFilesystems");
+ if (amlFilesystemName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'amlFilesystems'.", id)));
+ }
+ String autoExportJobName = ResourceManagerUtils.getValueFromIdByName(id, "autoExportJobs");
+ if (autoExportJobName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'autoExportJobs'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, amlFilesystemName, autoExportJobName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String amlFilesystemName = ResourceManagerUtils.getValueFromIdByName(id, "amlFilesystems");
+ if (amlFilesystemName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'amlFilesystems'.", id)));
+ }
+ String autoExportJobName = ResourceManagerUtils.getValueFromIdByName(id, "autoExportJobs");
+ if (autoExportJobName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'autoExportJobs'.", id)));
+ }
+ this.delete(resourceGroupName, amlFilesystemName, autoExportJobName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String amlFilesystemName = ResourceManagerUtils.getValueFromIdByName(id, "amlFilesystems");
+ if (amlFilesystemName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'amlFilesystems'.", id)));
+ }
+ String autoExportJobName = ResourceManagerUtils.getValueFromIdByName(id, "autoExportJobs");
+ if (autoExportJobName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'autoExportJobs'.", id)));
+ }
+ this.delete(resourceGroupName, amlFilesystemName, autoExportJobName, context);
+ }
+
+ private AutoExportJobsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.storagecache.StorageCacheManager manager() {
+ return this.serviceManager;
+ }
+
+ public AutoExportJobImpl define(String name) {
+ return new AutoExportJobImpl(name, this.manager());
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ImportJobImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ImportJobImpl.java
index 8c5dae80a40d..11857d0b19ee 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ImportJobImpl.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ImportJobImpl.java
@@ -10,6 +10,7 @@
import com.azure.resourcemanager.storagecache.fluent.models.ImportJobInner;
import com.azure.resourcemanager.storagecache.models.ConflictResolutionMode;
import com.azure.resourcemanager.storagecache.models.ImportJob;
+import com.azure.resourcemanager.storagecache.models.ImportJobAdminStatus;
import com.azure.resourcemanager.storagecache.models.ImportJobProvisioningStateType;
import com.azure.resourcemanager.storagecache.models.ImportJobUpdate;
import com.azure.resourcemanager.storagecache.models.ImportStatusType;
@@ -56,6 +57,10 @@ public ImportJobProvisioningStateType provisioningState() {
return this.innerModel().provisioningState();
}
+ public ImportJobAdminStatus adminStatus() {
+ return this.innerModel().adminStatus();
+ }
+
public List importPrefixes() {
List inner = this.innerModel().importPrefixes();
if (inner != null) {
@@ -93,6 +98,30 @@ public Long totalBlobsImported() {
return this.innerModel().totalBlobsImported();
}
+ public Long importedFiles() {
+ return this.innerModel().importedFiles();
+ }
+
+ public Long importedDirectories() {
+ return this.innerModel().importedDirectories();
+ }
+
+ public Long importedSymlinks() {
+ return this.innerModel().importedSymlinks();
+ }
+
+ public Long preexistingFiles() {
+ return this.innerModel().preexistingFiles();
+ }
+
+ public Long preexistingDirectories() {
+ return this.innerModel().preexistingDirectories();
+ }
+
+ public Long preexistingSymlinks() {
+ return this.innerModel().preexistingSymlinks();
+ }
+
public Long blobsImportedPerSecond() {
return this.innerModel().blobsImportedPerSecond();
}
@@ -231,6 +260,11 @@ public ImportJobImpl withTags(Map tags) {
}
}
+ public ImportJobImpl withAdminStatus(ImportJobAdminStatus adminStatus) {
+ this.innerModel().withAdminStatus(adminStatus);
+ return this;
+ }
+
public ImportJobImpl withImportPrefixes(List importPrefixes) {
this.innerModel().withImportPrefixes(importPrefixes);
return this;
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ImportJobsClientImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ImportJobsClientImpl.java
index ed605be42901..fb8f49dc731b 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ImportJobsClientImpl.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ImportJobsClientImpl.java
@@ -519,7 +519,7 @@ public ImportJobInner get(String resourceGroupName, String amlFilesystemName, St
}
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -569,7 +569,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
}
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -618,7 +618,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
}
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -642,7 +642,7 @@ private PollerFlux, ImportJobInner> beginCreateOrUpda
}
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -668,7 +668,7 @@ private PollerFlux, ImportJobInner> beginCreateOrUpda
}
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -690,7 +690,7 @@ public SyncPoller, ImportJobInner> beginCreateOrUpdat
}
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -713,7 +713,7 @@ public SyncPoller, ImportJobInner> beginCreateOrUpdat
}
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -735,7 +735,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin
}
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -758,7 +758,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin
}
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
@@ -779,7 +779,7 @@ public ImportJobInner createOrUpdate(String resourceGroupName, String amlFilesys
}
/**
- * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
+ * Create or update an import job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageCacheManagementClientImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageCacheManagementClientImpl.java
index 221d96966b99..cb8aab8d1444 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageCacheManagementClientImpl.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageCacheManagementClientImpl.java
@@ -26,6 +26,7 @@
import com.azure.resourcemanager.storagecache.fluent.AmlFilesystemsClient;
import com.azure.resourcemanager.storagecache.fluent.AscOperationsClient;
import com.azure.resourcemanager.storagecache.fluent.AscUsagesClient;
+import com.azure.resourcemanager.storagecache.fluent.AutoExportJobsClient;
import com.azure.resourcemanager.storagecache.fluent.CachesClient;
import com.azure.resourcemanager.storagecache.fluent.ImportJobsClient;
import com.azure.resourcemanager.storagecache.fluent.OperationsClient;
@@ -147,6 +148,20 @@ public AmlFilesystemsClient getAmlFilesystems() {
return this.amlFilesystems;
}
+ /**
+ * The AutoExportJobsClient object to access its operations.
+ */
+ private final AutoExportJobsClient autoExportJobs;
+
+ /**
+ * Gets the AutoExportJobsClient object to access its operations.
+ *
+ * @return the AutoExportJobsClient object.
+ */
+ public AutoExportJobsClient getAutoExportJobs() {
+ return this.autoExportJobs;
+ }
+
/**
* The ImportJobsClient object to access its operations.
*/
@@ -304,8 +319,9 @@ public StorageTargetOperationsClient getStorageTargetOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2024-03-01";
+ this.apiVersion = "2024-07-01";
this.amlFilesystems = new AmlFilesystemsClientImpl(this);
+ this.autoExportJobs = new AutoExportJobsClientImpl(this);
this.importJobs = new ImportJobsClientImpl(this);
this.resourceProviders = new ResourceProvidersClientImpl(this);
this.operations = new OperationsClientImpl(this);
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJob.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJob.java
new file mode 100644
index 000000000000..f1d3c2c2b254
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJob.java
@@ -0,0 +1,407 @@
+// 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.models;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagecache.fluent.models.AutoExportJobInner;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * An immutable client-side representation of AutoExportJob.
+ */
+public interface AutoExportJob {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * Gets the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the provisioningState property: ARM provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ AutoExportJobProvisioningStateType provisioningState();
+
+ /**
+ * Gets the adminStatus property: The administrative status of the auto export job. Possible values: 'Enable',
+ * 'Disable'. Passing in a value of 'Disable' will disable the current active auto export job. By default it is set
+ * to 'Enable'.
+ *
+ * @return the adminStatus value.
+ */
+ AutoExportJobAdminStatus adminStatus();
+
+ /**
+ * Gets the autoExportPrefixes property: An array of blob paths/prefixes that get auto exported to the cluster
+ * namespace. It has '/' as the default value. Number of maximum allowed paths for now is 1.
+ *
+ * @return the autoExportPrefixes value.
+ */
+ List autoExportPrefixes();
+
+ /**
+ * Gets the state property: The operational state of auto export. InProgress indicates the export is running.
+ * Disabling indicates the user has requested to disable the export but the disabling is still in progress. Disabled
+ * indicates auto export has been disabled. DisableFailed indicates the disabling has failed. Failed means the
+ * export was unable to continue, due to a fatal error.
+ *
+ * @return the state value.
+ */
+ AutoExportStatusType state();
+
+ /**
+ * Gets the statusCode property: Server-defined status code for auto export job.
+ *
+ * @return the statusCode value.
+ */
+ String statusCode();
+
+ /**
+ * Gets the statusMessage property: Server-defined status message for auto export job.
+ *
+ * @return the statusMessage value.
+ */
+ String statusMessage();
+
+ /**
+ * Gets the totalFilesExported property: Total files exported since the start of the export. This is accumulative,
+ * some files may be counted repeatedly.
+ *
+ * @return the totalFilesExported value.
+ */
+ Long totalFilesExported();
+
+ /**
+ * Gets the totalMiBExported property: Total data (in MiB) exported since the start of the export. This is
+ * accumulative, some files may be counted repeatedly.
+ *
+ * @return the totalMiBExported value.
+ */
+ Long totalMiBExported();
+
+ /**
+ * Gets the totalFilesFailed property: Total files failed to be export since the last successfully completed
+ * iteration. This is accumulative, some files may be counted repeatedly.
+ *
+ * @return the totalFilesFailed value.
+ */
+ Long totalFilesFailed();
+
+ /**
+ * Gets the exportIterationCount property: Number of iterations completed since the start of the export.
+ *
+ * @return the exportIterationCount value.
+ */
+ Integer exportIterationCount();
+
+ /**
+ * Gets the lastSuccessfulIterationCompletionTimeUtc property: Time (in UTC) of the last successfully completed
+ * export iteration. Look at logging container for details.
+ *
+ * @return the lastSuccessfulIterationCompletionTimeUtc value.
+ */
+ OffsetDateTime lastSuccessfulIterationCompletionTimeUtc();
+
+ /**
+ * Gets the currentIterationFilesDiscovered property: Files discovered for export in current iteration. It may
+ * increase while more export items are found.
+ *
+ * @return the currentIterationFilesDiscovered value.
+ */
+ Long currentIterationFilesDiscovered();
+
+ /**
+ * Gets the currentIterationMiBDiscovered property: Data (in MiB) discovered for export in current iteration. It may
+ * increase while more export items are found.
+ *
+ * @return the currentIterationMiBDiscovered value.
+ */
+ Long currentIterationMiBDiscovered();
+
+ /**
+ * Gets the currentIterationFilesExported property: Files that have been exported in current iteration.
+ *
+ * @return the currentIterationFilesExported value.
+ */
+ Long currentIterationFilesExported();
+
+ /**
+ * Gets the currentIterationMiBExported property: Data (in MiB) that have been exported in current iteration.
+ *
+ * @return the currentIterationMiBExported value.
+ */
+ Long currentIterationMiBExported();
+
+ /**
+ * Gets the currentIterationFilesFailed property: Files failed to export in current iteration.
+ *
+ * @return the currentIterationFilesFailed value.
+ */
+ Long currentIterationFilesFailed();
+
+ /**
+ * Gets the lastStartedTimeUtc property: The time (in UTC) the latest auto export job started.
+ *
+ * @return the lastStartedTimeUtc value.
+ */
+ OffsetDateTime lastStartedTimeUtc();
+
+ /**
+ * Gets the lastCompletionTimeUtc property: The time (in UTC) of the last completed auto export job.
+ *
+ * @return the lastCompletionTimeUtc value.
+ */
+ OffsetDateTime lastCompletionTimeUtc();
+
+ /**
+ * Gets the region of the resource.
+ *
+ * @return the region of the resource.
+ */
+ Region region();
+
+ /**
+ * Gets the name of the resource region.
+ *
+ * @return the name of the resource region.
+ */
+ String regionName();
+
+ /**
+ * Gets the name of the resource group.
+ *
+ * @return the name of the resource group.
+ */
+ String resourceGroupName();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.storagecache.fluent.models.AutoExportJobInner object.
+ *
+ * @return the inner object.
+ */
+ AutoExportJobInner innerModel();
+
+ /**
+ * The entirety of the AutoExportJob definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation,
+ DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * The AutoExportJob definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of the AutoExportJob definition.
+ */
+ interface Blank extends WithLocation {
+ }
+
+ /**
+ * The stage of the AutoExportJob definition allowing to specify location.
+ */
+ interface WithLocation {
+ /**
+ * Specifies the region for the resource.
+ *
+ * @param location The geo-location where the resource lives.
+ * @return the next definition stage.
+ */
+ WithParentResource withRegion(Region location);
+
+ /**
+ * Specifies the region for the resource.
+ *
+ * @param location The geo-location where the resource lives.
+ * @return the next definition stage.
+ */
+ WithParentResource withRegion(String location);
+ }
+
+ /**
+ * The stage of the AutoExportJob definition allowing to specify parent resource.
+ */
+ interface WithParentResource {
+ /**
+ * Specifies resourceGroupName, amlFilesystemName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens.
+ * Start and end with alphanumeric.
+ * @return the next definition stage.
+ */
+ WithCreate withExistingAmlFilesystem(String resourceGroupName, String amlFilesystemName);
+ }
+
+ /**
+ * The stage of the AutoExportJob definition which contains all the minimum required properties for the resource
+ * to be created, but also allows for any other optional properties to be specified.
+ */
+ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithAdminStatus,
+ DefinitionStages.WithAutoExportPrefixes {
+ /**
+ * Executes the create request.
+ *
+ * @return the created resource.
+ */
+ AutoExportJob create();
+
+ /**
+ * Executes the create request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the created resource.
+ */
+ AutoExportJob create(Context context);
+ }
+
+ /**
+ * The stage of the AutoExportJob definition allowing to specify tags.
+ */
+ interface WithTags {
+ /**
+ * Specifies the tags property: Resource tags..
+ *
+ * @param tags Resource tags.
+ * @return the next definition stage.
+ */
+ WithCreate withTags(Map tags);
+ }
+
+ /**
+ * The stage of the AutoExportJob definition allowing to specify adminStatus.
+ */
+ interface WithAdminStatus {
+ /**
+ * Specifies the adminStatus property: The administrative status of the auto export job. Possible values:
+ * 'Enable', 'Disable'. Passing in a value of 'Disable' will disable the current active auto export job. By
+ * default it is set to 'Enable'..
+ *
+ * @param adminStatus The administrative status of the auto export job. Possible values: 'Enable',
+ * 'Disable'. Passing in a value of 'Disable' will disable the current active auto export job. By default it
+ * is set to 'Enable'.
+ * @return the next definition stage.
+ */
+ WithCreate withAdminStatus(AutoExportJobAdminStatus adminStatus);
+ }
+
+ /**
+ * The stage of the AutoExportJob definition allowing to specify autoExportPrefixes.
+ */
+ interface WithAutoExportPrefixes {
+ /**
+ * Specifies the autoExportPrefixes property: An array of blob paths/prefixes that get auto exported to the
+ * cluster namespace. It has '/' as the default value. Number of maximum allowed paths for now is 1..
+ *
+ * @param autoExportPrefixes An array of blob paths/prefixes that get auto exported to the cluster
+ * namespace. It has '/' as the default value. Number of maximum allowed paths for now is 1.
+ * @return the next definition stage.
+ */
+ WithCreate withAutoExportPrefixes(List autoExportPrefixes);
+ }
+ }
+
+ /**
+ * Begins update for the AutoExportJob resource.
+ *
+ * @return the stage of resource update.
+ */
+ AutoExportJob.Update update();
+
+ /**
+ * The template for AutoExportJob update.
+ */
+ interface Update extends UpdateStages.WithTags {
+ /**
+ * Executes the update request.
+ *
+ * @return the updated resource.
+ */
+ AutoExportJob apply();
+
+ /**
+ * Executes the update request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the updated resource.
+ */
+ AutoExportJob apply(Context context);
+ }
+
+ /**
+ * The AutoExportJob update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the AutoExportJob update allowing to specify tags.
+ */
+ interface WithTags {
+ /**
+ * Specifies the tags property: Resource tags..
+ *
+ * @param tags Resource tags.
+ * @return the next definition stage.
+ */
+ Update withTags(Map tags);
+ }
+ }
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @return the refreshed resource.
+ */
+ AutoExportJob refresh();
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @param context The context to associate with this operation.
+ * @return the refreshed resource.
+ */
+ AutoExportJob refresh(Context context);
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobAdminStatus.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobAdminStatus.java
new file mode 100644
index 000000000000..c6f53ba6f7c9
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobAdminStatus.java
@@ -0,0 +1,52 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The administrative status of the auto export job. Possible values: 'Enable', 'Disable'. Passing in a value of
+ * 'Disable' will disable the current active auto export job. By default it is set to 'Enable'.
+ */
+public final class AutoExportJobAdminStatus extends ExpandableStringEnum {
+ /**
+ * Static value Active for AutoExportJobAdminStatus.
+ */
+ public static final AutoExportJobAdminStatus ACTIVE = fromString("Active");
+
+ /**
+ * Static value Cancel for AutoExportJobAdminStatus.
+ */
+ public static final AutoExportJobAdminStatus CANCEL = fromString("Cancel");
+
+ /**
+ * Creates a new instance of AutoExportJobAdminStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AutoExportJobAdminStatus() {
+ }
+
+ /**
+ * Creates or finds a AutoExportJobAdminStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AutoExportJobAdminStatus.
+ */
+ public static AutoExportJobAdminStatus fromString(String name) {
+ return fromString(name, AutoExportJobAdminStatus.class);
+ }
+
+ /**
+ * Gets known AutoExportJobAdminStatus values.
+ *
+ * @return known AutoExportJobAdminStatus values.
+ */
+ public static Collection values() {
+ return values(AutoExportJobAdminStatus.class);
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobProvisioningStateType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobProvisioningStateType.java
new file mode 100644
index 000000000000..bf862d75c47a
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobProvisioningStateType.java
@@ -0,0 +1,71 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * ARM provisioning state.
+ */
+public final class AutoExportJobProvisioningStateType extends ExpandableStringEnum {
+ /**
+ * Static value Succeeded for AutoExportJobProvisioningStateType.
+ */
+ public static final AutoExportJobProvisioningStateType SUCCEEDED = fromString("Succeeded");
+
+ /**
+ * Static value Failed for AutoExportJobProvisioningStateType.
+ */
+ public static final AutoExportJobProvisioningStateType FAILED = fromString("Failed");
+
+ /**
+ * Static value Creating for AutoExportJobProvisioningStateType.
+ */
+ public static final AutoExportJobProvisioningStateType CREATING = fromString("Creating");
+
+ /**
+ * Static value Deleting for AutoExportJobProvisioningStateType.
+ */
+ public static final AutoExportJobProvisioningStateType DELETING = fromString("Deleting");
+
+ /**
+ * Static value Updating for AutoExportJobProvisioningStateType.
+ */
+ public static final AutoExportJobProvisioningStateType UPDATING = fromString("Updating");
+
+ /**
+ * Static value Canceled for AutoExportJobProvisioningStateType.
+ */
+ public static final AutoExportJobProvisioningStateType CANCELED = fromString("Canceled");
+
+ /**
+ * Creates a new instance of AutoExportJobProvisioningStateType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AutoExportJobProvisioningStateType() {
+ }
+
+ /**
+ * Creates or finds a AutoExportJobProvisioningStateType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AutoExportJobProvisioningStateType.
+ */
+ public static AutoExportJobProvisioningStateType fromString(String name) {
+ return fromString(name, AutoExportJobProvisioningStateType.class);
+ }
+
+ /**
+ * Gets known AutoExportJobProvisioningStateType values.
+ *
+ * @return known AutoExportJobProvisioningStateType values.
+ */
+ public static Collection values() {
+ return values(AutoExportJobProvisioningStateType.class);
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobUpdate.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobUpdate.java
new file mode 100644
index 000000000000..32ccc6856e3b
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobUpdate.java
@@ -0,0 +1,95 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * An auto export job update instance.
+ */
+@Fluent
+public final class AutoExportJobUpdate implements JsonSerializable {
+ /*
+ * Resource tags.
+ */
+ private Map tags;
+
+ /**
+ * Creates an instance of AutoExportJobUpdate class.
+ */
+ public AutoExportJobUpdate() {
+ }
+
+ /**
+ * Get the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Resource tags.
+ *
+ * @param tags the tags value to set.
+ * @return the AutoExportJobUpdate object itself.
+ */
+ public AutoExportJobUpdate withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AutoExportJobUpdate from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AutoExportJobUpdate if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the AutoExportJobUpdate.
+ */
+ public static AutoExportJobUpdate fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AutoExportJobUpdate deserializedAutoExportJobUpdate = new AutoExportJobUpdate();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAutoExportJobUpdate.tags = tags;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAutoExportJobUpdate;
+ });
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobs.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobs.java
new file mode 100644
index 000000000000..8e94425aeebb
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobs.java
@@ -0,0 +1,155 @@
+// 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.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/**
+ * Resource collection API of AutoExportJobs.
+ */
+public interface AutoExportJobs {
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void delete(String resourceGroupName, String amlFilesystemName, String autoExportJobName);
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void delete(String resourceGroupName, String amlFilesystemName, String autoExportJobName, Context context);
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response}.
+ */
+ Response getWithResponse(String resourceGroupName, String amlFilesystemName,
+ String autoExportJobName, Context context);
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param autoExportJobName Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance.
+ */
+ AutoExportJob get(String resourceGroupName, String amlFilesystemName, String autoExportJobName);
+
+ /**
+ * Returns all the auto export jobs the user has access to under an AML File System.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByAmlFilesystem(String resourceGroupName, String amlFilesystemName);
+
+ /**
+ * Returns all the auto export jobs the user has access to under an AML File System.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
+ * end with alphanumeric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list auto export jobs as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByAmlFilesystem(String resourceGroupName, String amlFilesystemName,
+ Context context);
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response}.
+ */
+ AutoExportJob getById(String id);
+
+ /**
+ * Returns an auto export job.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an auto export job instance along with {@link Response}.
+ */
+ Response getByIdWithResponse(String id, Context context);
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteById(String id);
+
+ /**
+ * Schedules an auto export job for deletion.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteByIdWithResponse(String id, Context context);
+
+ /**
+ * Begins definition for a new AutoExportJob resource.
+ *
+ * @param name resource name.
+ * @return the first stage of the new AutoExportJob definition.
+ */
+ AutoExportJob.DefinitionStages.Blank define(String name);
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobsListResult.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobsListResult.java
new file mode 100644
index 000000000000..9bcefda14971
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportJobsListResult.java
@@ -0,0 +1,128 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.storagecache.fluent.models.AutoExportJobInner;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Result of the request to list auto export jobs. It contains a list of auto export jobs and a URL link to get the next
+ * set of results.
+ */
+@Fluent
+public final class AutoExportJobsListResult implements JsonSerializable {
+ /*
+ * URL to get the next set of auto export job list results, if there are any.
+ */
+ private String nextLink;
+
+ /*
+ * List of auto export jobs.
+ */
+ private List value;
+
+ /**
+ * Creates an instance of AutoExportJobsListResult class.
+ */
+ public AutoExportJobsListResult() {
+ }
+
+ /**
+ * Get the nextLink property: URL to get the next set of auto export job list results, if there are any.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: URL to get the next set of auto export job list results, if there are any.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the AutoExportJobsListResult object itself.
+ */
+ public AutoExportJobsListResult withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Get the value property: List of auto export jobs.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: List of auto export jobs.
+ *
+ * @param value the value value to set.
+ * @return the AutoExportJobsListResult object itself.
+ */
+ public AutoExportJobsListResult withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AutoExportJobsListResult from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AutoExportJobsListResult if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the AutoExportJobsListResult.
+ */
+ public static AutoExportJobsListResult fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AutoExportJobsListResult deserializedAutoExportJobsListResult = new AutoExportJobsListResult();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("nextLink".equals(fieldName)) {
+ deserializedAutoExportJobsListResult.nextLink = reader.getString();
+ } else if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> AutoExportJobInner.fromJson(reader1));
+ deserializedAutoExportJobsListResult.value = value;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAutoExportJobsListResult;
+ });
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportStatusType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportStatusType.java
new file mode 100644
index 000000000000..84ca9151bb6a
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AutoExportStatusType.java
@@ -0,0 +1,69 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The operational state of auto export. InProgress indicates the export is running. Disabling indicates the user has
+ * requested to disable the export but the disabling is still in progress. Disabled indicates auto export has been
+ * disabled. DisableFailed indicates the disabling has failed. Failed means the export was unable to continue, due to a
+ * fatal error.
+ */
+public final class AutoExportStatusType extends ExpandableStringEnum {
+ /**
+ * Static value InProgress for AutoExportStatusType.
+ */
+ public static final AutoExportStatusType IN_PROGRESS = fromString("InProgress");
+
+ /**
+ * Static value Disabling for AutoExportStatusType.
+ */
+ public static final AutoExportStatusType DISABLING = fromString("Disabling");
+
+ /**
+ * Static value Disabled for AutoExportStatusType.
+ */
+ public static final AutoExportStatusType DISABLED = fromString("Disabled");
+
+ /**
+ * Static value DisableFailed for AutoExportStatusType.
+ */
+ public static final AutoExportStatusType DISABLE_FAILED = fromString("DisableFailed");
+
+ /**
+ * Static value Failed for AutoExportStatusType.
+ */
+ public static final AutoExportStatusType FAILED = fromString("Failed");
+
+ /**
+ * Creates a new instance of AutoExportStatusType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AutoExportStatusType() {
+ }
+
+ /**
+ * Creates or finds a AutoExportStatusType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AutoExportStatusType.
+ */
+ public static AutoExportStatusType fromString(String name) {
+ return fromString(name, AutoExportStatusType.class);
+ }
+
+ /**
+ * Gets known AutoExportStatusType values.
+ *
+ * @return known AutoExportStatusType values.
+ */
+ public static Collection values() {
+ return values(AutoExportStatusType.class);
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportJob.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportJob.java
index f4aaee9ea9d1..0d5c22a93997 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportJob.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportJob.java
@@ -65,6 +65,14 @@ public interface ImportJob {
*/
ImportJobProvisioningStateType provisioningState();
+ /**
+ * Gets the adminStatus property: The administrative status of the import job. Possible values: 'Enable', 'Disable'.
+ * Passing in a value of 'Disable' will cancel the current active import job. By default it is set to 'Enable'.
+ *
+ * @return the adminStatus value.
+ */
+ ImportJobAdminStatus adminStatus();
+
/**
* Gets the importPrefixes property: An array of blob paths/prefixes that get imported into the cluster namespace.
* It has '/' as the default value.
@@ -96,11 +104,11 @@ public interface ImportJob {
Integer maximumErrors();
/**
- * Gets the state property: The state of the import job. InProgress indicates the import is still running. Canceled
- * indicates it has been canceled by the user. Completed indicates import finished, successfully importing all
- * discovered blobs into the Lustre namespace. CompletedPartial indicates the import finished but some blobs either
- * were found to be conflicting and could not be imported or other errors were encountered. Failed means the import
- * was unable to complete due to a fatal error.
+ * Gets the state property: The operational state of the import job. InProgress indicates the import is still
+ * running. Canceled indicates it has been canceled by the user. Completed indicates import finished, successfully
+ * importing all discovered blobs into the Lustre namespace. CompletedPartial indicates the import finished but some
+ * blobs either were found to be conflicting and could not be imported or other errors were encountered. Failed
+ * means the import was unable to complete due to a fatal error.
*
* @return the state value.
*/
@@ -134,6 +142,50 @@ public interface ImportJob {
*/
Long totalBlobsImported();
+ /**
+ * Gets the importedFiles property: New or modified files that have been imported into the filesystem.
+ *
+ * @return the importedFiles value.
+ */
+ Long importedFiles();
+
+ /**
+ * Gets the importedDirectories property: New or modified directories that have been imported into the filesystem.
+ *
+ * @return the importedDirectories value.
+ */
+ Long importedDirectories();
+
+ /**
+ * Gets the importedSymlinks property: Newly added symbolic links into the filesystem.
+ *
+ * @return the importedSymlinks value.
+ */
+ Long importedSymlinks();
+
+ /**
+ * Gets the preexistingFiles property: Files that already exist in the filesystem and have not been modified.
+ *
+ * @return the preexistingFiles value.
+ */
+ Long preexistingFiles();
+
+ /**
+ * Gets the preexistingDirectories property: Directories that already exist in the filesystem and have not been
+ * modified.
+ *
+ * @return the preexistingDirectories value.
+ */
+ Long preexistingDirectories();
+
+ /**
+ * Gets the preexistingSymlinks property: Symbolic links that already exist in the filesystem and have not been
+ * modified.
+ *
+ * @return the preexistingSymlinks value.
+ */
+ Long preexistingSymlinks();
+
/**
* Gets the blobsImportedPerSecond property: A recent and frequently updated rate of total files, directories, and
* symlinks imported per second.
@@ -143,14 +195,14 @@ public interface ImportJob {
Long blobsImportedPerSecond();
/**
- * Gets the lastCompletionTime property: The time of the last completed archive operation.
+ * Gets the lastCompletionTime property: The time (in UTC) of the last completed import job.
*
* @return the lastCompletionTime value.
*/
OffsetDateTime lastCompletionTime();
/**
- * Gets the lastStartedTime property: The time the latest archive operation started.
+ * Gets the lastStartedTime property: The time (in UTC) the latest import job started.
*
* @return the lastStartedTime value.
*/
@@ -255,7 +307,8 @@ interface WithParentResource {
* The stage of the ImportJob definition which contains all the minimum required properties for the resource to
* be created, but also allows for any other optional properties to be specified.
*/
- interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithImportPrefixes,
+ interface WithCreate
+ extends DefinitionStages.WithTags, DefinitionStages.WithAdminStatus, DefinitionStages.WithImportPrefixes,
DefinitionStages.WithConflictResolutionMode, DefinitionStages.WithMaximumErrors {
/**
* Executes the create request.
@@ -286,6 +339,23 @@ interface WithTags {
WithCreate withTags(Map tags);
}
+ /**
+ * The stage of the ImportJob definition allowing to specify adminStatus.
+ */
+ interface WithAdminStatus {
+ /**
+ * Specifies the adminStatus property: The administrative status of the import job. Possible values:
+ * 'Enable', 'Disable'. Passing in a value of 'Disable' will cancel the current active import job. By
+ * default it is set to 'Enable'..
+ *
+ * @param adminStatus The administrative status of the import job. Possible values: 'Enable', 'Disable'.
+ * Passing in a value of 'Disable' will cancel the current active import job. By default it is set to
+ * 'Enable'.
+ * @return the next definition stage.
+ */
+ WithCreate withAdminStatus(ImportJobAdminStatus adminStatus);
+ }
+
/**
* The stage of the ImportJob definition allowing to specify importPrefixes.
*/
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportJobAdminStatus.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportJobAdminStatus.java
new file mode 100644
index 000000000000..621765f37faf
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportJobAdminStatus.java
@@ -0,0 +1,52 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The administrative status of the import job. Possible values: 'Enable', 'Disable'. Passing in a value of 'Disable'
+ * will cancel the current active import job. By default it is set to 'Enable'.
+ */
+public final class ImportJobAdminStatus extends ExpandableStringEnum {
+ /**
+ * Static value Active for ImportJobAdminStatus.
+ */
+ public static final ImportJobAdminStatus ACTIVE = fromString("Active");
+
+ /**
+ * Static value Cancel for ImportJobAdminStatus.
+ */
+ public static final ImportJobAdminStatus CANCEL = fromString("Cancel");
+
+ /**
+ * Creates a new instance of ImportJobAdminStatus value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ImportJobAdminStatus() {
+ }
+
+ /**
+ * Creates or finds a ImportJobAdminStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ImportJobAdminStatus.
+ */
+ public static ImportJobAdminStatus fromString(String name) {
+ return fromString(name, ImportJobAdminStatus.class);
+ }
+
+ /**
+ * Gets known ImportJobAdminStatus values.
+ *
+ * @return known ImportJobAdminStatus values.
+ */
+ public static Collection values() {
+ return values(ImportJobAdminStatus.class);
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportStatusType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportStatusType.java
index f7c34378334a..af24b8a5facd 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportStatusType.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ImportStatusType.java
@@ -8,8 +8,8 @@
import java.util.Collection;
/**
- * The state of the import job. InProgress indicates the import is still running. Canceled indicates it has been
- * canceled by the user. Completed indicates import finished, successfully importing all discovered blobs into the
+ * The operational state of the import job. InProgress indicates the import is still running. Canceled indicates it has
+ * been canceled by the user. Completed indicates import finished, successfully importing all discovered blobs into the
* Lustre namespace. CompletedPartial indicates the import finished but some blobs either were found to be conflicting
* and could not be imported or other errors were encountered. Failed means the import was unable to complete due to a
* fatal error.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-storagecache/proxy-config.json b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-storagecache/proxy-config.json
index 8f4d583893fc..ad3cf139d713 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-storagecache/proxy-config.json
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-storagecache/proxy-config.json
@@ -1 +1 @@
-[["com.azure.resourcemanager.storagecache.implementation.AmlFilesystemsClientImpl$AmlFilesystemsService"],["com.azure.resourcemanager.storagecache.implementation.AscOperationsClientImpl$AscOperationsService"],["com.azure.resourcemanager.storagecache.implementation.AscUsagesClientImpl$AscUsagesService"],["com.azure.resourcemanager.storagecache.implementation.CachesClientImpl$CachesService"],["com.azure.resourcemanager.storagecache.implementation.ImportJobsClientImpl$ImportJobsService"],["com.azure.resourcemanager.storagecache.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.storagecache.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.storagecache.implementation.SkusClientImpl$SkusService"],["com.azure.resourcemanager.storagecache.implementation.StorageTargetOperationsClientImpl$StorageTargetOperationsService"],["com.azure.resourcemanager.storagecache.implementation.StorageTargetsClientImpl$StorageTargetsService"],["com.azure.resourcemanager.storagecache.implementation.UsageModelsClientImpl$UsageModelsService"]]
\ No newline at end of file
+[["com.azure.resourcemanager.storagecache.implementation.AmlFilesystemsClientImpl$AmlFilesystemsService"],["com.azure.resourcemanager.storagecache.implementation.AscOperationsClientImpl$AscOperationsService"],["com.azure.resourcemanager.storagecache.implementation.AscUsagesClientImpl$AscUsagesService"],["com.azure.resourcemanager.storagecache.implementation.AutoExportJobsClientImpl$AutoExportJobsService"],["com.azure.resourcemanager.storagecache.implementation.CachesClientImpl$CachesService"],["com.azure.resourcemanager.storagecache.implementation.ImportJobsClientImpl$ImportJobsService"],["com.azure.resourcemanager.storagecache.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.storagecache.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.storagecache.implementation.SkusClientImpl$SkusService"],["com.azure.resourcemanager.storagecache.implementation.StorageTargetOperationsClientImpl$StorageTargetOperationsService"],["com.azure.resourcemanager.storagecache.implementation.StorageTargetsClientImpl$StorageTargetsService"],["com.azure.resourcemanager.storagecache.implementation.UsageModelsClientImpl$UsageModelsService"]]
\ No newline at end of file
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveSamples.java
index 26afad0614f9..46c160b04bb8 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveSamples.java
@@ -12,7 +12,7 @@
public final class AmlFilesystemsArchiveSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_Archive.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveSamples.java
index 0e0c91395661..90979e41b096 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveSamples.java
@@ -10,7 +10,7 @@
public final class AmlFilesystemsCancelArchiveSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_CancelArchive.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCreateOrUpdateSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCreateOrUpdateSamples.java
index 3bbe94a5a613..f9847fb568cb 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCreateOrUpdateSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCreateOrUpdateSamples.java
@@ -27,7 +27,7 @@
public final class AmlFilesystemsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_CreateOrUpdate.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteSamples.java
index 358af6fc6015..f8b33db3bcb2 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteSamples.java
@@ -10,7 +10,7 @@
public final class AmlFilesystemsDeleteSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_Delete.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsGetByResourceGroupSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsGetByResourceGroupSamples.java
index 528005286c0b..c37081739b00 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsGetByResourceGroupSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsGetByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class AmlFilesystemsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/amlFilesystems_Get.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/amlFilesystems_Get.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListByResourceGroupSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListByResourceGroupSamples.java
index 814b9cf537d7..878b8be91cb3 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListByResourceGroupSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class AmlFilesystemsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_ListByResourceGroup.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListSamples.java
index 181cc080c841..44a765b09ff8 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListSamples.java
@@ -10,7 +10,7 @@
public final class AmlFilesystemsListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/amlFilesystems_List
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/amlFilesystems_List
* .json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsUpdateSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsUpdateSamples.java
index b693ca2d450b..cb29f5899b87 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsUpdateSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsUpdateSamples.java
@@ -21,7 +21,7 @@
public final class AmlFilesystemsUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* amlFilesystems_Update.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AscOperationsGetSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AscOperationsGetSamples.java
index 9d749f44932c..957e49af6d6e 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AscOperationsGetSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AscOperationsGetSamples.java
@@ -10,7 +10,7 @@
public final class AscOperationsGetSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/AscOperations_Get.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/AscOperations_Get.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListSamples.java
index 0e0477eb9820..80a8fe4e023a 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListSamples.java
@@ -10,7 +10,7 @@
public final class AscUsagesListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* AscResourceUsages_Get.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsCreateOrUpdateSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsCreateOrUpdateSamples.java
new file mode 100644
index 000000000000..5538923a15e3
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsCreateOrUpdateSamples.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagecache.generated;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AutoExportJobs CreateOrUpdate.
+ */
+public final class AutoExportJobsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
+ * autoExportJobs_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: autoExportJobs_CreateOrUpdate.
+ *
+ * @param manager Entry point to StorageCacheManager.
+ */
+ public static void
+ autoExportJobsCreateOrUpdate(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
+ manager.autoExportJobs()
+ .define("job1")
+ .withRegion("eastus")
+ .withExistingAmlFilesystem("scgroup", "fs1")
+ .withTags(mapOf("Dept", "ContosoAds"))
+ .withAutoExportPrefixes(Arrays.asList("/"))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @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/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsDeleteSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsDeleteSamples.java
new file mode 100644
index 000000000000..4d3d0acff515
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsDeleteSamples.java
@@ -0,0 +1,24 @@
+// 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;
+
+/**
+ * Samples for AutoExportJobs Delete.
+ */
+public final class AutoExportJobsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
+ * autoExportJobs_Delete.json
+ */
+ /**
+ * Sample code: autoExportJobs_Delete.
+ *
+ * @param manager Entry point to StorageCacheManager.
+ */
+ public static void autoExportJobsDelete(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
+ manager.autoExportJobs().delete("scgroup", "fs1", "job1", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsGetSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsGetSamples.java
new file mode 100644
index 000000000000..f11612a105a1
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsGetSamples.java
@@ -0,0 +1,24 @@
+// 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;
+
+/**
+ * Samples for AutoExportJobs Get.
+ */
+public final class AutoExportJobsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/autoExportJobs_Get.
+ * json
+ */
+ /**
+ * Sample code: autoExportJobs_Get.
+ *
+ * @param manager Entry point to StorageCacheManager.
+ */
+ public static void autoExportJobsGet(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
+ manager.autoExportJobs().getWithResponse("scgroup", "fs1", "job1", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsListByAmlFilesystemSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsListByAmlFilesystemSamples.java
new file mode 100644
index 000000000000..d3ba807923af
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsListByAmlFilesystemSamples.java
@@ -0,0 +1,25 @@
+// 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;
+
+/**
+ * Samples for AutoExportJobs ListByAmlFilesystem.
+ */
+public final class AutoExportJobsListByAmlFilesystemSamples {
+ /*
+ * x-ms-original-file:
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
+ * autoExportJobs_ListByAmlFilesystem.json
+ */
+ /**
+ * Sample code: autoExportJobs_ListByAmlFilesystem.
+ *
+ * @param manager Entry point to StorageCacheManager.
+ */
+ public static void
+ autoExportJobsListByAmlFilesystem(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
+ manager.autoExportJobs().listByAmlFilesystem("scgroup", "fs1", com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsUpdateSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsUpdateSamples.java
new file mode 100644
index 000000000000..6f6a1272852e
--- /dev/null
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AutoExportJobsUpdateSamples.java
@@ -0,0 +1,43 @@
+// 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.resourcemanager.storagecache.models.AutoExportJob;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AutoExportJobs Update.
+ */
+public final class AutoExportJobsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
+ * autoExportJobs_Update.json
+ */
+ /**
+ * Sample code: autoExportJobs_Update.
+ *
+ * @param manager Entry point to StorageCacheManager.
+ */
+ public static void autoExportJobsUpdate(com.azure.resourcemanager.storagecache.StorageCacheManager manager) {
+ AutoExportJob resource = manager.autoExportJobs()
+ .getWithResponse("scgroup", "fs1", "job1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("Dept", "ContosoAds")).apply();
+ }
+
+ // Use "Map.of" if available
+ @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/samples/java/com/azure/resourcemanager/storagecache/generated/CachesCreateOrUpdateSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesCreateOrUpdateSamples.java
index 93a9ef515492..e7f6c4d528a0 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesCreateOrUpdateSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesCreateOrUpdateSamples.java
@@ -34,7 +34,7 @@
public final class CachesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* Caches_CreateOrUpdate_ldap_only.json
*/
/**
@@ -79,7 +79,7 @@ public final class CachesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* Caches_CreateOrUpdate.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesDebugInfoSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesDebugInfoSamples.java
index ed322ea348ce..31625100a536 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesDebugInfoSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesDebugInfoSamples.java
@@ -10,7 +10,7 @@
public final class CachesDebugInfoSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_DebugInfo.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_DebugInfo.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesDeleteSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesDeleteSamples.java
index 0de4f3de8130..77c37b4a7345 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesDeleteSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesDeleteSamples.java
@@ -10,7 +10,7 @@
public final class CachesDeleteSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Delete.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Delete.json
*/
/**
* Sample code: Caches_Delete.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesFlushSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesFlushSamples.java
index 4ee409af3ecd..d01def28a114 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesFlushSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesFlushSamples.java
@@ -10,7 +10,7 @@
public final class CachesFlushSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Flush.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Flush.json
*/
/**
* Sample code: Caches_Flush.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesGetByResourceGroupSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesGetByResourceGroupSamples.java
index 26789b015339..f18aaddf5d9f 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesGetByResourceGroupSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesGetByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class CachesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Get.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Get.json
*/
/**
* Sample code: Caches_Get.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesListByResourceGroupSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesListByResourceGroupSamples.java
index 75d7311a8518..b5c68219a3a9 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesListByResourceGroupSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesListByResourceGroupSamples.java
@@ -10,7 +10,7 @@
public final class CachesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* Caches_ListByResourceGroup.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesListSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesListSamples.java
index e21b19cb3a66..0f9900cff91e 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesListSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesListSamples.java
@@ -10,7 +10,7 @@
public final class CachesListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_List.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_List.json
*/
/**
* Sample code: Caches_List.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesPausePrimingJobSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesPausePrimingJobSamples.java
index d3c6423e51eb..6d1d69fabb31 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesPausePrimingJobSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesPausePrimingJobSamples.java
@@ -12,7 +12,7 @@
public final class CachesPausePrimingJobSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/PausePrimingJob.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/PausePrimingJob.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesResumePrimingJobSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesResumePrimingJobSamples.java
index c097996ddfe1..850130706344 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesResumePrimingJobSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesResumePrimingJobSamples.java
@@ -12,7 +12,7 @@
public final class CachesResumePrimingJobSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/ResumePrimingJob.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/ResumePrimingJob.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesSpaceAllocationSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesSpaceAllocationSamples.java
index 03aafce03394..e1f3a3ae5853 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesSpaceAllocationSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesSpaceAllocationSamples.java
@@ -13,7 +13,7 @@
public final class CachesSpaceAllocationSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* SpaceAllocation_Post.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStartPrimingJobSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStartPrimingJobSamples.java
index 0780c46bc698..044d914d2b24 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStartPrimingJobSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStartPrimingJobSamples.java
@@ -12,7 +12,7 @@
public final class CachesStartPrimingJobSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/StartPrimingJob.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/StartPrimingJob.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStartSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStartSamples.java
index 2fcb967c0991..da32ab3b6b1e 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStartSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStartSamples.java
@@ -10,7 +10,7 @@
public final class CachesStartSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Start.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Start.json
*/
/**
* Sample code: Caches_Start.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStopPrimingJobSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStopPrimingJobSamples.java
index 8c5c04eb9d25..7c7c6d99a613 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStopPrimingJobSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStopPrimingJobSamples.java
@@ -12,7 +12,7 @@
public final class CachesStopPrimingJobSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/StopPrimingJob.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/StopPrimingJob.json
*/
/**
* Sample code: StopPrimingJob.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStopSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStopSamples.java
index fd424ff9c6ca..e22379e682b8 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStopSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesStopSamples.java
@@ -10,7 +10,7 @@
public final class CachesStopSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Stop.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Stop.json
*/
/**
* Sample code: Caches_Stop.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesUpdateSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesUpdateSamples.java
index 2294a64e396c..fcd5aff4f7e7 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesUpdateSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesUpdateSamples.java
@@ -28,7 +28,7 @@
public final class CachesUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* Caches_Update_ldap_only.json
*/
/**
@@ -89,7 +89,7 @@ public static void cachesUpdateLdapOnly(com.azure.resourcemanager.storagecache.S
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Caches_Update.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Caches_Update.json
*/
/**
* Sample code: Caches_Update.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesUpgradeFirmwareSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesUpgradeFirmwareSamples.java
index 59cf0208d1b9..8d390a0fc101 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesUpgradeFirmwareSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/CachesUpgradeFirmwareSamples.java
@@ -10,7 +10,7 @@
public final class CachesUpgradeFirmwareSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* Caches_UpgradeFirmware.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsCreateOrUpdateSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsCreateOrUpdateSamples.java
index 2df84ef2cf22..83ec149af172 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsCreateOrUpdateSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsCreateOrUpdateSamples.java
@@ -15,7 +15,7 @@
public final class ImportJobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* importJobs_CreateOrUpdate.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsDeleteSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsDeleteSamples.java
index fa4efb12e51c..e5113a035636 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsDeleteSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsDeleteSamples.java
@@ -10,7 +10,7 @@
public final class ImportJobsDeleteSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/importJobs_Delete.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/importJobs_Delete.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsGetSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsGetSamples.java
index 40ecd84ab802..4d164548e224 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsGetSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsGetSamples.java
@@ -10,7 +10,7 @@
public final class ImportJobsGetSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/importJobs_Get.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/importJobs_Get.json
*/
/**
* Sample code: importJobs_Get.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsListByAmlFilesystemSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsListByAmlFilesystemSamples.java
index a87b60ce7539..0ecd0040b71a 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsListByAmlFilesystemSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsListByAmlFilesystemSamples.java
@@ -10,7 +10,7 @@
public final class ImportJobsListByAmlFilesystemSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* importJobs_ListByAmlFilesystem.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsUpdateSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsUpdateSamples.java
index 6eaeb7fe66d8..294fca38e977 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsUpdateSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ImportJobsUpdateSamples.java
@@ -14,7 +14,7 @@
public final class ImportJobsUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/importJob_Update.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/importJob_Update.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/OperationsListSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/OperationsListSamples.java
index 991e2adf8337..eee87b68f8a3 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/OperationsListSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/OperationsListSamples.java
@@ -10,7 +10,7 @@
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Operations_List.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Operations_List.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderCheckAmlFSSubnetsSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderCheckAmlFSSubnetsSamples.java
index f2ce605bb543..697d5907a4cb 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderCheckAmlFSSubnetsSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderCheckAmlFSSubnetsSamples.java
@@ -13,7 +13,7 @@
public final class ResourceProviderCheckAmlFSSubnetsSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/checkAmlFSSubnets.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/checkAmlFSSubnets.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderGetRequiredAmlFSSubnetsSizeSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderGetRequiredAmlFSSubnetsSizeSamples.java
index e7a17a9a0ce7..8a5997d9b17f 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderGetRequiredAmlFSSubnetsSizeSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderGetRequiredAmlFSSubnetsSizeSamples.java
@@ -10,7 +10,7 @@
public final class ResourceProviderGetRequiredAmlFSSubnetsSizeSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* getRequiredAmlFSSubnetsSize.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/SkusListSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/SkusListSamples.java
index 5d0b7fef8afa..6b5e037a68ee 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/SkusListSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/SkusListSamples.java
@@ -10,7 +10,7 @@
public final class SkusListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/Skus_List.json
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/Skus_List.json
*/
/**
* Sample code: Skus_List.
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationFlushSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationFlushSamples.java
index 23d45f33268f..79e2250a0d5a 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationFlushSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationFlushSamples.java
@@ -10,7 +10,7 @@
public final class StorageTargetOperationFlushSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_Flush.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationInvalidateSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationInvalidateSamples.java
index 05434dfc12d9..b51f6752b83e 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationInvalidateSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationInvalidateSamples.java
@@ -10,7 +10,7 @@
public final class StorageTargetOperationInvalidateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_Invalidate.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationResumeSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationResumeSamples.java
index 2de602db7ecf..7d9f60dd717d 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationResumeSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationResumeSamples.java
@@ -10,7 +10,7 @@
public final class StorageTargetOperationResumeSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_Resume.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationSuspendSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationSuspendSamples.java
index 5662a216fd4a..adc7e1ae345d 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationSuspendSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationSuspendSamples.java
@@ -10,7 +10,7 @@
public final class StorageTargetOperationSuspendSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_Suspend.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsCreateOrUpdateSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsCreateOrUpdateSamples.java
index 2ea3c9b7e23d..2be0ef37ffd8 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsCreateOrUpdateSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsCreateOrUpdateSamples.java
@@ -16,7 +16,7 @@
public final class StorageTargetsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_CreateOrUpdate.json
*/
/**
@@ -45,7 +45,7 @@ public final class StorageTargetsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_CreateOrUpdate_BlobNfs.json
*/
/**
@@ -70,7 +70,7 @@ public final class StorageTargetsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_CreateOrUpdate_NoJunctions.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteSamples.java
index 176734983228..a1ee7e4a3e0b 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteSamples.java
@@ -10,7 +10,7 @@
public final class StorageTargetsDeleteSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_Delete.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDnsRefreshSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDnsRefreshSamples.java
index ed159e3ab6f7..7fc9418b1ada 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDnsRefreshSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDnsRefreshSamples.java
@@ -10,7 +10,7 @@
public final class StorageTargetsDnsRefreshSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_DnsRefresh.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsGetSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsGetSamples.java
index 3f0401b5eee7..1be5a130d330 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsGetSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsGetSamples.java
@@ -10,7 +10,7 @@
public final class StorageTargetsGetSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/StorageTargets_Get.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/StorageTargets_Get.
* json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsListByCacheSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsListByCacheSamples.java
index ad62dc22705d..be5222877713 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsListByCacheSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsListByCacheSamples.java
@@ -10,7 +10,7 @@
public final class StorageTargetsListByCacheSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_ListByCache.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsRestoreDefaultsSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsRestoreDefaultsSamples.java
index c00d9fa02fae..1947d40cdb90 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsRestoreDefaultsSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsRestoreDefaultsSamples.java
@@ -10,7 +10,7 @@
public final class StorageTargetsRestoreDefaultsSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/
* StorageTargets_RestoreDefaults.json
*/
/**
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/UsageModelsListSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/UsageModelsListSamples.java
index fa487cfab472..e58e10da9fdc 100644
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/UsageModelsListSamples.java
+++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/UsageModelsListSamples.java
@@ -10,7 +10,7 @@
public final class UsageModelsListSamples {
/*
* x-ms-original-file:
- * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-03-01/examples/UsageModels_List.
+ * specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2024-07-01/examples/UsageModels_List.
* json
*/
/**
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 4a16f507fa5b..000000000000
--- 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\":\"jwnzlljfmp\"}").toObject(AmlFilesystemArchiveInfo.class);
- Assertions.assertEquals("jwnzlljfmp", model.filesystemPath());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemArchiveInfo model = new AmlFilesystemArchiveInfo().withFilesystemPath("jwnzlljfmp");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemArchiveInfo.class);
- Assertions.assertEquals("jwnzlljfmp", 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 a63f623cbe46..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorFilesystemSubnetTests.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.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\":\"Ok\",\"message\":\"uvcc\"}")
- .toObject(AmlFilesystemCheckSubnetErrorFilesystemSubnet.class);
- Assertions.assertEquals(FilesystemSubnetStatusType.OK, model.status());
- Assertions.assertEquals("uvcc", model.message());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemCheckSubnetErrorFilesystemSubnet model
- = new AmlFilesystemCheckSubnetErrorFilesystemSubnet().withStatus(FilesystemSubnetStatusType.OK)
- .withMessage("uvcc");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemCheckSubnetErrorFilesystemSubnet.class);
- Assertions.assertEquals(FilesystemSubnetStatusType.OK, model.status());
- Assertions.assertEquals("uvcc", 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 46b1e291ab8b..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorTests.java
+++ /dev/null
@@ -1,32 +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\":\"Ok\",\"message\":\"gbmqjqabcypmiv\"}}")
- .toObject(AmlFilesystemCheckSubnetError.class);
- Assertions.assertEquals(FilesystemSubnetStatusType.OK, model.filesystemSubnet().status());
- Assertions.assertEquals("gbmqjqabcypmiv", model.filesystemSubnet().message());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemCheckSubnetError model = new AmlFilesystemCheckSubnetError().withFilesystemSubnet(
- new AmlFilesystemCheckSubnetErrorFilesystemSubnet().withStatus(FilesystemSubnetStatusType.OK)
- .withMessage("gbmqjqabcypmiv"));
- model = BinaryData.fromObject(model).toObject(AmlFilesystemCheckSubnetError.class);
- Assertions.assertEquals(FilesystemSubnetStatusType.OK, model.filesystemSubnet().status());
- Assertions.assertEquals("gbmqjqabcypmiv", 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 cfa0422c9486..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemClientInfoTests.java
+++ /dev/null
@@ -1,23 +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\":\"cs\",\"mountCommand\":\"s\",\"lustreVersion\":\"nyejhkryhtnap\",\"containerStorageInterface\":{\"persistentVolumeClaim\":\"lokjyemkk\",\"persistentVolume\":\"ipjoxzjnchgejs\",\"storageClass\":\"dmailzydehojw\"}}")
- .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 e88bbefa0daa..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemContainerStorageInterfaceTests.java
+++ /dev/null
@@ -1,23 +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\":\"huxinpmqnj\",\"persistentVolume\":\"wixjsprozvcp\",\"storageClass\":\"eg\"}")
- .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 90a09f80bb78..000000000000
--- 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 java.util.Arrays;
-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\":\"np\",\"loggingContainer\":\"qfpjk\",\"importPrefix\":\"xofpdvhpfxxypi\",\"importPrefixesInitial\":[\"mayhuybbkpodepoo\",\"inuvamiheogn\",\"rxzxtheo\"]}")
- .toObject(AmlFilesystemHsmSettings.class);
- Assertions.assertEquals("np", model.container());
- Assertions.assertEquals("qfpjk", model.loggingContainer());
- Assertions.assertEquals("xofpdvhpfxxypi", model.importPrefix());
- Assertions.assertEquals("mayhuybbkpodepoo", model.importPrefixesInitial().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemHsmSettings model = new AmlFilesystemHsmSettings().withContainer("np")
- .withLoggingContainer("qfpjk")
- .withImportPrefix("xofpdvhpfxxypi")
- .withImportPrefixesInitial(Arrays.asList("mayhuybbkpodepoo", "inuvamiheogn", "rxzxtheo"));
- model = BinaryData.fromObject(model).toObject(AmlFilesystemHsmSettings.class);
- Assertions.assertEquals("np", model.container());
- Assertions.assertEquals("qfpjk", model.loggingContainer());
- Assertions.assertEquals("xofpdvhpfxxypi", model.importPrefix());
- Assertions.assertEquals("mayhuybbkpodepoo", model.importPrefixesInitial().get(0));
- }
-}
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 c1c62196b73f..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemIdentityTests.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.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\":\"rcryuanzwuxzdxta\",\"tenantId\":\"lhmwhfpmrqobm\",\"type\":\"None\",\"userAssignedIdentities\":{\"uf\":{\"principalId\":\"yrtih\",\"clientId\":\"tijbpzvgnwzsymgl\"},\"s\":{\"principalId\":\"zk\",\"clientId\":\"dbihanufhfcbj\"}}}")
- .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("uf", new UserAssignedIdentitiesValue(), "s", new UserAssignedIdentitiesValue()));
- model = BinaryData.fromObject(model).toObject(AmlFilesystemIdentity.class);
- Assertions.assertEquals(AmlFilesystemIdentityType.NONE, model.type());
- }
-
- // Use "Map.of" if available
- @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 9afcccc41323..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemPropertiesMaintenanceWindowTests.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.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\":\"vwryoqpso\"}")
- .toObject(AmlFilesystemPropertiesMaintenanceWindow.class);
- Assertions.assertEquals(MaintenanceDayOfWeekType.THURSDAY, model.dayOfWeek());
- Assertions.assertEquals("vwryoqpso", model.timeOfDayUtc());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemPropertiesMaintenanceWindow model
- = new AmlFilesystemPropertiesMaintenanceWindow().withDayOfWeek(MaintenanceDayOfWeekType.THURSDAY)
- .withTimeOfDayUtc("vwryoqpso");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemPropertiesMaintenanceWindow.class);
- Assertions.assertEquals(MaintenanceDayOfWeekType.THURSDAY, model.dayOfWeek());
- Assertions.assertEquals("vwryoqpso", model.timeOfDayUtc());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemRootSquashSettingsTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemRootSquashSettingsTests.java
deleted file mode 100644
index 2be5f412b6f8..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemRootSquashSettingsTests.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.models.AmlFilesystemRootSquashSettings;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemSquashMode;
-import org.junit.jupiter.api.Assertions;
-
-public final class AmlFilesystemRootSquashSettingsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- AmlFilesystemRootSquashSettings model = BinaryData.fromString(
- "{\"mode\":\"All\",\"noSquashNidLists\":\"qeof\",\"squashUID\":240667119929496892,\"squashGID\":2427630562639480366,\"status\":\"b\"}")
- .toObject(AmlFilesystemRootSquashSettings.class);
- Assertions.assertEquals(AmlFilesystemSquashMode.ALL, model.mode());
- Assertions.assertEquals("qeof", model.noSquashNidLists());
- Assertions.assertEquals(240667119929496892L, model.squashUid());
- Assertions.assertEquals(2427630562639480366L, model.squashGid());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemRootSquashSettings model
- = new AmlFilesystemRootSquashSettings().withMode(AmlFilesystemSquashMode.ALL)
- .withNoSquashNidLists("qeof")
- .withSquashUid(240667119929496892L)
- .withSquashGid(2427630562639480366L);
- model = BinaryData.fromObject(model).toObject(AmlFilesystemRootSquashSettings.class);
- Assertions.assertEquals(AmlFilesystemSquashMode.ALL, model.mode());
- Assertions.assertEquals("qeof", model.noSquashNidLists());
- Assertions.assertEquals(240667119929496892L, model.squashUid());
- Assertions.assertEquals(2427630562639480366L, model.squashGid());
- }
-}
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 bc9af6b509d3..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemSubnetInfoTests.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.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\":\"lcuiywgqywgndr\",\"storageCapacityTiB\":74.8914,\"sku\":{\"name\":\"gpphrcgyn\"},\"location\":\"cpecfvmmcoofs\"}")
- .toObject(AmlFilesystemSubnetInfo.class);
- Assertions.assertEquals("lcuiywgqywgndr", model.filesystemSubnet());
- Assertions.assertEquals(74.8914F, model.storageCapacityTiB());
- Assertions.assertEquals("gpphrcgyn", model.sku().name());
- Assertions.assertEquals("cpecfvmmcoofs", model.location());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemSubnetInfo model = new AmlFilesystemSubnetInfo().withFilesystemSubnet("lcuiywgqywgndr")
- .withStorageCapacityTiB(74.8914F)
- .withSku(new SkuName().withName("gpphrcgyn"))
- .withLocation("cpecfvmmcoofs");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemSubnetInfo.class);
- Assertions.assertEquals("lcuiywgqywgndr", model.filesystemSubnet());
- Assertions.assertEquals(74.8914F, model.storageCapacityTiB());
- Assertions.assertEquals("gpphrcgyn", model.sku().name());
- Assertions.assertEquals("cpecfvmmcoofs", 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 78261a11bafe..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdatePropertiesMaintenanceWindowTests.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.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\":\"Friday\",\"timeOfDayUTC\":\"njbiksqrglssain\"}")
- .toObject(AmlFilesystemUpdatePropertiesMaintenanceWindow.class);
- Assertions.assertEquals(MaintenanceDayOfWeekType.FRIDAY, model.dayOfWeek());
- Assertions.assertEquals("njbiksqrglssain", model.timeOfDayUtc());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AmlFilesystemUpdatePropertiesMaintenanceWindow model
- = new AmlFilesystemUpdatePropertiesMaintenanceWindow().withDayOfWeek(MaintenanceDayOfWeekType.FRIDAY)
- .withTimeOfDayUtc("njbiksqrglssain");
- model = BinaryData.fromObject(model).toObject(AmlFilesystemUpdatePropertiesMaintenanceWindow.class);
- Assertions.assertEquals(MaintenanceDayOfWeekType.FRIDAY, model.dayOfWeek());
- Assertions.assertEquals("njbiksqrglssain", model.timeOfDayUtc());
- }
-}
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 bce349566d38..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveWithResponseMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class AmlFilesystemsArchiveWithResponseMockTests {
- @Test
- public void testArchiveWithResponse() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("hcrat", "zzronasx",
- new AmlFilesystemArchiveInfo().withFilesystemPath("tozqyzhftwesgo"), 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 cabd8b2df799..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveWithResponseMockTests.java
+++ /dev/null
@@ -1,34 +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.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class AmlFilesystemsCancelArchiveWithResponseMockTests {
- @Test
- public void testCancelArchiveWithResponse() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("czhonnxkr", "gnyhmossxkkg", 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 7ca5ea29b3c6..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class AmlFilesystemsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("vtylbfpncu", "doiwi", com.azure.core.util.Context.NONE);
-
- }
-}
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 f3d193619fbd..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationDisplayTests.java
+++ /dev/null
@@ -1,35 +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\":\"r\",\"provider\":\"sdpydnfyhxdeoejz\",\"resource\":\"w\",\"description\":\"sjttgzfbish\"}")
- .toObject(ApiOperationDisplay.class);
- Assertions.assertEquals("r", model.operation());
- Assertions.assertEquals("sdpydnfyhxdeoejz", model.provider());
- Assertions.assertEquals("w", model.resource());
- Assertions.assertEquals("sjttgzfbish", model.description());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiOperationDisplay model = new ApiOperationDisplay().withOperation("r")
- .withProvider("sdpydnfyhxdeoejz")
- .withResource("w")
- .withDescription("sjttgzfbish");
- model = BinaryData.fromObject(model).toObject(ApiOperationDisplay.class);
- Assertions.assertEquals("r", model.operation());
- Assertions.assertEquals("sdpydnfyhxdeoejz", model.provider());
- Assertions.assertEquals("w", model.resource());
- Assertions.assertEquals("sjttgzfbish", 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 9c3f91a81ed7..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationInnerTests.java
+++ /dev/null
@@ -1,121 +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 com.azure.resourcemanager.storagecache.models.LogSpecification;
-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 ApiOperationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiOperationInner model = BinaryData.fromString(
- "{\"display\":{\"operation\":\"refovgmkqsleyyvx\",\"provider\":\"jpkcattpng\",\"resource\":\"rcczsqpjhvmd\",\"description\":\"v\"},\"origin\":\"sounqecanoaeu\",\"isDataAction\":false,\"name\":\"hltrpmopjmcmatuo\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"uaodsfcpk\",\"displayName\":\"odpuozmyzydag\",\"displayDescription\":\"axbezyiuo\",\"unit\":\"twhrdxwzywqsm\",\"aggregationType\":\"ureximoryocfs\",\"supportedAggregationTypes\":[\"Minimum\"],\"metricClass\":\"ddystkiiuxhqy\",\"dimensions\":[{},{}]},{\"name\":\"rrqnbpoczvyifqrv\",\"displayName\":\"vjsllrmvvdfw\",\"displayDescription\":\"kpnpulexxbczwtr\",\"unit\":\"iqzbq\",\"aggregationType\":\"sovmyokacspkwl\",\"supportedAggregationTypes\":[\"Minimum\",\"Average\",\"None\",\"Count\"],\"metricClass\":\"mflbv\",\"dimensions\":[{},{},{},{}]},{\"name\":\"rkcciwwzjuqk\",\"displayName\":\"sa\",\"displayDescription\":\"wkuofoskghsauu\",\"unit\":\"jmvxie\",\"aggregationType\":\"ugidyjrr\",\"supportedAggregationTypes\":[\"Average\"],\"metricClass\":\"svexcsonpclhoco\",\"dimensions\":[{},{}]},{\"name\":\"ev\",\"displayName\":\"ggzfbu\",\"displayDescription\":\"mvfaxkffeiith\",\"unit\":\"m\",\"aggregationType\":\"yvshxmz\",\"supportedAggregationTypes\":[\"Count\",\"Maximum\",\"Total\"],\"metricClass\":\"igrxwburvjxxjn\",\"dimensions\":[{},{}]}],\"logSpecifications\":[{\"name\":\"koen\",\"displayName\":\"uknvudwti\"},{\"name\":\"bldngkpoc\",\"displayName\":\"azyxoegukg\"},{\"name\":\"piu\",\"displayName\":\"ygevqzntypmrbpiz\"}]}}}")
- .toObject(ApiOperationInner.class);
- Assertions.assertEquals("refovgmkqsleyyvx", model.display().operation());
- Assertions.assertEquals("jpkcattpng", model.display().provider());
- Assertions.assertEquals("rcczsqpjhvmd", model.display().resource());
- Assertions.assertEquals("v", model.display().description());
- Assertions.assertEquals("sounqecanoaeu", model.origin());
- Assertions.assertEquals(false, model.isDataAction());
- Assertions.assertEquals("hltrpmopjmcmatuo", model.name());
- Assertions.assertEquals("uaodsfcpk", model.serviceSpecification().metricSpecifications().get(0).name());
- Assertions.assertEquals("odpuozmyzydag",
- model.serviceSpecification().metricSpecifications().get(0).displayName());
- Assertions.assertEquals("axbezyiuo",
- model.serviceSpecification().metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("twhrdxwzywqsm", model.serviceSpecification().metricSpecifications().get(0).unit());
- Assertions.assertEquals("ureximoryocfs",
- model.serviceSpecification().metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(MetricAggregationType.MINIMUM,
- model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0));
- Assertions.assertEquals("ddystkiiuxhqy",
- model.serviceSpecification().metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("koen", model.serviceSpecification().logSpecifications().get(0).name());
- Assertions.assertEquals("uknvudwti", model.serviceSpecification().logSpecifications().get(0).displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiOperationInner model = new ApiOperationInner()
- .withDisplay(new ApiOperationDisplay().withOperation("refovgmkqsleyyvx")
- .withProvider("jpkcattpng")
- .withResource("rcczsqpjhvmd")
- .withDescription("v"))
- .withOrigin("sounqecanoaeu")
- .withIsDataAction(false)
- .withName("hltrpmopjmcmatuo")
- .withServiceSpecification(new ApiOperationPropertiesServiceSpecification()
- .withMetricSpecifications(Arrays.asList(
- new MetricSpecification().withName("uaodsfcpk")
- .withDisplayName("odpuozmyzydag")
- .withDisplayDescription("axbezyiuo")
- .withUnit("twhrdxwzywqsm")
- .withAggregationType("ureximoryocfs")
- .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.MINIMUM))
- .withMetricClass("ddystkiiuxhqy")
- .withDimensions(Arrays.asList(new MetricDimension(), new MetricDimension())),
- new MetricSpecification().withName("rrqnbpoczvyifqrv")
- .withDisplayName("vjsllrmvvdfw")
- .withDisplayDescription("kpnpulexxbczwtr")
- .withUnit("iqzbq")
- .withAggregationType("sovmyokacspkwl")
- .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.MINIMUM,
- MetricAggregationType.AVERAGE, MetricAggregationType.NONE, MetricAggregationType.COUNT))
- .withMetricClass("mflbv")
- .withDimensions(Arrays.asList(new MetricDimension(), new MetricDimension(),
- new MetricDimension(), new MetricDimension())),
- new MetricSpecification().withName("rkcciwwzjuqk")
- .withDisplayName("sa")
- .withDisplayDescription("wkuofoskghsauu")
- .withUnit("jmvxie")
- .withAggregationType("ugidyjrr")
- .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE))
- .withMetricClass("svexcsonpclhoco")
- .withDimensions(Arrays.asList(new MetricDimension(), new MetricDimension())),
- new MetricSpecification().withName("ev")
- .withDisplayName("ggzfbu")
- .withDisplayDescription("mvfaxkffeiith")
- .withUnit("m")
- .withAggregationType("yvshxmz")
- .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.COUNT,
- MetricAggregationType.MAXIMUM, MetricAggregationType.TOTAL))
- .withMetricClass("igrxwburvjxxjn")
- .withDimensions(Arrays.asList(new MetricDimension(), new MetricDimension()))))
- .withLogSpecifications(
- Arrays.asList(new LogSpecification().withName("koen").withDisplayName("uknvudwti"),
- new LogSpecification().withName("bldngkpoc").withDisplayName("azyxoegukg"),
- new LogSpecification().withName("piu").withDisplayName("ygevqzntypmrbpiz"))));
- model = BinaryData.fromObject(model).toObject(ApiOperationInner.class);
- Assertions.assertEquals("refovgmkqsleyyvx", model.display().operation());
- Assertions.assertEquals("jpkcattpng", model.display().provider());
- Assertions.assertEquals("rcczsqpjhvmd", model.display().resource());
- Assertions.assertEquals("v", model.display().description());
- Assertions.assertEquals("sounqecanoaeu", model.origin());
- Assertions.assertEquals(false, model.isDataAction());
- Assertions.assertEquals("hltrpmopjmcmatuo", model.name());
- Assertions.assertEquals("uaodsfcpk", model.serviceSpecification().metricSpecifications().get(0).name());
- Assertions.assertEquals("odpuozmyzydag",
- model.serviceSpecification().metricSpecifications().get(0).displayName());
- Assertions.assertEquals("axbezyiuo",
- model.serviceSpecification().metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("twhrdxwzywqsm", model.serviceSpecification().metricSpecifications().get(0).unit());
- Assertions.assertEquals("ureximoryocfs",
- model.serviceSpecification().metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(MetricAggregationType.MINIMUM,
- model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0));
- Assertions.assertEquals("ddystkiiuxhqy",
- model.serviceSpecification().metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("koen", model.serviceSpecification().logSpecifications().get(0).name());
- Assertions.assertEquals("uknvudwti", model.serviceSpecification().logSpecifications().get(0).displayName());
- }
-}
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 53441dfd9bbc..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationListResultTests.java
+++ /dev/null
@@ -1,97 +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 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 ApiOperationListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiOperationListResult model = BinaryData.fromString(
- "{\"nextLink\":\"dpnqbq\",\"value\":[{\"display\":{\"operation\":\"feallnwsu\",\"provider\":\"snjampmng\",\"resource\":\"scxaq\",\"description\":\"ochcbonqvpkvl\"},\"origin\":\"njeaseipheofloke\",\"isDataAction\":true,\"name\":\"nj\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{},{},{}],\"logSpecifications\":[{},{},{}]}}},{\"display\":{\"operation\":\"djpjumasxazjpq\",\"provider\":\"gual\",\"resource\":\"xxhejjzzvd\",\"description\":\"gwdslfhotwm\"},\"origin\":\"npwlbjnpg\",\"isDataAction\":true,\"name\":\"adehxnltyfsopp\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{}],\"logSpecifications\":[{},{},{}]}}},{\"display\":{\"operation\":\"ej\",\"provider\":\"vorxzdmohct\",\"resource\":\"vudwx\",\"description\":\"dnvowg\"},\"origin\":\"jugwdkcglhsl\",\"isDataAction\":true,\"name\":\"yggdtjixh\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{},{}],\"logSpecifications\":[{}]}}},{\"display\":{\"operation\":\"kh\",\"provider\":\"n\",\"resource\":\"fyexfwhy\",\"description\":\"i\"},\"origin\":\"yvdcsitynnaa\",\"isDataAction\":false,\"name\":\"tehfiqscjeypvh\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{},{}],\"logSpecifications\":[{},{},{}]}}}]}")
- .toObject(ApiOperationListResult.class);
- Assertions.assertEquals("dpnqbq", model.nextLink());
- Assertions.assertEquals("feallnwsu", model.value().get(0).display().operation());
- Assertions.assertEquals("snjampmng", model.value().get(0).display().provider());
- Assertions.assertEquals("scxaq", model.value().get(0).display().resource());
- Assertions.assertEquals("ochcbonqvpkvl", model.value().get(0).display().description());
- Assertions.assertEquals("njeaseipheofloke", model.value().get(0).origin());
- Assertions.assertEquals(true, model.value().get(0).isDataAction());
- Assertions.assertEquals("nj", model.value().get(0).name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ApiOperationListResult model = new ApiOperationListResult().withNextLink("dpnqbq")
- .withValue(Arrays.asList(
- new ApiOperationInner()
- .withDisplay(new ApiOperationDisplay().withOperation("feallnwsu")
- .withProvider("snjampmng")
- .withResource("scxaq")
- .withDescription("ochcbonqvpkvl"))
- .withOrigin("njeaseipheofloke")
- .withIsDataAction(true)
- .withName("nj")
- .withServiceSpecification(new ApiOperationPropertiesServiceSpecification()
- .withMetricSpecifications(Arrays.asList(new MetricSpecification(), new MetricSpecification(),
- new MetricSpecification(), new MetricSpecification()))
- .withLogSpecifications(
- Arrays.asList(new LogSpecification(), new LogSpecification(), new LogSpecification()))),
- new ApiOperationInner()
- .withDisplay(new ApiOperationDisplay().withOperation("djpjumasxazjpq")
- .withProvider("gual")
- .withResource("xxhejjzzvd")
- .withDescription("gwdslfhotwm"))
- .withOrigin("npwlbjnpg")
- .withIsDataAction(true)
- .withName("adehxnltyfsopp")
- .withServiceSpecification(new ApiOperationPropertiesServiceSpecification()
- .withMetricSpecifications(Arrays.asList(new MetricSpecification(), new MetricSpecification()))
- .withLogSpecifications(
- Arrays.asList(new LogSpecification(), new LogSpecification(), new LogSpecification()))),
- new ApiOperationInner()
- .withDisplay(new ApiOperationDisplay().withOperation("ej")
- .withProvider("vorxzdmohct")
- .withResource("vudwx")
- .withDescription("dnvowg"))
- .withOrigin("jugwdkcglhsl")
- .withIsDataAction(true)
- .withName("yggdtjixh")
- .withServiceSpecification(new ApiOperationPropertiesServiceSpecification()
- .withMetricSpecifications(Arrays.asList(new MetricSpecification(), new MetricSpecification(),
- new MetricSpecification()))
- .withLogSpecifications(Arrays.asList(new LogSpecification()))),
- new ApiOperationInner()
- .withDisplay(new ApiOperationDisplay().withOperation("kh")
- .withProvider("n")
- .withResource("fyexfwhy")
- .withDescription("i"))
- .withOrigin("yvdcsitynnaa")
- .withIsDataAction(false)
- .withName("tehfiqscjeypvh")
- .withServiceSpecification(new ApiOperationPropertiesServiceSpecification()
- .withMetricSpecifications(Arrays.asList(new MetricSpecification(), new MetricSpecification(),
- new MetricSpecification()))
- .withLogSpecifications(
- Arrays.asList(new LogSpecification(), new LogSpecification(), new LogSpecification())))));
- model = BinaryData.fromObject(model).toObject(ApiOperationListResult.class);
- Assertions.assertEquals("dpnqbq", model.nextLink());
- Assertions.assertEquals("feallnwsu", model.value().get(0).display().operation());
- Assertions.assertEquals("snjampmng", model.value().get(0).display().provider());
- Assertions.assertEquals("scxaq", model.value().get(0).display().resource());
- Assertions.assertEquals("ochcbonqvpkvl", model.value().get(0).display().description());
- Assertions.assertEquals("njeaseipheofloke", model.value().get(0).origin());
- Assertions.assertEquals(true, model.value().get(0).isDataAction());
- Assertions.assertEquals("nj", 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 2be3588f68ca..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationPropertiesServiceSpecificationTests.java
+++ /dev/null
@@ -1,120 +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.MetricDimension;
-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\":\"hsmtxpsiebtfhvp\",\"displayName\":\"apskrdqm\",\"displayDescription\":\"jdhtldwkyzxu\",\"unit\":\"kn\",\"aggregationType\":\"scwsv\",\"supportedAggregationTypes\":[\"None\",\"Minimum\",\"Average\"],\"metricClass\":\"wrupqsxvnmicykvc\",\"dimensions\":[{\"name\":\"ilovnot\",\"displayName\":\"jfcn\",\"internalName\":\"k\",\"toBeExportedForShoebox\":false}]},{\"name\":\"hbttkphyw\",\"displayName\":\"vjtoqnermclfp\",\"displayDescription\":\"hoxus\",\"unit\":\"pabgyeps\",\"aggregationType\":\"tazqugxywpmueefj\",\"supportedAggregationTypes\":[\"Minimum\",\"Maximum\"],\"metricClass\":\"ujidsuyono\",\"dimensions\":[{\"name\":\"ocqxtccmg\",\"displayName\":\"dxyt\",\"internalName\":\"oyrxvwfudwpzntxh\",\"toBeExportedForShoebox\":false},{\"name\":\"rqjbhckfrl\",\"displayName\":\"xsbkyvpyca\",\"internalName\":\"z\",\"toBeExportedForShoebox\":false},{\"name\":\"afkuwb\",\"displayName\":\"nwbmeh\",\"internalName\":\"eyvjusrtslhspkde\",\"toBeExportedForShoebox\":true}]},{\"name\":\"fm\",\"displayName\":\"gkvtmelmqkrhah\",\"displayDescription\":\"juahaquhcdhmdual\",\"unit\":\"xqpvfadmw\",\"aggregationType\":\"crgvxpvgom\",\"supportedAggregationTypes\":[\"NotSpecified\",\"Average\"],\"metricClass\":\"gwb\",\"dimensions\":[{\"name\":\"ldawkzbaliourqha\",\"displayName\":\"uhashsfwx\",\"internalName\":\"owzxcu\",\"toBeExportedForShoebox\":true},{\"name\":\"ooxdjebwpuc\",\"displayName\":\"fvovbvmeuecivy\",\"internalName\":\"ce\",\"toBeExportedForShoebox\":true},{\"name\":\"jrwjueiotwm\",\"displayName\":\"ytdxwit\",\"internalName\":\"rjaw\",\"toBeExportedForShoebox\":false},{\"name\":\"xhniskxfbkpycgk\",\"displayName\":\"ndnhj\",\"internalName\":\"uwhvylwzbtdhxujz\",\"toBeExportedForShoebox\":false}]}],\"logSpecifications\":[{\"name\":\"uwprzql\",\"displayName\":\"ualupjmkh\"}]}")
- .toObject(ApiOperationPropertiesServiceSpecification.class);
- Assertions.assertEquals("hsmtxpsiebtfhvp", model.metricSpecifications().get(0).name());
- Assertions.assertEquals("apskrdqm", model.metricSpecifications().get(0).displayName());
- Assertions.assertEquals("jdhtldwkyzxu", model.metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("kn", model.metricSpecifications().get(0).unit());
- Assertions.assertEquals("scwsv", model.metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(MetricAggregationType.NONE,
- model.metricSpecifications().get(0).supportedAggregationTypes().get(0));
- Assertions.assertEquals("wrupqsxvnmicykvc", model.metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("ilovnot", model.metricSpecifications().get(0).dimensions().get(0).name());
- Assertions.assertEquals("jfcn", model.metricSpecifications().get(0).dimensions().get(0).displayName());
- Assertions.assertEquals("k", model.metricSpecifications().get(0).dimensions().get(0).internalName());
- Assertions.assertEquals(false,
- model.metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox());
- Assertions.assertEquals("uwprzql", model.logSpecifications().get(0).name());
- Assertions.assertEquals("ualupjmkh", 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("hsmtxpsiebtfhvp")
- .withDisplayName("apskrdqm")
- .withDisplayDescription("jdhtldwkyzxu")
- .withUnit("kn")
- .withAggregationType("scwsv")
- .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.NONE,
- MetricAggregationType.MINIMUM, MetricAggregationType.AVERAGE))
- .withMetricClass("wrupqsxvnmicykvc")
- .withDimensions(Arrays.asList(new MetricDimension().withName("ilovnot")
- .withDisplayName("jfcn")
- .withInternalName("k")
- .withToBeExportedForShoebox(false))),
- new MetricSpecification().withName("hbttkphyw")
- .withDisplayName("vjtoqnermclfp")
- .withDisplayDescription("hoxus")
- .withUnit("pabgyeps")
- .withAggregationType("tazqugxywpmueefj")
- .withSupportedAggregationTypes(
- Arrays.asList(MetricAggregationType.MINIMUM, MetricAggregationType.MAXIMUM))
- .withMetricClass("ujidsuyono")
- .withDimensions(Arrays.asList(
- new MetricDimension().withName("ocqxtccmg")
- .withDisplayName("dxyt")
- .withInternalName("oyrxvwfudwpzntxh")
- .withToBeExportedForShoebox(false),
- new MetricDimension().withName("rqjbhckfrl")
- .withDisplayName("xsbkyvpyca")
- .withInternalName("z")
- .withToBeExportedForShoebox(false),
- new MetricDimension().withName("afkuwb")
- .withDisplayName("nwbmeh")
- .withInternalName("eyvjusrtslhspkde")
- .withToBeExportedForShoebox(true))),
- new MetricSpecification().withName("fm")
- .withDisplayName("gkvtmelmqkrhah")
- .withDisplayDescription("juahaquhcdhmdual")
- .withUnit("xqpvfadmw")
- .withAggregationType("crgvxpvgom")
- .withSupportedAggregationTypes(
- Arrays.asList(MetricAggregationType.NOT_SPECIFIED, MetricAggregationType.AVERAGE))
- .withMetricClass("gwb")
- .withDimensions(Arrays.asList(
- new MetricDimension().withName("ldawkzbaliourqha")
- .withDisplayName("uhashsfwx")
- .withInternalName("owzxcu")
- .withToBeExportedForShoebox(true),
- new MetricDimension().withName("ooxdjebwpuc")
- .withDisplayName("fvovbvmeuecivy")
- .withInternalName("ce")
- .withToBeExportedForShoebox(true),
- new MetricDimension().withName("jrwjueiotwm")
- .withDisplayName("ytdxwit")
- .withInternalName("rjaw")
- .withToBeExportedForShoebox(false),
- new MetricDimension().withName("xhniskxfbkpycgk")
- .withDisplayName("ndnhj")
- .withInternalName("uwhvylwzbtdhxujz")
- .withToBeExportedForShoebox(false)))))
- .withLogSpecifications(
- Arrays.asList(new LogSpecification().withName("uwprzql").withDisplayName("ualupjmkh")));
- model = BinaryData.fromObject(model).toObject(ApiOperationPropertiesServiceSpecification.class);
- Assertions.assertEquals("hsmtxpsiebtfhvp", model.metricSpecifications().get(0).name());
- Assertions.assertEquals("apskrdqm", model.metricSpecifications().get(0).displayName());
- Assertions.assertEquals("jdhtldwkyzxu", model.metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("kn", model.metricSpecifications().get(0).unit());
- Assertions.assertEquals("scwsv", model.metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(MetricAggregationType.NONE,
- model.metricSpecifications().get(0).supportedAggregationTypes().get(0));
- Assertions.assertEquals("wrupqsxvnmicykvc", model.metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("ilovnot", model.metricSpecifications().get(0).dimensions().get(0).name());
- Assertions.assertEquals("jfcn", model.metricSpecifications().get(0).dimensions().get(0).displayName());
- Assertions.assertEquals("k", model.metricSpecifications().get(0).dimensions().get(0).internalName());
- Assertions.assertEquals(false,
- model.metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox());
- Assertions.assertEquals("uwprzql", model.logSpecifications().get(0).name());
- Assertions.assertEquals("ualupjmkh", 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 abfd4114e38b..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationPropertiesTests.java
+++ /dev/null
@@ -1,158 +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.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 ApiOperationPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ApiOperationProperties model = BinaryData.fromString(
- "{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"jdeyeamdpha\",\"displayName\":\"lpbuxwgipwhonowk\",\"displayDescription\":\"hwankixzbinjepu\",\"unit\":\"mryw\",\"aggregationType\":\"zoqftiyqzrnkcqvy\",\"supportedAggregationTypes\":[\"Average\",\"NotSpecified\",\"Total\"],\"metricClass\":\"icohoqqnwvl\",\"dimensions\":[{\"name\":\"w\",\"displayName\":\"eun\",\"internalName\":\"qhgyxzkonocukok\",\"toBeExportedForShoebox\":false},{\"name\":\"uconuqszfkbey\",\"displayName\":\"wrmjmwvvjektc\",\"internalName\":\"enhwlrs\",\"toBeExportedForShoebox\":true},{\"name\":\"pwvlqdq\",\"displayName\":\"iqylihkaetck\",\"internalName\":\"fcivfsnkym\",\"toBeExportedForShoebox\":true}]},{\"name\":\"hjfbebrjcxe\",\"displayName\":\"uwutttxfvjrbi\",\"displayDescription\":\"hxepcyvahfnlj\",\"unit\":\"qxj\",\"aggregationType\":\"ujqgidok\",\"supportedAggregationTypes\":[\"Maximum\",\"Maximum\",\"Total\"],\"metricClass\":\"gvcl\",\"dimensions\":[{\"name\":\"ncghkje\",\"displayName\":\"zhbijhtxfv\",\"internalName\":\"bfs\",\"toBeExportedForShoebox\":true},{\"name\":\"hmpvecx\",\"displayName\":\"debfqkkrbmpukgri\",\"internalName\":\"lzlfbxzpuz\",\"toBeExportedForShoebox\":true},{\"name\":\"pnq\",\"displayName\":\"hmgkbrpyy\",\"internalName\":\"ibnuqqkpik\",\"toBeExportedForShoebox\":false}]},{\"name\":\"vtq\",\"displayName\":\"n\",\"displayDescription\":\"ynhijggme\",\"unit\":\"siarbutrcvpn\",\"aggregationType\":\"zmhjrunmp\",\"supportedAggregationTypes\":[\"Average\",\"Total\",\"Average\"],\"metricClass\":\"bnlankxmyskpb\",\"dimensions\":[{\"name\":\"tkcxywnytnrsy\",\"displayName\":\"qidybyx\",\"internalName\":\"fclhaaxdbabphlwr\",\"toBeExportedForShoebox\":false},{\"name\":\"tsthsucocm\",\"displayName\":\"yazttbtwwrqpue\",\"internalName\":\"kzywbiex\",\"toBeExportedForShoebox\":true},{\"name\":\"ue\",\"displayName\":\"ibx\",\"internalName\":\"wbhqwal\",\"toBeExportedForShoebox\":true},{\"name\":\"oxaepd\",\"displayName\":\"jancu\",\"internalName\":\"hdwbavxbniwdjs\",\"toBeExportedForShoebox\":false}]},{\"name\":\"dbpgnxytxhp\",\"displayName\":\"bzpfzab\",\"displayDescription\":\"cuh\",\"unit\":\"tcty\",\"aggregationType\":\"klbb\",\"supportedAggregationTypes\":[\"Maximum\",\"Average\",\"NotSpecified\"],\"metricClass\":\"hvgyuguosvmk\",\"dimensions\":[{\"name\":\"qukkfp\",\"displayName\":\"mg\",\"internalName\":\"nkjzkdeslpvlop\",\"toBeExportedForShoebox\":false}]}],\"logSpecifications\":[{\"name\":\"xpkd\",\"displayName\":\"baiuebbaumny\"},{\"name\":\"ped\",\"displayName\":\"jn\"}]}}")
- .toObject(ApiOperationProperties.class);
- Assertions.assertEquals("jdeyeamdpha", model.serviceSpecification().metricSpecifications().get(0).name());
- Assertions.assertEquals("lpbuxwgipwhonowk",
- model.serviceSpecification().metricSpecifications().get(0).displayName());
- Assertions.assertEquals("hwankixzbinjepu",
- model.serviceSpecification().metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("mryw", model.serviceSpecification().metricSpecifications().get(0).unit());
- Assertions.assertEquals("zoqftiyqzrnkcqvy",
- model.serviceSpecification().metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(MetricAggregationType.AVERAGE,
- model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0));
- Assertions.assertEquals("icohoqqnwvl",
- model.serviceSpecification().metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("w",
- model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name());
- Assertions.assertEquals("eun",
- model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName());
- Assertions.assertEquals("qhgyxzkonocukok",
- model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).internalName());
- Assertions.assertEquals(false,
- model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox());
- Assertions.assertEquals("xpkd", model.serviceSpecification().logSpecifications().get(0).name());
- Assertions.assertEquals("baiuebbaumny", 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("jdeyeamdpha")
- .withDisplayName("lpbuxwgipwhonowk")
- .withDisplayDescription("hwankixzbinjepu")
- .withUnit("mryw")
- .withAggregationType("zoqftiyqzrnkcqvy")
- .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE,
- MetricAggregationType.NOT_SPECIFIED, MetricAggregationType.TOTAL))
- .withMetricClass("icohoqqnwvl")
- .withDimensions(Arrays.asList(
- new MetricDimension().withName("w")
- .withDisplayName("eun")
- .withInternalName("qhgyxzkonocukok")
- .withToBeExportedForShoebox(false),
- new MetricDimension().withName("uconuqszfkbey")
- .withDisplayName("wrmjmwvvjektc")
- .withInternalName("enhwlrs")
- .withToBeExportedForShoebox(true),
- new MetricDimension().withName("pwvlqdq")
- .withDisplayName("iqylihkaetck")
- .withInternalName("fcivfsnkym")
- .withToBeExportedForShoebox(true))),
- new MetricSpecification().withName("hjfbebrjcxe")
- .withDisplayName("uwutttxfvjrbi")
- .withDisplayDescription("hxepcyvahfnlj")
- .withUnit("qxj")
- .withAggregationType("ujqgidok")
- .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.MAXIMUM,
- MetricAggregationType.MAXIMUM, MetricAggregationType.TOTAL))
- .withMetricClass("gvcl")
- .withDimensions(Arrays.asList(
- new MetricDimension().withName("ncghkje")
- .withDisplayName("zhbijhtxfv")
- .withInternalName("bfs")
- .withToBeExportedForShoebox(true),
- new MetricDimension().withName("hmpvecx")
- .withDisplayName("debfqkkrbmpukgri")
- .withInternalName("lzlfbxzpuz")
- .withToBeExportedForShoebox(true),
- new MetricDimension().withName("pnq")
- .withDisplayName("hmgkbrpyy")
- .withInternalName("ibnuqqkpik")
- .withToBeExportedForShoebox(false))),
- new MetricSpecification().withName("vtq")
- .withDisplayName("n")
- .withDisplayDescription("ynhijggme")
- .withUnit("siarbutrcvpn")
- .withAggregationType("zmhjrunmp")
- .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.AVERAGE,
- MetricAggregationType.TOTAL, MetricAggregationType.AVERAGE))
- .withMetricClass("bnlankxmyskpb")
- .withDimensions(Arrays.asList(
- new MetricDimension().withName("tkcxywnytnrsy")
- .withDisplayName("qidybyx")
- .withInternalName("fclhaaxdbabphlwr")
- .withToBeExportedForShoebox(false),
- new MetricDimension().withName("tsthsucocm")
- .withDisplayName("yazttbtwwrqpue")
- .withInternalName("kzywbiex")
- .withToBeExportedForShoebox(true),
- new MetricDimension().withName("ue")
- .withDisplayName("ibx")
- .withInternalName("wbhqwal")
- .withToBeExportedForShoebox(true),
- new MetricDimension().withName("oxaepd")
- .withDisplayName("jancu")
- .withInternalName("hdwbavxbniwdjs")
- .withToBeExportedForShoebox(false))),
- new MetricSpecification().withName("dbpgnxytxhp")
- .withDisplayName("bzpfzab")
- .withDisplayDescription("cuh")
- .withUnit("tcty")
- .withAggregationType("klbb")
- .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.MAXIMUM,
- MetricAggregationType.AVERAGE, MetricAggregationType.NOT_SPECIFIED))
- .withMetricClass("hvgyuguosvmk")
- .withDimensions(Arrays.asList(new MetricDimension().withName("qukkfp")
- .withDisplayName("mg")
- .withInternalName("nkjzkdeslpvlop")
- .withToBeExportedForShoebox(false)))))
- .withLogSpecifications(
- Arrays.asList(new LogSpecification().withName("xpkd").withDisplayName("baiuebbaumny"),
- new LogSpecification().withName("ped").withDisplayName("jn"))));
- model = BinaryData.fromObject(model).toObject(ApiOperationProperties.class);
- Assertions.assertEquals("jdeyeamdpha", model.serviceSpecification().metricSpecifications().get(0).name());
- Assertions.assertEquals("lpbuxwgipwhonowk",
- model.serviceSpecification().metricSpecifications().get(0).displayName());
- Assertions.assertEquals("hwankixzbinjepu",
- model.serviceSpecification().metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("mryw", model.serviceSpecification().metricSpecifications().get(0).unit());
- Assertions.assertEquals("zoqftiyqzrnkcqvy",
- model.serviceSpecification().metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(MetricAggregationType.AVERAGE,
- model.serviceSpecification().metricSpecifications().get(0).supportedAggregationTypes().get(0));
- Assertions.assertEquals("icohoqqnwvl",
- model.serviceSpecification().metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("w",
- model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name());
- Assertions.assertEquals("eun",
- model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName());
- Assertions.assertEquals("qhgyxzkonocukok",
- model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).internalName());
- Assertions.assertEquals(false,
- model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox());
- Assertions.assertEquals("xpkd", model.serviceSpecification().logSpecifications().get(0).name());
- Assertions.assertEquals("baiuebbaumny", 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 0b99bd5a61df..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscOperationPropertiesTests.java
+++ /dev/null
@@ -1,38 +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\":{\"xsaga\":\"datalrwdmhdlxyj\",\"kcvqvpke\":\"datacnihgwqapnedgfbc\"}}")
- .toObject(AscOperationProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- AscOperationProperties model = new AscOperationProperties()
- .withOutput(mapOf("xsaga", "datalrwdmhdlxyj", "kcvqvpke", "datacnihgwqapnedgfbc"));
- model = BinaryData.fromObject(model).toObject(AscOperationProperties.class);
- }
-
- // Use "Map.of" if available
- @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 a825ea9e0f28..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.ResourceUsage;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class AscUsagesListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"limit\":350819792,\"unit\":\"gogtqxepnylbf\",\"currentValue\":347721012,\"name\":{\"value\":\"jtlvofqzhvfciby\",\"localizedValue\":\"owuxrkjpvdwx\"}}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("xonbzoggculapz", 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 16c9e841e955..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/BlobNfsTargetTests.java
+++ /dev/null
@@ -1,35 +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\":\"mctlpdngitv\",\"usageModel\":\"mhrixkwmyijejve\",\"verificationTimer\":1196101983,\"writeBackTimer\":662218702}")
- .toObject(BlobNfsTarget.class);
- Assertions.assertEquals("mctlpdngitv", model.target());
- Assertions.assertEquals("mhrixkwmyijejve", model.usageModel());
- Assertions.assertEquals(1196101983, model.verificationTimer());
- Assertions.assertEquals(662218702, model.writeBackTimer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- BlobNfsTarget model = new BlobNfsTarget().withTarget("mctlpdngitv")
- .withUsageModel("mhrixkwmyijejve")
- .withVerificationTimer(1196101983)
- .withWriteBackTimer(662218702);
- model = BinaryData.fromObject(model).toObject(BlobNfsTarget.class);
- Assertions.assertEquals("mctlpdngitv", model.target());
- Assertions.assertEquals("mhrixkwmyijejve", model.usageModel());
- Assertions.assertEquals(1196101983, model.verificationTimer());
- Assertions.assertEquals(662218702, 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 bbb49a86cad3..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheHealthTests.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.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\":\"fdnw\",\"conditions\":[{\"timestamp\":\"2021-01-03T05:03:28Z\",\"message\":\"syyceuzsoibjud\"},{\"timestamp\":\"2021-08-08T12:59:01Z\",\"message\":\"trthzvaytdwkqbr\"}]}")
- .toObject(CacheHealth.class);
- Assertions.assertEquals(HealthStateType.UPGRADE_FAILED, model.state());
- Assertions.assertEquals("fdnw", model.statusDescription());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheHealth model = new CacheHealth().withState(HealthStateType.UPGRADE_FAILED).withStatusDescription("fdnw");
- model = BinaryData.fromObject(model).toObject(CacheHealth.class);
- Assertions.assertEquals(HealthStateType.UPGRADE_FAILED, model.state());
- Assertions.assertEquals("fdnw", 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 3eb3cebff66d..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheIdentityTests.java
+++ /dev/null
@@ -1,45 +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\":\"rdvstkwqqtch\",\"tenantId\":\"lmfmtdaay\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"mnpkukghimdblxg\":{\"principalId\":\"piohgwxrtfu\",\"clientId\":\"epxgyqagvr\"},\"szkkfoqre\":{\"principalId\":\"mfnjh\",\"clientId\":\"xw\"},\"aenwabf\":{\"principalId\":\"kzikfjawneaivxwc\",\"clientId\":\"lpcirelsf\"}}}")
- .toObject(CacheIdentity.class);
- Assertions.assertEquals(CacheIdentityType.SYSTEM_ASSIGNED, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheIdentity model = new CacheIdentity().withType(CacheIdentityType.SYSTEM_ASSIGNED)
- .withUserAssignedIdentities(mapOf("mnpkukghimdblxg", new UserAssignedIdentitiesValueAutoGenerated(),
- "szkkfoqre", new UserAssignedIdentitiesValueAutoGenerated(), "aenwabf",
- new UserAssignedIdentitiesValueAutoGenerated()));
- model = BinaryData.fromObject(model).toObject(CacheIdentity.class);
- Assertions.assertEquals(CacheIdentityType.SYSTEM_ASSIGNED, model.type());
- }
-
- // Use "Map.of" if available
- @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 12cbf50db4bf..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheNetworkSettingsTests.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.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\":109255739,\"utilityAddresses\":[\"tramxjez\",\"lwnwxuqlcvydyp\"],\"dnsServers\":[\"ooaojkniodkooebw\",\"ujhemmsbvdkcrodt\",\"infwjlfltkacjve\",\"kdlfoa\"],\"dnsSearchDomain\":\"gkfpaga\",\"ntpServer\":\"pulpqblylsyxk\"}")
- .toObject(CacheNetworkSettings.class);
- Assertions.assertEquals(109255739, model.mtu());
- Assertions.assertEquals("ooaojkniodkooebw", model.dnsServers().get(0));
- Assertions.assertEquals("gkfpaga", model.dnsSearchDomain());
- Assertions.assertEquals("pulpqblylsyxk", model.ntpServer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheNetworkSettings model = new CacheNetworkSettings().withMtu(109255739)
- .withDnsServers(Arrays.asList("ooaojkniodkooebw", "ujhemmsbvdkcrodt", "infwjlfltkacjve", "kdlfoa"))
- .withDnsSearchDomain("gkfpaga")
- .withNtpServer("pulpqblylsyxk");
- model = BinaryData.fromObject(model).toObject(CacheNetworkSettings.class);
- Assertions.assertEquals(109255739, model.mtu());
- Assertions.assertEquals("ooaojkniodkooebw", model.dnsServers().get(0));
- Assertions.assertEquals("gkfpaga", model.dnsSearchDomain());
- Assertions.assertEquals("pulpqblylsyxk", 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 dfda1580c59e..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheSecuritySettingsTests.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.util.BinaryData;
-import com.azure.resourcemanager.storagecache.models.CacheSecuritySettings;
-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 CacheSecuritySettingsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CacheSecuritySettings model = BinaryData.fromString(
- "{\"accessPolicies\":[{\"name\":\"tiagx\",\"accessRules\":[{\"scope\":\"host\",\"filter\":\"uem\",\"access\":\"ro\",\"suid\":false,\"submountAccess\":false,\"rootSquash\":true,\"anonymousUID\":\"yvpnqicvinvkjj\",\"anonymousGID\":\"xrbuukzclew\"},{\"scope\":\"network\",\"filter\":\"lw\",\"access\":\"rw\",\"suid\":true,\"submountAccess\":false,\"rootSquash\":false,\"anonymousUID\":\"cckwyfzqwhxxbu\",\"anonymousGID\":\"a\"}]}]}")
- .toObject(CacheSecuritySettings.class);
- Assertions.assertEquals("tiagx", model.accessPolicies().get(0).name());
- Assertions.assertEquals(NfsAccessRuleScope.HOST, model.accessPolicies().get(0).accessRules().get(0).scope());
- Assertions.assertEquals("uem", model.accessPolicies().get(0).accessRules().get(0).filter());
- Assertions.assertEquals(NfsAccessRuleAccess.RO, model.accessPolicies().get(0).accessRules().get(0).access());
- Assertions.assertEquals(false, model.accessPolicies().get(0).accessRules().get(0).suid());
- Assertions.assertEquals(false, model.accessPolicies().get(0).accessRules().get(0).submountAccess());
- Assertions.assertEquals(true, model.accessPolicies().get(0).accessRules().get(0).rootSquash());
- Assertions.assertEquals("yvpnqicvinvkjj", model.accessPolicies().get(0).accessRules().get(0).anonymousUid());
- Assertions.assertEquals("xrbuukzclew", model.accessPolicies().get(0).accessRules().get(0).anonymousGid());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheSecuritySettings model
- = new CacheSecuritySettings().withAccessPolicies(Arrays.asList(new NfsAccessPolicy().withName("tiagx")
- .withAccessRules(Arrays.asList(
- new NfsAccessRule().withScope(NfsAccessRuleScope.HOST)
- .withFilter("uem")
- .withAccess(NfsAccessRuleAccess.RO)
- .withSuid(false)
- .withSubmountAccess(false)
- .withRootSquash(true)
- .withAnonymousUid("yvpnqicvinvkjj")
- .withAnonymousGid("xrbuukzclew"),
- new NfsAccessRule().withScope(NfsAccessRuleScope.NETWORK)
- .withFilter("lw")
- .withAccess(NfsAccessRuleAccess.RW)
- .withSuid(true)
- .withSubmountAccess(false)
- .withRootSquash(false)
- .withAnonymousUid("cckwyfzqwhxxbu")
- .withAnonymousGid("a")))));
- model = BinaryData.fromObject(model).toObject(CacheSecuritySettings.class);
- Assertions.assertEquals("tiagx", model.accessPolicies().get(0).name());
- Assertions.assertEquals(NfsAccessRuleScope.HOST, model.accessPolicies().get(0).accessRules().get(0).scope());
- Assertions.assertEquals("uem", model.accessPolicies().get(0).accessRules().get(0).filter());
- Assertions.assertEquals(NfsAccessRuleAccess.RO, model.accessPolicies().get(0).accessRules().get(0).access());
- Assertions.assertEquals(false, model.accessPolicies().get(0).accessRules().get(0).suid());
- Assertions.assertEquals(false, model.accessPolicies().get(0).accessRules().get(0).submountAccess());
- Assertions.assertEquals(true, model.accessPolicies().get(0).accessRules().get(0).rootSquash());
- Assertions.assertEquals("yvpnqicvinvkjj", model.accessPolicies().get(0).accessRules().get(0).anonymousUid());
- Assertions.assertEquals("xrbuukzclew", model.accessPolicies().get(0).accessRules().get(0).anonymousGid());
- }
-}
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 1bb183e613c8..000000000000
--- 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\":\"lusiy\"}").toObject(CacheSku.class);
- Assertions.assertEquals("lusiy", model.name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheSku model = new CacheSku().withName("lusiy");
- model = BinaryData.fromObject(model).toObject(CacheSku.class);
- Assertions.assertEquals("lusiy", 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 6f252336ce1c..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheUpgradeSettingsTests.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.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\":false,\"scheduledTime\":\"2021-03-21T14:07:23Z\"}")
- .toObject(CacheUpgradeSettings.class);
- Assertions.assertEquals(false, model.upgradeScheduleEnabled());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-21T14:07:23Z"), model.scheduledTime());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CacheUpgradeSettings model = new CacheUpgradeSettings().withUpgradeScheduleEnabled(false)
- .withScheduledTime(OffsetDateTime.parse("2021-03-21T14:07:23Z"));
- model = BinaryData.fromObject(model).toObject(CacheUpgradeSettings.class);
- Assertions.assertEquals(false, model.upgradeScheduleEnabled());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-21T14:07:23Z"), 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 cf46f2485a89..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheUpgradeStatusTests.java
+++ /dev/null
@@ -1,23 +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\":\"iirqtd\",\"firmwareUpdateStatus\":\"unavailable\",\"firmwareUpdateDeadline\":\"2021-05-24T02:05:43Z\",\"lastFirmwareUpdate\":\"2021-09-27T01:53:27Z\",\"pendingFirmwareVersion\":\"fgsqu\"}")
- .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 2b18d1239886..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesDebugInfoMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CachesDebugInfoMockTests {
- @Test
- public void testDebugInfo() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("lftidgfcwqmpim", "qxzhem", 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 5c768bd2e5bc..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesDeleteMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CachesDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("fukiscvwmzhw", "lefaxvxilcbtgn", 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 b528660c6a1c..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesFlushMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CachesFlushMockTests {
- @Test
- public void testFlush() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("yhohujswtwkozzwc", "lkb", com.azure.core.util.Context.NONE);
-
- }
-}
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 f1b3858b592a..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStartMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CachesStartMockTests {
- @Test
- public void testStart() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("wpfaj", "jwltlwtjjgu", 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 68896f84b04b..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStopMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CachesStopMockTests {
- @Test
- public void testStop() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("talhsnvkcdmxzr", "oaimlnw", 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 2239eb8a2a86..000000000000
--- 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\":\"u\"}").toObject(ClfsTarget.class);
- Assertions.assertEquals("u", model.target());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ClfsTarget model = new ClfsTarget().withTarget("u");
- model = BinaryData.fromObject(model).toObject(ClfsTarget.class);
- Assertions.assertEquals("u", 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 7f9397dd4fa1..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ConditionTests.java
+++ /dev/null
@@ -1,22 +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-11-25T23:16:06Z\",\"message\":\"axhexiilivp\"}")
- .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/ImportJobInnerTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobInnerTests.java
deleted file mode 100644
index 1dcd612966b9..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobInnerTests.java
+++ /dev/null
@@ -1,54 +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.ImportJobInner;
-import com.azure.resourcemanager.storagecache.models.ConflictResolutionMode;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ImportJobInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ImportJobInner model = BinaryData.fromString(
- "{\"properties\":{\"provisioningState\":\"Succeeded\",\"importPrefixes\":[\"gxsabkyq\",\"uujitcjc\"],\"conflictResolutionMode\":\"OverwriteAlways\",\"maximumErrors\":1003107077,\"status\":{\"state\":\"Cancelling\",\"statusMessage\":\"rwpdappdsbdkvwrw\",\"totalBlobsWalked\":8907363253188424560,\"blobsWalkedPerSecond\":8087000369487039234,\"totalBlobsImported\":5558562364469410639,\"blobsImportedPerSecond\":7488631932267615574,\"lastCompletionTime\":\"2021-04-28T11:05:16Z\",\"lastStartedTime\":\"2021-11-14T20:48:19Z\",\"totalErrors\":2022069390,\"totalConflicts\":885785432}},\"location\":\"zdatqxhocdg\",\"tags\":{\"icndvkaozwyifty\":\"lgphu\",\"tyxolniwpwc\":\"xhurok\",\"awxklr\":\"kjfkg\"},\"id\":\"plwckbas\",\"name\":\"ypnddhsgcb\",\"type\":\"cph\"}")
- .toObject(ImportJobInner.class);
- Assertions.assertEquals("zdatqxhocdg", model.location());
- Assertions.assertEquals("lgphu", model.tags().get("icndvkaozwyifty"));
- Assertions.assertEquals("gxsabkyq", model.importPrefixes().get(0));
- Assertions.assertEquals(ConflictResolutionMode.OVERWRITE_ALWAYS, model.conflictResolutionMode());
- Assertions.assertEquals(1003107077, model.maximumErrors());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ImportJobInner model = new ImportJobInner().withLocation("zdatqxhocdg")
- .withTags(mapOf("icndvkaozwyifty", "lgphu", "tyxolniwpwc", "xhurok", "awxklr", "kjfkg"))
- .withImportPrefixes(Arrays.asList("gxsabkyq", "uujitcjc"))
- .withConflictResolutionMode(ConflictResolutionMode.OVERWRITE_ALWAYS)
- .withMaximumErrors(1003107077);
- model = BinaryData.fromObject(model).toObject(ImportJobInner.class);
- Assertions.assertEquals("zdatqxhocdg", model.location());
- Assertions.assertEquals("lgphu", model.tags().get("icndvkaozwyifty"));
- Assertions.assertEquals("gxsabkyq", model.importPrefixes().get(0));
- Assertions.assertEquals(ConflictResolutionMode.OVERWRITE_ALWAYS, model.conflictResolutionMode());
- Assertions.assertEquals(1003107077, model.maximumErrors());
- }
-
- // Use "Map.of" if available
- @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/ImportJobPropertiesStatusTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobPropertiesStatusTests.java
deleted file mode 100644
index 886ae8d94c9a..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobPropertiesStatusTests.java
+++ /dev/null
@@ -1,23 +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.ImportJobPropertiesStatus;
-
-public final class ImportJobPropertiesStatusTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ImportJobPropertiesStatus model = BinaryData.fromString(
- "{\"state\":\"Canceled\",\"statusMessage\":\"dmgloug\",\"totalBlobsWalked\":9051452946148232776,\"blobsWalkedPerSecond\":2331240743756595548,\"totalBlobsImported\":5083557747309548738,\"blobsImportedPerSecond\":6527154524069647921,\"lastCompletionTime\":\"2021-10-29T20:46:58Z\",\"lastStartedTime\":\"2021-01-27T01:22:28Z\",\"totalErrors\":807711520,\"totalConflicts\":1678823592}")
- .toObject(ImportJobPropertiesStatus.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ImportJobPropertiesStatus model = new ImportJobPropertiesStatus();
- model = BinaryData.fromObject(model).toObject(ImportJobPropertiesStatus.class);
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobPropertiesTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobPropertiesTests.java
deleted file mode 100644
index 79d050f361a6..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobPropertiesTests.java
+++ /dev/null
@@ -1,35 +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.ImportJobProperties;
-import com.azure.resourcemanager.storagecache.models.ConflictResolutionMode;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ImportJobPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ImportJobProperties model = BinaryData.fromString(
- "{\"provisioningState\":\"Deleting\",\"importPrefixes\":[\"ynqgoulzndlikwyq\",\"gfgibm\"],\"conflictResolutionMode\":\"Skip\",\"maximumErrors\":1464742216,\"status\":{\"state\":\"Canceled\",\"statusMessage\":\"xybz\",\"totalBlobsWalked\":691686443688188977,\"blobsWalkedPerSecond\":3403920378800271536,\"totalBlobsImported\":6336997568573422553,\"blobsImportedPerSecond\":5546315024826838939,\"lastCompletionTime\":\"2021-06-11T15:05:30Z\",\"lastStartedTime\":\"2021-02-10T20:24:35Z\",\"totalErrors\":1004345628,\"totalConflicts\":799119693}}")
- .toObject(ImportJobProperties.class);
- Assertions.assertEquals("ynqgoulzndlikwyq", model.importPrefixes().get(0));
- Assertions.assertEquals(ConflictResolutionMode.SKIP, model.conflictResolutionMode());
- Assertions.assertEquals(1464742216, model.maximumErrors());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ImportJobProperties model
- = new ImportJobProperties().withImportPrefixes(Arrays.asList("ynqgoulzndlikwyq", "gfgibm"))
- .withConflictResolutionMode(ConflictResolutionMode.SKIP)
- .withMaximumErrors(1464742216);
- model = BinaryData.fromObject(model).toObject(ImportJobProperties.class);
- Assertions.assertEquals("ynqgoulzndlikwyq", model.importPrefixes().get(0));
- Assertions.assertEquals(ConflictResolutionMode.SKIP, model.conflictResolutionMode());
- Assertions.assertEquals(1464742216, model.maximumErrors());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobUpdateTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobUpdateTests.java
deleted file mode 100644
index fd966d79943e..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobUpdateTests.java
+++ /dev/null
@@ -1,41 +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.ImportJobUpdate;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ImportJobUpdateTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ImportJobUpdate model = BinaryData.fromString(
- "{\"tags\":{\"gbbjfddgmbmbe\":\"tumkdosvqwhbm\",\"psalgbqux\":\"ppbhtqqrolfp\",\"n\":\"gjyjgzjaoyfhrtxi\"}}")
- .toObject(ImportJobUpdate.class);
- Assertions.assertEquals("tumkdosvqwhbm", model.tags().get("gbbjfddgmbmbe"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ImportJobUpdate model = new ImportJobUpdate()
- .withTags(mapOf("gbbjfddgmbmbe", "tumkdosvqwhbm", "psalgbqux", "ppbhtqqrolfp", "n", "gjyjgzjaoyfhrtxi"));
- model = BinaryData.fromObject(model).toObject(ImportJobUpdate.class);
- Assertions.assertEquals("tumkdosvqwhbm", model.tags().get("gbbjfddgmbmbe"));
- }
-
- // Use "Map.of" if available
- @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/ImportJobsCreateOrUpdateMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobsCreateOrUpdateMockTests.java
deleted file mode 100644
index ea2bde9abef1..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobsCreateOrUpdateMockTests.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.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.ConflictResolutionMode;
-import com.azure.resourcemanager.storagecache.models.ImportJob;
-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 reactor.core.publisher.Mono;
-
-public final class ImportJobsCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- String responseStr
- = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"importPrefixes\":[\"uiqtqzfavy\",\"nqqyba\",\"yeua\",\"jkqa\"],\"conflictResolutionMode\":\"OverwriteAlways\",\"maximumErrors\":1085196762,\"status\":{\"state\":\"Canceled\",\"statusMessage\":\"cbhernntiewdj\",\"totalBlobsWalked\":994473261476719427,\"blobsWalkedPerSecond\":1890578534801366213,\"totalBlobsImported\":7210776053915624844,\"blobsImportedPerSecond\":8622823251017389633,\"lastCompletionTime\":\"2021-09-18T09:21:14Z\",\"lastStartedTime\":\"2021-09-08T01:13:47Z\",\"totalErrors\":961183610,\"totalConflicts\":519813577}},\"location\":\"qem\",\"tags\":{\"jfutacoebj\":\"mxtd\",\"guaadraufactkahz\":\"ewzcjznmwcp\"},\"id\":\"v\",\"name\":\"jjziuxxpsh\",\"type\":\"eekulfgslqubkwd\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- StorageCacheManager manager = StorageCacheManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ImportJob response = manager.importJobs()
- .define("kpyklyhp")
- .withRegion("odqkdlwwqfb")
- .withExistingAmlFilesystem("uripltfnhtba", "kgxywr")
- .withTags(mapOf("fsmlmbtxhwgfw", "kxtrq"))
- .withImportPrefixes(Arrays.asList("ruud"))
- .withConflictResolutionMode(ConflictResolutionMode.FAIL)
- .withMaximumErrors(766813389)
- .create();
-
- Assertions.assertEquals("qem", response.location());
- Assertions.assertEquals("mxtd", response.tags().get("jfutacoebj"));
- Assertions.assertEquals("uiqtqzfavy", response.importPrefixes().get(0));
- Assertions.assertEquals(ConflictResolutionMode.OVERWRITE_ALWAYS, response.conflictResolutionMode());
- Assertions.assertEquals(1085196762, response.maximumErrors());
- }
-
- // Use "Map.of" if available
- @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/ImportJobsGetWithResponseMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobsGetWithResponseMockTests.java
deleted file mode 100644
index 8119450d370e..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobsGetWithResponseMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.ConflictResolutionMode;
-import com.azure.resourcemanager.storagecache.models.ImportJob;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ImportJobsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"provisioningState\":\"Creating\",\"importPrefixes\":[\"xacpqjli\",\"hyus\",\"skasdvlmfwdgzxu\",\"ucvpamrs\"],\"conflictResolutionMode\":\"Fail\",\"maximumErrors\":2029618474,\"status\":{\"state\":\"Canceled\",\"statusMessage\":\"sjnhn\",\"totalBlobsWalked\":903498405558136167,\"blobsWalkedPerSecond\":4175162265983348993,\"totalBlobsImported\":1511206213026031817,\"blobsImportedPerSecond\":6352328391564368443,\"lastCompletionTime\":\"2021-09-12T16:20:50Z\",\"lastStartedTime\":\"2021-07-06T09:24:09Z\",\"totalErrors\":1373835899,\"totalConflicts\":1928242324}},\"location\":\"trgjupauutpwoqh\",\"tags\":{\"fqntcyp\":\"jqgwzp\",\"rcizjxvyd\":\"xjvfoimwksl\"},\"id\":\"ceacvlhvygdy\",\"name\":\"t\",\"type\":\"mrtwna\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- StorageCacheManager manager = StorageCacheManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ImportJob response = manager.importJobs()
- .getWithResponse("rymsgaojfmw", "cotmr", "hirctymoxoftpipi", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("trgjupauutpwoqh", response.location());
- Assertions.assertEquals("jqgwzp", response.tags().get("fqntcyp"));
- Assertions.assertEquals("xacpqjli", response.importPrefixes().get(0));
- Assertions.assertEquals(ConflictResolutionMode.FAIL, response.conflictResolutionMode());
- Assertions.assertEquals(2029618474, response.maximumErrors());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobsListByAmlFilesystemMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobsListByAmlFilesystemMockTests.java
deleted file mode 100644
index 0fc99379e6b4..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobsListByAmlFilesystemMockTests.java
+++ /dev/null
@@ -1,45 +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.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.ConflictResolutionMode;
-import com.azure.resourcemanager.storagecache.models.ImportJob;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ImportJobsListByAmlFilesystemMockTests {
- @Test
- public void testListByAmlFilesystem() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"importPrefixes\":[\"chqnrnrpxehuwry\",\"qgaifmviklbydv\",\"hbejdznxcvdsrhnj\"],\"conflictResolutionMode\":\"OverwriteIfDirty\",\"maximumErrors\":1976490,\"status\":{\"state\":\"Completed\",\"statusMessage\":\"qfzgemjdftul\",\"totalBlobsWalked\":9148960841724922095,\"blobsWalkedPerSecond\":6160828479857694240,\"totalBlobsImported\":46322939906054520,\"blobsImportedPerSecond\":2810450179000114053,\"lastCompletionTime\":\"2021-02-25T17:02:04Z\",\"lastStartedTime\":\"2021-07-25T15:19:26Z\",\"totalErrors\":733943203,\"totalConflicts\":164941612}},\"location\":\"qioknssxmojm\",\"tags\":{\"cfzq\":\"kjprvk\"},\"id\":\"jyxgtczh\",\"name\":\"ydbsd\",\"type\":\"hmkxmaehvbb\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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.importJobs().listByAmlFilesystem("jslb", "wkojgcyztsfmzn", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("qioknssxmojm", response.iterator().next().location());
- Assertions.assertEquals("kjprvk", response.iterator().next().tags().get("cfzq"));
- Assertions.assertEquals("chqnrnrpxehuwry", response.iterator().next().importPrefixes().get(0));
- Assertions.assertEquals(ConflictResolutionMode.OVERWRITE_IF_DIRTY,
- response.iterator().next().conflictResolutionMode());
- Assertions.assertEquals(1976490, response.iterator().next().maximumErrors());
- }
-}
diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobsListResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobsListResultTests.java
deleted file mode 100644
index efa3d960032d..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ImportJobsListResultTests.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.util.BinaryData;
-import com.azure.resourcemanager.storagecache.fluent.models.ImportJobInner;
-import com.azure.resourcemanager.storagecache.models.ConflictResolutionMode;
-import com.azure.resourcemanager.storagecache.models.ImportJobsListResult;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import org.junit.jupiter.api.Assertions;
-
-public final class ImportJobsListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ImportJobsListResult model = BinaryData.fromString(
- "{\"nextLink\":\"kujysvlejuvfq\",\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"importPrefixes\":[\"kcprbnw\",\"xgjvtbv\"],\"conflictResolutionMode\":\"Skip\",\"maximumErrors\":662513837,\"status\":{\"state\":\"Cancelling\",\"statusMessage\":\"jq\",\"totalBlobsWalked\":6415098811593450314,\"blobsWalkedPerSecond\":8234236264625929189,\"totalBlobsImported\":442653296358951383,\"blobsImportedPerSecond\":1403536085047342017,\"lastCompletionTime\":\"2021-07-30T02:27:32Z\",\"lastStartedTime\":\"2021-02-13T16:28:59Z\",\"totalErrors\":1555370196,\"totalConflicts\":1015054859}},\"location\":\"uizga\",\"tags\":{\"hr\":\"fizuckyf\",\"zwdzuh\":\"idf\",\"wxmnteiwao\":\"ymwisdkft\"},\"id\":\"vkmijcmmxdcuf\",\"name\":\"fsrpymzidnse\",\"type\":\"cxtbzsg\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"importPrefixes\":[\"ewmdw\",\"jeiachboosfl\",\"ro\",\"fqpte\"],\"conflictResolutionMode\":\"OverwriteAlways\",\"maximumErrors\":1130087895,\"status\":{\"state\":\"Completed\",\"statusMessage\":\"rimz\",\"totalBlobsWalked\":2996229806276970298,\"blobsWalkedPerSecond\":4254467677090741872,\"totalBlobsImported\":2324275574179750664,\"blobsImportedPerSecond\":5283900792568808120,\"lastCompletionTime\":\"2021-11-24T02:47:54Z\",\"lastStartedTime\":\"2021-06-24T02:43:20Z\",\"totalErrors\":1455872330,\"totalConflicts\":901066642}},\"location\":\"ohjtckw\",\"tags\":{\"bznorcjxvsnby\":\"oifiyipjxsqwpgr\",\"cyshurzafbljjgp\":\"qabnmoc\",\"bqidtqaj\":\"toqcjmklja\",\"khbzhfepgzg\":\"yulpkudjkr\"},\"id\":\"e\",\"name\":\"zloc\",\"type\":\"scpai\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"importPrefixes\":[\"sglumma\",\"tjaodxobnb\"],\"conflictResolutionMode\":\"Fail\",\"maximumErrors\":372100049,\"status\":{\"state\":\"Canceled\",\"statusMessage\":\"jionpimexgstxgc\",\"totalBlobsWalked\":2253353584396123190,\"blobsWalkedPerSecond\":4756233524739772773,\"totalBlobsImported\":159667534034002555,\"blobsImportedPerSecond\":8346750306601023663,\"lastCompletionTime\":\"2021-09-11T20:00:02Z\",\"lastStartedTime\":\"2021-08-17T10:32:15Z\",\"totalErrors\":1274470316,\"totalConflicts\":1409516732}},\"location\":\"whijcoejctbza\",\"tags\":{\"ukdkexxppofmxa\":\"sycbkbfk\",\"jpgd\":\"c\",\"j\":\"toc\"},\"id\":\"hvpmoue\",\"name\":\"hd\",\"type\":\"xibqeojnx\"},{\"properties\":{\"provisioningState\":\"Failed\",\"importPrefixes\":[\"ntwndeicbtwnpzao\",\"vuhrhcffcyddgl\",\"jthjqkwpyei\"],\"conflictResolutionMode\":\"Fail\",\"maximumErrors\":1788510913,\"status\":{\"state\":\"Canceled\",\"statusMessage\":\"hkh\",\"totalBlobsWalked\":5654168720621130688,\"blobsWalkedPerSecond\":7360318284111753754,\"totalBlobsImported\":6491877655864517038,\"blobsImportedPerSecond\":5232700234439771330,\"lastCompletionTime\":\"2021-02-18T21:42:16Z\",\"lastStartedTime\":\"2021-02-17T14:37:23Z\",\"totalErrors\":20476621,\"totalConflicts\":35431541}},\"location\":\"a\",\"tags\":{\"yvvtpgvdfgio\":\"z\",\"gnxkrxdqmidtth\":\"kftutqxlngxlefg\"},\"id\":\"rvqdra\",\"name\":\"hjybigehoqfbo\",\"type\":\"skanyk\"}]}")
- .toObject(ImportJobsListResult.class);
- Assertions.assertEquals("kujysvlejuvfq", model.nextLink());
- Assertions.assertEquals("uizga", model.value().get(0).location());
- Assertions.assertEquals("fizuckyf", model.value().get(0).tags().get("hr"));
- Assertions.assertEquals("kcprbnw", model.value().get(0).importPrefixes().get(0));
- Assertions.assertEquals(ConflictResolutionMode.SKIP, model.value().get(0).conflictResolutionMode());
- Assertions.assertEquals(662513837, model.value().get(0).maximumErrors());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ImportJobsListResult model = new ImportJobsListResult().withNextLink("kujysvlejuvfq")
- .withValue(Arrays.asList(
- new ImportJobInner().withLocation("uizga")
- .withTags(mapOf("hr", "fizuckyf", "zwdzuh", "idf", "wxmnteiwao", "ymwisdkft"))
- .withImportPrefixes(Arrays.asList("kcprbnw", "xgjvtbv"))
- .withConflictResolutionMode(ConflictResolutionMode.SKIP)
- .withMaximumErrors(662513837),
- new ImportJobInner().withLocation("ohjtckw")
- .withTags(mapOf("bznorcjxvsnby", "oifiyipjxsqwpgr", "cyshurzafbljjgp", "qabnmoc", "bqidtqaj",
- "toqcjmklja", "khbzhfepgzg", "yulpkudjkr"))
- .withImportPrefixes(Arrays.asList("ewmdw", "jeiachboosfl", "ro", "fqpte"))
- .withConflictResolutionMode(ConflictResolutionMode.OVERWRITE_ALWAYS)
- .withMaximumErrors(1130087895),
- new ImportJobInner().withLocation("whijcoejctbza")
- .withTags(mapOf("ukdkexxppofmxa", "sycbkbfk", "jpgd", "c", "j", "toc"))
- .withImportPrefixes(Arrays.asList("sglumma", "tjaodxobnb"))
- .withConflictResolutionMode(ConflictResolutionMode.FAIL)
- .withMaximumErrors(372100049),
- new ImportJobInner().withLocation("a")
- .withTags(mapOf("yvvtpgvdfgio", "z", "gnxkrxdqmidtth", "kftutqxlngxlefg"))
- .withImportPrefixes(Arrays.asList("ntwndeicbtwnpzao", "vuhrhcffcyddgl", "jthjqkwpyei"))
- .withConflictResolutionMode(ConflictResolutionMode.FAIL)
- .withMaximumErrors(1788510913)));
- model = BinaryData.fromObject(model).toObject(ImportJobsListResult.class);
- Assertions.assertEquals("kujysvlejuvfq", model.nextLink());
- Assertions.assertEquals("uizga", model.value().get(0).location());
- Assertions.assertEquals("fizuckyf", model.value().get(0).tags().get("hr"));
- Assertions.assertEquals("kcprbnw", model.value().get(0).importPrefixes().get(0));
- Assertions.assertEquals(ConflictResolutionMode.SKIP, model.value().get(0).conflictResolutionMode());
- Assertions.assertEquals(662513837, model.value().get(0).maximumErrors());
- }
-
- // Use "Map.of" if available
- @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/KeyVaultKeyReferenceSourceVaultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/KeyVaultKeyReferenceSourceVaultTests.java
deleted file mode 100644
index 3e540ca7e6c1..000000000000
--- 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\":\"djpslw\"}").toObject(KeyVaultKeyReferenceSourceVault.class);
- Assertions.assertEquals("djpslw", model.id());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- KeyVaultKeyReferenceSourceVault model = new KeyVaultKeyReferenceSourceVault().withId("djpslw");
- model = BinaryData.fromObject(model).toObject(KeyVaultKeyReferenceSourceVault.class);
- Assertions.assertEquals("djpslw", 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 07f79823cddc..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/LogSpecificationTests.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.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\":\"zbbtdzumveek\",\"displayName\":\"wozuhkf\"}")
- .toObject(LogSpecification.class);
- Assertions.assertEquals("zbbtdzumveek", model.name());
- Assertions.assertEquals("wozuhkf", model.displayName());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- LogSpecification model = new LogSpecification().withName("zbbtdzumveek").withDisplayName("wozuhkf");
- model = BinaryData.fromObject(model).toObject(LogSpecification.class);
- Assertions.assertEquals("zbbtdzumveek", model.name());
- Assertions.assertEquals("wozuhkf", 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 4e70c9472cfe..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricDimensionTests.java
+++ /dev/null
@@ -1,35 +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\":\"vawjvzunlu\",\"displayName\":\"nnprn\",\"internalName\":\"peilpjzuaejxdu\",\"toBeExportedForShoebox\":false}")
- .toObject(MetricDimension.class);
- Assertions.assertEquals("vawjvzunlu", model.name());
- Assertions.assertEquals("nnprn", model.displayName());
- Assertions.assertEquals("peilpjzuaejxdu", model.internalName());
- Assertions.assertEquals(false, model.toBeExportedForShoebox());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MetricDimension model = new MetricDimension().withName("vawjvzunlu")
- .withDisplayName("nnprn")
- .withInternalName("peilpjzuaejxdu")
- .withToBeExportedForShoebox(false);
- model = BinaryData.fromObject(model).toObject(MetricDimension.class);
- Assertions.assertEquals("vawjvzunlu", model.name());
- Assertions.assertEquals("nnprn", model.displayName());
- Assertions.assertEquals("peilpjzuaejxdu", model.internalName());
- Assertions.assertEquals(false, 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 40bebb92193c..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricSpecificationTests.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.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\":\"obbc\",\"displayName\":\"s\",\"displayDescription\":\"jriplrbpbewtghf\",\"unit\":\"lcgwxzvlvqh\",\"aggregationType\":\"begibtnmxiebwwa\",\"supportedAggregationTypes\":[\"Average\",\"NotSpecified\"],\"metricClass\":\"gwrtzju\",\"dimensions\":[{\"name\":\"zmh\",\"displayName\":\"ongmtsa\",\"internalName\":\"cbpwxqpsrknft\",\"toBeExportedForShoebox\":true},{\"name\":\"iuhprwmdyvxqta\",\"displayName\":\"iwwroyqbexrmc\",\"internalName\":\"bycnojvkn\",\"toBeExportedForShoebox\":true},{\"name\":\"sgzvahapjyzhpv\",\"displayName\":\"zcjrvxdjzlmwlx\",\"internalName\":\"ug\",\"toBeExportedForShoebox\":false}]}")
- .toObject(MetricSpecification.class);
- Assertions.assertEquals("obbc", model.name());
- Assertions.assertEquals("s", model.displayName());
- Assertions.assertEquals("jriplrbpbewtghf", model.displayDescription());
- Assertions.assertEquals("lcgwxzvlvqh", model.unit());
- Assertions.assertEquals("begibtnmxiebwwa", model.aggregationType());
- Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0));
- Assertions.assertEquals("gwrtzju", model.metricClass());
- Assertions.assertEquals("zmh", model.dimensions().get(0).name());
- Assertions.assertEquals("ongmtsa", model.dimensions().get(0).displayName());
- Assertions.assertEquals("cbpwxqpsrknft", 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("obbc")
- .withDisplayName("s")
- .withDisplayDescription("jriplrbpbewtghf")
- .withUnit("lcgwxzvlvqh")
- .withAggregationType("begibtnmxiebwwa")
- .withSupportedAggregationTypes(
- Arrays.asList(MetricAggregationType.AVERAGE, MetricAggregationType.NOT_SPECIFIED))
- .withMetricClass("gwrtzju")
- .withDimensions(Arrays.asList(
- new MetricDimension().withName("zmh")
- .withDisplayName("ongmtsa")
- .withInternalName("cbpwxqpsrknft")
- .withToBeExportedForShoebox(true),
- new MetricDimension().withName("iuhprwmdyvxqta")
- .withDisplayName("iwwroyqbexrmc")
- .withInternalName("bycnojvkn")
- .withToBeExportedForShoebox(true),
- new MetricDimension().withName("sgzvahapjyzhpv")
- .withDisplayName("zcjrvxdjzlmwlx")
- .withInternalName("ug")
- .withToBeExportedForShoebox(false)));
- model = BinaryData.fromObject(model).toObject(MetricSpecification.class);
- Assertions.assertEquals("obbc", model.name());
- Assertions.assertEquals("s", model.displayName());
- Assertions.assertEquals("jriplrbpbewtghf", model.displayDescription());
- Assertions.assertEquals("lcgwxzvlvqh", model.unit());
- Assertions.assertEquals("begibtnmxiebwwa", model.aggregationType());
- Assertions.assertEquals(MetricAggregationType.AVERAGE, model.supportedAggregationTypes().get(0));
- Assertions.assertEquals("gwrtzju", model.metricClass());
- Assertions.assertEquals("zmh", model.dimensions().get(0).name());
- Assertions.assertEquals("ongmtsa", model.dimensions().get(0).displayName());
- Assertions.assertEquals("cbpwxqpsrknft", 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 1d530d0c4115..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NamespaceJunctionTests.java
+++ /dev/null
@@ -1,35 +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\":\"qqaatjinrvgou\",\"targetPath\":\"fiibfggjioolvr\",\"nfsExport\":\"kvtkkg\",\"nfsAccessPolicy\":\"qwjygvja\"}")
- .toObject(NamespaceJunction.class);
- Assertions.assertEquals("qqaatjinrvgou", model.namespacePath());
- Assertions.assertEquals("fiibfggjioolvr", model.targetPath());
- Assertions.assertEquals("kvtkkg", model.nfsExport());
- Assertions.assertEquals("qwjygvja", model.nfsAccessPolicy());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- NamespaceJunction model = new NamespaceJunction().withNamespacePath("qqaatjinrvgou")
- .withTargetPath("fiibfggjioolvr")
- .withNfsExport("kvtkkg")
- .withNfsAccessPolicy("qwjygvja");
- model = BinaryData.fromObject(model).toObject(NamespaceJunction.class);
- Assertions.assertEquals("qqaatjinrvgou", model.namespacePath());
- Assertions.assertEquals("fiibfggjioolvr", model.targetPath());
- Assertions.assertEquals("kvtkkg", model.nfsExport());
- Assertions.assertEquals("qwjygvja", 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 4f18abafb66a..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/Nfs3TargetTests.java
+++ /dev/null
@@ -1,35 +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\":\"blmhvkzuhb\",\"usageModel\":\"vyhgs\",\"verificationTimer\":2121939227,\"writeBackTimer\":792266928}")
- .toObject(Nfs3Target.class);
- Assertions.assertEquals("blmhvkzuhb", model.target());
- Assertions.assertEquals("vyhgs", model.usageModel());
- Assertions.assertEquals(2121939227, model.verificationTimer());
- Assertions.assertEquals(792266928, model.writeBackTimer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- Nfs3Target model = new Nfs3Target().withTarget("blmhvkzuhb")
- .withUsageModel("vyhgs")
- .withVerificationTimer(2121939227)
- .withWriteBackTimer(792266928);
- model = BinaryData.fromObject(model).toObject(Nfs3Target.class);
- Assertions.assertEquals("blmhvkzuhb", model.target());
- Assertions.assertEquals("vyhgs", model.usageModel());
- Assertions.assertEquals(2121939227, model.verificationTimer());
- Assertions.assertEquals(792266928, 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 cde0ebdbc454..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NfsAccessPolicyTests.java
+++ /dev/null
@@ -1,79 +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\":\"zfeqztppri\",\"accessRules\":[{\"scope\":\"host\",\"filter\":\"rjaltolmncw\",\"access\":\"rw\",\"suid\":true,\"submountAccess\":true,\"rootSquash\":false,\"anonymousUID\":\"nwdcfhu\",\"anonymousGID\":\"dpfuvg\"},{\"scope\":\"default\",\"filter\":\"jjcanvxbvtv\",\"access\":\"no\",\"suid\":true,\"submountAccess\":false,\"rootSquash\":true,\"anonymousUID\":\"r\",\"anonymousGID\":\"qtvcofudflvkgj\"},{\"scope\":\"network\",\"filter\":\"dknnqvsazn\",\"access\":\"no\",\"suid\":false,\"submountAccess\":false,\"rootSquash\":true,\"anonymousUID\":\"sahmky\",\"anonymousGID\":\"rauwjuetaebu\"},{\"scope\":\"network\",\"filter\":\"dmovsm\",\"access\":\"rw\",\"suid\":false,\"submountAccess\":false,\"rootSquash\":false,\"anonymousUID\":\"efkifr\",\"anonymousGID\":\"puqujmqlgkfbtn\"}]}")
- .toObject(NfsAccessPolicy.class);
- Assertions.assertEquals("zfeqztppri", model.name());
- Assertions.assertEquals(NfsAccessRuleScope.HOST, model.accessRules().get(0).scope());
- Assertions.assertEquals("rjaltolmncw", 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("nwdcfhu", model.accessRules().get(0).anonymousUid());
- Assertions.assertEquals("dpfuvg", model.accessRules().get(0).anonymousGid());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- NfsAccessPolicy model = new NfsAccessPolicy().withName("zfeqztppri")
- .withAccessRules(Arrays.asList(
- new NfsAccessRule().withScope(NfsAccessRuleScope.HOST)
- .withFilter("rjaltolmncw")
- .withAccess(NfsAccessRuleAccess.RW)
- .withSuid(true)
- .withSubmountAccess(true)
- .withRootSquash(false)
- .withAnonymousUid("nwdcfhu")
- .withAnonymousGid("dpfuvg"),
- new NfsAccessRule().withScope(NfsAccessRuleScope.DEFAULT)
- .withFilter("jjcanvxbvtv")
- .withAccess(NfsAccessRuleAccess.NO)
- .withSuid(true)
- .withSubmountAccess(false)
- .withRootSquash(true)
- .withAnonymousUid("r")
- .withAnonymousGid("qtvcofudflvkgj"),
- new NfsAccessRule().withScope(NfsAccessRuleScope.NETWORK)
- .withFilter("dknnqvsazn")
- .withAccess(NfsAccessRuleAccess.NO)
- .withSuid(false)
- .withSubmountAccess(false)
- .withRootSquash(true)
- .withAnonymousUid("sahmky")
- .withAnonymousGid("rauwjuetaebu"),
- new NfsAccessRule().withScope(NfsAccessRuleScope.NETWORK)
- .withFilter("dmovsm")
- .withAccess(NfsAccessRuleAccess.RW)
- .withSuid(false)
- .withSubmountAccess(false)
- .withRootSquash(false)
- .withAnonymousUid("efkifr")
- .withAnonymousGid("puqujmqlgkfbtn")));
- model = BinaryData.fromObject(model).toObject(NfsAccessPolicy.class);
- Assertions.assertEquals("zfeqztppri", model.name());
- Assertions.assertEquals(NfsAccessRuleScope.HOST, model.accessRules().get(0).scope());
- Assertions.assertEquals("rjaltolmncw", 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("nwdcfhu", model.accessRules().get(0).anonymousUid());
- Assertions.assertEquals("dpfuvg", 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 e58f42f9fbb5..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NfsAccessRuleTests.java
+++ /dev/null
@@ -1,49 +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\":\"host\",\"filter\":\"ongbjcnt\",\"access\":\"no\",\"suid\":false,\"submountAccess\":false,\"rootSquash\":false,\"anonymousUID\":\"twwaezkojvdcpzf\",\"anonymousGID\":\"ouicybxarzgszu\"}")
- .toObject(NfsAccessRule.class);
- Assertions.assertEquals(NfsAccessRuleScope.HOST, model.scope());
- Assertions.assertEquals("ongbjcnt", model.filter());
- Assertions.assertEquals(NfsAccessRuleAccess.NO, model.access());
- Assertions.assertEquals(false, model.suid());
- Assertions.assertEquals(false, model.submountAccess());
- Assertions.assertEquals(false, model.rootSquash());
- Assertions.assertEquals("twwaezkojvdcpzf", model.anonymousUid());
- Assertions.assertEquals("ouicybxarzgszu", model.anonymousGid());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- NfsAccessRule model = new NfsAccessRule().withScope(NfsAccessRuleScope.HOST)
- .withFilter("ongbjcnt")
- .withAccess(NfsAccessRuleAccess.NO)
- .withSuid(false)
- .withSubmountAccess(false)
- .withRootSquash(false)
- .withAnonymousUid("twwaezkojvdcpzf")
- .withAnonymousGid("ouicybxarzgszu");
- model = BinaryData.fromObject(model).toObject(NfsAccessRule.class);
- Assertions.assertEquals(NfsAccessRuleScope.HOST, model.scope());
- Assertions.assertEquals("ongbjcnt", model.filter());
- Assertions.assertEquals(NfsAccessRuleAccess.NO, model.access());
- Assertions.assertEquals(false, model.suid());
- Assertions.assertEquals(false, model.submountAccess());
- Assertions.assertEquals(false, model.rootSquash());
- Assertions.assertEquals("twwaezkojvdcpzf", model.anonymousUid());
- Assertions.assertEquals("ouicybxarzgszu", 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 50cb0c0174e2..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/OperationsListMockTests.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.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.ApiOperation;
-import com.azure.resourcemanager.storagecache.models.MetricAggregationType;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class OperationsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"display\":{\"operation\":\"ibbdaxconfoza\",\"provider\":\"rsukokwbqplh\",\"resource\":\"nuuepzlrp\",\"description\":\"zsoldwey\"},\"origin\":\"dunvmnnrwrbiorkt\",\"isDataAction\":true,\"name\":\"jhhgdnhxmsi\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"ox\",\"displayName\":\"dufiq\",\"displayDescription\":\"ieuzaofjchvcyyy\",\"unit\":\"gdotcubiipuipwo\",\"aggregationType\":\"nmacj\",\"supportedAggregationTypes\":[\"NotSpecified\",\"NotSpecified\",\"Total\"],\"metricClass\":\"qvci\",\"dimensions\":[{}]},{\"name\":\"fgmblrrilbywdxsm\",\"displayName\":\"cwrwfs\",\"displayDescription\":\"fnynszqujizdvoqy\",\"unit\":\"byowbblgyavutp\",\"aggregationType\":\"joxoism\",\"supportedAggregationTypes\":[\"Count\",\"Total\"],\"metricClass\":\"mlqoljx\",\"dimensions\":[{},{},{},{}]},{\"name\":\"xlx\",\"displayName\":\"fgcviz\",\"displayDescription\":\"dwl\",\"unit\":\"lyoupfgfbkju\",\"aggregationType\":\"yhgk\",\"supportedAggregationTypes\":[\"None\"],\"metricClass\":\"g\",\"dimensions\":[{},{},{},{}]}],\"logSpecifications\":[{\"name\":\"sttktlahbqa\",\"displayName\":\"xtgzukxitmmqtgqq\"},{\"name\":\"hrnxrxc\",\"displayName\":\"uisavokq\"},{\"name\":\"fvazivjlfrqttba\",\"displayName\":\"katnwxyi\"},{\"name\":\"id\",\"displayName\":\"qfkuvscxkdmli\"}]}}}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("ibbdaxconfoza", response.iterator().next().display().operation());
- Assertions.assertEquals("rsukokwbqplh", response.iterator().next().display().provider());
- Assertions.assertEquals("nuuepzlrp", response.iterator().next().display().resource());
- Assertions.assertEquals("zsoldwey", response.iterator().next().display().description());
- Assertions.assertEquals("dunvmnnrwrbiorkt", response.iterator().next().origin());
- Assertions.assertEquals(true, response.iterator().next().isDataAction());
- Assertions.assertEquals("jhhgdnhxmsi", response.iterator().next().name());
- Assertions.assertEquals("ox",
- response.iterator().next().serviceSpecification().metricSpecifications().get(0).name());
- Assertions.assertEquals("dufiq",
- response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName());
- Assertions.assertEquals("ieuzaofjchvcyyy",
- response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription());
- Assertions.assertEquals("gdotcubiipuipwo",
- response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit());
- Assertions.assertEquals("nmacj",
- response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType());
- Assertions.assertEquals(MetricAggregationType.NOT_SPECIFIED,
- response.iterator()
- .next()
- .serviceSpecification()
- .metricSpecifications()
- .get(0)
- .supportedAggregationTypes()
- .get(0));
- Assertions.assertEquals("qvci",
- response.iterator().next().serviceSpecification().metricSpecifications().get(0).metricClass());
- Assertions.assertEquals("sttktlahbqa",
- response.iterator().next().serviceSpecification().logSpecifications().get(0).name());
- Assertions.assertEquals("xtgzukxitmmqtgqq",
- response.iterator().next().serviceSpecification().logSpecifications().get(0).displayName());
- }
-}
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 f54b632fd919..000000000000
--- 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\":\"t\"}").toObject(PrimingJobIdParameter.class);
- Assertions.assertEquals("t", model.primingJobId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrimingJobIdParameter model = new PrimingJobIdParameter().withPrimingJobId("t");
- model = BinaryData.fromObject(model).toObject(PrimingJobIdParameter.class);
- Assertions.assertEquals("t", 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 5d4b406aec85..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/PrimingJobTests.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.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\":\"h\",\"primingManifestUrl\":\"zbwemh\",\"primingJobId\":\"rsbrgzdwm\",\"primingJobState\":\"Complete\",\"primingJobStatus\":\"pqwd\",\"primingJobDetails\":\"gicccnxqhuex\",\"primingJobPercentComplete\":81.72743271460638}")
- .toObject(PrimingJob.class);
- Assertions.assertEquals("h", model.primingJobName());
- Assertions.assertEquals("zbwemh", model.primingManifestUrl());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- PrimingJob model = new PrimingJob().withPrimingJobName("h").withPrimingManifestUrl("zbwemh");
- model = BinaryData.fromObject(model).toObject(PrimingJob.class);
- Assertions.assertEquals("h", model.primingJobName());
- Assertions.assertEquals("zbwemh", 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 9ec50458234c..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInfoTests.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.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\":89.686584,\"sku\":{\"name\":\"bacfionlebxetq\"}}")
- .toObject(RequiredAmlFilesystemSubnetsSizeInfo.class);
- Assertions.assertEquals(89.686584F, model.storageCapacityTiB());
- Assertions.assertEquals("bacfionlebxetq", model.sku().name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RequiredAmlFilesystemSubnetsSizeInfo model
- = new RequiredAmlFilesystemSubnetsSizeInfo().withStorageCapacityTiB(89.686584F)
- .withSku(new SkuName().withName("bacfionlebxetq"));
- model = BinaryData.fromObject(model).toObject(RequiredAmlFilesystemSubnetsSizeInfo.class);
- Assertions.assertEquals(89.686584F, model.storageCapacityTiB());
- Assertions.assertEquals("bacfionlebxetq", 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 5629fd70ebeb..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInnerTests.java
+++ /dev/null
@@ -1,26 +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\":335937226}")
- .toObject(RequiredAmlFilesystemSubnetsSizeInner.class);
- Assertions.assertEquals(335937226, model.filesystemSubnetSize());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- RequiredAmlFilesystemSubnetsSizeInner model
- = new RequiredAmlFilesystemSubnetsSizeInner().withFilesystemSubnetSize(335937226);
- model = BinaryData.fromObject(model).toObject(RequiredAmlFilesystemSubnetsSizeInner.class);
- Assertions.assertEquals(335937226, 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 34730b9bda68..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersCheckAmlFSSubnetsWithResponseMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.AmlFilesystemSubnetInfo;
-import com.azure.resourcemanager.storagecache.models.SkuName;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ResourceProvidersCheckAmlFSSubnetsWithResponseMockTests {
- @Test
- public void testCheckAmlFSSubnetsWithResponse() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("nrdsutujbazpjuoh")
- .withStorageCapacityTiB(25.543505F)
- .withSku(new SkuName().withName("lnorwmdu"))
- .withLocation("pklvxw"), 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 fc8950ead03f..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersGetRequiredAmlFSSubnetsSizeWithResponseMockTests.java
+++ /dev/null
@@ -1,43 +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.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-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.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ResourceProvidersGetRequiredAmlFSSubnetsSizeWithResponseMockTests {
- @Test
- public void testGetRequiredAmlFSSubnetsSizeWithResponse() throws Exception {
- String responseStr = "{\"filesystemSubnetSize\":1746749164}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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(27.807796F)
- .withSku(new SkuName().withName("pgpqchiszepnnb")),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(1746749164, 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 e199ec3d5ff8..000000000000
--- 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\":\"h\",\"value\":\"plvwiwubmwmbes\"}")
- .toObject(ResourceSkuCapabilities.class);
- Assertions.assertEquals("h", model.name());
- Assertions.assertEquals("plvwiwubmwmbes", model.value());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceSkuCapabilities model = new ResourceSkuCapabilities().withName("h").withValue("plvwiwubmwmbes");
- model = BinaryData.fromObject(model).toObject(ResourceSkuCapabilities.class);
- Assertions.assertEquals("h", model.name());
- Assertions.assertEquals("plvwiwubmwmbes", 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 882518fd8a3b..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkuLocationInfoTests.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.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\":\"nkww\",\"zones\":[\"jflcxog\",\"okonzmnsikvmkqz\",\"qqkdltfzxmhhvhgu\"]}")
- .toObject(ResourceSkuLocationInfo.class);
- Assertions.assertEquals("nkww", model.location());
- Assertions.assertEquals("jflcxog", model.zones().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceSkuLocationInfo model = new ResourceSkuLocationInfo().withLocation("nkww")
- .withZones(Arrays.asList("jflcxog", "okonzmnsikvmkqz", "qqkdltfzxmhhvhgu"));
- model = BinaryData.fromObject(model).toObject(ResourceSkuLocationInfo.class);
- Assertions.assertEquals("nkww", model.location());
- Assertions.assertEquals("jflcxog", model.zones().get(0));
- }
-}
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 9829aa24528c..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageInnerTests.java
+++ /dev/null
@@ -1,23 +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\":950726192,\"unit\":\"fv\",\"currentValue\":466923037,\"name\":{\"value\":\"sbpfvmwyhr\",\"localizedValue\":\"uyfta\"}}")
- .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 e78bea2c33da..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageNameTests.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.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\":\"cpwi\",\"localizedValue\":\"vqtmnub\"}")
- .toObject(ResourceUsageName.class);
- Assertions.assertEquals("cpwi", model.value());
- Assertions.assertEquals("vqtmnub", model.localizedValue());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ResourceUsageName model = new ResourceUsageName().withValue("cpwi").withLocalizedValue("vqtmnub");
- model = BinaryData.fromObject(model).toObject(ResourceUsageName.class);
- Assertions.assertEquals("cpwi", model.value());
- Assertions.assertEquals("vqtmnub", 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 61cf7a5e94a4..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsagesListResultTests.java
+++ /dev/null
@@ -1,23 +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\":\"cvdrhvoodsot\",\"value\":[{\"limit\":138973043,\"unit\":\"pcjwv\",\"currentValue\":2011097883,\"name\":{\"value\":\"wmgxcxrsl\",\"localizedValue\":\"utwu\"}},{\"limit\":966378800,\"unit\":\"pkhjwni\",\"currentValue\":1045229648,\"name\":{\"value\":\"i\",\"localizedValue\":\"dggkzzlvmbmpa\"}}]}")
- .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 9b6274762c23..000000000000
--- 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\":\"pqxu\"}").toObject(SkuName.class);
- Assertions.assertEquals("pqxu", model.name());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SkuName model = new SkuName().withName("pqxu");
- model = BinaryData.fromObject(model).toObject(SkuName.class);
- Assertions.assertEquals("pqxu", 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 e1da34f05298..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetInnerTests.java
+++ /dev/null
@@ -1,100 +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\":\"fp\",\"targetPath\":\"mpipaslthaqfxs\",\"nfsExport\":\"wutwbdsre\",\"nfsAccessPolicy\":\"drhneuyow\"},{\"namespacePath\":\"d\",\"targetPath\":\"t\",\"nfsExport\":\"ib\",\"nfsAccessPolicy\":\"cgpik\"}],\"targetType\":\"unknown\",\"provisioningState\":\"Canceled\",\"state\":\"Ready\",\"nfs3\":{\"target\":\"nlfzxiavrmbz\",\"usageModel\":\"okixrjqcir\",\"verificationTimer\":2101008571,\"writeBackTimer\":259037414},\"clfs\":{\"target\":\"zszrnwoiindfpw\"},\"unknown\":{\"attributes\":{\"zfjvfbgofe\":\"wbtlhflsjcdh\",\"iiojnal\":\"jagrqmqhldvr\"}},\"blobNfs\":{\"target\":\"kvtvsexso\",\"usageModel\":\"el\",\"verificationTimer\":1968234640,\"writeBackTimer\":1709132634},\"allocationPercentage\":958669339},\"location\":\"vrhmzk\",\"id\":\"jgwwspughftq\",\"name\":\"xhqxujxukndxdigr\",\"type\":\"guufzd\"}")
- .toObject(StorageTargetInner.class);
- Assertions.assertEquals("fp", model.junctions().get(0).namespacePath());
- Assertions.assertEquals("mpipaslthaqfxs", model.junctions().get(0).targetPath());
- Assertions.assertEquals("wutwbdsre", model.junctions().get(0).nfsExport());
- Assertions.assertEquals("drhneuyow", model.junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.UNKNOWN, model.targetType());
- Assertions.assertEquals(OperationalStateType.READY, model.state());
- Assertions.assertEquals("nlfzxiavrmbz", model.nfs3().target());
- Assertions.assertEquals("okixrjqcir", model.nfs3().usageModel());
- Assertions.assertEquals(2101008571, model.nfs3().verificationTimer());
- Assertions.assertEquals(259037414, model.nfs3().writeBackTimer());
- Assertions.assertEquals("zszrnwoiindfpw", model.clfs().target());
- Assertions.assertEquals("wbtlhflsjcdh", model.unknown().attributes().get("zfjvfbgofe"));
- Assertions.assertEquals("kvtvsexso", model.blobNfs().target());
- Assertions.assertEquals("el", model.blobNfs().usageModel());
- Assertions.assertEquals(1968234640, model.blobNfs().verificationTimer());
- Assertions.assertEquals(1709132634, model.blobNfs().writeBackTimer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- StorageTargetInner model = new StorageTargetInner()
- .withJunctions(Arrays.asList(
- new NamespaceJunction().withNamespacePath("fp")
- .withTargetPath("mpipaslthaqfxs")
- .withNfsExport("wutwbdsre")
- .withNfsAccessPolicy("drhneuyow"),
- new NamespaceJunction().withNamespacePath("d")
- .withTargetPath("t")
- .withNfsExport("ib")
- .withNfsAccessPolicy("cgpik")))
- .withTargetType(StorageTargetType.UNKNOWN)
- .withState(OperationalStateType.READY)
- .withNfs3(new Nfs3Target().withTarget("nlfzxiavrmbz")
- .withUsageModel("okixrjqcir")
- .withVerificationTimer(2101008571)
- .withWriteBackTimer(259037414))
- .withClfs(new ClfsTarget().withTarget("zszrnwoiindfpw"))
- .withUnknown(
- new UnknownTarget().withAttributes(mapOf("zfjvfbgofe", "wbtlhflsjcdh", "iiojnal", "jagrqmqhldvr")))
- .withBlobNfs(new BlobNfsTarget().withTarget("kvtvsexso")
- .withUsageModel("el")
- .withVerificationTimer(1968234640)
- .withWriteBackTimer(1709132634));
- model = BinaryData.fromObject(model).toObject(StorageTargetInner.class);
- Assertions.assertEquals("fp", model.junctions().get(0).namespacePath());
- Assertions.assertEquals("mpipaslthaqfxs", model.junctions().get(0).targetPath());
- Assertions.assertEquals("wutwbdsre", model.junctions().get(0).nfsExport());
- Assertions.assertEquals("drhneuyow", model.junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.UNKNOWN, model.targetType());
- Assertions.assertEquals(OperationalStateType.READY, model.state());
- Assertions.assertEquals("nlfzxiavrmbz", model.nfs3().target());
- Assertions.assertEquals("okixrjqcir", model.nfs3().usageModel());
- Assertions.assertEquals(2101008571, model.nfs3().verificationTimer());
- Assertions.assertEquals(259037414, model.nfs3().writeBackTimer());
- Assertions.assertEquals("zszrnwoiindfpw", model.clfs().target());
- Assertions.assertEquals("wbtlhflsjcdh", model.unknown().attributes().get("zfjvfbgofe"));
- Assertions.assertEquals("kvtvsexso", model.blobNfs().target());
- Assertions.assertEquals("el", model.blobNfs().usageModel());
- Assertions.assertEquals(1968234640, model.blobNfs().verificationTimer());
- Assertions.assertEquals(1709132634, model.blobNfs().writeBackTimer());
- }
-
- // Use "Map.of" if available
- @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 328ddb58792a..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsFlushMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetOperationsFlushMockTests {
- @Test
- public void testFlush() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("ufdvruz", "lzo", "hpc", 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 94c3da85fa9f..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsInvalidateMockTests.java
+++ /dev/null
@@ -1,34 +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.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetOperationsInvalidateMockTests {
- @Test
- public void testInvalidate() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("tnluankrr", "xeeebtijvacvbmqz", "qqxlajr", 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 c844da24faa0..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsResumeMockTests.java
+++ /dev/null
@@ -1,34 +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.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetOperationsResumeMockTests {
- @Test
- public void testResume() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("jee", "yhyhsgzfczb", "omfgbeglqgleohib", 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 1f37bfd6bfb5..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsSuspendMockTests.java
+++ /dev/null
@@ -1,34 +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.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetOperationsSuspendMockTests {
- @Test
- public void testSuspend() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("fnmdxotn", "fdgugeyzi", "grkyuizabsnmfpph", 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 ca847e21677b..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetPropertiesTests.java
+++ /dev/null
@@ -1,100 +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\":\"tfih\",\"targetPath\":\"botzingamvppho\",\"nfsExport\":\"qzudphq\",\"nfsAccessPolicy\":\"vdkfwynwcvtbvk\"},{\"namespacePath\":\"hmtnvy\",\"targetPath\":\"atkzwpcnpw\",\"nfsExport\":\"jaesgvvsccya\",\"nfsAccessPolicy\":\"uq\"}],\"targetType\":\"nfs3\",\"provisioningState\":\"Succeeded\",\"state\":\"Flushing\",\"nfs3\":{\"target\":\"dnkfx\",\"usageModel\":\"emdwzrmuhapfc\",\"verificationTimer\":1106936227,\"writeBackTimer\":1335767849},\"clfs\":{\"target\":\"vpsvuoymgcce\"},\"unknown\":{\"attributes\":{\"erqwkyhkobopg\":\"rypqlmfeo\",\"wccsnjvcdwxlpqek\":\"edkowepbqpcrfk\",\"htjsying\":\"tn\",\"tmtdhtmdvypgik\":\"fq\"}},\"blobNfs\":{\"target\":\"zywkb\",\"usageModel\":\"ryuzh\",\"verificationTimer\":524454595,\"writeBackTimer\":904307607},\"allocationPercentage\":1964093020}")
- .toObject(StorageTargetProperties.class);
- Assertions.assertEquals("tfih", model.junctions().get(0).namespacePath());
- Assertions.assertEquals("botzingamvppho", model.junctions().get(0).targetPath());
- Assertions.assertEquals("qzudphq", model.junctions().get(0).nfsExport());
- Assertions.assertEquals("vdkfwynwcvtbvk", model.junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.NFS3, model.targetType());
- Assertions.assertEquals(OperationalStateType.FLUSHING, model.state());
- Assertions.assertEquals("dnkfx", model.nfs3().target());
- Assertions.assertEquals("emdwzrmuhapfc", model.nfs3().usageModel());
- Assertions.assertEquals(1106936227, model.nfs3().verificationTimer());
- Assertions.assertEquals(1335767849, model.nfs3().writeBackTimer());
- Assertions.assertEquals("vpsvuoymgcce", model.clfs().target());
- Assertions.assertEquals("rypqlmfeo", model.unknown().attributes().get("erqwkyhkobopg"));
- Assertions.assertEquals("zywkb", model.blobNfs().target());
- Assertions.assertEquals("ryuzh", model.blobNfs().usageModel());
- Assertions.assertEquals(524454595, model.blobNfs().verificationTimer());
- Assertions.assertEquals(904307607, model.blobNfs().writeBackTimer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- StorageTargetProperties model = new StorageTargetProperties()
- .withJunctions(Arrays.asList(
- new NamespaceJunction().withNamespacePath("tfih")
- .withTargetPath("botzingamvppho")
- .withNfsExport("qzudphq")
- .withNfsAccessPolicy("vdkfwynwcvtbvk"),
- new NamespaceJunction().withNamespacePath("hmtnvy")
- .withTargetPath("atkzwpcnpw")
- .withNfsExport("jaesgvvsccya")
- .withNfsAccessPolicy("uq")))
- .withTargetType(StorageTargetType.NFS3)
- .withState(OperationalStateType.FLUSHING)
- .withNfs3(new Nfs3Target().withTarget("dnkfx")
- .withUsageModel("emdwzrmuhapfc")
- .withVerificationTimer(1106936227)
- .withWriteBackTimer(1335767849))
- .withClfs(new ClfsTarget().withTarget("vpsvuoymgcce"))
- .withUnknown(new UnknownTarget().withAttributes(mapOf("erqwkyhkobopg", "rypqlmfeo", "wccsnjvcdwxlpqek",
- "edkowepbqpcrfk", "htjsying", "tn", "tmtdhtmdvypgik", "fq")))
- .withBlobNfs(new BlobNfsTarget().withTarget("zywkb")
- .withUsageModel("ryuzh")
- .withVerificationTimer(524454595)
- .withWriteBackTimer(904307607));
- model = BinaryData.fromObject(model).toObject(StorageTargetProperties.class);
- Assertions.assertEquals("tfih", model.junctions().get(0).namespacePath());
- Assertions.assertEquals("botzingamvppho", model.junctions().get(0).targetPath());
- Assertions.assertEquals("qzudphq", model.junctions().get(0).nfsExport());
- Assertions.assertEquals("vdkfwynwcvtbvk", model.junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.NFS3, model.targetType());
- Assertions.assertEquals(OperationalStateType.FLUSHING, model.state());
- Assertions.assertEquals("dnkfx", model.nfs3().target());
- Assertions.assertEquals("emdwzrmuhapfc", model.nfs3().usageModel());
- Assertions.assertEquals(1106936227, model.nfs3().verificationTimer());
- Assertions.assertEquals(1335767849, model.nfs3().writeBackTimer());
- Assertions.assertEquals("vpsvuoymgcce", model.clfs().target());
- Assertions.assertEquals("rypqlmfeo", model.unknown().attributes().get("erqwkyhkobopg"));
- Assertions.assertEquals("zywkb", model.blobNfs().target());
- Assertions.assertEquals("ryuzh", model.blobNfs().usageModel());
- Assertions.assertEquals(524454595, model.blobNfs().verificationTimer());
- Assertions.assertEquals(904307607, model.blobNfs().writeBackTimer());
- }
-
- // Use "Map.of" if available
- @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 81d950e94f4a..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetResourceTests.java
+++ /dev/null
@@ -1,23 +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\":\"aixexccbdreaxh\",\"id\":\"xdrrvqahqkghtp\",\"name\":\"ijnhyjsvfycxzbf\",\"type\":\"oowvrv\"}")
- .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 71090ba5213e..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetSpaceAllocationTests.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.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\":\"stvlzywemhzrnc\",\"allocationPercentage\":1198340294}")
- .toObject(StorageTargetSpaceAllocation.class);
- Assertions.assertEquals("stvlzywemhzrnc", model.name());
- Assertions.assertEquals(1198340294, model.allocationPercentage());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- StorageTargetSpaceAllocation model
- = new StorageTargetSpaceAllocation().withName("stvlzywemhzrnc").withAllocationPercentage(1198340294);
- model = BinaryData.fromObject(model).toObject(StorageTargetSpaceAllocation.class);
- Assertions.assertEquals("stvlzywemhzrnc", model.name());
- Assertions.assertEquals(1198340294, 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 fb33f60b228b..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsCreateOrUpdateMockTests.java
+++ /dev/null
@@ -1,106 +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.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-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.NamespaceJunction;
-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.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 reactor.core.publisher.Mono;
-
-public final class StorageTargetsCreateOrUpdateMockTests {
- @Test
- public void testCreateOrUpdate() throws Exception {
- String responseStr
- = "{\"properties\":{\"junctions\":[{\"namespacePath\":\"fzzhmkdasv\",\"targetPath\":\"yhbxcudchxgs\",\"nfsExport\":\"oldforobw\",\"nfsAccessPolicy\":\"vizbfhfo\"},{\"namespacePath\":\"acqpbtuodxesza\",\"targetPath\":\"elawumu\",\"nfsExport\":\"lzkwrrwoy\",\"nfsAccessPolicy\":\"ucwyhahno\"}],\"targetType\":\"unknown\",\"provisioningState\":\"Succeeded\",\"state\":\"Suspended\",\"nfs3\":{\"target\":\"psvfuurutlwexxwl\",\"usageModel\":\"niexzsrzpgepq\",\"verificationTimer\":417783908,\"writeBackTimer\":2090759507},\"clfs\":{\"target\":\"gdakchz\"},\"unknown\":{\"attributes\":{\"ibn\":\"xqnrkcxk\",\"swqrntvlwijp\":\"mysu\",\"uncuw\":\"ttexoqqpwcyyufmh\",\"unqndyfpchrqb\":\"qspkcdqzhlctd\"}},\"blobNfs\":{\"target\":\"rcgegydcwboxjum\",\"usageModel\":\"qoli\",\"verificationTimer\":960198730,\"writeBackTimer\":153099260},\"allocationPercentage\":1564106365},\"location\":\"ubrjtl\",\"id\":\"xfuojrn\",\"name\":\"iflrzpasccbiu\",\"type\":\"mzdlyjdfqwmkyo\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("mwmdxmebwjscjpa")
- .withExistingCache("thwtzol", "a")
- .withJunctions(Arrays.asList(
- new NamespaceJunction().withNamespacePath("a")
- .withTargetPath("qxnmwmqt")
- .withNfsExport("xyi")
- .withNfsAccessPolicy("dt"),
- new NamespaceJunction().withNamespacePath("cttadi")
- .withTargetPath("eukmr")
- .withNfsExport("eekpndz")
- .withNfsAccessPolicy("pmudqmeqwig"),
- new NamespaceJunction().withNamespacePath("bu")
- .withTargetPath("wyxebeybpmzz")
- .withNfsExport("tffyaqit")
- .withNfsAccessPolicy("heioqa"),
- new NamespaceJunction().withNamespacePath("v")
- .withTargetPath("ufuqyrx")
- .withNfsExport("lcgqlsismj")
- .withNfsAccessPolicy("rddga")))
- .withTargetType(StorageTargetType.BLOB_NFS)
- .withState(OperationalStateType.READY)
- .withNfs3(new Nfs3Target().withTarget("sjuivfcdisyir")
- .withUsageModel("zhczexrxzbujrtrh")
- .withVerificationTimer(1247179302)
- .withWriteBackTimer(934568942))
- .withClfs(new ClfsTarget().withTarget("h"))
- .withUnknown(new UnknownTarget().withAttributes(mapOf("jtszcof", "zonzlrpiqywnc", "k", "zehtdhgb")))
- .withBlobNfs(new BlobNfsTarget().withTarget("ljeamu")
- .withUsageModel("zmlovuanash")
- .withVerificationTimer(1712193542)
- .withWriteBackTimer(1846794278))
- .create();
-
- Assertions.assertEquals("fzzhmkdasv", response.junctions().get(0).namespacePath());
- Assertions.assertEquals("yhbxcudchxgs", response.junctions().get(0).targetPath());
- Assertions.assertEquals("oldforobw", response.junctions().get(0).nfsExport());
- Assertions.assertEquals("vizbfhfo", response.junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.UNKNOWN, response.targetType());
- Assertions.assertEquals(OperationalStateType.SUSPENDED, response.state());
- Assertions.assertEquals("psvfuurutlwexxwl", response.nfs3().target());
- Assertions.assertEquals("niexzsrzpgepq", response.nfs3().usageModel());
- Assertions.assertEquals(417783908, response.nfs3().verificationTimer());
- Assertions.assertEquals(2090759507, response.nfs3().writeBackTimer());
- Assertions.assertEquals("gdakchz", response.clfs().target());
- Assertions.assertEquals("xqnrkcxk", response.unknown().attributes().get("ibn"));
- Assertions.assertEquals("rcgegydcwboxjum", response.blobNfs().target());
- Assertions.assertEquals("qoli", response.blobNfs().usageModel());
- Assertions.assertEquals(960198730, response.blobNfs().verificationTimer());
- Assertions.assertEquals(153099260, response.blobNfs().writeBackTimer());
- }
-
- // Use "Map.of" if available
- @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 4a432553405f..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsDeleteMockTests {
- @Test
- public void testDelete() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("tnsi", "ud", "z", "mes", 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 07c5864343ab..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDnsRefreshMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsDnsRefreshMockTests {
- @Test
- public void testDnsRefresh() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("oyzunbixxr", "ikvcpwp", "clrcivtsox", 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 d702d410ebc7..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,56 +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.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-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.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"junctions\":[{\"namespacePath\":\"cc\",\"targetPath\":\"nhxk\",\"nfsExport\":\"v\",\"nfsAccessPolicy\":\"nrzvuljraaer\"},{\"namespacePath\":\"okqgukkjq\",\"targetPath\":\"broyla\",\"nfsExport\":\"ulcdisdosf\",\"nfsAccessPolicy\":\"jsvg\"},{\"namespacePath\":\"whryvycytdcl\",\"targetPath\":\"ccknfnwmbtmvp\",\"nfsExport\":\"jdhttzaefedxi\",\"nfsAccessPolicy\":\"hrphkmcrjdqn\"},{\"namespacePath\":\"fzpbgtgkyl\",\"targetPath\":\"ghrjeuutl\",\"nfsExport\":\"ez\",\"nfsAccessPolicy\":\"hokvbwnh\"}],\"targetType\":\"unknown\",\"provisioningState\":\"Deleting\",\"state\":\"Busy\",\"nfs3\":{\"target\":\"ppipifhpfeoa\",\"usageModel\":\"gcxtxj\",\"verificationTimer\":1930965124,\"writeBackTimer\":1050895909},\"clfs\":{\"target\":\"dltug\"},\"unknown\":{\"attributes\":{\"jhoiftxfkfweg\":\"mks\",\"iqtgdqoh\":\"rhptilluc\"}},\"blobNfs\":{\"target\":\"sldrizetpwbral\",\"usageModel\":\"ibph\",\"verificationTimer\":449888460,\"writeBackTimer\":1515253868},\"allocationPercentage\":739440726},\"location\":\"a\",\"id\":\"nkjpdnjzha\",\"name\":\"oylhjlmuoyxprimr\",\"type\":\"opteecj\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("kdlpa", "zrcxfailcfxwmdbo", "dfgsftufqobrj", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("cc", response.junctions().get(0).namespacePath());
- Assertions.assertEquals("nhxk", response.junctions().get(0).targetPath());
- Assertions.assertEquals("v", response.junctions().get(0).nfsExport());
- Assertions.assertEquals("nrzvuljraaer", response.junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.UNKNOWN, response.targetType());
- Assertions.assertEquals(OperationalStateType.BUSY, response.state());
- Assertions.assertEquals("ppipifhpfeoa", response.nfs3().target());
- Assertions.assertEquals("gcxtxj", response.nfs3().usageModel());
- Assertions.assertEquals(1930965124, response.nfs3().verificationTimer());
- Assertions.assertEquals(1050895909, response.nfs3().writeBackTimer());
- Assertions.assertEquals("dltug", response.clfs().target());
- Assertions.assertEquals("mks", response.unknown().attributes().get("jhoiftxfkfweg"));
- Assertions.assertEquals("sldrizetpwbral", response.blobNfs().target());
- Assertions.assertEquals("ibph", response.blobNfs().usageModel());
- Assertions.assertEquals(449888460, response.blobNfs().verificationTimer());
- Assertions.assertEquals(1515253868, 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 c2fc706253b7..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsListByCacheMockTests.java
+++ /dev/null
@@ -1,56 +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.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-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.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsListByCacheMockTests {
- @Test
- public void testListByCache() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"junctions\":[{\"namespacePath\":\"pmpdn\",\"targetPath\":\"skawaoqvmmb\",\"nfsExport\":\"qfr\",\"nfsAccessPolicy\":\"lkzmegnitgvkxl\"},{\"namespacePath\":\"qdrfegcealzxwhc\",\"targetPath\":\"symoyq\",\"nfsExport\":\"wigdi\",\"nfsAccessPolicy\":\"kbxgom\"},{\"namespacePath\":\"juwasqvdaeyyguxa\",\"targetPath\":\"sqzhzbezkg\",\"nfsExport\":\"sidxasicdd\",\"nfsAccessPolicy\":\"vjskgfmoc\"},{\"namespacePath\":\"hpqgatjeaahhvj\",\"targetPath\":\"na\",\"nfsExport\":\"ybbjjidjksyx\",\"nfsAccessPolicy\":\"xvxevblbjednljla\"}],\"targetType\":\"clfs\",\"provisioningState\":\"Deleting\",\"state\":\"Flushing\",\"nfs3\":{\"target\":\"nsmjbnkppxynen\",\"usageModel\":\"vxei\",\"verificationTimer\":1685184903,\"writeBackTimer\":292685868},\"clfs\":{\"target\":\"srmffeycxcktpiym\"},\"unknown\":{\"attributes\":{\"kgdoj\":\"eammxqiekkkzddr\",\"vecuijpx\":\"mxvavrefdee\",\"wprtu\":\"xs\"}},\"blobNfs\":{\"target\":\"awddjibab\",\"usageModel\":\"ititvtzeexavoxt\",\"verificationTimer\":165499088,\"writeBackTimer\":420576736},\"allocationPercentage\":36693026},\"location\":\"qbw\",\"id\":\"pqtgsfjac\",\"name\":\"slhhxudbxv\",\"type\":\"d\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("rkenx", "m", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("pmpdn", response.iterator().next().junctions().get(0).namespacePath());
- Assertions.assertEquals("skawaoqvmmb", response.iterator().next().junctions().get(0).targetPath());
- Assertions.assertEquals("qfr", response.iterator().next().junctions().get(0).nfsExport());
- Assertions.assertEquals("lkzmegnitgvkxl", response.iterator().next().junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.CLFS, response.iterator().next().targetType());
- Assertions.assertEquals(OperationalStateType.FLUSHING, response.iterator().next().state());
- Assertions.assertEquals("nsmjbnkppxynen", response.iterator().next().nfs3().target());
- Assertions.assertEquals("vxei", response.iterator().next().nfs3().usageModel());
- Assertions.assertEquals(1685184903, response.iterator().next().nfs3().verificationTimer());
- Assertions.assertEquals(292685868, response.iterator().next().nfs3().writeBackTimer());
- Assertions.assertEquals("srmffeycxcktpiym", response.iterator().next().clfs().target());
- Assertions.assertEquals("eammxqiekkkzddr", response.iterator().next().unknown().attributes().get("kgdoj"));
- Assertions.assertEquals("awddjibab", response.iterator().next().blobNfs().target());
- Assertions.assertEquals("ititvtzeexavoxt", response.iterator().next().blobNfs().usageModel());
- Assertions.assertEquals(165499088, response.iterator().next().blobNfs().verificationTimer());
- Assertions.assertEquals(420576736, 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 24ac565d9566..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsRestoreDefaultsMockTests.java
+++ /dev/null
@@ -1,34 +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.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class StorageTargetsRestoreDefaultsMockTests {
- @Test
- public void testRestoreDefaults() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("eislstvasylwx", "zaum", "eoohguufuzboyj", 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 6d37206bf332..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsResultTests.java
+++ /dev/null
@@ -1,108 +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.StorageTargetsResult;
-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 StorageTargetsResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- StorageTargetsResult model = BinaryData.fromString(
- "{\"nextLink\":\"sfgytguslfead\",\"value\":[{\"properties\":{\"junctions\":[{\"namespacePath\":\"hejhzisx\",\"targetPath\":\"pelol\",\"nfsExport\":\"vk\",\"nfsAccessPolicy\":\"pqvujzraehtwdwrf\"},{\"namespacePath\":\"wib\",\"targetPath\":\"cdl\",\"nfsExport\":\"shfwpracstwity\",\"nfsAccessPolicy\":\"evxccedcp\"},{\"namespacePath\":\"dyodnwzxltj\",\"targetPath\":\"nhltiugcxn\",\"nfsExport\":\"vwxqibyqunyo\",\"nfsAccessPolicy\":\"wlmdjrkv\"}],\"targetType\":\"nfs3\",\"provisioningState\":\"Updating\",\"state\":\"Suspended\",\"nfs3\":{\"target\":\"bodacizsjq\",\"usageModel\":\"krribdeibqi\",\"verificationTimer\":840101476,\"writeBackTimer\":2080529192},\"clfs\":{\"target\":\"ndzwmkrefa\"},\"unknown\":{\"attributes\":{\"yhgbijtjivfx\":\"rwkq\",\"stawfsdjpvkv\":\"sjabibs\"}},\"blobNfs\":{\"target\":\"xbkzbzkdvncj\",\"usageModel\":\"udurgkakmokz\",\"verificationTimer\":523614486,\"writeBackTimer\":615814676},\"allocationPercentage\":1622584038},\"location\":\"mouwqlgzrfzeey\",\"id\":\"izikayuhq\",\"name\":\"bjbsybb\",\"type\":\"wrv\"}]}")
- .toObject(StorageTargetsResult.class);
- Assertions.assertEquals("sfgytguslfead", model.nextLink());
- Assertions.assertEquals("hejhzisx", model.value().get(0).junctions().get(0).namespacePath());
- Assertions.assertEquals("pelol", model.value().get(0).junctions().get(0).targetPath());
- Assertions.assertEquals("vk", model.value().get(0).junctions().get(0).nfsExport());
- Assertions.assertEquals("pqvujzraehtwdwrf", model.value().get(0).junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.NFS3, model.value().get(0).targetType());
- Assertions.assertEquals(OperationalStateType.SUSPENDED, model.value().get(0).state());
- Assertions.assertEquals("bodacizsjq", model.value().get(0).nfs3().target());
- Assertions.assertEquals("krribdeibqi", model.value().get(0).nfs3().usageModel());
- Assertions.assertEquals(840101476, model.value().get(0).nfs3().verificationTimer());
- Assertions.assertEquals(2080529192, model.value().get(0).nfs3().writeBackTimer());
- Assertions.assertEquals("ndzwmkrefa", model.value().get(0).clfs().target());
- Assertions.assertEquals("rwkq", model.value().get(0).unknown().attributes().get("yhgbijtjivfx"));
- Assertions.assertEquals("xbkzbzkdvncj", model.value().get(0).blobNfs().target());
- Assertions.assertEquals("udurgkakmokz", model.value().get(0).blobNfs().usageModel());
- Assertions.assertEquals(523614486, model.value().get(0).blobNfs().verificationTimer());
- Assertions.assertEquals(615814676, model.value().get(0).blobNfs().writeBackTimer());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- StorageTargetsResult model = new StorageTargetsResult().withNextLink("sfgytguslfead")
- .withValue(Arrays.asList(new StorageTargetInner()
- .withJunctions(Arrays.asList(
- new NamespaceJunction().withNamespacePath("hejhzisx")
- .withTargetPath("pelol")
- .withNfsExport("vk")
- .withNfsAccessPolicy("pqvujzraehtwdwrf"),
- new NamespaceJunction().withNamespacePath("wib")
- .withTargetPath("cdl")
- .withNfsExport("shfwpracstwity")
- .withNfsAccessPolicy("evxccedcp"),
- new NamespaceJunction().withNamespacePath("dyodnwzxltj")
- .withTargetPath("nhltiugcxn")
- .withNfsExport("vwxqibyqunyo")
- .withNfsAccessPolicy("wlmdjrkv")))
- .withTargetType(StorageTargetType.NFS3)
- .withState(OperationalStateType.SUSPENDED)
- .withNfs3(new Nfs3Target().withTarget("bodacizsjq")
- .withUsageModel("krribdeibqi")
- .withVerificationTimer(840101476)
- .withWriteBackTimer(2080529192))
- .withClfs(new ClfsTarget().withTarget("ndzwmkrefa"))
- .withUnknown(
- new UnknownTarget().withAttributes(mapOf("yhgbijtjivfx", "rwkq", "stawfsdjpvkv", "sjabibs")))
- .withBlobNfs(new BlobNfsTarget().withTarget("xbkzbzkdvncj")
- .withUsageModel("udurgkakmokz")
- .withVerificationTimer(523614486)
- .withWriteBackTimer(615814676))));
- model = BinaryData.fromObject(model).toObject(StorageTargetsResult.class);
- Assertions.assertEquals("sfgytguslfead", model.nextLink());
- Assertions.assertEquals("hejhzisx", model.value().get(0).junctions().get(0).namespacePath());
- Assertions.assertEquals("pelol", model.value().get(0).junctions().get(0).targetPath());
- Assertions.assertEquals("vk", model.value().get(0).junctions().get(0).nfsExport());
- Assertions.assertEquals("pqvujzraehtwdwrf", model.value().get(0).junctions().get(0).nfsAccessPolicy());
- Assertions.assertEquals(StorageTargetType.NFS3, model.value().get(0).targetType());
- Assertions.assertEquals(OperationalStateType.SUSPENDED, model.value().get(0).state());
- Assertions.assertEquals("bodacizsjq", model.value().get(0).nfs3().target());
- Assertions.assertEquals("krribdeibqi", model.value().get(0).nfs3().usageModel());
- Assertions.assertEquals(840101476, model.value().get(0).nfs3().verificationTimer());
- Assertions.assertEquals(2080529192, model.value().get(0).nfs3().writeBackTimer());
- Assertions.assertEquals("ndzwmkrefa", model.value().get(0).clfs().target());
- Assertions.assertEquals("rwkq", model.value().get(0).unknown().attributes().get("yhgbijtjivfx"));
- Assertions.assertEquals("xbkzbzkdvncj", model.value().get(0).blobNfs().target());
- Assertions.assertEquals("udurgkakmokz", model.value().get(0).blobNfs().usageModel());
- Assertions.assertEquals(523614486, model.value().get(0).blobNfs().verificationTimer());
- Assertions.assertEquals(615814676, model.value().get(0).blobNfs().writeBackTimer());
- }
-
- // Use "Map.of" if available
- @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/UnknownTargetTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UnknownTargetTests.java
deleted file mode 100644
index 754966cc3209..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UnknownTargetTests.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.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\":{\"fbn\":\"xuvw\"}}").toObject(UnknownTarget.class);
- Assertions.assertEquals("xuvw", model.attributes().get("fbn"));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UnknownTarget model = new UnknownTarget().withAttributes(mapOf("fbn", "xuvw"));
- model = BinaryData.fromObject(model).toObject(UnknownTarget.class);
- Assertions.assertEquals("xuvw", model.attributes().get("fbn"));
- }
-
- // Use "Map.of" if available
- @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 b82991b13574..000000000000
--- 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\":\"wq\"}").toObject(UsageModelDisplay.class);
- Assertions.assertEquals("wq", model.description());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UsageModelDisplay model = new UsageModelDisplay().withDescription("wq");
- model = BinaryData.fromObject(model).toObject(UsageModelDisplay.class);
- Assertions.assertEquals("wq", 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 c5e4ccc623bc..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelInnerTests.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.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\":\"pxebmnzbt\"},\"modelName\":\"jpglkfgohdne\",\"targetType\":\"lfphsdyhtozfikd\"}")
- .toObject(UsageModelInner.class);
- Assertions.assertEquals("pxebmnzbt", model.display().description());
- Assertions.assertEquals("jpglkfgohdne", model.modelName());
- Assertions.assertEquals("lfphsdyhtozfikd", model.targetType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UsageModelInner model = new UsageModelInner().withDisplay(new UsageModelDisplay().withDescription("pxebmnzbt"))
- .withModelName("jpglkfgohdne")
- .withTargetType("lfphsdyhtozfikd");
- model = BinaryData.fromObject(model).toObject(UsageModelInner.class);
- Assertions.assertEquals("pxebmnzbt", model.display().description());
- Assertions.assertEquals("jpglkfgohdne", model.modelName());
- Assertions.assertEquals("lfphsdyhtozfikd", 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 906f3dc1edf3..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelsListMockTests.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.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.storagecache.StorageCacheManager;
-import com.azure.resourcemanager.storagecache.models.UsageModel;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class UsageModelsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"display\":{\"description\":\"uqypfcvle\"},\"modelName\":\"hp\",\"targetType\":\"mfpjbabw\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- 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("uqypfcvle", response.iterator().next().display().description());
- Assertions.assertEquals("hp", response.iterator().next().modelName());
- Assertions.assertEquals("mfpjbabw", 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 729358f5fd3f..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelsResultTests.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.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\":\"qtkoievs\",\"value\":[{\"display\":{\"description\":\"rlltmuwlauwzizx\"},\"modelName\":\"pgcjefuzmuvp\",\"targetType\":\"tdum\"}]}")
- .toObject(UsageModelsResult.class);
- Assertions.assertEquals("qtkoievs", model.nextLink());
- Assertions.assertEquals("rlltmuwlauwzizx", model.value().get(0).display().description());
- Assertions.assertEquals("pgcjefuzmuvp", model.value().get(0).modelName());
- Assertions.assertEquals("tdum", model.value().get(0).targetType());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UsageModelsResult model = new UsageModelsResult().withNextLink("qtkoievs")
- .withValue(Arrays
- .asList(new UsageModelInner().withDisplay(new UsageModelDisplay().withDescription("rlltmuwlauwzizx"))
- .withModelName("pgcjefuzmuvp")
- .withTargetType("tdum")));
- model = BinaryData.fromObject(model).toObject(UsageModelsResult.class);
- Assertions.assertEquals("qtkoievs", model.nextLink());
- Assertions.assertEquals("rlltmuwlauwzizx", model.value().get(0).display().description());
- Assertions.assertEquals("pgcjefuzmuvp", model.value().get(0).modelName());
- Assertions.assertEquals("tdum", 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 41b6617e21ff..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueAutoGeneratedTests.java
+++ /dev/null
@@ -1,23 +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\":\"kl\",\"clientId\":\"xbjhwuaanozjosph\"}")
- .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 00cb290d5473..000000000000
--- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueTests.java
+++ /dev/null
@@ -1,23 +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\":\"ithxqhabifpi\",\"clientId\":\"wczbys\"}")
- .toObject(UserAssignedIdentitiesValue.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UserAssignedIdentitiesValue model = new UserAssignedIdentitiesValue();
- model = BinaryData.fromObject(model).toObject(UserAssignedIdentitiesValue.class);
- }
-}