diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md b/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md index 9fcd3d0c2a8d..90d77e555190 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md +++ b/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.9 (Unreleased) +## 1.0.0-beta.1 (2023-03-23) + +- Azure Resource Manager StorageCache client library for Java. This package contains Microsoft Azure SDK for StorageCache Management SDK. A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. Package tag package-2023-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/README.md b/sdk/storagecache/azure-resourcemanager-storagecache/README.md index e18e59df624b..aa921c9c01b6 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. A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. Package tag package-preview-2023-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. A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. Package tag package-2023-01. 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-beta.8 + 1.0.0-beta.9 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md b/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md index a063f64483c6..1e3adcd70d6f 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md +++ b/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md @@ -1,17 +1,6 @@ # Code snippets and samples -## AmlFilesystems - -- [Archive](#amlfilesystems_archive) -- [CancelArchive](#amlfilesystems_cancelarchive) -- [CreateOrUpdate](#amlfilesystems_createorupdate) -- [Delete](#amlfilesystems_delete) -- [GetByResourceGroup](#amlfilesystems_getbyresourcegroup) -- [List](#amlfilesystems_list) -- [ListByResourceGroup](#amlfilesystems_listbyresourcegroup) -- [Update](#amlfilesystems_update) - ## AscOperations - [Get](#ascoperations_get) @@ -43,11 +32,6 @@ - [List](#operations_list) -## ResourceProvider - -- [CheckAmlFSSubnets](#resourceprovider_checkamlfssubnets) -- [GetRequiredAmlFSSubnetsSize](#resourceprovider_getrequiredamlfssubnetssize) - ## Skus - [List](#skus_list) @@ -71,282 +55,13 @@ ## UsageModels - [List](#usagemodels_list) -### AmlFilesystems_Archive - -```java -import com.azure.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo; - -/** Samples for AmlFilesystems Archive. */ -public final class AmlFilesystemsArchiveSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_Archive.json - */ - /** - * Sample code: amlFilesystems_Archive. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsArchive(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager - .amlFilesystems() - .archiveWithResponse( - "scgroup", - "sc", - new AmlFilesystemArchiveInfo().withFilesystemPath("/"), - com.azure.core.util.Context.NONE); - } -} -``` - -### AmlFilesystems_CancelArchive - -```java -/** Samples for AmlFilesystems CancelArchive. */ -public final class AmlFilesystemsCancelArchiveSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_CancelArchive.json - */ - /** - * Sample code: amlFilesystems_cancelArchive. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsCancelArchive(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.amlFilesystems().cancelArchiveWithResponse("scgroup", "sc", com.azure.core.util.Context.NONE); - } -} -``` - -### AmlFilesystems_CreateOrUpdate - -```java -import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemHsmSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentity; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentityType; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesHsm; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.KeyVaultKeyReference; -import com.azure.resourcemanager.storagecache.models.KeyVaultKeyReferenceSourceVault; -import com.azure.resourcemanager.storagecache.models.MaintenanceDayOfWeekType; -import com.azure.resourcemanager.storagecache.models.SkuName; -import com.azure.resourcemanager.storagecache.models.UserAssignedIdentitiesValueAutoGenerated; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** Samples for AmlFilesystems CreateOrUpdate. */ -public final class AmlFilesystemsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_CreateOrUpdate.json - */ - /** - * Sample code: amlFilesystems_CreateOrUpdate. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsCreateOrUpdate( - com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager - .amlFilesystems() - .define("fs1") - .withRegion("eastus") - .withExistingResourceGroup("scgroup") - .withTags(mapOf("Dept", "ContosoAds")) - .withIdentity( - new AmlFilesystemIdentity() - .withType(AmlFilesystemIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", - new UserAssignedIdentitiesValueAutoGenerated()))) - .withSku(new SkuName().withName("AMLFS-Durable-Premium-250")) - .withZones(Arrays.asList("1")) - .withStorageCapacityTiB(16f) - .withFilesystemSubnet( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/fsSub") - .withEncryptionSettings( - new AmlFilesystemEncryptionSettings() - .withKeyEncryptionKey( - new KeyVaultKeyReference() - .withKeyUrl("fakeTokenPlaceholder") - .withSourceVault( - new KeyVaultKeyReferenceSourceVault() - .withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk")))) - .withMaintenanceWindow( - new AmlFilesystemPropertiesMaintenanceWindow() - .withDayOfWeek(MaintenanceDayOfWeekType.FRIDAY) - .withTimeOfDayUtc("22:00")) - .withHsm( - new AmlFilesystemPropertiesHsm() - .withSettings( - new AmlFilesystemHsmSettings() - .withContainer( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Storage/storageAccounts/storageaccountname/blobServices/default/containers/containername") - .withLoggingContainer( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Storage/storageAccounts/storageaccountname/blobServices/default/containers/loggingcontainername") - .withImportPrefix("/"))) - .create(); - } - - @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; - } -} -``` - -### AmlFilesystems_Delete - -```java -/** Samples for AmlFilesystems Delete. */ -public final class AmlFilesystemsDeleteSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_Delete.json - */ - /** - * Sample code: amlFilesystems_Delete. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsDelete(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.amlFilesystems().delete("scgroup", "fs1", com.azure.core.util.Context.NONE); - } -} -``` - -### AmlFilesystems_GetByResourceGroup - -```java -/** Samples for AmlFilesystems GetByResourceGroup. */ -public final class AmlFilesystemsGetByResourceGroupSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_Get.json - */ - /** - * Sample code: amlFilesystems_Get. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsGet(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.amlFilesystems().getByResourceGroupWithResponse("scgroup", "fs1", com.azure.core.util.Context.NONE); - } -} -``` - -### AmlFilesystems_List - -```java -/** Samples for AmlFilesystems List. */ -public final class AmlFilesystemsListSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_List.json - */ - /** - * Sample code: amlFilesystems_List. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsList(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.amlFilesystems().list(com.azure.core.util.Context.NONE); - } -} -``` - -### AmlFilesystems_ListByResourceGroup - -```java -/** Samples for AmlFilesystems ListByResourceGroup. */ -public final class AmlFilesystemsListByResourceGroupSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_ListByResourceGroup.json - */ - /** - * Sample code: amlFilesystems_ListByResourceGroup. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsListByResourceGroup( - com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.amlFilesystems().listByResourceGroup("scgroup", com.azure.core.util.Context.NONE); - } -} -``` - -### AmlFilesystems_Update - -```java -import com.azure.resourcemanager.storagecache.models.AmlFilesystem; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.KeyVaultKeyReference; -import com.azure.resourcemanager.storagecache.models.KeyVaultKeyReferenceSourceVault; -import com.azure.resourcemanager.storagecache.models.MaintenanceDayOfWeekType; -import java.util.HashMap; -import java.util.Map; - -/** Samples for AmlFilesystems Update. */ -public final class AmlFilesystemsUpdateSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_Update.json - */ - /** - * Sample code: amlFilesystems_Update. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsUpdate(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - AmlFilesystem resource = - manager - .amlFilesystems() - .getByResourceGroupWithResponse("scgroup", "fs1", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withTags(mapOf("Dept", "ContosoAds")) - .withEncryptionSettings( - new AmlFilesystemEncryptionSettings() - .withKeyEncryptionKey( - new KeyVaultKeyReference() - .withKeyUrl("fakeTokenPlaceholder") - .withSourceVault( - new KeyVaultKeyReferenceSourceVault() - .withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk")))) - .withMaintenanceWindow( - new AmlFilesystemUpdatePropertiesMaintenanceWindow() - .withDayOfWeek(MaintenanceDayOfWeekType.FRIDAY) - .withTimeOfDayUtc("22:00")) - .apply(); - } - - @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; - } -} -``` - ### AscOperations_Get ```java /** Samples for AscOperations Get. */ public final class AscOperationsGetSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/AscOperations_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/AscOperations_Get.json */ /** * Sample code: AscOperations_Get. @@ -365,7 +80,7 @@ public final class AscOperationsGetSamples { /** Samples for AscUsages List. */ public final class AscUsagesListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/AscResourceUsages_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/AscResourceUsages_Get.json */ /** * Sample code: AscUsages_List. @@ -408,7 +123,7 @@ import java.util.Map; /** Samples for Caches CreateOrUpdate. */ public final class CachesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_CreateOrUpdate_ldap_only.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_CreateOrUpdate_ldap_only.json */ /** * Sample code: Caches_CreateOrUpdate_ldap_only. @@ -425,7 +140,6 @@ public final class CachesCreateOrUpdateSamples { .withTags(mapOf("Dept", "Contoso")) .withSku(new CacheSku().withName("Standard_2G")) .withCacheSizeGB(3072) - .withScalingFactor(1.0D) .withSubnet( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1") .withUpgradeSettings( @@ -473,7 +187,7 @@ public final class CachesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_CreateOrUpdate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_CreateOrUpdate.json */ /** * Sample code: Caches_CreateOrUpdate. @@ -496,7 +210,6 @@ public final class CachesCreateOrUpdateSamples { new UserAssignedIdentitiesValue()))) .withSku(new CacheSku().withName("Standard_2G")) .withCacheSizeGB(3072) - .withScalingFactor(1.0D) .withSubnet( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1") .withUpgradeSettings( @@ -573,7 +286,7 @@ public final class CachesCreateOrUpdateSamples { /** Samples for Caches DebugInfo. */ public final class CachesDebugInfoSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_DebugInfo.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_DebugInfo.json */ /** * Sample code: Caches_DebugInfo. @@ -592,7 +305,7 @@ public final class CachesDebugInfoSamples { /** Samples for Caches Delete. */ public final class CachesDeleteSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Delete.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Delete.json */ /** * Sample code: Caches_Delete. @@ -611,7 +324,7 @@ public final class CachesDeleteSamples { /** Samples for Caches Flush. */ public final class CachesFlushSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Flush.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Flush.json */ /** * Sample code: Caches_Flush. @@ -630,7 +343,7 @@ public final class CachesFlushSamples { /** Samples for Caches GetByResourceGroup. */ public final class CachesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Get.json */ /** * Sample code: Caches_Get. @@ -649,7 +362,7 @@ public final class CachesGetByResourceGroupSamples { /** Samples for Caches List. */ public final class CachesListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_List.json */ /** * Sample code: Caches_List. @@ -668,7 +381,7 @@ public final class CachesListSamples { /** Samples for Caches ListByResourceGroup. */ public final class CachesListByResourceGroupSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_ListByResourceGroup.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_ListByResourceGroup.json */ /** * Sample code: Caches_ListByResourceGroup. @@ -689,7 +402,7 @@ import com.azure.resourcemanager.storagecache.models.PrimingJobIdParameter; /** Samples for Caches PausePrimingJob. */ public final class CachesPausePrimingJobSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/PausePrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/PausePrimingJob.json */ /** * Sample code: PausePrimingJob. @@ -716,7 +429,7 @@ import com.azure.resourcemanager.storagecache.models.PrimingJobIdParameter; /** Samples for Caches ResumePrimingJob. */ public final class CachesResumePrimingJobSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/ResumePrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/ResumePrimingJob.json */ /** * Sample code: ResumePrimingJob. @@ -744,7 +457,7 @@ import java.util.Arrays; /** Samples for Caches SpaceAllocation. */ public final class CachesSpaceAllocationSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/SpaceAllocation_Post.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/SpaceAllocation_Post.json */ /** * Sample code: SpaceAllocation_Post. @@ -773,7 +486,7 @@ public final class CachesSpaceAllocationSamples { /** Samples for Caches Start. */ public final class CachesStartSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Start.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Start.json */ /** * Sample code: Caches_Start. @@ -794,7 +507,7 @@ import com.azure.resourcemanager.storagecache.models.PrimingJob; /** Samples for Caches StartPrimingJob. */ public final class CachesStartPrimingJobSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StartPrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StartPrimingJob.json */ /** * Sample code: StartPrimingJob. @@ -822,7 +535,7 @@ public final class CachesStartPrimingJobSamples { /** Samples for Caches Stop. */ public final class CachesStopSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Stop.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Stop.json */ /** * Sample code: Caches_Stop. @@ -843,7 +556,7 @@ import com.azure.resourcemanager.storagecache.models.PrimingJobIdParameter; /** Samples for Caches StopPrimingJob. */ public final class CachesStopPrimingJobSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StopPrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StopPrimingJob.json */ /** * Sample code: StopPrimingJob. @@ -886,7 +599,7 @@ import java.util.Map; /** Samples for Caches Update. */ public final class CachesUpdateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Update_ldap_only.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Update_ldap_only.json */ /** * Sample code: Caches_Update_ldap_only. @@ -902,7 +615,6 @@ public final class CachesUpdateSamples { resource .update() .withTags(mapOf("Dept", "Contoso")) - .withScalingFactor(1.0D) .withUpgradeSettings( new CacheUpgradeSettings() .withUpgradeScheduleEnabled(true) @@ -972,7 +684,7 @@ public final class CachesUpdateSamples { } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Update.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Update.json */ /** * Sample code: Caches_Update. @@ -988,7 +700,6 @@ public final class CachesUpdateSamples { resource .update() .withTags(mapOf("Dept", "Contoso")) - .withScalingFactor(2.0D) .withUpgradeSettings( new CacheUpgradeSettings() .withUpgradeScheduleEnabled(true) @@ -1077,7 +788,7 @@ public final class CachesUpdateSamples { /** Samples for Caches UpgradeFirmware. */ public final class CachesUpgradeFirmwareSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_UpgradeFirmware.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_UpgradeFirmware.json */ /** * Sample code: Caches_UpgradeFirmware. @@ -1096,7 +807,7 @@ public final class CachesUpgradeFirmwareSamples { /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Operations_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Operations_List.json */ /** * Sample code: Operations_List. @@ -1109,63 +820,13 @@ public final class OperationsListSamples { } ``` -### ResourceProvider_CheckAmlFSSubnets - -```java -import com.azure.resourcemanager.storagecache.models.AmlFilesystemSubnetInfo; -import com.azure.resourcemanager.storagecache.models.SkuName; - -/** Samples for ResourceProvider CheckAmlFSSubnets. */ -public final class ResourceProviderCheckAmlFSSubnetsSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/checkAmlFSSubnets.json - */ - /** - * Sample code: checkAmlFSSubnets. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void checkAmlFSSubnets(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager - .resourceProviders() - .checkAmlFSSubnetsWithResponse( - new AmlFilesystemSubnetInfo() - .withFilesystemSubnet( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/fsSub") - .withStorageCapacityTiB(16.0F) - .withSku(new SkuName().withName("AMLFS-Durable-Premium-125")), - com.azure.core.util.Context.NONE); - } -} -``` - -### ResourceProvider_GetRequiredAmlFSSubnetsSize - -```java -/** Samples for ResourceProvider GetRequiredAmlFSSubnetsSize. */ -public final class ResourceProviderGetRequiredAmlFSSubnetsSizeSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/getRequiredAmlFSSubnetsSize.json - */ - /** - * Sample code: getRequiredAmlFilesystemSubnetsSize. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void getRequiredAmlFilesystemSubnetsSize( - com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.resourceProviders().getRequiredAmlFSSubnetsSizeWithResponse(null, com.azure.core.util.Context.NONE); - } -} -``` - ### Skus_List ```java /** Samples for Skus List. */ public final class SkusListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Skus_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Skus_List.json */ /** * Sample code: Skus_List. @@ -1184,7 +845,7 @@ public final class SkusListSamples { /** Samples for StorageTargetOperation Flush. */ public final class StorageTargetOperationFlushSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Flush.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Flush.json */ /** * Sample code: StorageTargets_Flush. @@ -1203,7 +864,7 @@ public final class StorageTargetOperationFlushSamples { /** Samples for StorageTargetOperation Invalidate. */ public final class StorageTargetOperationInvalidateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Invalidate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Invalidate.json */ /** * Sample code: StorageTargets_Invalidate. @@ -1222,7 +883,7 @@ public final class StorageTargetOperationInvalidateSamples { /** Samples for StorageTargetOperation Resume. */ public final class StorageTargetOperationResumeSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Resume.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Resume.json */ /** * Sample code: StorageTargets_Resume. @@ -1241,7 +902,7 @@ public final class StorageTargetOperationResumeSamples { /** Samples for StorageTargetOperation Suspend. */ public final class StorageTargetOperationSuspendSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Suspend.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Suspend.json */ /** * Sample code: StorageTargets_Suspend. @@ -1266,7 +927,7 @@ import java.util.Arrays; /** Samples for StorageTargets CreateOrUpdate. */ public final class StorageTargetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_CreateOrUpdate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate.json */ /** * Sample code: StorageTargets_CreateOrUpdate. @@ -1298,7 +959,7 @@ public final class StorageTargetsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_CreateOrUpdate_BlobNfs.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate_BlobNfs.json */ /** * Sample code: StorageTargets_CreateOrUpdate_BlobNfs. @@ -1324,7 +985,7 @@ public final class StorageTargetsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_CreateOrUpdate_NoJunctions.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate_NoJunctions.json */ /** * Sample code: StorageTargets_CreateOrUpdate_NoJunctions. @@ -1350,7 +1011,7 @@ public final class StorageTargetsCreateOrUpdateSamples { /** Samples for StorageTargets Delete. */ public final class StorageTargetsDeleteSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Delete.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Delete.json */ /** * Sample code: StorageTargets_Delete. @@ -1369,7 +1030,7 @@ public final class StorageTargetsDeleteSamples { /** Samples for StorageTargets DnsRefresh. */ public final class StorageTargetsDnsRefreshSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_DnsRefresh.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_DnsRefresh.json */ /** * Sample code: Caches_DnsRefresh. @@ -1388,7 +1049,7 @@ public final class StorageTargetsDnsRefreshSamples { /** Samples for StorageTargets Get. */ public final class StorageTargetsGetSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Get.json */ /** * Sample code: StorageTargets_Get. @@ -1407,7 +1068,7 @@ public final class StorageTargetsGetSamples { /** Samples for StorageTargets ListByCache. */ public final class StorageTargetsListByCacheSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_ListByCache.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_ListByCache.json */ /** * Sample code: StorageTargets_List. @@ -1426,7 +1087,7 @@ public final class StorageTargetsListByCacheSamples { /** Samples for StorageTargets RestoreDefaults. */ public final class StorageTargetsRestoreDefaultsSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_RestoreDefaults.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_RestoreDefaults.json */ /** * Sample code: StorageTargets_RestoreDefaults. @@ -1446,7 +1107,7 @@ public final class StorageTargetsRestoreDefaultsSamples { /** Samples for UsageModels List. */ public final class UsageModelsListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/UsageModels_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/UsageModels_List.json */ /** * Sample code: UsageModels_List. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/pom.xml b/sdk/storagecache/azure-resourcemanager-storagecache/pom.xml index 7693e3503d62..2d0c74f81dcc 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. A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. Package tag package-preview-2023-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. A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. Package tag package-2023-01. https://github.com/Azure/azure-sdk-for-java 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 bf65c1f022ca..98ed5b5b394a 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 @@ -24,23 +24,19 @@ import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.storagecache.fluent.StorageCacheManagementClient; -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.CachesImpl; import com.azure.resourcemanager.storagecache.implementation.OperationsImpl; -import com.azure.resourcemanager.storagecache.implementation.ResourceProvidersImpl; import com.azure.resourcemanager.storagecache.implementation.SkusImpl; import com.azure.resourcemanager.storagecache.implementation.StorageCacheManagementClientBuilder; import com.azure.resourcemanager.storagecache.implementation.StorageTargetOperationsImpl; import com.azure.resourcemanager.storagecache.implementation.StorageTargetsImpl; import com.azure.resourcemanager.storagecache.implementation.UsageModelsImpl; -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.Caches; import com.azure.resourcemanager.storagecache.models.Operations; -import com.azure.resourcemanager.storagecache.models.ResourceProviders; import com.azure.resourcemanager.storagecache.models.Skus; import com.azure.resourcemanager.storagecache.models.StorageTargetOperations; import com.azure.resourcemanager.storagecache.models.StorageTargets; @@ -74,10 +70,6 @@ public final class StorageCacheManager { private StorageTargetOperations storageTargetOperations; - private AmlFilesystems amlFilesystems; - - private ResourceProviders resourceProviders; - private final StorageCacheManagementClient clientObject; private StorageCacheManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -243,7 +235,7 @@ public StorageCacheManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.storagecache") .append("/") - .append("1.0.0-beta.8"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -397,30 +389,6 @@ public StorageTargetOperations storageTargetOperations() { return storageTargetOperations; } - /** - * Gets the resource collection API of AmlFilesystems. It manages AmlFilesystem. - * - * @return Resource collection API of AmlFilesystems. - */ - public AmlFilesystems amlFilesystems() { - if (this.amlFilesystems == null) { - this.amlFilesystems = new AmlFilesystemsImpl(clientObject.getAmlFilesystems(), this); - } - return amlFilesystems; - } - - /** - * Gets the resource collection API of ResourceProviders. - * - * @return Resource collection API of ResourceProviders. - */ - public ResourceProviders resourceProviders() { - if (this.resourceProviders == null) { - this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this); - } - return resourceProviders; - } - /** * @return Wrapped service client StorageCacheManagementClient providing direct access to the underlying * auto-generated API implementation, based on Azure REST API. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AmlFilesystemsClient.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AmlFilesystemsClient.java deleted file mode 100644 index 28f559127b1d..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AmlFilesystemsClient.java +++ /dev/null @@ -1,349 +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.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.AmlFilesystemInner; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdate; - -/** An instance of this class provides access to all the operations defined in AmlFilesystemsClient. */ -public interface AmlFilesystemsClient { - /** - * Returns all AML file systems the user has access to under a subscription. - * - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Returns all AML file systems the user has access to under a subscription. - * - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - - /** - * Returns all AML file systems the user has access to under a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Returns all AML file systems the user has access to under a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Schedules an AML file system 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. - * @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); - - /** - * Schedules an AML file system 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 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, Context context); - - /** - * Schedules an AML file system 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. - * @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); - - /** - * Schedules an AML file system 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 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, Context context); - - /** - * Returns 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 an AML file system instance along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String amlFilesystemName, Context context); - - /** - * Returns 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 an AML file system instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AmlFilesystemInner getByResourceGroup(String resourceGroupName, String amlFilesystemName); - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, AmlFilesystemInner> beginCreateOrUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem); - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, AmlFilesystemInner> beginCreateOrUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem, Context context); - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AmlFilesystemInner createOrUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem); - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AmlFilesystemInner createOrUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem, Context context); - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, AmlFilesystemInner> beginUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem); - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, AmlFilesystemInner> beginUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem, Context context); - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AmlFilesystemInner update(String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem); - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AmlFilesystemInner update( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem, Context context); - - /** - * Archive data from the 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 archiveInfo Information about the archive operation. - * @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 Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response archiveWithResponse( - String resourceGroupName, String amlFilesystemName, AmlFilesystemArchiveInfo archiveInfo, Context context); - - /** - * Archive data from the 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void archive(String resourceGroupName, String amlFilesystemName); - - /** - * Cancel archiving data from the 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 the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response cancelArchiveWithResponse(String resourceGroupName, String amlFilesystemName, Context context); - - /** - * Cancel archiving data from the 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void cancelArchive(String resourceGroupName, String amlFilesystemName); -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AscOperationsClient.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AscOperationsClient.java index 2e24e96ee542..5c5dbc49bbba 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AscOperationsClient.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AscOperationsClient.java @@ -15,8 +15,8 @@ public interface AscOperationsClient { /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous operation. * @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. @@ -29,8 +29,8 @@ public interface AscOperationsClient { /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous 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. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/CachesClient.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/CachesClient.java index 126ef5787ed2..3a76b9ad631e 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/CachesClient.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/CachesClient.java @@ -20,57 +20,57 @@ /** An instance of this class provides access to all the operations defined in CachesClient. */ public interface CachesClient { /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); /** - * Returns all caches the user has access to under a resource group. + * Returns all Caches the user has access to under a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** - * Returns all caches the user has access to under a resource group. + * Returns all Caches the user has access to under a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -81,10 +81,10 @@ public interface CachesClient { SyncPoller, Void> beginDelete(String resourceGroupName, String cacheName); /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -96,10 +96,10 @@ public interface CachesClient { SyncPoller, Void> beginDelete(String resourceGroupName, String cacheName, Context context); /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -109,10 +109,10 @@ public interface CachesClient { void delete(String resourceGroupName, String cacheName); /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -123,170 +123,170 @@ public interface CachesClient { void delete(String resourceGroupName, String cacheName, Context context); /** - * Returns a cache. + * Returns a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 a cache instance along with {@link Response}. + * @return a Cache instance along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse(String resourceGroupName, String cacheName, Context context); /** - * Returns a cache. + * Returns a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 a cache instance. + * @return a Cache instance. */ @ServiceMethod(returns = ReturnType.SINGLE) CacheInner getByResourceGroup(String resourceGroupName, String cacheName); /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance. + * @return the {@link SyncPoller} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CacheInner> beginCreateOrUpdate( String resourceGroupName, String cacheName, CacheInner cache); /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance. + * @return the {@link SyncPoller} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CacheInner> beginCreateOrUpdate( String resourceGroupName, String cacheName, CacheInner cache, Context context); /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance. + * @return a Cache instance. */ @ServiceMethod(returns = ReturnType.SINGLE) CacheInner createOrUpdate(String resourceGroupName, String cacheName, CacheInner cache); /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance. + * @return a Cache instance. */ @ServiceMethod(returns = ReturnType.SINGLE) CacheInner createOrUpdate(String resourceGroupName, String cacheName, CacheInner cache, Context context); /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 a cache instance. + * @return the {@link SyncPoller} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CacheInner> beginUpdate(String resourceGroupName, String cacheName); /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the cache. If read-only properties are included, + * @param cache Object containing the user-selectable properties of the Cache. 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 a cache instance. + * @return the {@link SyncPoller} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CacheInner> beginUpdate( String resourceGroupName, String cacheName, CacheInner cache, Context context); /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 a cache instance. + * @return a Cache instance. */ @ServiceMethod(returns = ReturnType.SINGLE) CacheInner update(String resourceGroupName, String cacheName); /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the cache. If read-only properties are included, + * @param cache Object containing the user-selectable properties of the Cache. 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 a cache instance. + * @return a Cache instance. */ @ServiceMethod(returns = ReturnType.SINGLE) CacheInner update(String resourceGroupName, String cacheName, CacheInner cache, Context context); /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -297,10 +297,10 @@ SyncPoller, CacheInner> beginUpdate( SyncPoller, Void> beginDebugInfo(String resourceGroupName, String cacheName); /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -312,10 +312,10 @@ SyncPoller, CacheInner> beginUpdate( SyncPoller, Void> beginDebugInfo(String resourceGroupName, String cacheName, Context context); /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -325,10 +325,10 @@ SyncPoller, CacheInner> beginUpdate( void debugInfo(String resourceGroupName, String cacheName); /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -339,11 +339,11 @@ SyncPoller, CacheInner> beginUpdate( void debugInfo(String resourceGroupName, String cacheName, Context context); /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -354,11 +354,11 @@ SyncPoller, CacheInner> beginUpdate( SyncPoller, Void> beginFlush(String resourceGroupName, String cacheName); /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -370,11 +370,11 @@ SyncPoller, CacheInner> beginUpdate( SyncPoller, Void> beginFlush(String resourceGroupName, String cacheName, Context context); /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -384,11 +384,11 @@ SyncPoller, CacheInner> beginUpdate( void flush(String resourceGroupName, String cacheName); /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -399,10 +399,10 @@ SyncPoller, CacheInner> beginUpdate( void flush(String resourceGroupName, String cacheName, Context context); /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -413,10 +413,10 @@ SyncPoller, CacheInner> beginUpdate( SyncPoller, Void> beginStart(String resourceGroupName, String cacheName); /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -428,10 +428,10 @@ SyncPoller, CacheInner> beginUpdate( SyncPoller, Void> beginStart(String resourceGroupName, String cacheName, Context context); /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -441,10 +441,10 @@ SyncPoller, CacheInner> beginUpdate( void start(String resourceGroupName, String cacheName); /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -455,10 +455,10 @@ SyncPoller, CacheInner> beginUpdate( void start(String resourceGroupName, String cacheName, Context context); /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -469,10 +469,10 @@ SyncPoller, CacheInner> beginUpdate( SyncPoller, Void> beginStop(String resourceGroupName, String cacheName); /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -484,10 +484,10 @@ SyncPoller, CacheInner> beginUpdate( SyncPoller, Void> beginStop(String resourceGroupName, String cacheName, Context context); /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -497,10 +497,10 @@ SyncPoller, CacheInner> beginUpdate( void stop(String resourceGroupName, String cacheName); /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -513,8 +513,8 @@ SyncPoller, CacheInner> beginUpdate( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -527,8 +527,8 @@ SyncPoller, CacheInner> beginUpdate( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @param context The context to associate with this operation. @@ -544,8 +544,8 @@ SyncPoller, Void> beginStartPrimingJob( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -557,8 +557,8 @@ SyncPoller, Void> beginStartPrimingJob( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @param context The context to associate with this operation. @@ -572,8 +572,8 @@ SyncPoller, Void> beginStartPrimingJob( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -586,8 +586,8 @@ SyncPoller, Void> beginStartPrimingJob( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -603,8 +603,8 @@ SyncPoller, Void> beginStopPrimingJob( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -616,8 +616,8 @@ SyncPoller, Void> beginStopPrimingJob( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -632,8 +632,8 @@ void stopPrimingJob( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -646,8 +646,8 @@ void stopPrimingJob( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -663,8 +663,8 @@ SyncPoller, Void> beginPausePrimingJob( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -676,8 +676,8 @@ SyncPoller, Void> beginPausePrimingJob( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -692,8 +692,8 @@ void pausePrimingJob( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -706,8 +706,8 @@ void pausePrimingJob( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -723,8 +723,8 @@ SyncPoller, Void> beginResumePrimingJob( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -736,8 +736,8 @@ SyncPoller, Void> beginResumePrimingJob( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -750,10 +750,10 @@ void resumePrimingJob( String resourceGroupName, String cacheName, PrimingJobIdParameter primingJobId, Context context); /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -764,10 +764,10 @@ void resumePrimingJob( SyncPoller, Void> beginUpgradeFirmware(String resourceGroupName, String cacheName); /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -780,10 +780,10 @@ SyncPoller, Void> beginUpgradeFirmware( String resourceGroupName, String cacheName, Context context); /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -793,10 +793,10 @@ SyncPoller, Void> beginUpgradeFirmware( void upgradeFirmware(String resourceGroupName, String cacheName); /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -809,8 +809,8 @@ SyncPoller, Void> beginUpgradeFirmware( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -823,8 +823,8 @@ SyncPoller, Void> beginUpgradeFirmware( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @param context The context to associate with this operation. @@ -843,8 +843,8 @@ SyncPoller, Void> beginSpaceAllocation( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -856,8 +856,8 @@ SyncPoller, Void> beginSpaceAllocation( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @param context The context to associate with this operation. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/ResourceProvidersClient.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/ResourceProvidersClient.java deleted file mode 100644 index 0cf707eeed63..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/ResourceProvidersClient.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.storagecache.fluent.models.RequiredAmlFilesystemSubnetsSizeInner; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemSubnetInfo; -import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSizeInfo; - -/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */ -public interface ResourceProvidersClient { - /** - * Check that subnets will be valid for AML file system create calls. - * - * @param amlFilesystemSubnetInfo Information about the subnets to validate. - * @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 com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetErrorException thrown if the - * request is rejected by server on status code 400. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response checkAmlFSSubnetsWithResponse(AmlFilesystemSubnetInfo amlFilesystemSubnetInfo, Context context); - - /** - * Check that subnets will be valid for AML file system create calls. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetErrorException thrown if the - * request is rejected by server on status code 400. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void checkAmlFSSubnets(); - - /** - * Get the number of available IP addresses needed for the AML file system information provided. - * - * @param requiredAmlFilesystemSubnetsSizeInfo Information to determine the number of available IPs a subnet will - * need to host the AML file system. - * @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 number of available IP addresses needed for the AML file system information provided along with - * {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getRequiredAmlFSSubnetsSizeWithResponse( - RequiredAmlFilesystemSubnetsSizeInfo requiredAmlFilesystemSubnetsSizeInfo, Context context); - - /** - * Get the number of available IP addresses needed for the AML file system information provided. - * - * @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 number of available IP addresses needed for the AML file system information provided. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - RequiredAmlFilesystemSubnetsSizeInner getRequiredAmlFSSubnetsSize(); -} 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 aa1f46c6d01c..92dcb4215f96 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 @@ -10,7 +10,8 @@ /** The interface for StorageCacheManagementClient class. */ public interface StorageCacheManagementClient { /** - * Gets The ID of the target subscription. + * Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms + * part of the URI for every service call. * * @return the subscriptionId value. */ @@ -99,18 +100,4 @@ public interface StorageCacheManagementClient { * @return the StorageTargetOperationsClient object. */ StorageTargetOperationsClient getStorageTargetOperations(); - - /** - * Gets the AmlFilesystemsClient object to access its operations. - * - * @return the AmlFilesystemsClient object. - */ - AmlFilesystemsClient getAmlFilesystems(); - - /** - * Gets the ResourceProvidersClient object to access its operations. - * - * @return the ResourceProvidersClient object. - */ - ResourceProvidersClient getResourceProviders(); } diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageTargetOperationsClient.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageTargetOperationsClient.java index 9b44f97ee635..445a444bff6f 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageTargetOperationsClient.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageTargetOperationsClient.java @@ -16,8 +16,8 @@ public interface StorageTargetOperationsClient { * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -32,8 +32,8 @@ public interface StorageTargetOperationsClient { * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -50,8 +50,8 @@ SyncPoller, Void> beginFlush( * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -65,8 +65,8 @@ SyncPoller, Void> beginFlush( * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -80,8 +80,8 @@ SyncPoller, Void> beginFlush( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -96,8 +96,8 @@ SyncPoller, Void> beginSuspend( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -113,8 +113,8 @@ SyncPoller, Void> beginSuspend( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -127,8 +127,8 @@ SyncPoller, Void> beginSuspend( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -142,8 +142,8 @@ SyncPoller, Void> beginSuspend( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -158,8 +158,8 @@ SyncPoller, Void> beginResume( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -175,8 +175,8 @@ SyncPoller, Void> beginResume( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -189,8 +189,8 @@ SyncPoller, Void> beginResume( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -205,8 +205,8 @@ SyncPoller, Void> beginResume( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -222,8 +222,8 @@ SyncPoller, Void> beginInvalidate( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -240,8 +240,8 @@ SyncPoller, Void> beginInvalidate( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -255,8 +255,8 @@ SyncPoller, Void> beginInvalidate( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageTargetsClient.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageTargetsClient.java index e04a63626648..40d8eaf3deea 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageTargetsClient.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/StorageTargetsClient.java @@ -18,8 +18,8 @@ public interface StorageTargetsClient { /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -34,8 +34,8 @@ SyncPoller, Void> beginDnsRefresh( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -51,8 +51,8 @@ SyncPoller, Void> beginDnsRefresh( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -65,8 +65,8 @@ SyncPoller, Void> beginDnsRefresh( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -78,10 +78,10 @@ SyncPoller, Void> beginDnsRefresh( void dnsRefresh(String resourceGroupName, String cacheName, String storageTargetName, Context context); /** - * Returns a list of Storage Targets for the specified cache. + * Returns a list of Storage Targets for the specified Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -92,10 +92,10 @@ SyncPoller, Void> beginDnsRefresh( PagedIterable listByCache(String resourceGroupName, String cacheName); /** - * Returns a list of Storage Targets for the specified cache. + * Returns a list of Storage Targets for the specified Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -107,13 +107,13 @@ SyncPoller, Void> beginDnsRefresh( PagedIterable listByCache(String resourceGroupName, String cacheName, Context context); /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -126,13 +126,13 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String cacheName, String storageTargetName); /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -148,13 +148,13 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String cacheName, String storageTargetName, String force, Context context); /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -165,13 +165,13 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String cacheName, String storageTargetName); /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -185,10 +185,10 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String cacheName, String storageTargetName, String force, Context context); /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -202,10 +202,10 @@ Response getWithResponse( String resourceGroupName, String cacheName, String storageTargetName, Context context); /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -217,11 +217,11 @@ Response getWithResponse( StorageTargetInner get(String resourceGroupName, String cacheName, String storageTargetName); /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -235,11 +235,11 @@ SyncPoller, StorageTargetInner> beginCreateOrUpda String resourceGroupName, String cacheName, String storageTargetName, StorageTargetInner storagetarget); /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -258,11 +258,11 @@ SyncPoller, StorageTargetInner> beginCreateOrUpda Context context); /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -276,11 +276,11 @@ StorageTargetInner createOrUpdate( String resourceGroupName, String cacheName, String storageTargetName, StorageTargetInner storagetarget); /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -301,8 +301,8 @@ StorageTargetInner createOrUpdate( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -317,8 +317,8 @@ SyncPoller, Void> beginRestoreDefaults( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -334,8 +334,8 @@ SyncPoller, Void> beginRestoreDefaults( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -348,8 +348,8 @@ SyncPoller, Void> beginRestoreDefaults( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/UsageModelsClient.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/UsageModelsClient.java index 17f6a6f73f5d..961cd4d0e899 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/UsageModelsClient.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/UsageModelsClient.java @@ -13,24 +13,24 @@ /** An instance of this class provides access to all the operations defined in UsageModelsClient. */ public interface UsageModelsClient { /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * * @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 list of cache usage models available to this subscription as paginated response with {@link + * @return the list of Cache Usage Models available to this subscription as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * * @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 list of cache usage models available to this subscription as paginated response with {@link + * @return the list of Cache Usage Models available to this subscription as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemInner.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemInner.java deleted file mode 100644 index b72d5fef17b7..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemInner.java +++ /dev/null @@ -1,344 +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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemHealth; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentity; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesHsm; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemProvisioningStateType; -import com.azure.resourcemanager.storagecache.models.SkuName; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; - -/** - * An AML file system 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 AmlFilesystemInner extends Resource { - /* - * The managed identity used by the AML file system, if configured. - */ - @JsonProperty(value = "identity") - private AmlFilesystemIdentity identity; - - /* - * SKU for the resource. - */ - @JsonProperty(value = "sku") - private SkuName sku; - - /* - * Availability zones for resources. This field should only contain a single element in the array. - */ - @JsonProperty(value = "zones") - private List zones; - - /* - * Properties of the AML file system. - */ - @JsonProperty(value = "properties") - private AmlFilesystemProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) - private SystemData systemData; - - /** Creates an instance of AmlFilesystemInner class. */ - public AmlFilesystemInner() { - } - - /** - * Get the identity property: The managed identity used by the AML file system, if configured. - * - * @return the identity value. - */ - public AmlFilesystemIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: The managed identity used by the AML file system, if configured. - * - * @param identity the identity value to set. - * @return the AmlFilesystemInner object itself. - */ - public AmlFilesystemInner withIdentity(AmlFilesystemIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Get the sku property: SKU for the resource. - * - * @return the sku value. - */ - public SkuName sku() { - return this.sku; - } - - /** - * Set the sku property: SKU for the resource. - * - * @param sku the sku value to set. - * @return the AmlFilesystemInner object itself. - */ - public AmlFilesystemInner withSku(SkuName sku) { - this.sku = sku; - return this; - } - - /** - * Get the zones property: Availability zones for resources. This field should only contain a single element in the - * array. - * - * @return the zones value. - */ - public List zones() { - return this.zones; - } - - /** - * Set the zones property: Availability zones for resources. This field should only contain a single element in the - * array. - * - * @param zones the zones value to set. - * @return the AmlFilesystemInner object itself. - */ - public AmlFilesystemInner withZones(List zones) { - this.zones = zones; - return this; - } - - /** - * Get the innerProperties property: Properties of the AML file system. - * - * @return the innerProperties value. - */ - private AmlFilesystemProperties 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; - } - - /** {@inheritDoc} */ - @Override - public AmlFilesystemInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public AmlFilesystemInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Get the storageCapacityTiB property: The size of the AML file system, in TiB. This might be rounded up. - * - * @return the storageCapacityTiB value. - */ - public Float storageCapacityTiB() { - return this.innerProperties() == null ? null : this.innerProperties().storageCapacityTiB(); - } - - /** - * Set the storageCapacityTiB property: The size of the AML file system, in TiB. This might be rounded up. - * - * @param storageCapacityTiB the storageCapacityTiB value to set. - * @return the AmlFilesystemInner object itself. - */ - public AmlFilesystemInner withStorageCapacityTiB(Float storageCapacityTiB) { - if (this.innerProperties() == null) { - this.innerProperties = new AmlFilesystemProperties(); - } - this.innerProperties().withStorageCapacityTiB(storageCapacityTiB); - return this; - } - - /** - * Get the health property: Health of the AML file system. - * - * @return the health value. - */ - public AmlFilesystemHealth health() { - return this.innerProperties() == null ? null : this.innerProperties().health(); - } - - /** - * Get the provisioningState property: ARM provisioning state. - * - * @return the provisioningState value. - */ - public AmlFilesystemProvisioningStateType provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the filesystemSubnet property: Subnet used for managing the AML file system and for client-facing operations. - * This subnet should have at least a /24 subnet mask within the VNET's address space. - * - * @return the filesystemSubnet value. - */ - public String filesystemSubnet() { - return this.innerProperties() == null ? null : this.innerProperties().filesystemSubnet(); - } - - /** - * Set the filesystemSubnet property: Subnet used for managing the AML file system and for client-facing operations. - * This subnet should have at least a /24 subnet mask within the VNET's address space. - * - * @param filesystemSubnet the filesystemSubnet value to set. - * @return the AmlFilesystemInner object itself. - */ - public AmlFilesystemInner withFilesystemSubnet(String filesystemSubnet) { - if (this.innerProperties() == null) { - this.innerProperties = new AmlFilesystemProperties(); - } - this.innerProperties().withFilesystemSubnet(filesystemSubnet); - return this; - } - - /** - * Get the mgsAddress property: The IPv4 address used by clients to mount the AML file system's Lustre Management - * Service (MGS). - * - * @return the mgsAddress value. - */ - public String mgsAddress() { - return this.innerProperties() == null ? null : this.innerProperties().mgsAddress(); - } - - /** - * Get the mountCommand property: Recommended command to mount the AML file system. - * - * @return the mountCommand value. - */ - public String mountCommand() { - return this.innerProperties() == null ? null : this.innerProperties().mountCommand(); - } - - /** - * Get the lustreVersion property: The version of Lustre running in the AML file system. - * - * @return the lustreVersion value. - */ - public String lustreVersion() { - return this.innerProperties() == null ? null : this.innerProperties().lustreVersion(); - } - - /** - * Get the throughputProvisionedMBps property: Throughput provisioned in MB per sec, calculated as - * storageCapacityTiB * per-unit storage throughput. - * - * @return the throughputProvisionedMBps value. - */ - public Integer throughputProvisionedMBps() { - return this.innerProperties() == null ? null : this.innerProperties().throughputProvisionedMBps(); - } - - /** - * Get the encryptionSettings property: Specifies encryption settings of the AML file system. - * - * @return the encryptionSettings value. - */ - public AmlFilesystemEncryptionSettings encryptionSettings() { - return this.innerProperties() == null ? null : this.innerProperties().encryptionSettings(); - } - - /** - * Set the encryptionSettings property: Specifies encryption settings of the AML file system. - * - * @param encryptionSettings the encryptionSettings value to set. - * @return the AmlFilesystemInner object itself. - */ - public AmlFilesystemInner withEncryptionSettings(AmlFilesystemEncryptionSettings encryptionSettings) { - if (this.innerProperties() == null) { - this.innerProperties = new AmlFilesystemProperties(); - } - this.innerProperties().withEncryptionSettings(encryptionSettings); - return this; - } - - /** - * Get the maintenanceWindow property: Start time of a 30-minute weekly maintenance window. - * - * @return the maintenanceWindow value. - */ - public AmlFilesystemPropertiesMaintenanceWindow maintenanceWindow() { - return this.innerProperties() == null ? null : this.innerProperties().maintenanceWindow(); - } - - /** - * Set the maintenanceWindow property: Start time of a 30-minute weekly maintenance window. - * - * @param maintenanceWindow the maintenanceWindow value to set. - * @return the AmlFilesystemInner object itself. - */ - public AmlFilesystemInner withMaintenanceWindow(AmlFilesystemPropertiesMaintenanceWindow maintenanceWindow) { - if (this.innerProperties() == null) { - this.innerProperties = new AmlFilesystemProperties(); - } - this.innerProperties().withMaintenanceWindow(maintenanceWindow); - return this; - } - - /** - * Get the hsm property: Hydration and archive settings and status. - * - * @return the hsm value. - */ - public AmlFilesystemPropertiesHsm hsm() { - return this.innerProperties() == null ? null : this.innerProperties().hsm(); - } - - /** - * Set the hsm property: Hydration and archive settings and status. - * - * @param hsm the hsm value to set. - * @return the AmlFilesystemInner object itself. - */ - public AmlFilesystemInner withHsm(AmlFilesystemPropertiesHsm hsm) { - if (this.innerProperties() == null) { - this.innerProperties = new AmlFilesystemProperties(); - } - this.innerProperties().withHsm(hsm); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (sku() != null) { - sku().validate(); - } - if (innerProperties() != null) { - innerProperties().validate(); - } - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemProperties.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemProperties.java deleted file mode 100644 index e02ed52d88b1..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemProperties.java +++ /dev/null @@ -1,280 +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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemHealth; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesHsm; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemProvisioningStateType; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties of the AML file system. */ -@Fluent -public final class AmlFilesystemProperties { - /* - * The size of the AML file system, in TiB. This might be rounded up. - */ - @JsonProperty(value = "storageCapacityTiB", required = true) - private float storageCapacityTiB; - - /* - * Health of the AML file system. - */ - @JsonProperty(value = "health", access = JsonProperty.Access.WRITE_ONLY) - private AmlFilesystemHealth health; - - /* - * ARM provisioning state. - */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private AmlFilesystemProvisioningStateType provisioningState; - - /* - * Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least - * a /24 subnet mask within the VNET's address space. - */ - @JsonProperty(value = "filesystemSubnet", required = true) - private String filesystemSubnet; - - /* - * The IPv4 address used by clients to mount the AML file system's Lustre Management Service (MGS). - */ - @JsonProperty(value = "mgsAddress", access = JsonProperty.Access.WRITE_ONLY) - private String mgsAddress; - - /* - * Recommended command to mount the AML file system - */ - @JsonProperty(value = "mountCommand", access = JsonProperty.Access.WRITE_ONLY) - private String mountCommand; - - /* - * The version of Lustre running in the AML file system - */ - @JsonProperty(value = "lustreVersion", access = JsonProperty.Access.WRITE_ONLY) - private String lustreVersion; - - /* - * Throughput provisioned in MB per sec, calculated as storageCapacityTiB * per-unit storage throughput - */ - @JsonProperty(value = "throughputProvisionedMBps", access = JsonProperty.Access.WRITE_ONLY) - private Integer throughputProvisionedMBps; - - /* - * Specifies encryption settings of the AML file system. - */ - @JsonProperty(value = "encryptionSettings") - private AmlFilesystemEncryptionSettings encryptionSettings; - - /* - * Start time of a 30-minute weekly maintenance window. - */ - @JsonProperty(value = "maintenanceWindow", required = true) - private AmlFilesystemPropertiesMaintenanceWindow maintenanceWindow; - - /* - * Hydration and archive settings and status - */ - @JsonProperty(value = "hsm") - private AmlFilesystemPropertiesHsm hsm; - - /** Creates an instance of AmlFilesystemProperties class. */ - public AmlFilesystemProperties() { - } - - /** - * Get the storageCapacityTiB property: The size of the AML file system, in TiB. This might be rounded up. - * - * @return the storageCapacityTiB value. - */ - public float storageCapacityTiB() { - return this.storageCapacityTiB; - } - - /** - * Set the storageCapacityTiB property: The size of the AML file system, in TiB. This might be rounded up. - * - * @param storageCapacityTiB the storageCapacityTiB value to set. - * @return the AmlFilesystemProperties object itself. - */ - public AmlFilesystemProperties withStorageCapacityTiB(float storageCapacityTiB) { - this.storageCapacityTiB = storageCapacityTiB; - return this; - } - - /** - * Get the health property: Health of the AML file system. - * - * @return the health value. - */ - public AmlFilesystemHealth health() { - return this.health; - } - - /** - * Get the provisioningState property: ARM provisioning state. - * - * @return the provisioningState value. - */ - public AmlFilesystemProvisioningStateType provisioningState() { - return this.provisioningState; - } - - /** - * Get the filesystemSubnet property: Subnet used for managing the AML file system and for client-facing operations. - * This subnet should have at least a /24 subnet mask within the VNET's address space. - * - * @return the filesystemSubnet value. - */ - public String filesystemSubnet() { - return this.filesystemSubnet; - } - - /** - * Set the filesystemSubnet property: Subnet used for managing the AML file system and for client-facing operations. - * This subnet should have at least a /24 subnet mask within the VNET's address space. - * - * @param filesystemSubnet the filesystemSubnet value to set. - * @return the AmlFilesystemProperties object itself. - */ - public AmlFilesystemProperties withFilesystemSubnet(String filesystemSubnet) { - this.filesystemSubnet = filesystemSubnet; - return this; - } - - /** - * Get the mgsAddress property: The IPv4 address used by clients to mount the AML file system's Lustre Management - * Service (MGS). - * - * @return the mgsAddress value. - */ - public String mgsAddress() { - return this.mgsAddress; - } - - /** - * Get the mountCommand property: Recommended command to mount the AML file system. - * - * @return the mountCommand value. - */ - public String mountCommand() { - return this.mountCommand; - } - - /** - * Get the lustreVersion property: The version of Lustre running in the AML file system. - * - * @return the lustreVersion value. - */ - public String lustreVersion() { - return this.lustreVersion; - } - - /** - * Get the throughputProvisionedMBps property: Throughput provisioned in MB per sec, calculated as - * storageCapacityTiB * per-unit storage throughput. - * - * @return the throughputProvisionedMBps value. - */ - public Integer throughputProvisionedMBps() { - return this.throughputProvisionedMBps; - } - - /** - * Get the encryptionSettings property: Specifies encryption settings of the AML file system. - * - * @return the encryptionSettings value. - */ - public AmlFilesystemEncryptionSettings encryptionSettings() { - return this.encryptionSettings; - } - - /** - * Set the encryptionSettings property: Specifies encryption settings of the AML file system. - * - * @param encryptionSettings the encryptionSettings value to set. - * @return the AmlFilesystemProperties object itself. - */ - public AmlFilesystemProperties withEncryptionSettings(AmlFilesystemEncryptionSettings encryptionSettings) { - this.encryptionSettings = encryptionSettings; - return this; - } - - /** - * Get the maintenanceWindow property: Start time of a 30-minute weekly maintenance window. - * - * @return the maintenanceWindow value. - */ - public AmlFilesystemPropertiesMaintenanceWindow maintenanceWindow() { - return this.maintenanceWindow; - } - - /** - * Set the maintenanceWindow property: Start time of a 30-minute weekly maintenance window. - * - * @param maintenanceWindow the maintenanceWindow value to set. - * @return the AmlFilesystemProperties object itself. - */ - public AmlFilesystemProperties withMaintenanceWindow(AmlFilesystemPropertiesMaintenanceWindow maintenanceWindow) { - this.maintenanceWindow = maintenanceWindow; - return this; - } - - /** - * Get the hsm property: Hydration and archive settings and status. - * - * @return the hsm value. - */ - public AmlFilesystemPropertiesHsm hsm() { - return this.hsm; - } - - /** - * Set the hsm property: Hydration and archive settings and status. - * - * @param hsm the hsm value to set. - * @return the AmlFilesystemProperties object itself. - */ - public AmlFilesystemProperties withHsm(AmlFilesystemPropertiesHsm hsm) { - this.hsm = hsm; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (health() != null) { - health().validate(); - } - if (filesystemSubnet() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property filesystemSubnet in model AmlFilesystemProperties")); - } - if (encryptionSettings() != null) { - encryptionSettings().validate(); - } - if (maintenanceWindow() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property maintenanceWindow in model AmlFilesystemProperties")); - } else { - maintenanceWindow().validate(); - } - if (hsm() != null) { - hsm().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmlFilesystemProperties.class); -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemUpdateProperties.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemUpdateProperties.java deleted file mode 100644 index 6d99ee9599d6..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemUpdateProperties.java +++ /dev/null @@ -1,85 +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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Properties of the AML file system. */ -@Fluent -public final class AmlFilesystemUpdateProperties { - /* - * Specifies encryption settings of the AML file system. - */ - @JsonProperty(value = "encryptionSettings") - private AmlFilesystemEncryptionSettings encryptionSettings; - - /* - * Start time of a 30-minute weekly maintenance window. - */ - @JsonProperty(value = "maintenanceWindow") - private AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow; - - /** Creates an instance of AmlFilesystemUpdateProperties class. */ - public AmlFilesystemUpdateProperties() { - } - - /** - * Get the encryptionSettings property: Specifies encryption settings of the AML file system. - * - * @return the encryptionSettings value. - */ - public AmlFilesystemEncryptionSettings encryptionSettings() { - return this.encryptionSettings; - } - - /** - * Set the encryptionSettings property: Specifies encryption settings of the AML file system. - * - * @param encryptionSettings the encryptionSettings value to set. - * @return the AmlFilesystemUpdateProperties object itself. - */ - public AmlFilesystemUpdateProperties withEncryptionSettings(AmlFilesystemEncryptionSettings encryptionSettings) { - this.encryptionSettings = encryptionSettings; - return this; - } - - /** - * Get the maintenanceWindow property: Start time of a 30-minute weekly maintenance window. - * - * @return the maintenanceWindow value. - */ - public AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow() { - return this.maintenanceWindow; - } - - /** - * Set the maintenanceWindow property: Start time of a 30-minute weekly maintenance window. - * - * @param maintenanceWindow the maintenanceWindow value to set. - * @return the AmlFilesystemUpdateProperties object itself. - */ - public AmlFilesystemUpdateProperties withMaintenanceWindow( - AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow) { - this.maintenanceWindow = maintenanceWindow; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (encryptionSettings() != null) { - encryptionSettings().validate(); - } - if (maintenanceWindow() != null) { - maintenanceWindow().validate(); - } - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/CacheInner.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/CacheInner.java index 9799b475a540..320edd066c06 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/CacheInner.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/CacheInner.java @@ -24,7 +24,7 @@ import java.util.Map; /** - * A cache instance. Follows Azure Resource Manager standards: + * A Cache instance. Follows Azure Resource Manager standards: * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md. */ @Fluent @@ -42,13 +42,13 @@ public final class CacheInner extends Resource { private SystemData systemData; /* - * Properties of the cache. + * Properties of the Cache. */ @JsonProperty(value = "properties") private CacheProperties innerProperties; /* - * SKU for the cache. + * SKU for the Cache. */ @JsonProperty(value = "sku") private CacheSku sku; @@ -87,7 +87,7 @@ public SystemData systemData() { } /** - * Get the innerProperties property: Properties of the cache. + * Get the innerProperties property: Properties of the Cache. * * @return the innerProperties value. */ @@ -96,7 +96,7 @@ private CacheProperties innerProperties() { } /** - * Get the sku property: SKU for the cache. + * Get the sku property: SKU for the Cache. * * @return the sku value. */ @@ -105,7 +105,7 @@ public CacheSku sku() { } /** - * Set the sku property: SKU for the cache. + * Set the sku property: SKU for the Cache. * * @param sku the sku value to set. * @return the CacheInner object itself. @@ -130,9 +130,7 @@ public CacheInner withTags(Map tags) { } /** - * Get the cacheSizeGB property: The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the - * cache SKU - <a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>. + * Get the cacheSizeGB property: The size of this Cache, in GB. * * @return the cacheSizeGB value. */ @@ -141,9 +139,7 @@ public Integer cacheSizeGB() { } /** - * Set the cacheSizeGB property: The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the - * cache SKU - <a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>. + * Set the cacheSizeGB property: The size of this Cache, in GB. * * @param cacheSizeGB the cacheSizeGB value to set. * @return the CacheInner object itself. @@ -157,38 +153,7 @@ public CacheInner withCacheSizeGB(Integer cacheSizeGB) { } /** - * Get the scalingFactor property: Multiplier that sets the current storage and throughput capacity of the cache. - * Values depend on the cache SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List SKUs</a>. Values - * above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33% - * larger than its base size. - * - * @return the scalingFactor value. - */ - public Double scalingFactor() { - return this.innerProperties() == null ? null : this.innerProperties().scalingFactor(); - } - - /** - * Set the scalingFactor property: Multiplier that sets the current storage and throughput capacity of the cache. - * Values depend on the cache SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List SKUs</a>. Values - * above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33% - * larger than its base size. - * - * @param scalingFactor the scalingFactor value to set. - * @return the CacheInner object itself. - */ - public CacheInner withScalingFactor(Double scalingFactor) { - if (this.innerProperties() == null) { - this.innerProperties = new CacheProperties(); - } - this.innerProperties().withScalingFactor(scalingFactor); - return this; - } - - /** - * Get the health property: Health of the cache. + * Get the health property: Health of the Cache. * * @return the health value. */ @@ -197,7 +162,7 @@ public CacheHealth health() { } /** - * Get the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache. + * Get the mountAddresses property: Array of IP addresses that can be used by clients mounting this Cache. * * @return the mountAddresses value. */ @@ -216,7 +181,7 @@ public ProvisioningStateType provisioningState() { } /** - * Get the subnet property: Subnet used for the cache. + * Get the subnet property: Subnet used for the Cache. * * @return the subnet value. */ @@ -225,7 +190,7 @@ public String subnet() { } /** - * Set the subnet property: Subnet used for the cache. + * Set the subnet property: Subnet used for the Cache. * * @param subnet the subnet value to set. * @return the CacheInner object itself. @@ -239,7 +204,7 @@ public CacheInner withSubnet(String subnet) { } /** - * Get the upgradeStatus property: Upgrade status of the cache. + * Get the upgradeStatus property: Upgrade status of the Cache. * * @return the upgradeStatus value. */ @@ -248,7 +213,7 @@ public CacheUpgradeStatus upgradeStatus() { } /** - * Get the upgradeSettings property: Upgrade settings of the cache. + * Get the upgradeSettings property: Upgrade settings of the Cache. * * @return the upgradeSettings value. */ @@ -257,7 +222,7 @@ public CacheUpgradeSettings upgradeSettings() { } /** - * Set the upgradeSettings property: Upgrade settings of the cache. + * Set the upgradeSettings property: Upgrade settings of the Cache. * * @param upgradeSettings the upgradeSettings value to set. * @return the CacheInner object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/CacheProperties.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/CacheProperties.java index 6efbb11a9b6f..8f6c381e5a07 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/CacheProperties.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/CacheProperties.java @@ -18,33 +18,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Properties of the cache. */ +/** Properties of the Cache. */ @Fluent public final class CacheProperties { /* - * The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the cache SKU - List SKUs. + * The size of this Cache, in GB. */ @JsonProperty(value = "cacheSizeGB") private Integer cacheSizeGB; /* - * Multiplier that sets the current storage and throughput capacity of the cache. Values depend on the cache SKU - - * List SKUs. Values - * above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33% - * larger than its base size. - */ - @JsonProperty(value = "scalingFactor") - private Double scalingFactor; - - /* - * Health of the cache. + * Health of the Cache. */ @JsonProperty(value = "health", access = JsonProperty.Access.WRITE_ONLY) private CacheHealth health; /* - * Array of IPv4 addresses that can be used by clients mounting this cache. + * Array of IP addresses that can be used by clients mounting this Cache. */ @JsonProperty(value = "mountAddresses", access = JsonProperty.Access.WRITE_ONLY) private List mountAddresses; @@ -57,19 +47,19 @@ public final class CacheProperties { private ProvisioningStateType provisioningState; /* - * Subnet used for the cache. + * Subnet used for the Cache. */ @JsonProperty(value = "subnet") private String subnet; /* - * Upgrade status of the cache. + * Upgrade status of the Cache. */ @JsonProperty(value = "upgradeStatus", access = JsonProperty.Access.WRITE_ONLY) private CacheUpgradeStatus upgradeStatus; /* - * Upgrade settings of the cache. + * Upgrade settings of the Cache. */ @JsonProperty(value = "upgradeSettings") private CacheUpgradeSettings upgradeSettings; @@ -121,9 +111,7 @@ public CacheProperties() { } /** - * Get the cacheSizeGB property: The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the - * cache SKU - <a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>. + * Get the cacheSizeGB property: The size of this Cache, in GB. * * @return the cacheSizeGB value. */ @@ -132,9 +120,7 @@ public Integer cacheSizeGB() { } /** - * Set the cacheSizeGB property: The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the - * cache SKU - <a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>. + * Set the cacheSizeGB property: The size of this Cache, in GB. * * @param cacheSizeGB the cacheSizeGB value to set. * @return the CacheProperties object itself. @@ -145,35 +131,7 @@ public CacheProperties withCacheSizeGB(Integer cacheSizeGB) { } /** - * Get the scalingFactor property: Multiplier that sets the current storage and throughput capacity of the cache. - * Values depend on the cache SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List SKUs</a>. Values - * above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33% - * larger than its base size. - * - * @return the scalingFactor value. - */ - public Double scalingFactor() { - return this.scalingFactor; - } - - /** - * Set the scalingFactor property: Multiplier that sets the current storage and throughput capacity of the cache. - * Values depend on the cache SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List SKUs</a>. Values - * above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33% - * larger than its base size. - * - * @param scalingFactor the scalingFactor value to set. - * @return the CacheProperties object itself. - */ - public CacheProperties withScalingFactor(Double scalingFactor) { - this.scalingFactor = scalingFactor; - return this; - } - - /** - * Get the health property: Health of the cache. + * Get the health property: Health of the Cache. * * @return the health value. */ @@ -182,7 +140,7 @@ public CacheHealth health() { } /** - * Get the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache. + * Get the mountAddresses property: Array of IP addresses that can be used by clients mounting this Cache. * * @return the mountAddresses value. */ @@ -201,7 +159,7 @@ public ProvisioningStateType provisioningState() { } /** - * Get the subnet property: Subnet used for the cache. + * Get the subnet property: Subnet used for the Cache. * * @return the subnet value. */ @@ -210,7 +168,7 @@ public String subnet() { } /** - * Set the subnet property: Subnet used for the cache. + * Set the subnet property: Subnet used for the Cache. * * @param subnet the subnet value to set. * @return the CacheProperties object itself. @@ -221,7 +179,7 @@ public CacheProperties withSubnet(String subnet) { } /** - * Get the upgradeStatus property: Upgrade status of the cache. + * Get the upgradeStatus property: Upgrade status of the Cache. * * @return the upgradeStatus value. */ @@ -230,7 +188,7 @@ public CacheUpgradeStatus upgradeStatus() { } /** - * Get the upgradeSettings property: Upgrade settings of the cache. + * Get the upgradeSettings property: Upgrade settings of the Cache. * * @return the upgradeSettings value. */ @@ -239,7 +197,7 @@ public CacheUpgradeSettings upgradeSettings() { } /** - * Set the upgradeSettings property: Upgrade settings of the cache. + * Set the upgradeSettings property: Upgrade settings of the Cache. * * @param upgradeSettings the upgradeSettings value to set. * @return the CacheProperties object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/RequiredAmlFilesystemSubnetsSizeInner.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/RequiredAmlFilesystemSubnetsSizeInner.java deleted file mode 100644 index 156b44c5990a..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/RequiredAmlFilesystemSubnetsSizeInner.java +++ /dev/null @@ -1,52 +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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Information about the number of available IP addresses that are required for the AML file system. */ -@Fluent -public final class RequiredAmlFilesystemSubnetsSizeInner { - /* - * The number of available IP addresses that are required for the AML file system. - */ - @JsonProperty(value = "filesystemSubnetSize") - private Integer filesystemSubnetSize; - - /** Creates an instance of RequiredAmlFilesystemSubnetsSizeInner class. */ - public RequiredAmlFilesystemSubnetsSizeInner() { - } - - /** - * Get the filesystemSubnetSize property: The number of available IP addresses that are required for the AML file - * system. - * - * @return the filesystemSubnetSize value. - */ - public Integer filesystemSubnetSize() { - return this.filesystemSubnetSize; - } - - /** - * Set the filesystemSubnetSize property: The number of available IP addresses that are required for the AML file - * system. - * - * @param filesystemSubnetSize the filesystemSubnetSize value to set. - * @return the RequiredAmlFilesystemSubnetsSizeInner object itself. - */ - public RequiredAmlFilesystemSubnetsSizeInner withFilesystemSubnetSize(Integer filesystemSubnetSize) { - this.filesystemSubnetSize = filesystemSubnetSize; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/StorageTargetInner.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/StorageTargetInner.java index 0ddaf29dfe18..d0fe6c191f7f 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/StorageTargetInner.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/StorageTargetInner.java @@ -40,7 +40,7 @@ private StorageTargetProperties innerProperties() { } /** - * Get the junctions property: List of cache namespace junctions to target for namespace associations. + * Get the junctions property: List of Cache namespace junctions to target for namespace associations. * * @return the junctions value. */ @@ -49,7 +49,7 @@ public List junctions() { } /** - * Set the junctions property: List of cache namespace junctions to target for namespace associations. + * Set the junctions property: List of Cache namespace junctions to target for namespace associations. * * @param junctions the junctions value to set. * @return the StorageTargetInner object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/StorageTargetProperties.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/StorageTargetProperties.java index 2026a94b52ad..2d64a86e7e12 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/StorageTargetProperties.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/StorageTargetProperties.java @@ -21,7 +21,7 @@ @Fluent public final class StorageTargetProperties { /* - * List of cache namespace junctions to target for namespace associations. + * List of Cache namespace junctions to target for namespace associations. */ @JsonProperty(value = "junctions") private List junctions; @@ -80,7 +80,7 @@ public StorageTargetProperties() { } /** - * Get the junctions property: List of cache namespace junctions to target for namespace associations. + * Get the junctions property: List of Cache namespace junctions to target for namespace associations. * * @return the junctions value. */ @@ -89,7 +89,7 @@ public List junctions() { } /** - * Set the junctions property: List of cache namespace junctions to target for namespace associations. + * Set the junctions property: List of Cache namespace junctions to target for namespace associations. * * @param junctions the junctions value to set. * @return the StorageTargetProperties object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemImpl.java deleted file mode 100644 index a84b1ad4783e..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemImpl.java +++ /dev/null @@ -1,319 +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.implementation; - -import com.azure.core.http.rest.Response; -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.AmlFilesystemInner; -import com.azure.resourcemanager.storagecache.models.AmlFilesystem; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemHealth; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentity; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesHsm; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemProvisioningStateType; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdate; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.SkuName; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -public final class AmlFilesystemImpl implements AmlFilesystem, AmlFilesystem.Definition, AmlFilesystem.Update { - private AmlFilesystemInner innerObject; - - private final com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public AmlFilesystemIdentity identity() { - return this.innerModel().identity(); - } - - public SkuName sku() { - return this.innerModel().sku(); - } - - public List zones() { - List inner = this.innerModel().zones(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public float storageCapacityTiB() { - return this.innerModel().storageCapacityTiB(); - } - - public AmlFilesystemHealth health() { - return this.innerModel().health(); - } - - public AmlFilesystemProvisioningStateType provisioningState() { - return this.innerModel().provisioningState(); - } - - public String filesystemSubnet() { - return this.innerModel().filesystemSubnet(); - } - - public String mgsAddress() { - return this.innerModel().mgsAddress(); - } - - public String mountCommand() { - return this.innerModel().mountCommand(); - } - - public String lustreVersion() { - return this.innerModel().lustreVersion(); - } - - public Integer throughputProvisionedMBps() { - return this.innerModel().throughputProvisionedMBps(); - } - - public AmlFilesystemEncryptionSettings encryptionSettings() { - return this.innerModel().encryptionSettings(); - } - - public AmlFilesystemPropertiesMaintenanceWindow maintenanceWindow() { - return this.innerModel().maintenanceWindow(); - } - - public AmlFilesystemPropertiesHsm hsm() { - return this.innerModel().hsm(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public AmlFilesystemInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.storagecache.StorageCacheManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String amlFilesystemName; - - private AmlFilesystemUpdate updateAmlFilesystem; - - public AmlFilesystemImpl withExistingResourceGroup(String resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - public AmlFilesystem create() { - this.innerObject = - serviceManager - .serviceClient() - .getAmlFilesystems() - .createOrUpdate(resourceGroupName, amlFilesystemName, this.innerModel(), Context.NONE); - return this; - } - - public AmlFilesystem create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getAmlFilesystems() - .createOrUpdate(resourceGroupName, amlFilesystemName, this.innerModel(), context); - return this; - } - - AmlFilesystemImpl(String name, com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager) { - this.innerObject = new AmlFilesystemInner(); - this.serviceManager = serviceManager; - this.amlFilesystemName = name; - } - - public AmlFilesystemImpl update() { - this.updateAmlFilesystem = new AmlFilesystemUpdate(); - return this; - } - - public AmlFilesystem apply() { - this.innerObject = - serviceManager - .serviceClient() - .getAmlFilesystems() - .update(resourceGroupName, amlFilesystemName, updateAmlFilesystem, Context.NONE); - return this; - } - - public AmlFilesystem apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getAmlFilesystems() - .update(resourceGroupName, amlFilesystemName, updateAmlFilesystem, context); - return this; - } - - AmlFilesystemImpl( - AmlFilesystemInner innerObject, com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.amlFilesystemName = Utils.getValueFromIdByName(innerObject.id(), "amlFilesystems"); - } - - public AmlFilesystem refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getAmlFilesystems() - .getByResourceGroupWithResponse(resourceGroupName, amlFilesystemName, Context.NONE) - .getValue(); - return this; - } - - public AmlFilesystem refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getAmlFilesystems() - .getByResourceGroupWithResponse(resourceGroupName, amlFilesystemName, context) - .getValue(); - return this; - } - - public Response archiveWithResponse(AmlFilesystemArchiveInfo archiveInfo, Context context) { - return serviceManager - .amlFilesystems() - .archiveWithResponse(resourceGroupName, amlFilesystemName, archiveInfo, context); - } - - public void archive() { - serviceManager.amlFilesystems().archive(resourceGroupName, amlFilesystemName); - } - - public Response cancelArchiveWithResponse(Context context) { - return serviceManager.amlFilesystems().cancelArchiveWithResponse(resourceGroupName, amlFilesystemName, context); - } - - public void cancelArchive() { - serviceManager.amlFilesystems().cancelArchive(resourceGroupName, amlFilesystemName); - } - - public AmlFilesystemImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public AmlFilesystemImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public AmlFilesystemImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateAmlFilesystem.withTags(tags); - return this; - } - } - - public AmlFilesystemImpl withIdentity(AmlFilesystemIdentity identity) { - this.innerModel().withIdentity(identity); - return this; - } - - public AmlFilesystemImpl withSku(SkuName sku) { - this.innerModel().withSku(sku); - return this; - } - - public AmlFilesystemImpl withZones(List zones) { - this.innerModel().withZones(zones); - return this; - } - - public AmlFilesystemImpl withStorageCapacityTiB(float storageCapacityTiB) { - this.innerModel().withStorageCapacityTiB(storageCapacityTiB); - return this; - } - - public AmlFilesystemImpl withFilesystemSubnet(String filesystemSubnet) { - this.innerModel().withFilesystemSubnet(filesystemSubnet); - return this; - } - - public AmlFilesystemImpl withEncryptionSettings(AmlFilesystemEncryptionSettings encryptionSettings) { - if (isInCreateMode()) { - this.innerModel().withEncryptionSettings(encryptionSettings); - return this; - } else { - this.updateAmlFilesystem.withEncryptionSettings(encryptionSettings); - return this; - } - } - - public AmlFilesystemImpl withMaintenanceWindow(AmlFilesystemPropertiesMaintenanceWindow maintenanceWindow) { - this.innerModel().withMaintenanceWindow(maintenanceWindow); - return this; - } - - public AmlFilesystemImpl withHsm(AmlFilesystemPropertiesHsm hsm) { - this.innerModel().withHsm(hsm); - return this; - } - - public AmlFilesystemImpl withMaintenanceWindow(AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow) { - this.updateAmlFilesystem.withMaintenanceWindow(maintenanceWindow); - 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/AmlFilesystemsClientImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemsClientImpl.java deleted file mode 100644 index 9c083fce17bb..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemsClientImpl.java +++ /dev/null @@ -1,1946 +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.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.Post; -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.AmlFilesystemsClient; -import com.azure.resourcemanager.storagecache.fluent.models.AmlFilesystemInner; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdate; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemsListResult; -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 AmlFilesystemsClient. */ -public final class AmlFilesystemsClientImpl implements AmlFilesystemsClient { - /** The proxy service used to perform REST calls. */ - private final AmlFilesystemsService service; - - /** The service client containing this operation class. */ - private final StorageCacheManagementClientImpl client; - - /** - * Initializes an instance of AmlFilesystemsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - AmlFilesystemsClientImpl(StorageCacheManagementClientImpl client) { - this.service = - RestProxy.create(AmlFilesystemsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for StorageCacheManagementClientAmlFilesystems to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "StorageCacheManageme") - public interface AmlFilesystemsService { - @Headers({"Content-Type: application/json"}) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/amlFilesystems") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache" - + "/amlFilesystems") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( - @HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache" - + "/amlFilesystems/{amlFilesystemName}") - @ExpectedResponses({200, 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, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache" - + "/amlFilesystems/{amlFilesystemName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup( - @HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("amlFilesystemName") String amlFilesystemName, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache" - + "/amlFilesystems/{amlFilesystemName}") - @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, - @BodyParam("application/json") AmlFilesystemInner amlFilesystem, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache" - + "/amlFilesystems/{amlFilesystemName}") - @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, - @BodyParam("application/json") AmlFilesystemUpdate amlFilesystem, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache" - + "/amlFilesystems/{amlFilesystemName}/archive") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> archive( - @HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("amlFilesystemName") String amlFilesystemName, - @BodyParam("application/json") AmlFilesystemArchiveInfo archiveInfo, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache" - + "/amlFilesystems/{amlFilesystemName}/cancelArchive") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> cancelArchive( - @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> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Returns all AML file systems the user has access to under a subscription. - * - * @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 AML file systems along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() 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.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - 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 AML file systems the user has access to under a subscription. - * - * @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 AML file systems along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() 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.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Returns all AML file systems the user has access to under a subscription. - * - * @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 AML file systems as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Returns all AML file systems the user has access to under a subscription. - * - * @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 AML file systems as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Returns all AML file systems the user has access to under a subscription. - * - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Returns all AML file systems the user has access to under a subscription. - * - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Returns all AML file systems the user has access to under a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 AML file systems along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { - 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.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByResourceGroup( - this.client.getEndpoint(), - resourceGroupName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - 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 AML file systems the user has access to under a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 AML file systems along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync( - String resourceGroupName, 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.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup( - this.client.getEndpoint(), - resourceGroupName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Returns all AML file systems the user has access to under a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 AML file systems as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * Returns all AML file systems the user has access to under a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 AML file systems as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); - } - - /** - * Returns all AML file systems the user has access to under a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } - - /** - * Returns all AML file systems the user has access to under a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); - } - - /** - * Schedules an AML file system 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. - * @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) { - 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.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - resourceGroupName, - amlFilesystemName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Schedules an AML file system 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 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, 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.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - resourceGroupName, - amlFilesystemName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context); - } - - /** - * Schedules an AML file system 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. - * @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) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, amlFilesystemName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); - } - - /** - * Schedules an AML file system 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 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, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, amlFilesystemName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); - } - - /** - * Schedules an AML file system 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. - * @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) { - return this.beginDeleteAsync(resourceGroupName, amlFilesystemName).getSyncPoller(); - } - - /** - * Schedules an AML file system 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 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, Context context) { - return this.beginDeleteAsync(resourceGroupName, amlFilesystemName, context).getSyncPoller(); - } - - /** - * Schedules an AML file system 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. - * @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) { - return beginDeleteAsync(resourceGroupName, amlFilesystemName) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Schedules an AML file system 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 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, Context context) { - return beginDeleteAsync(resourceGroupName, amlFilesystemName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Schedules an AML file system 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. - * @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) { - deleteAsync(resourceGroupName, amlFilesystemName).block(); - } - - /** - * Schedules an AML file system 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 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, Context context) { - deleteAsync(resourceGroupName, amlFilesystemName, context).block(); - } - - /** - * Returns 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 an AML file system instance along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - 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 (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.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getByResourceGroup( - this.client.getEndpoint(), - resourceGroupName, - amlFilesystemName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Returns 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 an AML file system instance along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - 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 (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.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getByResourceGroup( - this.client.getEndpoint(), - resourceGroupName, - amlFilesystemName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context); - } - - /** - * Returns 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 an AML file system instance on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String amlFilesystemName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, amlFilesystemName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Returns 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 an AML file system instance along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String amlFilesystemName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, amlFilesystemName, context).block(); - } - - /** - * Returns 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 an AML file system instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AmlFilesystemInner getByResourceGroup(String resourceGroupName, String amlFilesystemName) { - return getByResourceGroupWithResponse(resourceGroupName, amlFilesystemName, Context.NONE).getValue(); - } - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem) { - 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 (amlFilesystem == null) { - return Mono.error(new IllegalArgumentException("Parameter amlFilesystem is required and cannot be null.")); - } else { - amlFilesystem.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - resourceGroupName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - amlFilesystemName, - amlFilesystem, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem, 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 (amlFilesystem == null) { - return Mono.error(new IllegalArgumentException("Parameter amlFilesystem is required and cannot be null.")); - } else { - amlFilesystem.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, - amlFilesystem, - accept, - context); - } - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AmlFilesystemInner> beginCreateOrUpdateAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, amlFilesystemName, amlFilesystem); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - AmlFilesystemInner.class, - AmlFilesystemInner.class, - this.client.getContext()); - } - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AmlFilesystemInner> beginCreateOrUpdateAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, amlFilesystemName, amlFilesystem, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), AmlFilesystemInner.class, AmlFilesystemInner.class, context); - } - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AmlFilesystemInner> beginCreateOrUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem) { - return this.beginCreateOrUpdateAsync(resourceGroupName, amlFilesystemName, amlFilesystem).getSyncPoller(); - } - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AmlFilesystemInner> beginCreateOrUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem, Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, amlFilesystemName, amlFilesystem, context) - .getSyncPoller(); - } - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem) { - return beginCreateOrUpdateAsync(resourceGroupName, amlFilesystemName, amlFilesystem) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, amlFilesystemName, amlFilesystem, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AmlFilesystemInner createOrUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem) { - return createOrUpdateAsync(resourceGroupName, amlFilesystemName, amlFilesystem).block(); - } - - /** - * Create or update 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AmlFilesystemInner createOrUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemInner amlFilesystem, Context context) { - return createOrUpdateAsync(resourceGroupName, amlFilesystemName, amlFilesystem, context).block(); - } - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem) { - 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 (amlFilesystem == null) { - return Mono.error(new IllegalArgumentException("Parameter amlFilesystem is required and cannot be null.")); - } else { - amlFilesystem.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - resourceGroupName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - amlFilesystemName, - amlFilesystem, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem, 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 (amlFilesystem == null) { - return Mono.error(new IllegalArgumentException("Parameter amlFilesystem is required and cannot be null.")); - } else { - amlFilesystem.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, - amlFilesystem, - accept, - context); - } - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AmlFilesystemInner> beginUpdateAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, amlFilesystemName, amlFilesystem); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - AmlFilesystemInner.class, - AmlFilesystemInner.class, - this.client.getContext()); - } - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AmlFilesystemInner> beginUpdateAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, amlFilesystemName, amlFilesystem, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), AmlFilesystemInner.class, AmlFilesystemInner.class, context); - } - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AmlFilesystemInner> beginUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem) { - return this.beginUpdateAsync(resourceGroupName, amlFilesystemName, amlFilesystem).getSyncPoller(); - } - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AmlFilesystemInner> beginUpdate( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem, Context context) { - return this.beginUpdateAsync(resourceGroupName, amlFilesystemName, amlFilesystem, context).getSyncPoller(); - } - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem) { - return beginUpdateAsync(resourceGroupName, amlFilesystemName, amlFilesystem) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem, Context context) { - return beginUpdateAsync(resourceGroupName, amlFilesystemName, amlFilesystem, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AmlFilesystemInner update( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem) { - return updateAsync(resourceGroupName, amlFilesystemName, amlFilesystem).block(); - } - - /** - * Update an AML file system 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 amlFilesystem Object containing the user-selectable properties of the AML file system. 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 AML file system instance. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AmlFilesystemInner update( - String resourceGroupName, String amlFilesystemName, AmlFilesystemUpdate amlFilesystem, Context context) { - return updateAsync(resourceGroupName, amlFilesystemName, amlFilesystem, context).block(); - } - - /** - * Archive data from the 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 archiveInfo Information about the archive 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> archiveWithResponseAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemArchiveInfo archiveInfo) { - 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 (archiveInfo != null) { - archiveInfo.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .archive( - this.client.getEndpoint(), - resourceGroupName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - amlFilesystemName, - archiveInfo, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Archive data from the 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 archiveInfo Information about the archive operation. - * @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> archiveWithResponseAsync( - String resourceGroupName, String amlFilesystemName, AmlFilesystemArchiveInfo archiveInfo, 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 (archiveInfo != null) { - archiveInfo.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .archive( - this.client.getEndpoint(), - resourceGroupName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - amlFilesystemName, - archiveInfo, - accept, - context); - } - - /** - * Archive data from the 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 A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono archiveAsync(String resourceGroupName, String amlFilesystemName) { - final AmlFilesystemArchiveInfo archiveInfo = null; - return archiveWithResponseAsync(resourceGroupName, amlFilesystemName, archiveInfo) - .flatMap(ignored -> Mono.empty()); - } - - /** - * Archive data from the 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 archiveInfo Information about the archive operation. - * @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}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response archiveWithResponse( - String resourceGroupName, String amlFilesystemName, AmlFilesystemArchiveInfo archiveInfo, Context context) { - return archiveWithResponseAsync(resourceGroupName, amlFilesystemName, archiveInfo, context).block(); - } - - /** - * Archive data from the 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void archive(String resourceGroupName, String amlFilesystemName) { - final AmlFilesystemArchiveInfo archiveInfo = null; - archiveWithResponse(resourceGroupName, amlFilesystemName, archiveInfo, Context.NONE); - } - - /** - * Cancel archiving data from the 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 the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> cancelArchiveWithResponseAsync(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 - .cancelArchive( - this.client.getEndpoint(), - resourceGroupName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - amlFilesystemName, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Cancel archiving data from the 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 the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> cancelArchiveWithResponseAsync( - 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 - .cancelArchive( - this.client.getEndpoint(), - resourceGroupName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - amlFilesystemName, - accept, - context); - } - - /** - * Cancel archiving data from the 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 A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono cancelArchiveAsync(String resourceGroupName, String amlFilesystemName) { - return cancelArchiveWithResponseAsync(resourceGroupName, amlFilesystemName).flatMap(ignored -> Mono.empty()); - } - - /** - * Cancel archiving data from the 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 the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response cancelArchiveWithResponse( - String resourceGroupName, String amlFilesystemName, Context context) { - return cancelArchiveWithResponseAsync(resourceGroupName, amlFilesystemName, context).block(); - } - - /** - * Cancel archiving data from the 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void cancelArchive(String resourceGroupName, String amlFilesystemName) { - cancelArchiveWithResponse(resourceGroupName, amlFilesystemName, Context.NONE); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. - * @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 AML file systems along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(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.listNext(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 - *

The nextLink parameter. - * @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 AML file systems along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(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 - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. - * @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 AML file systems along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(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.listByResourceGroupNext(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 - *

The nextLink parameter. - * @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 AML file systems along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync( - 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 - .listByResourceGroupNext(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/AmlFilesystemsImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemsImpl.java deleted file mode 100644 index c79218b466cb..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemsImpl.java +++ /dev/null @@ -1,192 +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.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.AmlFilesystemsClient; -import com.azure.resourcemanager.storagecache.fluent.models.AmlFilesystemInner; -import com.azure.resourcemanager.storagecache.models.AmlFilesystem; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo; -import com.azure.resourcemanager.storagecache.models.AmlFilesystems; - -public final class AmlFilesystemsImpl implements AmlFilesystems { - private static final ClientLogger LOGGER = new ClientLogger(AmlFilesystemsImpl.class); - - private final AmlFilesystemsClient innerClient; - - private final com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager; - - public AmlFilesystemsImpl( - AmlFilesystemsClient innerClient, com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new AmlFilesystemImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new AmlFilesystemImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new AmlFilesystemImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new AmlFilesystemImpl(inner1, this.manager())); - } - - public void deleteByResourceGroup(String resourceGroupName, String amlFilesystemName) { - this.serviceClient().delete(resourceGroupName, amlFilesystemName); - } - - public void delete(String resourceGroupName, String amlFilesystemName, Context context) { - this.serviceClient().delete(resourceGroupName, amlFilesystemName, context); - } - - public Response getByResourceGroupWithResponse( - String resourceGroupName, String amlFilesystemName, Context context) { - Response inner = - this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, amlFilesystemName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new AmlFilesystemImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public AmlFilesystem getByResourceGroup(String resourceGroupName, String amlFilesystemName) { - AmlFilesystemInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, amlFilesystemName); - if (inner != null) { - return new AmlFilesystemImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response archiveWithResponse( - String resourceGroupName, String amlFilesystemName, AmlFilesystemArchiveInfo archiveInfo, Context context) { - return this.serviceClient().archiveWithResponse(resourceGroupName, amlFilesystemName, archiveInfo, context); - } - - public void archive(String resourceGroupName, String amlFilesystemName) { - this.serviceClient().archive(resourceGroupName, amlFilesystemName); - } - - public Response cancelArchiveWithResponse( - String resourceGroupName, String amlFilesystemName, Context context) { - return this.serviceClient().cancelArchiveWithResponse(resourceGroupName, amlFilesystemName, context); - } - - public void cancelArchive(String resourceGroupName, String amlFilesystemName) { - this.serviceClient().cancelArchive(resourceGroupName, amlFilesystemName); - } - - public AmlFilesystem getById(String id) { - String resourceGroupName = Utils.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 = Utils.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))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, amlFilesystemName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.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 = Utils.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))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, amlFilesystemName, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.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 = Utils.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))); - } - this.delete(resourceGroupName, amlFilesystemName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.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 = Utils.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))); - } - this.delete(resourceGroupName, amlFilesystemName, context); - } - - private AmlFilesystemsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.storagecache.StorageCacheManager manager() { - return this.serviceManager; - } - - public AmlFilesystemImpl define(String name) { - return new AmlFilesystemImpl(name, this.manager()); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AscOperationsClientImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AscOperationsClientImpl.java index a7b7c546467f..5cf2ad738b63 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AscOperationsClientImpl.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AscOperationsClientImpl.java @@ -53,8 +53,7 @@ public final class AscOperationsClientImpl implements AscOperationsClient { public interface AscOperationsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/locations/{location}/ascOperations" - + "/{operationId}") + "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/locations/{location}/ascOperations/{operationId}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -70,8 +69,8 @@ Mono> get( /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous 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. @@ -117,8 +116,8 @@ private Mono> getWithResponseAsync(String location, /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous operation. * @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. @@ -163,8 +162,8 @@ private Mono> getWithResponseAsync( /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous 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. @@ -178,8 +177,8 @@ private Mono getAsync(String location, String operationId) { /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous operation. * @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. @@ -194,8 +193,8 @@ public Response getWithResponse(String location, String opera /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous 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. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/CacheImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/CacheImpl.java index b6c6bb313e6b..e277e16b6683 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/CacheImpl.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/CacheImpl.java @@ -72,10 +72,6 @@ public Integer cacheSizeGB() { return this.innerModel().cacheSizeGB(); } - public Double scalingFactor() { - return this.innerModel().scalingFactor(); - } - public CacheHealth health() { return this.innerModel().health(); } @@ -349,11 +345,6 @@ public CacheImpl withCacheSizeGB(Integer cacheSizeGB) { return this; } - public CacheImpl withScalingFactor(Double scalingFactor) { - this.innerModel().withScalingFactor(scalingFactor); - return this; - } - public CacheImpl withSubnet(String subnet) { this.innerModel().withSubnet(subnet); return this; diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/CachesClientImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/CachesClientImpl.java index 1fd01ce44b11..e0721723b554 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/CachesClientImpl.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/CachesClientImpl.java @@ -82,8 +82,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache" - + "/caches") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroup( @@ -96,8 +95,7 @@ Mono> listByResourceGroup( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -111,8 +109,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -126,8 +123,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}") @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -142,8 +138,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -158,8 +153,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/debugInfo") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/debugInfo") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> debugInfo( @@ -173,8 +167,7 @@ Mono>> debugInfo( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/flush") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/flush") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> flush( @@ -188,8 +181,7 @@ Mono>> flush( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/start") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/start") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> start( @@ -203,8 +195,7 @@ Mono>> start( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/stop") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stop") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> stop( @@ -218,8 +209,7 @@ Mono>> stop( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/startPrimingJob") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/startPrimingJob") @ExpectedResponses({202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> startPrimingJob( @@ -234,8 +224,7 @@ Mono>> startPrimingJob( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/stopPrimingJob") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stopPrimingJob") @ExpectedResponses({202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> stopPrimingJob( @@ -250,8 +239,7 @@ Mono>> stopPrimingJob( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/pausePrimingJob") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/pausePrimingJob") @ExpectedResponses({202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> pausePrimingJob( @@ -266,8 +254,7 @@ Mono>> pausePrimingJob( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/resumePrimingJob") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/resumePrimingJob") @ExpectedResponses({202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> resumePrimingJob( @@ -282,8 +269,7 @@ Mono>> resumePrimingJob( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/upgrade") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/upgrade") @ExpectedResponses({201, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> upgradeFirmware( @@ -297,8 +283,7 @@ Mono>> upgradeFirmware( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/spaceAllocation") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/spaceAllocation") @ExpectedResponses({202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> spaceAllocation( @@ -333,11 +318,11 @@ Mono> listByResourceGroupNext( } /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * * @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 caches along with {@link PagedResponse} on successful completion of {@link + * @return result of the request to list Caches along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -378,13 +363,13 @@ private Mono> listSinglePageAsync() { } /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * * @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 caches along with {@link PagedResponse} on successful completion of {@link + * @return result of the request to list Caches along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -422,11 +407,11 @@ private Mono> listSinglePageAsync(Context context) { } /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * * @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 caches as paginated response with {@link PagedFlux}. + * @return result of the request to list Caches as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -434,13 +419,13 @@ private PagedFlux listAsync() { } /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * * @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 caches as paginated response with {@link PagedFlux}. + * @return result of the request to list Caches as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -449,11 +434,11 @@ private PagedFlux listAsync(Context context) { } /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -461,13 +446,13 @@ public PagedIterable list() { } /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -475,13 +460,13 @@ public PagedIterable list(Context context) { } /** - * Returns all caches the user has access to under a resource group. + * Returns all Caches the user has access to under a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @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 caches along with {@link PagedResponse} on successful completion of {@link + * @return result of the request to list Caches along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -527,14 +512,14 @@ private Mono> listByResourceGroupSinglePageAsync(Strin } /** - * Returns all caches the user has access to under a resource group. + * Returns all Caches the user has access to under a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @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 caches along with {@link PagedResponse} on successful completion of {@link + * @return result of the request to list Caches along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -578,13 +563,13 @@ private Mono> listByResourceGroupSinglePageAsync( } /** - * Returns all caches the user has access to under a resource group. + * Returns all Caches the user has access to under a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @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 caches as paginated response with {@link PagedFlux}. + * @return result of the request to list Caches as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -594,14 +579,14 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName) } /** - * Returns all caches the user has access to under a resource group. + * Returns all Caches the user has access to under a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @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 caches as paginated response with {@link PagedFlux}. + * @return result of the request to list Caches as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -611,13 +596,13 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName, } /** - * Returns all caches the user has access to under a resource group. + * Returns all Caches the user has access to under a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -625,14 +610,14 @@ public PagedIterable listByResourceGroup(String resourceGroupName) { } /** - * Returns all caches the user has access to under a resource group. + * Returns all Caches the user has access to under a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -640,10 +625,10 @@ public PagedIterable listByResourceGroup(String resourceGroupName, C } /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -688,10 +673,10 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -735,10 +720,10 @@ private Mono>> deleteWithResponseAsync( } /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -755,10 +740,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -777,10 +762,10 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -793,10 +778,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -810,10 +795,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -826,10 +811,10 @@ private Mono deleteAsync(String resourceGroupName, String cacheName) { } /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -845,10 +830,10 @@ private Mono deleteAsync(String resourceGroupName, String cacheName, Conte } /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -860,10 +845,10 @@ public void delete(String resourceGroupName, String cacheName) { } /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -876,15 +861,15 @@ public void delete(String resourceGroupName, String cacheName, Context context) } /** - * Returns a cache. + * Returns a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 cache instance along with {@link Response} on successful completion of {@link Mono}. + * @return a Cache instance along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String cacheName) { @@ -924,16 +909,16 @@ private Mono> getByResourceGroupWithResponseAsync(String re } /** - * Returns a cache. + * Returns a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 cache instance along with {@link Response} on successful completion of {@link Mono}. + * @return a Cache instance along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -971,15 +956,15 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Returns a cache. + * Returns a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 cache instance on successful completion of {@link Mono}. + * @return a Cache instance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String cacheName) { @@ -988,16 +973,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Strin } /** - * Returns a cache. + * Returns a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 cache instance along with {@link Response}. + * @return a Cache instance along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -1006,15 +991,15 @@ public Response getByResourceGroupWithResponse( } /** - * Returns a cache. + * Returns a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 cache instance. + * @return a Cache instance. */ @ServiceMethod(returns = ReturnType.SINGLE) public CacheInner getByResourceGroup(String resourceGroupName, String cacheName) { @@ -1022,17 +1007,17 @@ public CacheInner getByResourceGroup(String resourceGroupName, String cacheName) } /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance along with {@link Response} on successful completion of {@link Mono}. + * @return a Cache instance along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -1079,18 +1064,18 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance along with {@link Response} on successful completion of {@link Mono}. + * @return a Cache instance along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -1134,17 +1119,17 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance. + * @return the {@link PollerFlux} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CacheInner> beginCreateOrUpdateAsync( @@ -1157,18 +1142,18 @@ private PollerFlux, CacheInner> beginCreateOrUpdateAsync( } /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance. + * @return the {@link PollerFlux} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CacheInner> beginCreateOrUpdateAsync( @@ -1183,17 +1168,17 @@ private PollerFlux, CacheInner> beginCreateOrUpdateAsync( } /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance. + * @return the {@link SyncPoller} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CacheInner> beginCreateOrUpdate( @@ -1202,18 +1187,18 @@ public SyncPoller, CacheInner> beginCreateOrUpdate( } /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance. + * @return the {@link SyncPoller} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CacheInner> beginCreateOrUpdate( @@ -1222,17 +1207,17 @@ public SyncPoller, CacheInner> beginCreateOrUpdate( } /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance on successful completion of {@link Mono}. + * @return a Cache instance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String cacheName, CacheInner cache) { @@ -1242,18 +1227,18 @@ private Mono createOrUpdateAsync(String resourceGroupName, String ca } /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance on successful completion of {@link Mono}. + * @return a Cache instance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1264,17 +1249,17 @@ private Mono createOrUpdateAsync( } /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance. + * @return a Cache instance. */ @ServiceMethod(returns = ReturnType.SINGLE) public CacheInner createOrUpdate(String resourceGroupName, String cacheName, CacheInner cache) { @@ -1282,18 +1267,18 @@ public CacheInner createOrUpdate(String resourceGroupName, String cacheName, Cac } /** - * Create or update a cache. + * Create or update a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only properties are + * @param cache Object containing the user-selectable properties of the new Cache. 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 a cache instance. + * @return a Cache instance. */ @ServiceMethod(returns = ReturnType.SINGLE) public CacheInner createOrUpdate(String resourceGroupName, String cacheName, CacheInner cache, Context context) { @@ -1301,17 +1286,17 @@ public CacheInner createOrUpdate(String resourceGroupName, String cacheName, Cac } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the cache. If read-only properties are included, + * @param cache Object containing the user-selectable properties of the Cache. 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 a cache instance along with {@link Response} on successful completion of {@link Mono}. + * @return a Cache instance along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1356,18 +1341,18 @@ private Mono>> updateWithResponseAsync( } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the cache. If read-only properties are included, + * @param cache Object containing the user-selectable properties of the Cache. 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 a cache instance along with {@link Response} on successful completion of {@link Mono}. + * @return a Cache instance along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1409,17 +1394,17 @@ private Mono>> updateWithResponseAsync( } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the cache. If read-only properties are included, + * @param cache Object containing the user-selectable properties of the Cache. 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 a cache instance. + * @return the {@link PollerFlux} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CacheInner> beginUpdateAsync( @@ -1432,15 +1417,15 @@ private PollerFlux, CacheInner> beginUpdateAsync( } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 a cache instance. + * @return the {@link PollerFlux} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CacheInner> beginUpdateAsync( @@ -1454,18 +1439,18 @@ private PollerFlux, CacheInner> beginUpdateAsync( } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the cache. If read-only properties are included, + * @param cache Object containing the user-selectable properties of the Cache. 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 a cache instance. + * @return the {@link PollerFlux} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CacheInner> beginUpdateAsync( @@ -1479,15 +1464,15 @@ private PollerFlux, CacheInner> beginUpdateAsync( } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 a cache instance. + * @return the {@link SyncPoller} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CacheInner> beginUpdate(String resourceGroupName, String cacheName) { @@ -1496,18 +1481,18 @@ public SyncPoller, CacheInner> beginUpdate(String resourc } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the cache. If read-only properties are included, + * @param cache Object containing the user-selectable properties of the Cache. 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 a cache instance. + * @return the {@link SyncPoller} for polling of a Cache instance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CacheInner> beginUpdate( @@ -1516,17 +1501,17 @@ public SyncPoller, CacheInner> beginUpdate( } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the cache. If read-only properties are included, + * @param cache Object containing the user-selectable properties of the Cache. 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 a cache instance on successful completion of {@link Mono}. + * @return a Cache instance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String cacheName, CacheInner cache) { @@ -1536,15 +1521,15 @@ private Mono updateAsync(String resourceGroupName, String cacheName, } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 cache instance on successful completion of {@link Mono}. + * @return a Cache instance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String cacheName) { @@ -1555,18 +1540,18 @@ private Mono updateAsync(String resourceGroupName, String cacheName) } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the cache. If read-only properties are included, + * @param cache Object containing the user-selectable properties of the Cache. 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 a cache instance on successful completion of {@link Mono}. + * @return a Cache instance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1577,15 +1562,15 @@ private Mono updateAsync( } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 cache instance. + * @return a Cache instance. */ @ServiceMethod(returns = ReturnType.SINGLE) public CacheInner update(String resourceGroupName, String cacheName) { @@ -1594,18 +1579,18 @@ public CacheInner update(String resourceGroupName, String cacheName) { } /** - * Update a cache instance. + * Update a Cache instance. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the cache. If read-only properties are included, + * @param cache Object containing the user-selectable properties of the Cache. 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 a cache instance. + * @return a Cache instance. */ @ServiceMethod(returns = ReturnType.SINGLE) public CacheInner update(String resourceGroupName, String cacheName, CacheInner cache, Context context) { @@ -1613,10 +1598,10 @@ public CacheInner update(String resourceGroupName, String cacheName, CacheInner } /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1661,10 +1646,10 @@ private Mono>> debugInfoWithResponseAsync(String resou } /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1708,10 +1693,10 @@ private Mono>> debugInfoWithResponseAsync( } /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1728,10 +1713,10 @@ private PollerFlux, Void> beginDebugInfoAsync(String resourceGr } /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1750,10 +1735,10 @@ private PollerFlux, Void> beginDebugInfoAsync( } /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1766,10 +1751,10 @@ public SyncPoller, Void> beginDebugInfo(String resourceGroupNam } /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1784,10 +1769,10 @@ public SyncPoller, Void> beginDebugInfo( } /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1800,10 +1785,10 @@ private Mono debugInfoAsync(String resourceGroupName, String cacheName) { } /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1819,10 +1804,10 @@ private Mono debugInfoAsync(String resourceGroupName, String cacheName, Co } /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1834,10 +1819,10 @@ public void debugInfo(String resourceGroupName, String cacheName) { } /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1850,11 +1835,11 @@ public void debugInfo(String resourceGroupName, String cacheName, Context contex } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1899,11 +1884,11 @@ private Mono>> flushWithResponseAsync(String resourceG } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1947,11 +1932,11 @@ private Mono>> flushWithResponseAsync( } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1968,11 +1953,11 @@ private PollerFlux, Void> beginFlushAsync(String resourceGroupN } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1991,11 +1976,11 @@ private PollerFlux, Void> beginFlushAsync( } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2008,11 +1993,11 @@ public SyncPoller, Void> beginFlush(String resourceGroupName, S } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2026,11 +2011,11 @@ public SyncPoller, Void> beginFlush(String resourceGroupName, S } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2043,11 +2028,11 @@ private Mono flushAsync(String resourceGroupName, String cacheName) { } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2063,11 +2048,11 @@ private Mono flushAsync(String resourceGroupName, String cacheName, Contex } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2079,11 +2064,11 @@ public void flush(String resourceGroupName, String cacheName) { } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2096,10 +2081,10 @@ public void flush(String resourceGroupName, String cacheName, Context context) { } /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2144,10 +2129,10 @@ private Mono>> startWithResponseAsync(String resourceG } /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2191,10 +2176,10 @@ private Mono>> startWithResponseAsync( } /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2211,10 +2196,10 @@ private PollerFlux, Void> beginStartAsync(String resourceGroupN } /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2233,10 +2218,10 @@ private PollerFlux, Void> beginStartAsync( } /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2249,10 +2234,10 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S } /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2266,10 +2251,10 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S } /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2282,10 +2267,10 @@ private Mono startAsync(String resourceGroupName, String cacheName) { } /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2301,10 +2286,10 @@ private Mono startAsync(String resourceGroupName, String cacheName, Contex } /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2316,10 +2301,10 @@ public void start(String resourceGroupName, String cacheName) { } /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2332,10 +2317,10 @@ public void start(String resourceGroupName, String cacheName, Context context) { } /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2380,10 +2365,10 @@ private Mono>> stopWithResponseAsync(String resourceGr } /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2427,10 +2412,10 @@ private Mono>> stopWithResponseAsync( } /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2447,10 +2432,10 @@ private PollerFlux, Void> beginStopAsync(String resourceGroupNa } /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2469,10 +2454,10 @@ private PollerFlux, Void> beginStopAsync( } /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2485,10 +2470,10 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St } /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2502,10 +2487,10 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St } /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2518,10 +2503,10 @@ private Mono stopAsync(String resourceGroupName, String cacheName) { } /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2537,10 +2522,10 @@ private Mono stopAsync(String resourceGroupName, String cacheName, Context } /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2552,10 +2537,10 @@ public void stop(String resourceGroupName, String cacheName) { } /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2570,8 +2555,8 @@ public void stop(String resourceGroupName, String cacheName, Context context) { /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2624,8 +2609,8 @@ private Mono>> startPrimingJobWithResponseAsync( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @param context The context to associate with this operation. @@ -2676,8 +2661,8 @@ private Mono>> startPrimingJobWithResponseAsync( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2699,8 +2684,8 @@ private PollerFlux, Void> beginStartPrimingJobAsync( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2721,8 +2706,8 @@ private PollerFlux, Void> beginStartPrimingJobAsync(String reso /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @param context The context to associate with this operation. @@ -2745,8 +2730,8 @@ private PollerFlux, Void> beginStartPrimingJobAsync( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2762,8 +2747,8 @@ public SyncPoller, Void> beginStartPrimingJob(String resourceGr /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @param context The context to associate with this operation. @@ -2781,8 +2766,8 @@ public SyncPoller, Void> beginStartPrimingJob( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2800,8 +2785,8 @@ private Mono startPrimingJobAsync(String resourceGroupName, String cacheNa /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2819,8 +2804,8 @@ private Mono startPrimingJobAsync(String resourceGroupName, String cacheNa /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @param context The context to associate with this operation. @@ -2840,8 +2825,8 @@ private Mono startPrimingJobAsync( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2856,8 +2841,8 @@ public void startPrimingJob(String resourceGroupName, String cacheName) { /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @param context The context to associate with this operation. @@ -2873,8 +2858,8 @@ public void startPrimingJob(String resourceGroupName, String cacheName, PrimingJ /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2927,8 +2912,8 @@ private Mono>> stopPrimingJobWithResponseAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -2979,8 +2964,8 @@ private Mono>> stopPrimingJobWithResponseAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3002,8 +2987,8 @@ private PollerFlux, Void> beginStopPrimingJobAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3024,8 +3009,8 @@ private PollerFlux, Void> beginStopPrimingJobAsync(String resou /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3048,8 +3033,8 @@ private PollerFlux, Void> beginStopPrimingJobAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3065,8 +3050,8 @@ public SyncPoller, Void> beginStopPrimingJob(String resourceGro /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3084,8 +3069,8 @@ public SyncPoller, Void> beginStopPrimingJob( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3104,8 +3089,8 @@ private Mono stopPrimingJobAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3123,8 +3108,8 @@ private Mono stopPrimingJobAsync(String resourceGroupName, String cacheNam /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3144,8 +3129,8 @@ private Mono stopPrimingJobAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3160,8 +3145,8 @@ public void stopPrimingJob(String resourceGroupName, String cacheName) { /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3178,8 +3163,8 @@ public void stopPrimingJob( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3232,8 +3217,8 @@ private Mono>> pausePrimingJobWithResponseAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3284,8 +3269,8 @@ private Mono>> pausePrimingJobWithResponseAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3307,8 +3292,8 @@ private PollerFlux, Void> beginPausePrimingJobAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3329,8 +3314,8 @@ private PollerFlux, Void> beginPausePrimingJobAsync(String reso /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3353,8 +3338,8 @@ private PollerFlux, Void> beginPausePrimingJobAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3370,8 +3355,8 @@ public SyncPoller, Void> beginPausePrimingJob(String resourceGr /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3389,8 +3374,8 @@ public SyncPoller, Void> beginPausePrimingJob( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3409,8 +3394,8 @@ private Mono pausePrimingJobAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3428,8 +3413,8 @@ private Mono pausePrimingJobAsync(String resourceGroupName, String cacheNa /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3449,8 +3434,8 @@ private Mono pausePrimingJobAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3465,8 +3450,8 @@ public void pausePrimingJob(String resourceGroupName, String cacheName) { /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3483,8 +3468,8 @@ public void pausePrimingJob( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3537,8 +3522,8 @@ private Mono>> resumePrimingJobWithResponseAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3589,8 +3574,8 @@ private Mono>> resumePrimingJobWithResponseAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3612,8 +3597,8 @@ private PollerFlux, Void> beginResumePrimingJobAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3634,8 +3619,8 @@ private PollerFlux, Void> beginResumePrimingJobAsync(String res /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3658,8 +3643,8 @@ private PollerFlux, Void> beginResumePrimingJobAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3675,8 +3660,8 @@ public SyncPoller, Void> beginResumePrimingJob(String resourceG /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3694,8 +3679,8 @@ public SyncPoller, Void> beginResumePrimingJob( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3714,8 +3699,8 @@ private Mono resumePrimingJobAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3733,8 +3718,8 @@ private Mono resumePrimingJobAsync(String resourceGroupName, String cacheN /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3754,8 +3739,8 @@ private Mono resumePrimingJobAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3770,8 +3755,8 @@ public void resumePrimingJob(String resourceGroupName, String cacheName) { /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -3786,10 +3771,10 @@ public void resumePrimingJob( } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3835,10 +3820,10 @@ private Mono>> upgradeFirmwareWithResponseAsync( } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3882,10 +3867,10 @@ private Mono>> upgradeFirmwareWithResponseAsync( } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3902,10 +3887,10 @@ private PollerFlux, Void> beginUpgradeFirmwareAsync(String reso } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3924,10 +3909,10 @@ private PollerFlux, Void> beginUpgradeFirmwareAsync( } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3940,10 +3925,10 @@ public SyncPoller, Void> beginUpgradeFirmware(String resourceGr } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3958,10 +3943,10 @@ public SyncPoller, Void> beginUpgradeFirmware( } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3976,10 +3961,10 @@ private Mono upgradeFirmwareAsync(String resourceGroupName, String cacheNa } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3995,10 +3980,10 @@ private Mono upgradeFirmwareAsync(String resourceGroupName, String cacheNa } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4010,10 +3995,10 @@ public void upgradeFirmware(String resourceGroupName, String cacheName) { } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4028,8 +4013,8 @@ public void upgradeFirmware(String resourceGroupName, String cacheName, Context /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4082,8 +4067,8 @@ private Mono>> spaceAllocationWithResponseAsync( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @param context The context to associate with this operation. @@ -4137,8 +4122,8 @@ private Mono>> spaceAllocationWithResponseAsync( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4160,8 +4145,8 @@ private PollerFlux, Void> beginSpaceAllocationAsync( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4182,8 +4167,8 @@ private PollerFlux, Void> beginSpaceAllocationAsync(String reso /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @param context The context to associate with this operation. @@ -4209,8 +4194,8 @@ private PollerFlux, Void> beginSpaceAllocationAsync( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4226,8 +4211,8 @@ public SyncPoller, Void> beginSpaceAllocation(String resourceGr /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @param context The context to associate with this operation. @@ -4248,8 +4233,8 @@ public SyncPoller, Void> beginSpaceAllocation( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4268,8 +4253,8 @@ private Mono spaceAllocationAsync( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4287,8 +4272,8 @@ private Mono spaceAllocationAsync(String resourceGroupName, String cacheNa /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @param context The context to associate with this operation. @@ -4311,8 +4296,8 @@ private Mono spaceAllocationAsync( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4327,8 +4312,8 @@ public void spaceAllocation(String resourceGroupName, String cacheName) { /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @param context The context to associate with this operation. @@ -4353,7 +4338,7 @@ public void spaceAllocation( * @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 caches along with {@link PagedResponse} on successful completion of {@link + * @return result of the request to list Caches along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4391,7 +4376,7 @@ private Mono> listNextSinglePageAsync(String nextLink) * @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 caches along with {@link PagedResponse} on successful completion of {@link + * @return result of the request to list Caches along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4428,7 +4413,7 @@ private Mono> listNextSinglePageAsync(String nextLink, * @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 caches along with {@link PagedResponse} on successful completion of {@link + * @return result of the request to list Caches along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4467,7 +4452,7 @@ private Mono> listByResourceGroupNextSinglePageAsync(S * @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 caches along with {@link PagedResponse} on successful completion of {@link + * @return result of the request to list Caches along with {@link PagedResponse} on successful completion of {@link * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/RequiredAmlFilesystemSubnetsSizeImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/RequiredAmlFilesystemSubnetsSizeImpl.java deleted file mode 100644 index b73f7d0fe59b..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/RequiredAmlFilesystemSubnetsSizeImpl.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.implementation; - -import com.azure.resourcemanager.storagecache.fluent.models.RequiredAmlFilesystemSubnetsSizeInner; -import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSize; - -public final class RequiredAmlFilesystemSubnetsSizeImpl implements RequiredAmlFilesystemSubnetsSize { - private RequiredAmlFilesystemSubnetsSizeInner innerObject; - - private final com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager; - - RequiredAmlFilesystemSubnetsSizeImpl( - RequiredAmlFilesystemSubnetsSizeInner innerObject, - com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public Integer filesystemSubnetSize() { - return this.innerModel().filesystemSubnetSize(); - } - - public RequiredAmlFilesystemSubnetsSizeInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.storagecache.StorageCacheManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ResourceProvidersClientImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ResourceProvidersClientImpl.java deleted file mode 100644 index 48cda39ff2c2..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ResourceProvidersClientImpl.java +++ /dev/null @@ -1,344 +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.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.ExpectedResponses; -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.PathParam; -import com.azure.core.annotation.Post; -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.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.storagecache.fluent.ResourceProvidersClient; -import com.azure.resourcemanager.storagecache.fluent.models.RequiredAmlFilesystemSubnetsSizeInner; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetErrorException; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemSubnetInfo; -import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSizeInfo; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */ -public final class ResourceProvidersClientImpl implements ResourceProvidersClient { - /** The proxy service used to perform REST calls. */ - private final ResourceProvidersService service; - - /** The service client containing this operation class. */ - private final StorageCacheManagementClientImpl client; - - /** - * Initializes an instance of ResourceProvidersClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ResourceProvidersClientImpl(StorageCacheManagementClientImpl client) { - this.service = - RestProxy.create(ResourceProvidersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for StorageCacheManagementClientResourceProviders to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "StorageCacheManageme") - public interface ResourceProvidersService { - @Headers({"Content-Type: application/json"}) - @Post("/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/checkAmlFSSubnets") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType( - value = AmlFilesystemCheckSubnetErrorException.class, - code = {400}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkAmlFSSubnets( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") AmlFilesystemSubnetInfo amlFilesystemSubnetInfo, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post("/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/getRequiredAmlFSSubnetsSize") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getRequiredAmlFSSubnetsSize( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") RequiredAmlFilesystemSubnetsSizeInfo requiredAmlFilesystemSubnetsSizeInfo, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Check that subnets will be valid for AML file system create calls. - * - * @param amlFilesystemSubnetInfo Information about the subnets to validate. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws AmlFilesystemCheckSubnetErrorException thrown if the request is rejected by server on status code 400. - * @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> checkAmlFSSubnetsWithResponseAsync(AmlFilesystemSubnetInfo amlFilesystemSubnetInfo) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() 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 (amlFilesystemSubnetInfo != null) { - amlFilesystemSubnetInfo.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .checkAmlFSSubnets( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - amlFilesystemSubnetInfo, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Check that subnets will be valid for AML file system create calls. - * - * @param amlFilesystemSubnetInfo Information about the subnets to validate. - * @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 AmlFilesystemCheckSubnetErrorException thrown if the request is rejected by server on status code 400. - * @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> checkAmlFSSubnetsWithResponseAsync( - AmlFilesystemSubnetInfo amlFilesystemSubnetInfo, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() 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 (amlFilesystemSubnetInfo != null) { - amlFilesystemSubnetInfo.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .checkAmlFSSubnets( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - amlFilesystemSubnetInfo, - accept, - context); - } - - /** - * Check that subnets will be valid for AML file system create calls. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws AmlFilesystemCheckSubnetErrorException thrown if the request is rejected by server on status code 400. - * @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 checkAmlFSSubnetsAsync() { - final AmlFilesystemSubnetInfo amlFilesystemSubnetInfo = null; - return checkAmlFSSubnetsWithResponseAsync(amlFilesystemSubnetInfo).flatMap(ignored -> Mono.empty()); - } - - /** - * Check that subnets will be valid for AML file system create calls. - * - * @param amlFilesystemSubnetInfo Information about the subnets to validate. - * @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 AmlFilesystemCheckSubnetErrorException thrown if the request is rejected by server on status code 400. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkAmlFSSubnetsWithResponse( - AmlFilesystemSubnetInfo amlFilesystemSubnetInfo, Context context) { - return checkAmlFSSubnetsWithResponseAsync(amlFilesystemSubnetInfo, context).block(); - } - - /** - * Check that subnets will be valid for AML file system create calls. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws AmlFilesystemCheckSubnetErrorException thrown if the request is rejected by server on status code 400. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void checkAmlFSSubnets() { - final AmlFilesystemSubnetInfo amlFilesystemSubnetInfo = null; - checkAmlFSSubnetsWithResponse(amlFilesystemSubnetInfo, Context.NONE); - } - - /** - * Get the number of available IP addresses needed for the AML file system information provided. - * - * @param requiredAmlFilesystemSubnetsSizeInfo Information to determine the number of available IPs a subnet will - * need to host the AML file system. - * @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 number of available IP addresses needed for the AML file system information provided along with - * {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getRequiredAmlFSSubnetsSizeWithResponseAsync( - RequiredAmlFilesystemSubnetsSizeInfo requiredAmlFilesystemSubnetsSizeInfo) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() 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 (requiredAmlFilesystemSubnetsSizeInfo != null) { - requiredAmlFilesystemSubnetsSizeInfo.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .getRequiredAmlFSSubnetsSize( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - requiredAmlFilesystemSubnetsSizeInfo, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the number of available IP addresses needed for the AML file system information provided. - * - * @param requiredAmlFilesystemSubnetsSizeInfo Information to determine the number of available IPs a subnet will - * need to host the AML file system. - * @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 number of available IP addresses needed for the AML file system information provided along with - * {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getRequiredAmlFSSubnetsSizeWithResponseAsync( - RequiredAmlFilesystemSubnetsSizeInfo requiredAmlFilesystemSubnetsSizeInfo, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() 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 (requiredAmlFilesystemSubnetsSizeInfo != null) { - requiredAmlFilesystemSubnetsSizeInfo.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .getRequiredAmlFSSubnetsSize( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - requiredAmlFilesystemSubnetsSizeInfo, - accept, - context); - } - - /** - * Get the number of available IP addresses needed for the AML file system information provided. - * - * @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 number of available IP addresses needed for the AML file system information provided on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getRequiredAmlFSSubnetsSizeAsync() { - final RequiredAmlFilesystemSubnetsSizeInfo requiredAmlFilesystemSubnetsSizeInfo = null; - return getRequiredAmlFSSubnetsSizeWithResponseAsync(requiredAmlFilesystemSubnetsSizeInfo) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the number of available IP addresses needed for the AML file system information provided. - * - * @param requiredAmlFilesystemSubnetsSizeInfo Information to determine the number of available IPs a subnet will - * need to host the AML file system. - * @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 number of available IP addresses needed for the AML file system information provided along with - * {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getRequiredAmlFSSubnetsSizeWithResponse( - RequiredAmlFilesystemSubnetsSizeInfo requiredAmlFilesystemSubnetsSizeInfo, Context context) { - return getRequiredAmlFSSubnetsSizeWithResponseAsync(requiredAmlFilesystemSubnetsSizeInfo, context).block(); - } - - /** - * Get the number of available IP addresses needed for the AML file system information provided. - * - * @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 number of available IP addresses needed for the AML file system information provided. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public RequiredAmlFilesystemSubnetsSizeInner getRequiredAmlFSSubnetsSize() { - final RequiredAmlFilesystemSubnetsSizeInfo requiredAmlFilesystemSubnetsSizeInfo = null; - return getRequiredAmlFSSubnetsSizeWithResponse(requiredAmlFilesystemSubnetsSizeInfo, Context.NONE).getValue(); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ResourceProvidersImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ResourceProvidersImpl.java deleted file mode 100644 index 8928213088fb..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ResourceProvidersImpl.java +++ /dev/null @@ -1,72 +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.implementation; - -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.ResourceProvidersClient; -import com.azure.resourcemanager.storagecache.fluent.models.RequiredAmlFilesystemSubnetsSizeInner; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemSubnetInfo; -import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSize; -import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSizeInfo; -import com.azure.resourcemanager.storagecache.models.ResourceProviders; - -public final class ResourceProvidersImpl implements ResourceProviders { - private static final ClientLogger LOGGER = new ClientLogger(ResourceProvidersImpl.class); - - private final ResourceProvidersClient innerClient; - - private final com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager; - - public ResourceProvidersImpl( - ResourceProvidersClient innerClient, - com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response checkAmlFSSubnetsWithResponse( - AmlFilesystemSubnetInfo amlFilesystemSubnetInfo, Context context) { - return this.serviceClient().checkAmlFSSubnetsWithResponse(amlFilesystemSubnetInfo, context); - } - - public void checkAmlFSSubnets() { - this.serviceClient().checkAmlFSSubnets(); - } - - public Response getRequiredAmlFSSubnetsSizeWithResponse( - RequiredAmlFilesystemSubnetsSizeInfo requiredAmlFilesystemSubnetsSizeInfo, Context context) { - Response inner = - this.serviceClient().getRequiredAmlFSSubnetsSizeWithResponse(requiredAmlFilesystemSubnetsSizeInfo, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new RequiredAmlFilesystemSubnetsSizeImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public RequiredAmlFilesystemSubnetsSize getRequiredAmlFSSubnetsSize() { - RequiredAmlFilesystemSubnetsSizeInner inner = this.serviceClient().getRequiredAmlFSSubnetsSize(); - if (inner != null) { - return new RequiredAmlFilesystemSubnetsSizeImpl(inner, this.manager()); - } else { - return null; - } - } - - private ResourceProvidersClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.storagecache.StorageCacheManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageCacheManagementClientBuilder.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageCacheManagementClientBuilder.java index d1c932247ec9..c20fe559c2b2 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageCacheManagementClientBuilder.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageCacheManagementClientBuilder.java @@ -18,12 +18,14 @@ @ServiceClientBuilder(serviceClients = {StorageCacheManagementClientImpl.class}) public final class StorageCacheManagementClientBuilder { /* - * The ID of the target subscription. + * Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of + * the URI for every service call. */ private String subscriptionId; /** - * Sets The ID of the target subscription. + * Sets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms + * part of the URI for every service call. * * @param subscriptionId the subscriptionId value. * @return the StorageCacheManagementClientBuilder. 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 10c674ae0336..f7aef45519d6 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 @@ -22,12 +22,10 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; -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.CachesClient; import com.azure.resourcemanager.storagecache.fluent.OperationsClient; -import com.azure.resourcemanager.storagecache.fluent.ResourceProvidersClient; import com.azure.resourcemanager.storagecache.fluent.SkusClient; import com.azure.resourcemanager.storagecache.fluent.StorageCacheManagementClient; import com.azure.resourcemanager.storagecache.fluent.StorageTargetOperationsClient; @@ -45,11 +43,15 @@ /** Initializes a new instance of the StorageCacheManagementClientImpl type. */ @ServiceClient(builder = StorageCacheManagementClientBuilder.class) public final class StorageCacheManagementClientImpl implements StorageCacheManagementClient { - /** The ID of the target subscription. */ + /** + * Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of + * the URI for every service call. + */ private final String subscriptionId; /** - * Gets The ID of the target subscription. + * Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms + * part of the URI for every service call. * * @return the subscriptionId value. */ @@ -213,30 +215,6 @@ public StorageTargetOperationsClient getStorageTargetOperations() { return this.storageTargetOperations; } - /** The AmlFilesystemsClient object to access its operations. */ - private final AmlFilesystemsClient amlFilesystems; - - /** - * Gets the AmlFilesystemsClient object to access its operations. - * - * @return the AmlFilesystemsClient object. - */ - public AmlFilesystemsClient getAmlFilesystems() { - return this.amlFilesystems; - } - - /** The ResourceProvidersClient object to access its operations. */ - private final ResourceProvidersClient resourceProviders; - - /** - * Gets the ResourceProvidersClient object to access its operations. - * - * @return the ResourceProvidersClient object. - */ - public ResourceProvidersClient getResourceProviders() { - return this.resourceProviders; - } - /** * Initializes an instance of StorageCacheManagementClient client. * @@ -244,7 +222,8 @@ public ResourceProvidersClient getResourceProviders() { * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. The + * subscription ID forms part of the URI for every service call. * @param endpoint server parameter. */ StorageCacheManagementClientImpl( @@ -259,7 +238,7 @@ public ResourceProvidersClient getResourceProviders() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-03-01-preview"; + this.apiVersion = "2023-01-01"; this.operations = new OperationsClientImpl(this); this.skus = new SkusClientImpl(this); this.usageModels = new UsageModelsClientImpl(this); @@ -268,8 +247,6 @@ public ResourceProvidersClient getResourceProviders() { this.caches = new CachesClientImpl(this); this.storageTargets = new StorageTargetsClientImpl(this); this.storageTargetOperations = new StorageTargetOperationsClientImpl(this); - this.amlFilesystems = new AmlFilesystemsClientImpl(this); - this.resourceProviders = new ResourceProvidersClientImpl(this); } /** diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageTargetOperationsClientImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageTargetOperationsClientImpl.java index 4ca9a951b4e3..ee1a1029e8d2 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageTargetOperationsClientImpl.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageTargetOperationsClientImpl.java @@ -58,8 +58,7 @@ public final class StorageTargetOperationsClientImpl implements StorageTargetOpe public interface StorageTargetOperationsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/storageTargets/{storageTargetName}/flush") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/flush") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> flush( @@ -74,8 +73,7 @@ Mono>> flush( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/storageTargets/{storageTargetName}/suspend") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/suspend") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> suspend( @@ -90,8 +88,7 @@ Mono>> suspend( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/storageTargets/{storageTargetName}/resume") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/resume") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> resume( @@ -106,8 +103,7 @@ Mono>> resume( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/storageTargets/{storageTargetName}/invalidate") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/invalidate") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> invalidate( @@ -125,8 +121,8 @@ Mono>> invalidate( * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -181,8 +177,8 @@ private Mono>> flushWithResponseAsync( * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -235,8 +231,8 @@ private Mono>> flushWithResponseAsync( * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -258,8 +254,8 @@ private PollerFlux, Void> beginFlushAsync( * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -283,8 +279,8 @@ private PollerFlux, Void> beginFlushAsync( * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -302,8 +298,8 @@ public SyncPoller, Void> beginFlush( * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -322,8 +318,8 @@ public SyncPoller, Void> beginFlush( * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -342,8 +338,8 @@ private Mono flushAsync(String resourceGroupName, String cacheName, String * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -364,8 +360,8 @@ private Mono flushAsync( * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -381,8 +377,8 @@ public void flush(String resourceGroupName, String cacheName, String storageTarg * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -398,8 +394,8 @@ public void flush(String resourceGroupName, String cacheName, String storageTarg /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -453,8 +449,8 @@ private Mono>> suspendWithResponseAsync( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -506,8 +502,8 @@ private Mono>> suspendWithResponseAsync( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -529,8 +525,8 @@ private PollerFlux, Void> beginSuspendAsync( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -553,8 +549,8 @@ private PollerFlux, Void> beginSuspendAsync( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -571,8 +567,8 @@ public SyncPoller, Void> beginSuspend( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -590,8 +586,8 @@ public SyncPoller, Void> beginSuspend( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -609,8 +605,8 @@ private Mono suspendAsync(String resourceGroupName, String cacheName, Stri /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -630,8 +626,8 @@ private Mono suspendAsync( /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -646,8 +642,8 @@ public void suspend(String resourceGroupName, String cacheName, String storageTa /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -663,8 +659,8 @@ public void suspend(String resourceGroupName, String cacheName, String storageTa /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -718,8 +714,8 @@ private Mono>> resumeWithResponseAsync( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -771,8 +767,8 @@ private Mono>> resumeWithResponseAsync( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -794,8 +790,8 @@ private PollerFlux, Void> beginResumeAsync( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -818,8 +814,8 @@ private PollerFlux, Void> beginResumeAsync( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -836,8 +832,8 @@ public SyncPoller, Void> beginResume( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -855,8 +851,8 @@ public SyncPoller, Void> beginResume( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -874,8 +870,8 @@ private Mono resumeAsync(String resourceGroupName, String cacheName, Strin /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -895,8 +891,8 @@ private Mono resumeAsync( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -911,8 +907,8 @@ public void resume(String resourceGroupName, String cacheName, String storageTar /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -929,8 +925,8 @@ public void resume(String resourceGroupName, String cacheName, String storageTar * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -985,8 +981,8 @@ private Mono>> invalidateWithResponseAsync( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -1039,8 +1035,8 @@ private Mono>> invalidateWithResponseAsync( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1063,8 +1059,8 @@ private PollerFlux, Void> beginInvalidateAsync( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -1088,8 +1084,8 @@ private PollerFlux, Void> beginInvalidateAsync( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1107,8 +1103,8 @@ public SyncPoller, Void> beginInvalidate( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -1127,8 +1123,8 @@ public SyncPoller, Void> beginInvalidate( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1147,8 +1143,8 @@ private Mono invalidateAsync(String resourceGroupName, String cacheName, S * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -1169,8 +1165,8 @@ private Mono invalidateAsync( * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1186,8 +1182,8 @@ public void invalidate(String resourceGroupName, String cacheName, String storag * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageTargetsClientImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageTargetsClientImpl.java index c775eaf4750c..77cf5e2f3904 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageTargetsClientImpl.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/StorageTargetsClientImpl.java @@ -67,8 +67,7 @@ public final class StorageTargetsClientImpl implements StorageTargetsClient { public interface StorageTargetsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/storageTargets/{storageTargetName}/dnsRefresh") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/dnsRefresh") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> dnsRefresh( @@ -83,8 +82,7 @@ Mono>> dnsRefresh( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/storageTargets") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByCache( @@ -98,8 +96,7 @@ Mono> listByCache( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/storageTargets/{storageTargetName}") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -115,8 +112,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/storageTargets/{storageTargetName}") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -131,8 +127,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/storageTargets/{storageTargetName}") + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}") @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -148,8 +143,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches" - + "/{cacheName}/storageTargets/{storageTargetName}/restoreDefaults") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/restoreDefaults") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> restoreDefaults( @@ -176,8 +170,8 @@ Mono> listByCacheNext( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -231,8 +225,8 @@ private Mono>> dnsRefreshWithResponseAsync( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -284,8 +278,8 @@ private Mono>> dnsRefreshWithResponseAsync( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -307,8 +301,8 @@ private PollerFlux, Void> beginDnsRefreshAsync( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -331,8 +325,8 @@ private PollerFlux, Void> beginDnsRefreshAsync( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -349,8 +343,8 @@ public SyncPoller, Void> beginDnsRefresh( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -368,8 +362,8 @@ public SyncPoller, Void> beginDnsRefresh( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -387,8 +381,8 @@ private Mono dnsRefreshAsync(String resourceGroupName, String cacheName, S /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -408,8 +402,8 @@ private Mono dnsRefreshAsync( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -424,8 +418,8 @@ public void dnsRefresh(String resourceGroupName, String cacheName, String storag /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -439,10 +433,10 @@ public void dnsRefresh(String resourceGroupName, String cacheName, String storag } /** - * Returns a list of Storage Targets for the specified cache. + * Returns a list of Storage Targets for the specified Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -497,10 +491,10 @@ private Mono> listByCacheSinglePageAsync( } /** - * Returns a list of Storage Targets for the specified cache. + * Returns a list of Storage Targets for the specified Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -553,10 +547,10 @@ private Mono> listByCacheSinglePageAsync( } /** - * Returns a list of Storage Targets for the specified cache. + * Returns a list of Storage Targets for the specified Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -571,10 +565,10 @@ private PagedFlux listByCacheAsync(String resourceGroupName, } /** - * Returns a list of Storage Targets for the specified cache. + * Returns a list of Storage Targets for the specified Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -591,10 +585,10 @@ private PagedFlux listByCacheAsync( } /** - * Returns a list of Storage Targets for the specified cache. + * Returns a list of Storage Targets for the specified Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -607,10 +601,10 @@ public PagedIterable listByCache(String resourceGroupName, S } /** - * Returns a list of Storage Targets for the specified cache. + * Returns a list of Storage Targets for the specified Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -624,13 +618,13 @@ public PagedIterable listByCache(String resourceGroupName, S } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -685,13 +679,13 @@ private Mono>> deleteWithResponseAsync( } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -744,13 +738,13 @@ private Mono>> deleteWithResponseAsync( } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -772,13 +766,13 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -799,13 +793,13 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -828,13 +822,13 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -850,13 +844,13 @@ public SyncPoller, Void> beginDelete( } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -874,13 +868,13 @@ public SyncPoller, Void> beginDelete( } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -898,13 +892,13 @@ private Mono deleteAsync(String resourceGroupName, String cacheName, Strin } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -921,13 +915,13 @@ private Mono deleteAsync(String resourceGroupName, String cacheName, Strin } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -947,13 +941,13 @@ private Mono deleteAsync( } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -967,13 +961,13 @@ public void delete(String resourceGroupName, String cacheName, String storageTar } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -990,10 +984,10 @@ public void delete( } /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1045,10 +1039,10 @@ private Mono> getWithResponseAsync( } /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -1098,10 +1092,10 @@ private Mono> getWithResponseAsync( } /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1116,10 +1110,10 @@ private Mono getAsync(String resourceGroupName, String cache } /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -1135,10 +1129,10 @@ public Response getWithResponse( } /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1152,11 +1146,11 @@ public StorageTargetInner get(String resourceGroupName, String cacheName, String } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -1215,11 +1209,11 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -1280,11 +1274,11 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -1309,11 +1303,11 @@ private PollerFlux, StorageTargetInner> beginCrea } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -1340,11 +1334,11 @@ private PollerFlux, StorageTargetInner> beginCrea } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -1362,11 +1356,11 @@ public SyncPoller, StorageTargetInner> beginCreat } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -1389,11 +1383,11 @@ public SyncPoller, StorageTargetInner> beginCreat } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -1411,11 +1405,11 @@ private Mono createOrUpdateAsync( } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -1438,11 +1432,11 @@ private Mono createOrUpdateAsync( } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -1458,11 +1452,11 @@ public StorageTargetInner createOrUpdate( } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, - * the actual creation/modification of the Storage Target may be delayed until the cache is healthy again. + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, + * the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -1485,8 +1479,8 @@ public StorageTargetInner createOrUpdate( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1540,8 +1534,8 @@ private Mono>> restoreDefaultsWithResponseAsync( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -1593,8 +1587,8 @@ private Mono>> restoreDefaultsWithResponseAsync( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1616,8 +1610,8 @@ private PollerFlux, Void> beginRestoreDefaultsAsync( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -1640,8 +1634,8 @@ private PollerFlux, Void> beginRestoreDefaultsAsync( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1658,8 +1652,8 @@ public SyncPoller, Void> beginRestoreDefaults( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -1677,8 +1671,8 @@ public SyncPoller, Void> beginRestoreDefaults( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1696,8 +1690,8 @@ private Mono restoreDefaultsAsync(String resourceGroupName, String cacheNa /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -1717,8 +1711,8 @@ private Mono restoreDefaultsAsync( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1733,8 +1727,8 @@ public void restoreDefaults(String resourceGroupName, String cacheName, String s /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/UsageModelsClientImpl.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/UsageModelsClientImpl.java index 035d3f82dc8e..5b83bf780b67 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/UsageModelsClientImpl.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/UsageModelsClientImpl.java @@ -79,11 +79,11 @@ Mono> listNext( } /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * * @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 list of cache usage models available to this subscription along with {@link PagedResponse} on + * @return the list of Cache Usage Models available to this subscription along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -124,13 +124,13 @@ private Mono> listSinglePageAsync() { } /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * * @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 list of cache usage models available to this subscription along with {@link PagedResponse} on + * @return the list of Cache Usage Models available to this subscription along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -168,11 +168,11 @@ private Mono> listSinglePageAsync(Context context } /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * * @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 list of cache usage models available to this subscription as paginated response with {@link + * @return the list of Cache Usage Models available to this subscription as paginated response with {@link * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -181,13 +181,13 @@ private PagedFlux listAsync() { } /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * * @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 list of cache usage models available to this subscription as paginated response with {@link + * @return the list of Cache Usage Models available to this subscription as paginated response with {@link * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -197,11 +197,11 @@ private PagedFlux listAsync(Context context) { } /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * * @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 list of cache usage models available to this subscription as paginated response with {@link + * @return the list of Cache Usage Models available to this subscription as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -210,13 +210,13 @@ public PagedIterable list() { } /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * * @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 list of cache usage models available to this subscription as paginated response with {@link + * @return the list of Cache Usage Models available to this subscription as paginated response with {@link * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -232,7 +232,7 @@ public PagedIterable list(Context context) { * @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 list of cache usage models along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return a list of Cache usage models along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -269,7 +269,7 @@ private Mono> listNextSinglePageAsync(String next * @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 list of cache usage models along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return a list of Cache usage models along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystem.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystem.java deleted file mode 100644 index 85816bc8bec3..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystem.java +++ /dev/null @@ -1,466 +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.models; - -import com.azure.core.http.rest.Response; -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.AmlFilesystemInner; -import java.util.List; -import java.util.Map; - -/** An immutable client-side representation of AmlFilesystem. */ -public interface AmlFilesystem { - /** - * 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 identity property: The managed identity used by the AML file system, if configured. - * - * @return the identity value. - */ - AmlFilesystemIdentity identity(); - - /** - * Gets the sku property: SKU for the resource. - * - * @return the sku value. - */ - SkuName sku(); - - /** - * Gets the zones property: Availability zones for resources. This field should only contain a single element in the - * array. - * - * @return the zones value. - */ - List zones(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the storageCapacityTiB property: The size of the AML file system, in TiB. This might be rounded up. - * - * @return the storageCapacityTiB value. - */ - float storageCapacityTiB(); - - /** - * Gets the health property: Health of the AML file system. - * - * @return the health value. - */ - AmlFilesystemHealth health(); - - /** - * Gets the provisioningState property: ARM provisioning state. - * - * @return the provisioningState value. - */ - AmlFilesystemProvisioningStateType provisioningState(); - - /** - * Gets the filesystemSubnet property: Subnet used for managing the AML file system and for client-facing - * operations. This subnet should have at least a /24 subnet mask within the VNET's address space. - * - * @return the filesystemSubnet value. - */ - String filesystemSubnet(); - - /** - * Gets the mgsAddress property: The IPv4 address used by clients to mount the AML file system's Lustre Management - * Service (MGS). - * - * @return the mgsAddress value. - */ - String mgsAddress(); - - /** - * Gets the mountCommand property: Recommended command to mount the AML file system. - * - * @return the mountCommand value. - */ - String mountCommand(); - - /** - * Gets the lustreVersion property: The version of Lustre running in the AML file system. - * - * @return the lustreVersion value. - */ - String lustreVersion(); - - /** - * Gets the throughputProvisionedMBps property: Throughput provisioned in MB per sec, calculated as - * storageCapacityTiB * per-unit storage throughput. - * - * @return the throughputProvisionedMBps value. - */ - Integer throughputProvisionedMBps(); - - /** - * Gets the encryptionSettings property: Specifies encryption settings of the AML file system. - * - * @return the encryptionSettings value. - */ - AmlFilesystemEncryptionSettings encryptionSettings(); - - /** - * Gets the maintenanceWindow property: Start time of a 30-minute weekly maintenance window. - * - * @return the maintenanceWindow value. - */ - AmlFilesystemPropertiesMaintenanceWindow maintenanceWindow(); - - /** - * Gets the hsm property: Hydration and archive settings and status. - * - * @return the hsm value. - */ - AmlFilesystemPropertiesHsm hsm(); - - /** - * 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.AmlFilesystemInner object. - * - * @return the inner object. - */ - AmlFilesystemInner innerModel(); - - /** The entirety of the AmlFilesystem definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, - DefinitionStages.WithCreate { - } - /** The AmlFilesystem definition stages. */ - interface DefinitionStages { - /** The first stage of the AmlFilesystem definition. */ - interface Blank extends WithLocation { - } - /** The stage of the AmlFilesystem 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. - */ - WithResourceGroup withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(String location); - } - /** The stage of the AmlFilesystem definition allowing to specify parent resource. */ - interface WithResourceGroup { - /** - * Specifies resourceGroupName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithCreate withExistingResourceGroup(String resourceGroupName); - } - /** - * The stage of the AmlFilesystem 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.WithIdentity, - DefinitionStages.WithSku, - DefinitionStages.WithZones, - DefinitionStages.WithStorageCapacityTiB, - DefinitionStages.WithFilesystemSubnet, - DefinitionStages.WithEncryptionSettings, - DefinitionStages.WithMaintenanceWindow, - DefinitionStages.WithHsm { - /** - * Executes the create request. - * - * @return the created resource. - */ - AmlFilesystem create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - AmlFilesystem create(Context context); - } - /** The stage of the AmlFilesystem 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 AmlFilesystem definition allowing to specify identity. */ - interface WithIdentity { - /** - * Specifies the identity property: The managed identity used by the AML file system, if configured.. - * - * @param identity The managed identity used by the AML file system, if configured. - * @return the next definition stage. - */ - WithCreate withIdentity(AmlFilesystemIdentity identity); - } - /** The stage of the AmlFilesystem definition allowing to specify sku. */ - interface WithSku { - /** - * Specifies the sku property: SKU for the resource.. - * - * @param sku SKU for the resource. - * @return the next definition stage. - */ - WithCreate withSku(SkuName sku); - } - /** The stage of the AmlFilesystem definition allowing to specify zones. */ - interface WithZones { - /** - * Specifies the zones property: Availability zones for resources. This field should only contain a single - * element in the array.. - * - * @param zones Availability zones for resources. This field should only contain a single element in the - * array. - * @return the next definition stage. - */ - WithCreate withZones(List zones); - } - /** The stage of the AmlFilesystem definition allowing to specify storageCapacityTiB. */ - interface WithStorageCapacityTiB { - /** - * Specifies the storageCapacityTiB property: The size of the AML file system, in TiB. This might be rounded - * up.. - * - * @param storageCapacityTiB The size of the AML file system, in TiB. This might be rounded up. - * @return the next definition stage. - */ - WithCreate withStorageCapacityTiB(float storageCapacityTiB); - } - /** The stage of the AmlFilesystem definition allowing to specify filesystemSubnet. */ - interface WithFilesystemSubnet { - /** - * Specifies the filesystemSubnet property: Subnet used for managing the AML file system and for - * client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address - * space.. - * - * @param filesystemSubnet Subnet used for managing the AML file system and for client-facing operations. - * This subnet should have at least a /24 subnet mask within the VNET's address space. - * @return the next definition stage. - */ - WithCreate withFilesystemSubnet(String filesystemSubnet); - } - /** The stage of the AmlFilesystem definition allowing to specify encryptionSettings. */ - interface WithEncryptionSettings { - /** - * Specifies the encryptionSettings property: Specifies encryption settings of the AML file system.. - * - * @param encryptionSettings Specifies encryption settings of the AML file system. - * @return the next definition stage. - */ - WithCreate withEncryptionSettings(AmlFilesystemEncryptionSettings encryptionSettings); - } - /** The stage of the AmlFilesystem definition allowing to specify maintenanceWindow. */ - interface WithMaintenanceWindow { - /** - * Specifies the maintenanceWindow property: Start time of a 30-minute weekly maintenance window.. - * - * @param maintenanceWindow Start time of a 30-minute weekly maintenance window. - * @return the next definition stage. - */ - WithCreate withMaintenanceWindow(AmlFilesystemPropertiesMaintenanceWindow maintenanceWindow); - } - /** The stage of the AmlFilesystem definition allowing to specify hsm. */ - interface WithHsm { - /** - * Specifies the hsm property: Hydration and archive settings and status. - * - * @param hsm Hydration and archive settings and status. - * @return the next definition stage. - */ - WithCreate withHsm(AmlFilesystemPropertiesHsm hsm); - } - } - /** - * Begins update for the AmlFilesystem resource. - * - * @return the stage of resource update. - */ - AmlFilesystem.Update update(); - - /** The template for AmlFilesystem update. */ - interface Update - extends UpdateStages.WithTags, UpdateStages.WithEncryptionSettings, UpdateStages.WithMaintenanceWindow { - /** - * Executes the update request. - * - * @return the updated resource. - */ - AmlFilesystem apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - AmlFilesystem apply(Context context); - } - /** The AmlFilesystem update stages. */ - interface UpdateStages { - /** The stage of the AmlFilesystem 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); - } - /** The stage of the AmlFilesystem update allowing to specify encryptionSettings. */ - interface WithEncryptionSettings { - /** - * Specifies the encryptionSettings property: Specifies encryption settings of the AML file system.. - * - * @param encryptionSettings Specifies encryption settings of the AML file system. - * @return the next definition stage. - */ - Update withEncryptionSettings(AmlFilesystemEncryptionSettings encryptionSettings); - } - /** The stage of the AmlFilesystem update allowing to specify maintenanceWindow. */ - interface WithMaintenanceWindow { - /** - * Specifies the maintenanceWindow property: Start time of a 30-minute weekly maintenance window.. - * - * @param maintenanceWindow Start time of a 30-minute weekly maintenance window. - * @return the next definition stage. - */ - Update withMaintenanceWindow(AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - AmlFilesystem refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - AmlFilesystem refresh(Context context); - - /** - * Archive data from the AML file system. - * - * @param archiveInfo Information about the archive operation. - * @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 Response}. - */ - Response archiveWithResponse(AmlFilesystemArchiveInfo archiveInfo, Context context); - - /** - * Archive data from the AML file system. - * - * @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 archive(); - - /** - * Cancel archiving data from the AML file system. - * - * @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 Response}. - */ - Response cancelArchiveWithResponse(Context context); - - /** - * Cancel archiving data from the AML file system. - * - * @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 cancelArchive(); -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchive.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchive.java deleted file mode 100644 index 96794797a87b..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchive.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Information about the AML file system archive. */ -@Immutable -public final class AmlFilesystemArchive { - /* - * Lustre file system path to archive relative to the file system root. Specify '/' to archive all modified data. - */ - @JsonProperty(value = "filesystemPath", access = JsonProperty.Access.WRITE_ONLY) - private String filesystemPath; - - /* - * The status of the archive - */ - @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) - private AmlFilesystemArchiveStatus status; - - /** Creates an instance of AmlFilesystemArchive class. */ - public AmlFilesystemArchive() { - } - - /** - * Get the filesystemPath property: Lustre file system path to archive relative to the file system root. Specify '/' - * to archive all modified data. - * - * @return the filesystemPath value. - */ - public String filesystemPath() { - return this.filesystemPath; - } - - /** - * Get the status property: The status of the archive. - * - * @return the status value. - */ - public AmlFilesystemArchiveStatus status() { - return this.status; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (status() != null) { - status().validate(); - } - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchiveInfo.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchiveInfo.java deleted file mode 100644 index b89b45f5dc2e..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchiveInfo.java +++ /dev/null @@ -1,52 +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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Information required to execute the archive operation. */ -@Fluent -public final class AmlFilesystemArchiveInfo { - /* - * Lustre file system path to archive relative to the file system root. Specify '/' to archive all modified data. - */ - @JsonProperty(value = "filesystemPath") - private String filesystemPath; - - /** Creates an instance of AmlFilesystemArchiveInfo class. */ - public AmlFilesystemArchiveInfo() { - } - - /** - * Get the filesystemPath property: Lustre file system path to archive relative to the file system root. Specify '/' - * to archive all modified data. - * - * @return the filesystemPath value. - */ - public String filesystemPath() { - return this.filesystemPath; - } - - /** - * Set the filesystemPath property: Lustre file system path to archive relative to the file system root. Specify '/' - * to archive all modified data. - * - * @param filesystemPath the filesystemPath value to set. - * @return the AmlFilesystemArchiveInfo object itself. - */ - public AmlFilesystemArchiveInfo withFilesystemPath(String filesystemPath) { - this.filesystemPath = filesystemPath; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchiveStatus.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchiveStatus.java deleted file mode 100644 index 3f2b4d97bfcb..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchiveStatus.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; - -/** The status of the archive. */ -@Immutable -public final class AmlFilesystemArchiveStatus { - /* - * The state of the archive operation - */ - @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) - private ArchiveStatusType state; - - /* - * The time of the last completed archive operation - */ - @JsonProperty(value = "lastCompletionTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastCompletionTime; - - /* - * The time the latest archive operation started - */ - @JsonProperty(value = "lastStartedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastStartedTime; - - /* - * The completion percentage of the archive operation - */ - @JsonProperty(value = "percentComplete", access = JsonProperty.Access.WRITE_ONLY) - private Integer percentComplete; - - /* - * Server-defined error code for the archive operation - */ - @JsonProperty(value = "errorCode", access = JsonProperty.Access.WRITE_ONLY) - private String errorCode; - - /* - * Server-defined error message for the archive operation - */ - @JsonProperty(value = "errorMessage", access = JsonProperty.Access.WRITE_ONLY) - private String errorMessage; - - /** Creates an instance of AmlFilesystemArchiveStatus class. */ - public AmlFilesystemArchiveStatus() { - } - - /** - * Get the state property: The state of the archive operation. - * - * @return the state value. - */ - public ArchiveStatusType state() { - return this.state; - } - - /** - * Get the lastCompletionTime property: The time of the last completed archive operation. - * - * @return the lastCompletionTime value. - */ - public OffsetDateTime lastCompletionTime() { - return this.lastCompletionTime; - } - - /** - * Get the lastStartedTime property: The time the latest archive operation started. - * - * @return the lastStartedTime value. - */ - public OffsetDateTime lastStartedTime() { - return this.lastStartedTime; - } - - /** - * Get the percentComplete property: The completion percentage of the archive operation. - * - * @return the percentComplete value. - */ - public Integer percentComplete() { - return this.percentComplete; - } - - /** - * Get the errorCode property: Server-defined error code for the archive operation. - * - * @return the errorCode value. - */ - public String errorCode() { - return this.errorCode; - } - - /** - * Get the errorMessage property: Server-defined error message for the archive operation. - * - * @return the errorMessage value. - */ - public String errorMessage() { - return this.errorMessage; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetError.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetError.java deleted file mode 100644 index c0912c91bb30..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetError.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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The error details provided when the checkAmlFSSubnets call fails. */ -@Fluent -public final class AmlFilesystemCheckSubnetError { - /* - * The error details for the AML file system's subnet. - */ - @JsonProperty(value = "filesystemSubnet") - private AmlFilesystemCheckSubnetErrorFilesystemSubnet filesystemSubnet; - - /** Creates an instance of AmlFilesystemCheckSubnetError class. */ - public AmlFilesystemCheckSubnetError() { - } - - /** - * Get the filesystemSubnet property: The error details for the AML file system's subnet. - * - * @return the filesystemSubnet value. - */ - public AmlFilesystemCheckSubnetErrorFilesystemSubnet filesystemSubnet() { - return this.filesystemSubnet; - } - - /** - * Set the filesystemSubnet property: The error details for the AML file system's subnet. - * - * @param filesystemSubnet the filesystemSubnet value to set. - * @return the AmlFilesystemCheckSubnetError object itself. - */ - public AmlFilesystemCheckSubnetError withFilesystemSubnet( - AmlFilesystemCheckSubnetErrorFilesystemSubnet filesystemSubnet) { - this.filesystemSubnet = filesystemSubnet; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (filesystemSubnet() != null) { - filesystemSubnet().validate(); - } - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetErrorException.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetErrorException.java deleted file mode 100644 index 8a5799a6add9..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetErrorException.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.models; - -import com.azure.core.exception.HttpResponseException; -import com.azure.core.http.HttpResponse; - -/** Exception thrown for an invalid response with AmlFilesystemCheckSubnetError information. */ -public final class AmlFilesystemCheckSubnetErrorException extends HttpResponseException { - /** - * Initializes a new instance of the AmlFilesystemCheckSubnetErrorException class. - * - * @param message the exception message or the response content if a message is not available. - * @param response the HTTP response. - */ - public AmlFilesystemCheckSubnetErrorException(String message, HttpResponse response) { - super(message, response); - } - - /** - * Initializes a new instance of the AmlFilesystemCheckSubnetErrorException class. - * - * @param message the exception message or the response content if a message is not available. - * @param response the HTTP response. - * @param value the deserialized response value. - */ - public AmlFilesystemCheckSubnetErrorException( - String message, HttpResponse response, AmlFilesystemCheckSubnetError value) { - super(message, response, value); - } - - /** {@inheritDoc} */ - @Override - public AmlFilesystemCheckSubnetError getValue() { - return (AmlFilesystemCheckSubnetError) super.getValue(); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetErrorFilesystemSubnet.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetErrorFilesystemSubnet.java deleted file mode 100644 index 59a16b53f52c..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetErrorFilesystemSubnet.java +++ /dev/null @@ -1,76 +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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The error details for the AML file system's subnet. */ -@Fluent -public final class AmlFilesystemCheckSubnetErrorFilesystemSubnet { - /* - * The status of the AML file system subnet check. - */ - @JsonProperty(value = "status") - private FilesystemSubnetStatusType status; - - /* - * The details of the AML file system subnet check. - */ - @JsonProperty(value = "message") - private String message; - - /** Creates an instance of AmlFilesystemCheckSubnetErrorFilesystemSubnet class. */ - public AmlFilesystemCheckSubnetErrorFilesystemSubnet() { - } - - /** - * Get the status property: The status of the AML file system subnet check. - * - * @return the status value. - */ - public FilesystemSubnetStatusType status() { - return this.status; - } - - /** - * Set the status property: The status of the AML file system subnet check. - * - * @param status the status value to set. - * @return the AmlFilesystemCheckSubnetErrorFilesystemSubnet object itself. - */ - public AmlFilesystemCheckSubnetErrorFilesystemSubnet withStatus(FilesystemSubnetStatusType status) { - this.status = status; - return this; - } - - /** - * Get the message property: The details of the AML file system subnet check. - * - * @return the message value. - */ - public String message() { - return this.message; - } - - /** - * Set the message property: The details of the AML file system subnet check. - * - * @param message the message value to set. - * @return the AmlFilesystemCheckSubnetErrorFilesystemSubnet object itself. - */ - public AmlFilesystemCheckSubnetErrorFilesystemSubnet withMessage(String message) { - this.message = message; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemEncryptionSettings.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemEncryptionSettings.java deleted file mode 100644 index d3878e52db3b..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemEncryptionSettings.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** AML file system encryption settings. */ -@Fluent -public final class AmlFilesystemEncryptionSettings { - /* - * Specifies the location of the encryption key in Key Vault. - */ - @JsonProperty(value = "keyEncryptionKey") - private KeyVaultKeyReference keyEncryptionKey; - - /** Creates an instance of AmlFilesystemEncryptionSettings class. */ - public AmlFilesystemEncryptionSettings() { - } - - /** - * Get the keyEncryptionKey property: Specifies the location of the encryption key in Key Vault. - * - * @return the keyEncryptionKey value. - */ - public KeyVaultKeyReference keyEncryptionKey() { - return this.keyEncryptionKey; - } - - /** - * Set the keyEncryptionKey property: Specifies the location of the encryption key in Key Vault. - * - * @param keyEncryptionKey the keyEncryptionKey value to set. - * @return the AmlFilesystemEncryptionSettings object itself. - */ - public AmlFilesystemEncryptionSettings withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey) { - this.keyEncryptionKey = keyEncryptionKey; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (keyEncryptionKey() != null) { - keyEncryptionKey().validate(); - } - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHealth.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHealth.java deleted file mode 100644 index 36483fedc749..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHealth.java +++ /dev/null @@ -1,104 +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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * An indication of AML file system health. Gives more information about health than just that related to provisioning. - */ -@Fluent -public final class AmlFilesystemHealth { - /* - * List of AML file system health states. - */ - @JsonProperty(value = "state") - private AmlFilesystemHealthStateType state; - - /* - * Server-defined error code for the AML file system health - */ - @JsonProperty(value = "statusCode") - private String statusCode; - - /* - * Describes the health state. - */ - @JsonProperty(value = "statusDescription") - private String statusDescription; - - /** Creates an instance of AmlFilesystemHealth class. */ - public AmlFilesystemHealth() { - } - - /** - * Get the state property: List of AML file system health states. - * - * @return the state value. - */ - public AmlFilesystemHealthStateType state() { - return this.state; - } - - /** - * Set the state property: List of AML file system health states. - * - * @param state the state value to set. - * @return the AmlFilesystemHealth object itself. - */ - public AmlFilesystemHealth withState(AmlFilesystemHealthStateType state) { - this.state = state; - return this; - } - - /** - * Get the statusCode property: Server-defined error code for the AML file system health. - * - * @return the statusCode value. - */ - public String statusCode() { - return this.statusCode; - } - - /** - * Set the statusCode property: Server-defined error code for the AML file system health. - * - * @param statusCode the statusCode value to set. - * @return the AmlFilesystemHealth object itself. - */ - public AmlFilesystemHealth withStatusCode(String statusCode) { - this.statusCode = statusCode; - return this; - } - - /** - * Get the statusDescription property: Describes the health state. - * - * @return the statusDescription value. - */ - public String statusDescription() { - return this.statusDescription; - } - - /** - * Set the statusDescription property: Describes the health state. - * - * @param statusDescription the statusDescription value to set. - * @return the AmlFilesystemHealth object itself. - */ - public AmlFilesystemHealth withStatusDescription(String statusDescription) { - this.statusDescription = statusDescription; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHealthStateType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHealthStateType.java deleted file mode 100644 index db49174800f4..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHealthStateType.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.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** List of AML file system health states. */ -public final class AmlFilesystemHealthStateType extends ExpandableStringEnum { - /** Static value Unavailable for AmlFilesystemHealthStateType. */ - public static final AmlFilesystemHealthStateType UNAVAILABLE = fromString("Unavailable"); - - /** Static value Available for AmlFilesystemHealthStateType. */ - public static final AmlFilesystemHealthStateType AVAILABLE = fromString("Available"); - - /** Static value Degraded for AmlFilesystemHealthStateType. */ - public static final AmlFilesystemHealthStateType DEGRADED = fromString("Degraded"); - - /** Static value Transitioning for AmlFilesystemHealthStateType. */ - public static final AmlFilesystemHealthStateType TRANSITIONING = fromString("Transitioning"); - - /** Static value Maintenance for AmlFilesystemHealthStateType. */ - public static final AmlFilesystemHealthStateType MAINTENANCE = fromString("Maintenance"); - - /** - * Creates a new instance of AmlFilesystemHealthStateType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AmlFilesystemHealthStateType() { - } - - /** - * Creates or finds a AmlFilesystemHealthStateType from its string representation. - * - * @param name a name to look for. - * @return the corresponding AmlFilesystemHealthStateType. - */ - @JsonCreator - public static AmlFilesystemHealthStateType fromString(String name) { - return fromString(name, AmlFilesystemHealthStateType.class); - } - - /** - * Gets known AmlFilesystemHealthStateType values. - * - * @return known AmlFilesystemHealthStateType values. - */ - public static Collection values() { - return values(AmlFilesystemHealthStateType.class); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHsmSettings.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHsmSettings.java deleted file mode 100644 index 68f2b3bb2b2d..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHsmSettings.java +++ /dev/null @@ -1,129 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** AML file system HSM settings. */ -@Fluent -public final class AmlFilesystemHsmSettings { - /* - * Resource ID of storage container used for hydrating the namespace and archiving from the namespace. The resource - * provider must have permission to create SAS tokens on the storage account. - */ - @JsonProperty(value = "container", required = true) - private String container; - - /* - * Resource ID of storage container used for logging events and errors. Must be a separate container in the same - * storage account as the hydration and archive container. The resource provider must have permission to create SAS - * tokens on the storage account. - */ - @JsonProperty(value = "loggingContainer", required = true) - private String loggingContainer; - - /* - * Only blobs in the non-logging container that start with this path/prefix get hydrated into the cluster - * namespace. - */ - @JsonProperty(value = "importPrefix") - private String importPrefix; - - /** Creates an instance of AmlFilesystemHsmSettings class. */ - public AmlFilesystemHsmSettings() { - } - - /** - * Get the container property: Resource ID of storage container used for hydrating the namespace and archiving from - * the namespace. The resource provider must have permission to create SAS tokens on the storage account. - * - * @return the container value. - */ - public String container() { - return this.container; - } - - /** - * Set the container property: Resource ID of storage container used for hydrating the namespace and archiving from - * the namespace. The resource provider must have permission to create SAS tokens on the storage account. - * - * @param container the container value to set. - * @return the AmlFilesystemHsmSettings object itself. - */ - public AmlFilesystemHsmSettings withContainer(String container) { - this.container = container; - return this; - } - - /** - * Get the loggingContainer property: Resource ID of storage container used for logging events and errors. Must be a - * separate container in the same storage account as the hydration and archive container. The resource provider must - * have permission to create SAS tokens on the storage account. - * - * @return the loggingContainer value. - */ - public String loggingContainer() { - return this.loggingContainer; - } - - /** - * Set the loggingContainer property: Resource ID of storage container used for logging events and errors. Must be a - * separate container in the same storage account as the hydration and archive container. The resource provider must - * have permission to create SAS tokens on the storage account. - * - * @param loggingContainer the loggingContainer value to set. - * @return the AmlFilesystemHsmSettings object itself. - */ - public AmlFilesystemHsmSettings withLoggingContainer(String loggingContainer) { - this.loggingContainer = loggingContainer; - return this; - } - - /** - * Get the importPrefix property: Only blobs in the non-logging container that start with this path/prefix get - * hydrated into the cluster namespace. - * - * @return the importPrefix value. - */ - public String importPrefix() { - return this.importPrefix; - } - - /** - * Set the importPrefix property: Only blobs in the non-logging container that start with this path/prefix get - * hydrated into the cluster namespace. - * - * @param importPrefix the importPrefix value to set. - * @return the AmlFilesystemHsmSettings object itself. - */ - public AmlFilesystemHsmSettings withImportPrefix(String importPrefix) { - this.importPrefix = importPrefix; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (container() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property container in model AmlFilesystemHsmSettings")); - } - if (loggingContainer() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property loggingContainer in model AmlFilesystemHsmSettings")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AmlFilesystemHsmSettings.class); -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemIdentity.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemIdentity.java deleted file mode 100644 index 35d12fc026a7..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemIdentity.java +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** Managed Identity properties. */ -@Fluent -public class AmlFilesystemIdentity { - /* - * The principal ID for the user-assigned identity of the resource. - */ - @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) - private String principalId; - - /* - * The tenant ID associated with the resource. - */ - @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) - private String tenantId; - - /* - * The type of identity used for the resource. - */ - @JsonProperty(value = "type") - private AmlFilesystemIdentityType type; - - /* - * A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty - * dictionary. - */ - @JsonProperty(value = "userAssignedIdentities") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map userAssignedIdentities; - - /** Creates an instance of AmlFilesystemIdentity class. */ - public AmlFilesystemIdentity() { - } - - /** - * Get the principalId property: The principal ID for the user-assigned identity of the resource. - * - * @return the principalId value. - */ - public String principalId() { - return this.principalId; - } - - /** - * Get the tenantId property: The tenant ID associated with the resource. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Get the type property: The type of identity used for the resource. - * - * @return the type value. - */ - public AmlFilesystemIdentityType type() { - return this.type; - } - - /** - * Set the type property: The type of identity used for the resource. - * - * @param type the type value to set. - * @return the AmlFilesystemIdentity object itself. - */ - public AmlFilesystemIdentity withType(AmlFilesystemIdentityType type) { - this.type = type; - return this; - } - - /** - * Get the userAssignedIdentities property: A dictionary where each key is a user assigned identity resource ID, and - * each key's value is an empty dictionary. - * - * @return the userAssignedIdentities value. - */ - public Map userAssignedIdentities() { - return this.userAssignedIdentities; - } - - /** - * Set the userAssignedIdentities property: A dictionary where each key is a user assigned identity resource ID, and - * each key's value is an empty dictionary. - * - * @param userAssignedIdentities the userAssignedIdentities value to set. - * @return the AmlFilesystemIdentity object itself. - */ - public AmlFilesystemIdentity withUserAssignedIdentities( - Map userAssignedIdentities) { - this.userAssignedIdentities = userAssignedIdentities; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (userAssignedIdentities() != null) { - userAssignedIdentities() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemIdentityType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemIdentityType.java deleted file mode 100644 index f8ff0fc68779..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemIdentityType.java +++ /dev/null @@ -1,51 +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.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** The type of identity used for the resource. */ -public enum AmlFilesystemIdentityType { - /** Enum value UserAssigned. */ - USER_ASSIGNED("UserAssigned"), - - /** Enum value None. */ - NONE("None"); - - /** The actual serialized value for a AmlFilesystemIdentityType instance. */ - private final String value; - - AmlFilesystemIdentityType(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a AmlFilesystemIdentityType instance. - * - * @param value the serialized value to parse. - * @return the parsed AmlFilesystemIdentityType object, or null if unable to parse. - */ - @JsonCreator - public static AmlFilesystemIdentityType fromString(String value) { - if (value == null) { - return null; - } - AmlFilesystemIdentityType[] items = AmlFilesystemIdentityType.values(); - for (AmlFilesystemIdentityType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - /** {@inheritDoc} */ - @JsonValue - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemPropertiesHsm.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemPropertiesHsm.java deleted file mode 100644 index b5fa3d77f0b8..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemPropertiesHsm.java +++ /dev/null @@ -1,72 +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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Hydration and archive settings and status. */ -@Fluent -public final class AmlFilesystemPropertiesHsm { - /* - * Specifies HSM settings of the AML file system. - */ - @JsonProperty(value = "settings") - private AmlFilesystemHsmSettings settings; - - /* - * Archive status - */ - @JsonProperty(value = "archiveStatus", access = JsonProperty.Access.WRITE_ONLY) - private List archiveStatus; - - /** Creates an instance of AmlFilesystemPropertiesHsm class. */ - public AmlFilesystemPropertiesHsm() { - } - - /** - * Get the settings property: Specifies HSM settings of the AML file system. - * - * @return the settings value. - */ - public AmlFilesystemHsmSettings settings() { - return this.settings; - } - - /** - * Set the settings property: Specifies HSM settings of the AML file system. - * - * @param settings the settings value to set. - * @return the AmlFilesystemPropertiesHsm object itself. - */ - public AmlFilesystemPropertiesHsm withSettings(AmlFilesystemHsmSettings settings) { - this.settings = settings; - return this; - } - - /** - * Get the archiveStatus property: Archive status. - * - * @return the archiveStatus value. - */ - public List archiveStatus() { - return this.archiveStatus; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (settings() != null) { - settings().validate(); - } - if (archiveStatus() != null) { - archiveStatus().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemPropertiesMaintenanceWindow.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemPropertiesMaintenanceWindow.java deleted file mode 100644 index 51d04e6d9385..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemPropertiesMaintenanceWindow.java +++ /dev/null @@ -1,76 +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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Start time of a 30-minute weekly maintenance window. */ -@Fluent -public final class AmlFilesystemPropertiesMaintenanceWindow { - /* - * Day of the week on which the maintenance window will occur. - */ - @JsonProperty(value = "dayOfWeek") - private MaintenanceDayOfWeekType dayOfWeek; - - /* - * The time of day (in UTC) to start the maintenance window. - */ - @JsonProperty(value = "timeOfDayUTC") - private String timeOfDayUtc; - - /** Creates an instance of AmlFilesystemPropertiesMaintenanceWindow class. */ - public AmlFilesystemPropertiesMaintenanceWindow() { - } - - /** - * Get the dayOfWeek property: Day of the week on which the maintenance window will occur. - * - * @return the dayOfWeek value. - */ - public MaintenanceDayOfWeekType dayOfWeek() { - return this.dayOfWeek; - } - - /** - * Set the dayOfWeek property: Day of the week on which the maintenance window will occur. - * - * @param dayOfWeek the dayOfWeek value to set. - * @return the AmlFilesystemPropertiesMaintenanceWindow object itself. - */ - public AmlFilesystemPropertiesMaintenanceWindow withDayOfWeek(MaintenanceDayOfWeekType dayOfWeek) { - this.dayOfWeek = dayOfWeek; - return this; - } - - /** - * Get the timeOfDayUtc property: The time of day (in UTC) to start the maintenance window. - * - * @return the timeOfDayUtc value. - */ - public String timeOfDayUtc() { - return this.timeOfDayUtc; - } - - /** - * Set the timeOfDayUtc property: The time of day (in UTC) to start the maintenance window. - * - * @param timeOfDayUtc the timeOfDayUtc value to set. - * @return the AmlFilesystemPropertiesMaintenanceWindow object itself. - */ - public AmlFilesystemPropertiesMaintenanceWindow withTimeOfDayUtc(String timeOfDayUtc) { - this.timeOfDayUtc = timeOfDayUtc; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemProvisioningStateType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemProvisioningStateType.java deleted file mode 100644 index 7c92c9fc0f0d..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemProvisioningStateType.java +++ /dev/null @@ -1,59 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** ARM provisioning state. */ -public final class AmlFilesystemProvisioningStateType extends ExpandableStringEnum { - /** Static value Succeeded for AmlFilesystemProvisioningStateType. */ - public static final AmlFilesystemProvisioningStateType SUCCEEDED = fromString("Succeeded"); - - /** Static value Failed for AmlFilesystemProvisioningStateType. */ - public static final AmlFilesystemProvisioningStateType FAILED = fromString("Failed"); - - /** Static value Creating for AmlFilesystemProvisioningStateType. */ - public static final AmlFilesystemProvisioningStateType CREATING = fromString("Creating"); - - /** Static value Deleting for AmlFilesystemProvisioningStateType. */ - public static final AmlFilesystemProvisioningStateType DELETING = fromString("Deleting"); - - /** Static value Updating for AmlFilesystemProvisioningStateType. */ - public static final AmlFilesystemProvisioningStateType UPDATING = fromString("Updating"); - - /** Static value Canceled for AmlFilesystemProvisioningStateType. */ - public static final AmlFilesystemProvisioningStateType CANCELED = fromString("Canceled"); - - /** - * Creates a new instance of AmlFilesystemProvisioningStateType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AmlFilesystemProvisioningStateType() { - } - - /** - * Creates or finds a AmlFilesystemProvisioningStateType from its string representation. - * - * @param name a name to look for. - * @return the corresponding AmlFilesystemProvisioningStateType. - */ - @JsonCreator - public static AmlFilesystemProvisioningStateType fromString(String name) { - return fromString(name, AmlFilesystemProvisioningStateType.class); - } - - /** - * Gets known AmlFilesystemProvisioningStateType values. - * - * @return known AmlFilesystemProvisioningStateType values. - */ - public static Collection values() { - return values(AmlFilesystemProvisioningStateType.class); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemSubnetInfo.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemSubnetInfo.java deleted file mode 100644 index 784687ae5eca..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemSubnetInfo.java +++ /dev/null @@ -1,134 +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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Information required to validate the subnet that will be used in AML file system create. */ -@Fluent -public final class AmlFilesystemSubnetInfo { - /* - * Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least - * a /24 subnet mask within the VNET's address space. - */ - @JsonProperty(value = "filesystemSubnet") - private String filesystemSubnet; - - /* - * The size of the AML file system, in TiB. - */ - @JsonProperty(value = "storageCapacityTiB") - private Float storageCapacityTiB; - - /* - * SKU for the resource. - */ - @JsonProperty(value = "sku") - private SkuName sku; - - /* - * Region that the AML file system will be created in. - */ - @JsonProperty(value = "location") - private String location; - - /** Creates an instance of AmlFilesystemSubnetInfo class. */ - public AmlFilesystemSubnetInfo() { - } - - /** - * Get the filesystemSubnet property: Subnet used for managing the AML file system and for client-facing operations. - * This subnet should have at least a /24 subnet mask within the VNET's address space. - * - * @return the filesystemSubnet value. - */ - public String filesystemSubnet() { - return this.filesystemSubnet; - } - - /** - * Set the filesystemSubnet property: Subnet used for managing the AML file system and for client-facing operations. - * This subnet should have at least a /24 subnet mask within the VNET's address space. - * - * @param filesystemSubnet the filesystemSubnet value to set. - * @return the AmlFilesystemSubnetInfo object itself. - */ - public AmlFilesystemSubnetInfo withFilesystemSubnet(String filesystemSubnet) { - this.filesystemSubnet = filesystemSubnet; - return this; - } - - /** - * Get the storageCapacityTiB property: The size of the AML file system, in TiB. - * - * @return the storageCapacityTiB value. - */ - public Float storageCapacityTiB() { - return this.storageCapacityTiB; - } - - /** - * Set the storageCapacityTiB property: The size of the AML file system, in TiB. - * - * @param storageCapacityTiB the storageCapacityTiB value to set. - * @return the AmlFilesystemSubnetInfo object itself. - */ - public AmlFilesystemSubnetInfo withStorageCapacityTiB(Float storageCapacityTiB) { - this.storageCapacityTiB = storageCapacityTiB; - return this; - } - - /** - * Get the sku property: SKU for the resource. - * - * @return the sku value. - */ - public SkuName sku() { - return this.sku; - } - - /** - * Set the sku property: SKU for the resource. - * - * @param sku the sku value to set. - * @return the AmlFilesystemSubnetInfo object itself. - */ - public AmlFilesystemSubnetInfo withSku(SkuName sku) { - this.sku = sku; - return this; - } - - /** - * Get the location property: Region that the AML file system will be created in. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: Region that the AML file system will be created in. - * - * @param location the location value to set. - * @return the AmlFilesystemSubnetInfo object itself. - */ - public AmlFilesystemSubnetInfo withLocation(String location) { - this.location = location; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sku() != null) { - sku().validate(); - } - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemUpdate.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemUpdate.java deleted file mode 100644 index 36af932d1cd5..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemUpdate.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.storagecache.fluent.models.AmlFilesystemUpdateProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** An AML file system update instance. */ -@Fluent -public final class AmlFilesystemUpdate { - /* - * Resource tags. - */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) - private Map tags; - - /* - * Properties of the AML file system. - */ - @JsonProperty(value = "properties") - private AmlFilesystemUpdateProperties innerProperties; - - /** Creates an instance of AmlFilesystemUpdate class. */ - public AmlFilesystemUpdate() { - } - - /** - * 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 AmlFilesystemUpdate object itself. - */ - public AmlFilesystemUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the innerProperties property: Properties of the AML file system. - * - * @return the innerProperties value. - */ - private AmlFilesystemUpdateProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the encryptionSettings property: Specifies encryption settings of the AML file system. - * - * @return the encryptionSettings value. - */ - public AmlFilesystemEncryptionSettings encryptionSettings() { - return this.innerProperties() == null ? null : this.innerProperties().encryptionSettings(); - } - - /** - * Set the encryptionSettings property: Specifies encryption settings of the AML file system. - * - * @param encryptionSettings the encryptionSettings value to set. - * @return the AmlFilesystemUpdate object itself. - */ - public AmlFilesystemUpdate withEncryptionSettings(AmlFilesystemEncryptionSettings encryptionSettings) { - if (this.innerProperties() == null) { - this.innerProperties = new AmlFilesystemUpdateProperties(); - } - this.innerProperties().withEncryptionSettings(encryptionSettings); - return this; - } - - /** - * Get the maintenanceWindow property: Start time of a 30-minute weekly maintenance window. - * - * @return the maintenanceWindow value. - */ - public AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow() { - return this.innerProperties() == null ? null : this.innerProperties().maintenanceWindow(); - } - - /** - * Set the maintenanceWindow property: Start time of a 30-minute weekly maintenance window. - * - * @param maintenanceWindow the maintenanceWindow value to set. - * @return the AmlFilesystemUpdate object itself. - */ - public AmlFilesystemUpdate withMaintenanceWindow(AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow) { - if (this.innerProperties() == null) { - this.innerProperties = new AmlFilesystemUpdateProperties(); - } - this.innerProperties().withMaintenanceWindow(maintenanceWindow); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemUpdatePropertiesMaintenanceWindow.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemUpdatePropertiesMaintenanceWindow.java deleted file mode 100644 index 813247f6054e..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemUpdatePropertiesMaintenanceWindow.java +++ /dev/null @@ -1,76 +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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Start time of a 30-minute weekly maintenance window. */ -@Fluent -public final class AmlFilesystemUpdatePropertiesMaintenanceWindow { - /* - * Day of the week on which the maintenance window will occur. - */ - @JsonProperty(value = "dayOfWeek") - private MaintenanceDayOfWeekType dayOfWeek; - - /* - * The time of day (in UTC) to start the maintenance window. - */ - @JsonProperty(value = "timeOfDayUTC") - private String timeOfDayUtc; - - /** Creates an instance of AmlFilesystemUpdatePropertiesMaintenanceWindow class. */ - public AmlFilesystemUpdatePropertiesMaintenanceWindow() { - } - - /** - * Get the dayOfWeek property: Day of the week on which the maintenance window will occur. - * - * @return the dayOfWeek value. - */ - public MaintenanceDayOfWeekType dayOfWeek() { - return this.dayOfWeek; - } - - /** - * Set the dayOfWeek property: Day of the week on which the maintenance window will occur. - * - * @param dayOfWeek the dayOfWeek value to set. - * @return the AmlFilesystemUpdatePropertiesMaintenanceWindow object itself. - */ - public AmlFilesystemUpdatePropertiesMaintenanceWindow withDayOfWeek(MaintenanceDayOfWeekType dayOfWeek) { - this.dayOfWeek = dayOfWeek; - return this; - } - - /** - * Get the timeOfDayUtc property: The time of day (in UTC) to start the maintenance window. - * - * @return the timeOfDayUtc value. - */ - public String timeOfDayUtc() { - return this.timeOfDayUtc; - } - - /** - * Set the timeOfDayUtc property: The time of day (in UTC) to start the maintenance window. - * - * @param timeOfDayUtc the timeOfDayUtc value to set. - * @return the AmlFilesystemUpdatePropertiesMaintenanceWindow object itself. - */ - public AmlFilesystemUpdatePropertiesMaintenanceWindow withTimeOfDayUtc(String timeOfDayUtc) { - this.timeOfDayUtc = timeOfDayUtc; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystems.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystems.java deleted file mode 100644 index 7797cd4d9f49..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystems.java +++ /dev/null @@ -1,214 +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.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 AmlFilesystems. */ -public interface AmlFilesystems { - /** - * Returns all AML file systems the user has access to under a subscription. - * - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * Returns all AML file systems the user has access to under a subscription. - * - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - PagedIterable list(Context context); - - /** - * Returns all AML file systems the user has access to under a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Returns all AML file systems the user has access to under a resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 AML file systems as paginated response with {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Schedules an AML file system 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. - * @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 deleteByResourceGroup(String resourceGroupName, String amlFilesystemName); - - /** - * Schedules an AML file system 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 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, Context context); - - /** - * Returns 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 an AML file system instance along with {@link Response}. - */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String amlFilesystemName, Context context); - - /** - * Returns 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 an AML file system instance. - */ - AmlFilesystem getByResourceGroup(String resourceGroupName, String amlFilesystemName); - - /** - * Archive data from the 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 archiveInfo Information about the archive operation. - * @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 Response}. - */ - Response archiveWithResponse( - String resourceGroupName, String amlFilesystemName, AmlFilesystemArchiveInfo archiveInfo, Context context); - - /** - * Archive data from the 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. - */ - void archive(String resourceGroupName, String amlFilesystemName); - - /** - * Cancel archiving data from the 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 the {@link Response}. - */ - Response cancelArchiveWithResponse(String resourceGroupName, String amlFilesystemName, Context context); - - /** - * Cancel archiving data from the 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. - */ - void cancelArchive(String resourceGroupName, String amlFilesystemName); - - /** - * Returns an AML file system. - * - * @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 AML file system instance along with {@link Response}. - */ - AmlFilesystem getById(String id); - - /** - * Returns an AML file system. - * - * @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 AML file system instance along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Schedules an AML file system 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 AML file system 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 AmlFilesystem resource. - * - * @param name resource name. - * @return the first stage of the new AmlFilesystem definition. - */ - AmlFilesystem.DefinitionStages.Blank define(String name); -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemsListResult.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemsListResult.java deleted file mode 100644 index e6970ef1d9c3..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemsListResult.java +++ /dev/null @@ -1,84 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.storagecache.fluent.models.AmlFilesystemInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** - * Result of the request to list AML file systems. It contains a list of AML file systems and a URL link to get the next - * set of results. - */ -@Fluent -public final class AmlFilesystemsListResult { - /* - * URL to get the next set of AML file system list results, if there are any. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /* - * List of AML file systems. - */ - @JsonProperty(value = "value") - private List value; - - /** Creates an instance of AmlFilesystemsListResult class. */ - public AmlFilesystemsListResult() { - } - - /** - * Get the nextLink property: URL to get the next set of AML file system 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 AML file system list results, if there are any. - * - * @param nextLink the nextLink value to set. - * @return the AmlFilesystemsListResult object itself. - */ - public AmlFilesystemsListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Get the value property: List of AML file systems. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of AML file systems. - * - * @param value the value value to set. - * @return the AmlFilesystemsListResult object itself. - */ - public AmlFilesystemsListResult 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()); - } - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ArchiveStatusType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ArchiveStatusType.java deleted file mode 100644 index b97a4af73cb3..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ArchiveStatusType.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.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** The state of the archive operation. */ -public final class ArchiveStatusType extends ExpandableStringEnum { - /** Static value NotConfigured for ArchiveStatusType. */ - public static final ArchiveStatusType NOT_CONFIGURED = fromString("NotConfigured"); - - /** Static value Idle for ArchiveStatusType. */ - public static final ArchiveStatusType IDLE = fromString("Idle"); - - /** Static value InProgress for ArchiveStatusType. */ - public static final ArchiveStatusType IN_PROGRESS = fromString("InProgress"); - - /** Static value Canceled for ArchiveStatusType. */ - public static final ArchiveStatusType CANCELED = fromString("Canceled"); - - /** Static value Completed for ArchiveStatusType. */ - public static final ArchiveStatusType COMPLETED = fromString("Completed"); - - /** Static value Failed for ArchiveStatusType. */ - public static final ArchiveStatusType FAILED = fromString("Failed"); - - /** Static value Cancelling for ArchiveStatusType. */ - public static final ArchiveStatusType CANCELLING = fromString("Cancelling"); - - /** Static value FSScanInProgress for ArchiveStatusType. */ - public static final ArchiveStatusType FSSCAN_IN_PROGRESS = fromString("FSScanInProgress"); - - /** - * Creates a new instance of ArchiveStatusType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ArchiveStatusType() { - } - - /** - * Creates or finds a ArchiveStatusType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ArchiveStatusType. - */ - @JsonCreator - public static ArchiveStatusType fromString(String name) { - return fromString(name, ArchiveStatusType.class); - } - - /** - * Gets known ArchiveStatusType values. - * - * @return known ArchiveStatusType values. - */ - public static Collection values() { - return values(ArchiveStatusType.class); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AscOperations.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AscOperations.java index 1689f53cf463..48ed72aa2137 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AscOperations.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AscOperations.java @@ -12,8 +12,8 @@ public interface AscOperations { /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous operation. * @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. @@ -25,8 +25,8 @@ public interface AscOperations { /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous 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. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/Cache.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/Cache.java index f0f101e954cd..7e5ebacfaa97 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/Cache.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/Cache.java @@ -63,41 +63,28 @@ public interface Cache { SystemData systemData(); /** - * Gets the sku property: SKU for the cache. + * Gets the sku property: SKU for the Cache. * * @return the sku value. */ CacheSku sku(); /** - * Gets the cacheSizeGB property: The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the - * cache SKU - <a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>. + * Gets the cacheSizeGB property: The size of this Cache, in GB. * * @return the cacheSizeGB value. */ Integer cacheSizeGB(); /** - * Gets the scalingFactor property: Multiplier that sets the current storage and throughput capacity of the cache. - * Values depend on the cache SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List SKUs</a>. Values - * above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33% - * larger than its base size. - * - * @return the scalingFactor value. - */ - Double scalingFactor(); - - /** - * Gets the health property: Health of the cache. + * Gets the health property: Health of the Cache. * * @return the health value. */ CacheHealth health(); /** - * Gets the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache. + * Gets the mountAddresses property: Array of IP addresses that can be used by clients mounting this Cache. * * @return the mountAddresses value. */ @@ -112,21 +99,21 @@ public interface Cache { ProvisioningStateType provisioningState(); /** - * Gets the subnet property: Subnet used for the cache. + * Gets the subnet property: Subnet used for the Cache. * * @return the subnet value. */ String subnet(); /** - * Gets the upgradeStatus property: Upgrade status of the cache. + * Gets the upgradeStatus property: Upgrade status of the Cache. * * @return the upgradeStatus value. */ CacheUpgradeStatus upgradeStatus(); /** - * Gets the upgradeSettings property: Upgrade settings of the cache. + * Gets the upgradeSettings property: Upgrade settings of the Cache. * * @return the upgradeSettings value. */ @@ -246,7 +233,7 @@ interface WithResourceGroup { /** * Specifies resourceGroupName. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @return the next definition stage. */ WithCreate withExistingResourceGroup(String resourceGroupName); @@ -260,7 +247,6 @@ interface WithCreate DefinitionStages.WithIdentity, DefinitionStages.WithSku, DefinitionStages.WithCacheSizeGB, - DefinitionStages.WithScalingFactor, DefinitionStages.WithSubnet, DefinitionStages.WithUpgradeSettings, DefinitionStages.WithNetworkSettings, @@ -306,9 +292,9 @@ interface WithIdentity { /** The stage of the Cache definition allowing to specify sku. */ interface WithSku { /** - * Specifies the sku property: SKU for the cache.. + * Specifies the sku property: SKU for the Cache.. * - * @param sku SKU for the cache. + * @param sku SKU for the Cache. * @return the next definition stage. */ WithCreate withSku(CacheSku sku); @@ -316,43 +302,19 @@ interface WithSku { /** The stage of the Cache definition allowing to specify cacheSizeGB. */ interface WithCacheSizeGB { /** - * Specifies the cacheSizeGB property: The size of this cache, in GB, when scalingFactor is 1.0. Values - * depend on the cache SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>.. + * Specifies the cacheSizeGB property: The size of this Cache, in GB.. * - * @param cacheSizeGB The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the cache - * SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>. + * @param cacheSizeGB The size of this Cache, in GB. * @return the next definition stage. */ WithCreate withCacheSizeGB(Integer cacheSizeGB); } - /** The stage of the Cache definition allowing to specify scalingFactor. */ - interface WithScalingFactor { - /** - * Specifies the scalingFactor property: Multiplier that sets the current storage and throughput capacity of - * the cache. Values depend on the cache SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>. Values above 1.0 increase the cache size and throughput - for example, the scaling factor - * 1.33 gives a cache that's 33% larger than its base size.. - * - * @param scalingFactor Multiplier that sets the current storage and throughput capacity of the cache. - * Values depend on the cache SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>. Values above 1.0 increase the cache size and throughput - for example, the scaling - * factor 1.33 gives a cache that's 33% larger than its base size. - * @return the next definition stage. - */ - WithCreate withScalingFactor(Double scalingFactor); - } /** The stage of the Cache definition allowing to specify subnet. */ interface WithSubnet { /** - * Specifies the subnet property: Subnet used for the cache.. + * Specifies the subnet property: Subnet used for the Cache.. * - * @param subnet Subnet used for the cache. + * @param subnet Subnet used for the Cache. * @return the next definition stage. */ WithCreate withSubnet(String subnet); @@ -360,9 +322,9 @@ interface WithSubnet { /** The stage of the Cache definition allowing to specify upgradeSettings. */ interface WithUpgradeSettings { /** - * Specifies the upgradeSettings property: Upgrade settings of the cache.. + * Specifies the upgradeSettings property: Upgrade settings of the Cache.. * - * @param upgradeSettings Upgrade settings of the cache. + * @param upgradeSettings Upgrade settings of the Cache. * @return the next definition stage. */ WithCreate withUpgradeSettings(CacheUpgradeSettings upgradeSettings); @@ -431,7 +393,6 @@ interface WithZones { interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, - UpdateStages.WithScalingFactor, UpdateStages.WithUpgradeSettings, UpdateStages.WithNetworkSettings, UpdateStages.WithEncryptionSettings, @@ -474,30 +435,12 @@ interface WithIdentity { */ Update withIdentity(CacheIdentity identity); } - /** The stage of the Cache update allowing to specify scalingFactor. */ - interface WithScalingFactor { - /** - * Specifies the scalingFactor property: Multiplier that sets the current storage and throughput capacity of - * the cache. Values depend on the cache SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>. Values above 1.0 increase the cache size and throughput - for example, the scaling factor - * 1.33 gives a cache that's 33% larger than its base size.. - * - * @param scalingFactor Multiplier that sets the current storage and throughput capacity of the cache. - * Values depend on the cache SKU - <a - * href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List - * SKUs</a>. Values above 1.0 increase the cache size and throughput - for example, the scaling - * factor 1.33 gives a cache that's 33% larger than its base size. - * @return the next definition stage. - */ - Update withScalingFactor(Double scalingFactor); - } /** The stage of the Cache update allowing to specify upgradeSettings. */ interface WithUpgradeSettings { /** - * Specifies the upgradeSettings property: Upgrade settings of the cache.. + * Specifies the upgradeSettings property: Upgrade settings of the Cache.. * - * @param upgradeSettings Upgrade settings of the cache. + * @param upgradeSettings Upgrade settings of the Cache. * @return the next definition stage. */ Update withUpgradeSettings(CacheUpgradeSettings upgradeSettings); @@ -559,7 +502,7 @@ interface WithDirectoryServicesSettings { Cache refresh(Context context); /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * * @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. @@ -567,7 +510,7 @@ interface WithDirectoryServicesSettings { void debugInfo(); /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -577,7 +520,7 @@ interface WithDirectoryServicesSettings { void debugInfo(Context context); /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -586,7 +529,7 @@ interface WithDirectoryServicesSettings { void flush(); /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * * @param context The context to associate with this operation. @@ -597,7 +540,7 @@ interface WithDirectoryServicesSettings { void flush(Context context); /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * * @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. @@ -605,7 +548,7 @@ interface WithDirectoryServicesSettings { void start(); /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -615,7 +558,7 @@ interface WithDirectoryServicesSettings { void start(Context context); /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * * @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. @@ -623,7 +566,7 @@ interface WithDirectoryServicesSettings { void stop(); /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -709,7 +652,7 @@ interface WithDirectoryServicesSettings { void resumePrimingJob(PrimingJobIdParameter primingJobId, Context context); /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * * @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. @@ -717,7 +660,7 @@ interface WithDirectoryServicesSettings { void upgradeFirmware(); /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheActiveDirectorySettingsCredentials.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheActiveDirectorySettingsCredentials.java index 33223c7d416d..28c85585dbc3 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheActiveDirectorySettingsCredentials.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheActiveDirectorySettingsCredentials.java @@ -22,7 +22,7 @@ public final class CacheActiveDirectorySettingsCredentials { * Plain text password of the Active Directory domain administrator. This value is stored encrypted and not * returned on response. */ - @JsonProperty(value = "password") + @JsonProperty(value = "password", required = true) private String password; /** Creates an instance of CacheActiveDirectorySettingsCredentials class. */ @@ -85,6 +85,12 @@ public void validate() { new IllegalArgumentException( "Missing required property username in model CacheActiveDirectorySettingsCredentials")); } + if (password() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property password in model CacheActiveDirectorySettingsCredentials")); + } } private static final ClientLogger LOGGER = new ClientLogger(CacheActiveDirectorySettingsCredentials.class); diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheEncryptionSettings.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheEncryptionSettings.java index 9a3bc70b9137..27b1367a8461 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheEncryptionSettings.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheEncryptionSettings.java @@ -11,13 +11,13 @@ @Fluent public final class CacheEncryptionSettings { /* - * Specifies the location of the key encryption key in key vault. + * Specifies the location of the key encryption key in Key Vault. */ @JsonProperty(value = "keyEncryptionKey") private KeyVaultKeyReference keyEncryptionKey; /* - * Specifies whether the service will automatically rotate to the newest version of the key in the key vault. + * Specifies whether the service will automatically rotate to the newest version of the key in the Key Vault. */ @JsonProperty(value = "rotationToLatestKeyVersionEnabled") private Boolean rotationToLatestKeyVersionEnabled; @@ -27,7 +27,7 @@ public CacheEncryptionSettings() { } /** - * Get the keyEncryptionKey property: Specifies the location of the key encryption key in key vault. + * Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault. * * @return the keyEncryptionKey value. */ @@ -36,7 +36,7 @@ public KeyVaultKeyReference keyEncryptionKey() { } /** - * Set the keyEncryptionKey property: Specifies the location of the key encryption key in key vault. + * Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault. * * @param keyEncryptionKey the keyEncryptionKey value to set. * @return the CacheEncryptionSettings object itself. @@ -48,7 +48,7 @@ public CacheEncryptionSettings withKeyEncryptionKey(KeyVaultKeyReference keyEncr /** * Get the rotationToLatestKeyVersionEnabled property: Specifies whether the service will automatically rotate to - * the newest version of the key in the key vault. + * the newest version of the key in the Key Vault. * * @return the rotationToLatestKeyVersionEnabled value. */ @@ -58,7 +58,7 @@ public Boolean rotationToLatestKeyVersionEnabled() { /** * Set the rotationToLatestKeyVersionEnabled property: Specifies whether the service will automatically rotate to - * the newest version of the key in the key vault. + * the newest version of the key in the Key Vault. * * @param rotationToLatestKeyVersionEnabled the rotationToLatestKeyVersionEnabled value to set. * @return the CacheEncryptionSettings object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheHealth.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheHealth.java index 9a68c2d40fc5..0932be6d1c92 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheHealth.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheHealth.java @@ -8,14 +8,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** An indication of cache health. Gives more information about health than just that related to provisioning. */ +/** An indication of Cache health. Gives more information about health than just that related to provisioning. */ @Fluent public final class CacheHealth { /* - * List of cache health states. Down is when the cluster is not responding. Degraded is when its functioning but - * has some alerts. Transitioning when it is creating or deleting. Unknown will be returned in old api versions - * when a new value is added in future versions. WaitingForKey is when the create is waiting for the system - * assigned identity to be given access to the encryption key in the encryption settings. + * List of Cache health states. */ @JsonProperty(value = "state") private HealthStateType state; @@ -37,10 +34,7 @@ public CacheHealth() { } /** - * Get the state property: List of cache health states. Down is when the cluster is not responding. Degraded is when - * its functioning but has some alerts. Transitioning when it is creating or deleting. Unknown will be returned in - * old api versions when a new value is added in future versions. WaitingForKey is when the create is waiting for - * the system assigned identity to be given access to the encryption key in the encryption settings. + * Get the state property: List of Cache health states. * * @return the state value. */ @@ -49,10 +43,7 @@ public HealthStateType state() { } /** - * Set the state property: List of cache health states. Down is when the cluster is not responding. Degraded is when - * its functioning but has some alerts. Transitioning when it is creating or deleting. Unknown will be returned in - * old api versions when a new value is added in future versions. WaitingForKey is when the create is waiting for - * the system assigned identity to be given access to the encryption key in the encryption settings. + * Set the state property: List of Cache health states. * * @param state the state value to set. * @return the CacheHealth object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheIdentity.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheIdentity.java index 9b089c65e978..ea22cc123d47 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheIdentity.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheIdentity.java @@ -11,7 +11,7 @@ /** Cache identity properties. */ @Fluent -public class CacheIdentity { +public final class CacheIdentity { /* * The principal ID for the system-assigned identity of the cache. */ diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheNetworkSettings.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheNetworkSettings.java index 8cfe70e3db21..bc34ffcfaa43 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheNetworkSettings.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheNetworkSettings.java @@ -18,7 +18,7 @@ public final class CacheNetworkSettings { private Integer mtu; /* - * Array of additional IP addresses used by this cache. + * Array of additional IP addresses used by this Cache. */ @JsonProperty(value = "utilityAddresses", access = JsonProperty.Access.WRITE_ONLY) private List utilityAddresses; @@ -66,7 +66,7 @@ public CacheNetworkSettings withMtu(Integer mtu) { } /** - * Get the utilityAddresses property: Array of additional IP addresses used by this cache. + * Get the utilityAddresses property: Array of additional IP addresses used by this Cache. * * @return the utilityAddresses value. */ diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheSku.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheSku.java index df3aa429f66f..26dadeb725fa 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheSku.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheSku.java @@ -7,11 +7,11 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** SKU for the cache. */ +/** SKU for the Cache. */ @Fluent public final class CacheSku { /* - * SKU name for this cache. + * SKU name for this Cache. */ @JsonProperty(value = "name") private String name; @@ -21,7 +21,7 @@ public CacheSku() { } /** - * Get the name property: SKU name for this cache. + * Get the name property: SKU name for this Cache. * * @return the name value. */ @@ -30,7 +30,7 @@ public String name() { } /** - * Set the name property: SKU name for this cache. + * Set the name property: SKU name for this Cache. * * @param name the name value to set. * @return the CacheSku object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheUpgradeStatus.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheUpgradeStatus.java index 182f4aa7c1f6..e5d406cd7b0d 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheUpgradeStatus.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheUpgradeStatus.java @@ -8,24 +8,24 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Properties describing the software upgrade state of the cache. */ +/** Properties describing the software upgrade state of the Cache. */ @Immutable public final class CacheUpgradeStatus { /* - * Version string of the firmware currently installed on this cache. + * Version string of the firmware currently installed on this Cache. */ @JsonProperty(value = "currentFirmwareVersion", access = JsonProperty.Access.WRITE_ONLY) private String currentFirmwareVersion; /* - * True if there is a firmware update ready to install on this cache. The firmware will automatically be installed + * True if there is a firmware update ready to install on this Cache. The firmware will automatically be installed * after firmwareUpdateDeadline if not triggered earlier via the upgrade operation. */ @JsonProperty(value = "firmwareUpdateStatus", access = JsonProperty.Access.WRITE_ONLY) private FirmwareStatusType firmwareUpdateStatus; /* - * Time at which the pending firmware update will automatically be installed on the cache. + * Time at which the pending firmware update will automatically be installed on the Cache. */ @JsonProperty(value = "firmwareUpdateDeadline", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime firmwareUpdateDeadline; @@ -47,7 +47,7 @@ public CacheUpgradeStatus() { } /** - * Get the currentFirmwareVersion property: Version string of the firmware currently installed on this cache. + * Get the currentFirmwareVersion property: Version string of the firmware currently installed on this Cache. * * @return the currentFirmwareVersion value. */ @@ -56,7 +56,7 @@ public String currentFirmwareVersion() { } /** - * Get the firmwareUpdateStatus property: True if there is a firmware update ready to install on this cache. The + * Get the firmwareUpdateStatus property: True if there is a firmware update ready to install on this Cache. The * firmware will automatically be installed after firmwareUpdateDeadline if not triggered earlier via the upgrade * operation. * @@ -68,7 +68,7 @@ public FirmwareStatusType firmwareUpdateStatus() { /** * Get the firmwareUpdateDeadline property: Time at which the pending firmware update will automatically be - * installed on the cache. + * installed on the Cache. * * @return the firmwareUpdateDeadline value. */ diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/Caches.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/Caches.java index d28d597041fb..a8bd04fe6f89 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/Caches.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/Caches.java @@ -12,53 +12,53 @@ /** Resource collection API of Caches. */ public interface Caches { /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ PagedIterable list(); /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); /** - * Returns all caches the user has access to under a resource group. + * Returns all Caches the user has access to under a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** - * Returns all caches the user has access to under a resource group. + * Returns all Caches the user has access to under a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @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 caches as paginated response with {@link PagedIterable}. + * @return result of the request to list Caches as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -67,10 +67,10 @@ public interface Caches { void deleteByResourceGroup(String resourceGroupName, String cacheName); /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -80,37 +80,37 @@ public interface Caches { void delete(String resourceGroupName, String cacheName, Context context); /** - * Returns a cache. + * Returns a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 a cache instance along with {@link Response}. + * @return a Cache instance along with {@link Response}. */ Response getByResourceGroupWithResponse(String resourceGroupName, String cacheName, Context context); /** - * Returns a cache. + * Returns a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @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 a cache instance. + * @return a Cache instance. */ Cache getByResourceGroup(String resourceGroupName, String cacheName); /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -119,10 +119,10 @@ public interface Caches { void debugInfo(String resourceGroupName, String cacheName); /** - * Tells a cache to write generate debug info for support to process. + * Tells a Cache to write generate debug info for support to process. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,11 +132,11 @@ public interface Caches { void debugInfo(String resourceGroupName, String cacheName, Context context); /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -145,11 +145,11 @@ public interface Caches { void flush(String resourceGroupName, String cacheName); /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors * returned until the flush is complete. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -159,10 +159,10 @@ public interface Caches { void flush(String resourceGroupName, String cacheName, Context context); /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -171,10 +171,10 @@ public interface Caches { void start(String resourceGroupName, String cacheName); /** - * Tells a Stopped state cache to transition to Active state. + * Tells a Stopped state Cache to transition to Active state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -184,10 +184,10 @@ public interface Caches { void start(String resourceGroupName, String cacheName, Context context); /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -196,10 +196,10 @@ public interface Caches { void stop(String resourceGroupName, String cacheName); /** - * Tells an Active cache to transition to Stopped state. + * Tells an Active Cache to transition to Stopped state. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -211,8 +211,8 @@ public interface Caches { /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -223,8 +223,8 @@ public interface Caches { /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingjob Object containing the definition of a priming job. * @param context The context to associate with this operation. @@ -237,8 +237,8 @@ public interface Caches { /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -249,8 +249,8 @@ public interface Caches { /** * Schedule a priming job for deletion. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -264,8 +264,8 @@ void stopPrimingJob( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -276,8 +276,8 @@ void stopPrimingJob( /** * Schedule a priming job to be paused. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -291,8 +291,8 @@ void pausePrimingJob( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -303,8 +303,8 @@ void pausePrimingJob( /** * Resumes a paused priming job. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param primingJobId Object containing the priming job ID. * @param context The context to associate with this operation. @@ -316,10 +316,10 @@ void resumePrimingJob( String resourceGroupName, String cacheName, PrimingJobIdParameter primingJobId, Context context); /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -328,10 +328,10 @@ void resumePrimingJob( void upgradeFirmware(String resourceGroupName, String cacheName); /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -343,8 +343,8 @@ void resumePrimingJob( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -355,8 +355,8 @@ void resumePrimingJob( /** * Update cache space allocation. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param spaceAllocation List containing storage target cache space percentage allocations. * @param context The context to associate with this operation. @@ -371,30 +371,30 @@ void spaceAllocation( Context context); /** - * Returns a cache. + * Returns a Cache. * * @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 a cache instance along with {@link Response}. + * @return a Cache instance along with {@link Response}. */ Cache getById(String id); /** - * Returns a cache. + * Returns a Cache. * * @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 a cache instance along with {@link Response}. + * @return a Cache instance along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -404,7 +404,7 @@ void spaceAllocation( void deleteById(String id); /** - * Schedules a cache for deletion. + * Schedules a Cache for deletion. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CachesListResult.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CachesListResult.java index f4d5024be7cb..3a283bcf914a 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CachesListResult.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CachesListResult.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Result of the request to list caches. It contains a list of caches and a URL link to get the next set of results. */ +/** Result of the request to list Caches. It contains a list of Caches and a URL link to get the next set of results. */ @Fluent public final class CachesListResult { /* - * URL to get the next set of cache list results, if there are any. + * URL to get the next set of Cache list results, if there are any. */ @JsonProperty(value = "nextLink") private String nextLink; @@ -29,7 +29,7 @@ public CachesListResult() { } /** - * Get the nextLink property: URL to get the next set of cache list results, if there are any. + * Get the nextLink property: URL to get the next set of Cache list results, if there are any. * * @return the nextLink value. */ @@ -38,7 +38,7 @@ public String nextLink() { } /** - * Set the nextLink property: URL to get the next set of cache list results, if there are any. + * Set the nextLink property: URL to get the next set of Cache list results, if there are any. * * @param nextLink the nextLink value to set. * @return the CachesListResult object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/FilesystemSubnetStatusType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/FilesystemSubnetStatusType.java deleted file mode 100644 index 71a6c46706ea..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/FilesystemSubnetStatusType.java +++ /dev/null @@ -1,47 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** The status of the AML file system subnet check. */ -public final class FilesystemSubnetStatusType extends ExpandableStringEnum { - /** Static value Ok for FilesystemSubnetStatusType. */ - public static final FilesystemSubnetStatusType OK = fromString("Ok"); - - /** Static value Invalid for FilesystemSubnetStatusType. */ - public static final FilesystemSubnetStatusType INVALID = fromString("Invalid"); - - /** - * Creates a new instance of FilesystemSubnetStatusType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public FilesystemSubnetStatusType() { - } - - /** - * Creates or finds a FilesystemSubnetStatusType from its string representation. - * - * @param name a name to look for. - * @return the corresponding FilesystemSubnetStatusType. - */ - @JsonCreator - public static FilesystemSubnetStatusType fromString(String name) { - return fromString(name, FilesystemSubnetStatusType.class); - } - - /** - * Gets known FilesystemSubnetStatusType values. - * - * @return known FilesystemSubnetStatusType values. - */ - public static Collection values() { - return values(FilesystemSubnetStatusType.class); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/FirmwareStatusType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/FirmwareStatusType.java index 037a5d9e939a..ba3bd75d5615 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/FirmwareStatusType.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/FirmwareStatusType.java @@ -9,7 +9,7 @@ import java.util.Collection; /** - * True if there is a firmware update ready to install on this cache. The firmware will automatically be installed after + * True if there is a firmware update ready to install on this Cache. The firmware will automatically be installed after * firmwareUpdateDeadline if not triggered earlier via the upgrade operation. */ public final class FirmwareStatusType extends ExpandableStringEnum { diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/HealthStateType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/HealthStateType.java index 7a83955ef29b..26c3884355bc 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/HealthStateType.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/HealthStateType.java @@ -8,12 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** - * List of cache health states. Down is when the cluster is not responding. Degraded is when its functioning but has - * some alerts. Transitioning when it is creating or deleting. Unknown will be returned in old api versions when a new - * value is added in future versions. WaitingForKey is when the create is waiting for the system assigned identity to be - * given access to the encryption key in the encryption settings. - */ +/** List of Cache health states. */ public final class HealthStateType extends ExpandableStringEnum { /** Static value Unknown for HealthStateType. */ public static final HealthStateType UNKNOWN = fromString("Unknown"); diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/KeyVaultKeyReference.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/KeyVaultKeyReference.java index 66dfe8880e4f..6ae013733e60 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/KeyVaultKeyReference.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/KeyVaultKeyReference.java @@ -8,17 +8,17 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Describes a reference to key vault key. */ +/** Describes a reference to Key Vault Key. */ @Fluent public final class KeyVaultKeyReference { /* - * The URL referencing a key encryption key in key vault. + * The URL referencing a key encryption key in Key Vault. */ @JsonProperty(value = "keyUrl", required = true) private String keyUrl; /* - * Describes a resource Id to source key vault. + * Describes a resource Id to source Key Vault. */ @JsonProperty(value = "sourceVault", required = true) private KeyVaultKeyReferenceSourceVault sourceVault; @@ -28,7 +28,7 @@ public KeyVaultKeyReference() { } /** - * Get the keyUrl property: The URL referencing a key encryption key in key vault. + * Get the keyUrl property: The URL referencing a key encryption key in Key Vault. * * @return the keyUrl value. */ @@ -37,7 +37,7 @@ public String keyUrl() { } /** - * Set the keyUrl property: The URL referencing a key encryption key in key vault. + * Set the keyUrl property: The URL referencing a key encryption key in Key Vault. * * @param keyUrl the keyUrl value to set. * @return the KeyVaultKeyReference object itself. @@ -48,7 +48,7 @@ public KeyVaultKeyReference withKeyUrl(String keyUrl) { } /** - * Get the sourceVault property: Describes a resource Id to source key vault. + * Get the sourceVault property: Describes a resource Id to source Key Vault. * * @return the sourceVault value. */ @@ -57,7 +57,7 @@ public KeyVaultKeyReferenceSourceVault sourceVault() { } /** - * Set the sourceVault property: Describes a resource Id to source key vault. + * Set the sourceVault property: Describes a resource Id to source Key Vault. * * @param sourceVault the sourceVault value to set. * @return the KeyVaultKeyReference object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/KeyVaultKeyReferenceSourceVault.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/KeyVaultKeyReferenceSourceVault.java index a7ea7df48ce5..c46637b618e9 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/KeyVaultKeyReferenceSourceVault.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/KeyVaultKeyReferenceSourceVault.java @@ -7,7 +7,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Describes a resource Id to source key vault. */ +/** Describes a resource Id to source Key Vault. */ @Fluent public final class KeyVaultKeyReferenceSourceVault { /* diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/MaintenanceDayOfWeekType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/MaintenanceDayOfWeekType.java deleted file mode 100644 index 21bc867a1841..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/MaintenanceDayOfWeekType.java +++ /dev/null @@ -1,66 +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.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Day of the week on which the maintenance window will occur. */ -public enum MaintenanceDayOfWeekType { - /** Enum value Monday. */ - MONDAY("Monday"), - - /** Enum value Tuesday. */ - TUESDAY("Tuesday"), - - /** Enum value Wednesday. */ - WEDNESDAY("Wednesday"), - - /** Enum value Thursday. */ - THURSDAY("Thursday"), - - /** Enum value Friday. */ - FRIDAY("Friday"), - - /** Enum value Saturday. */ - SATURDAY("Saturday"), - - /** Enum value Sunday. */ - SUNDAY("Sunday"); - - /** The actual serialized value for a MaintenanceDayOfWeekType instance. */ - private final String value; - - MaintenanceDayOfWeekType(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a MaintenanceDayOfWeekType instance. - * - * @param value the serialized value to parse. - * @return the parsed MaintenanceDayOfWeekType object, or null if unable to parse. - */ - @JsonCreator - public static MaintenanceDayOfWeekType fromString(String value) { - if (value == null) { - return null; - } - MaintenanceDayOfWeekType[] items = MaintenanceDayOfWeekType.values(); - for (MaintenanceDayOfWeekType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - /** {@inheritDoc} */ - @JsonValue - @Override - public String toString() { - return this.value; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/NamespaceJunction.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/NamespaceJunction.java index a9b531761a19..9ebe734cd211 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/NamespaceJunction.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/NamespaceJunction.java @@ -11,7 +11,7 @@ @Fluent public final class NamespaceJunction { /* - * Namespace path on a cache for a Storage Target. + * Namespace path on a Cache for a Storage Target. */ @JsonProperty(value = "namespacePath") private String namespacePath; @@ -39,7 +39,7 @@ public NamespaceJunction() { } /** - * Get the namespacePath property: Namespace path on a cache for a Storage Target. + * Get the namespacePath property: Namespace path on a Cache for a Storage Target. * * @return the namespacePath value. */ @@ -48,7 +48,7 @@ public String namespacePath() { } /** - * Set the namespacePath property: Namespace path on a cache for a Storage Target. + * Set the namespacePath property: Namespace path on a Cache for a Storage Target. * * @param namespacePath the namespacePath value to set. * @return the NamespaceJunction object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ProvisioningStateType.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ProvisioningStateType.java index 07fb04dc8784..9ab09e08021c 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ProvisioningStateType.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ProvisioningStateType.java @@ -19,8 +19,8 @@ public final class ProvisioningStateType extends ExpandableStringEnum checkAmlFSSubnetsWithResponse(AmlFilesystemSubnetInfo amlFilesystemSubnetInfo, Context context); - - /** - * Check that subnets will be valid for AML file system create calls. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetErrorException thrown if the - * request is rejected by server on status code 400. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void checkAmlFSSubnets(); - - /** - * Get the number of available IP addresses needed for the AML file system information provided. - * - * @param requiredAmlFilesystemSubnetsSizeInfo Information to determine the number of available IPs a subnet will - * need to host the AML file system. - * @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 number of available IP addresses needed for the AML file system information provided along with - * {@link Response}. - */ - Response getRequiredAmlFSSubnetsSizeWithResponse( - RequiredAmlFilesystemSubnetsSizeInfo requiredAmlFilesystemSubnetsSizeInfo, Context context); - - /** - * Get the number of available IP addresses needed for the AML file system information provided. - * - * @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 number of available IP addresses needed for the AML file system information provided. - */ - RequiredAmlFilesystemSubnetsSize getRequiredAmlFSSubnetsSize(); -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ResourceSkusResult.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ResourceSkusResult.java index 92fc8b6607bd..8fe8c58d073f 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ResourceSkusResult.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ResourceSkusResult.java @@ -13,7 +13,7 @@ @Fluent public final class ResourceSkusResult { /* - * The URI to fetch the next page of cache SKUs. + * The URI to fetch the next page of Cache SKUs. */ @JsonProperty(value = "nextLink") private String nextLink; @@ -29,7 +29,7 @@ public ResourceSkusResult() { } /** - * Get the nextLink property: The URI to fetch the next page of cache SKUs. + * Get the nextLink property: The URI to fetch the next page of Cache SKUs. * * @return the nextLink value. */ @@ -38,7 +38,7 @@ public String nextLink() { } /** - * Set the nextLink property: The URI to fetch the next page of cache SKUs. + * Set the nextLink property: The URI to fetch the next page of Cache SKUs. * * @param nextLink the nextLink value to set. * @return the ResourceSkusResult object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/SkuName.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/SkuName.java deleted file mode 100644 index 46c82314151a..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/SkuName.java +++ /dev/null @@ -1,50 +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.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** SKU for the resource. */ -@Fluent -public final class SkuName { - /* - * SKU name for this resource. - */ - @JsonProperty(value = "name") - private String name; - - /** Creates an instance of SkuName class. */ - public SkuName() { - } - - /** - * Get the name property: SKU name for this resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: SKU name for this resource. - * - * @param name the name value to set. - * @return the SkuName object itself. - */ - public SkuName withName(String name) { - this.name = name; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTarget.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTarget.java index ba095a6bdb8a..256baa0f0935 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTarget.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTarget.java @@ -48,7 +48,7 @@ public interface StorageTarget { SystemData systemData(); /** - * Gets the junctions property: List of cache namespace junctions to target for namespace associations. + * Gets the junctions property: List of Cache namespace junctions to target for namespace associations. * * @return the junctions value. */ @@ -153,8 +153,8 @@ interface WithParentResource { /** * Specifies resourceGroupName, cacheName. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @return the next definition stage. */ @@ -190,10 +190,10 @@ interface WithCreate /** The stage of the StorageTarget definition allowing to specify junctions. */ interface WithJunctions { /** - * Specifies the junctions property: List of cache namespace junctions to target for namespace + * Specifies the junctions property: List of Cache namespace junctions to target for namespace * associations.. * - * @param junctions List of cache namespace junctions to target for namespace associations. + * @param junctions List of Cache namespace junctions to target for namespace associations. * @return the next definition stage. */ WithCreate withJunctions(List junctions); @@ -294,10 +294,10 @@ interface UpdateStages { /** The stage of the StorageTarget update allowing to specify junctions. */ interface WithJunctions { /** - * Specifies the junctions property: List of cache namespace junctions to target for namespace + * Specifies the junctions property: List of Cache namespace junctions to target for namespace * associations.. * - * @param junctions List of cache namespace junctions to target for namespace associations. + * @param junctions List of Cache namespace junctions to target for namespace associations. * @return the next definition stage. */ Update withJunctions(List junctions); diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetOperations.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetOperations.java index b83ba0de8d7c..ddb167240c29 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetOperations.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetOperations.java @@ -12,8 +12,8 @@ public interface StorageTargetOperations { * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,8 +26,8 @@ public interface StorageTargetOperations { * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage * target's namespace will return errors until the flush operation completes. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -40,8 +40,8 @@ public interface StorageTargetOperations { /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -53,8 +53,8 @@ public interface StorageTargetOperations { /** * Suspends client access to a storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -67,8 +67,8 @@ public interface StorageTargetOperations { /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -80,8 +80,8 @@ public interface StorageTargetOperations { /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -95,8 +95,8 @@ public interface StorageTargetOperations { * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -109,8 +109,8 @@ public interface StorageTargetOperations { * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the * next request. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetResource.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetResource.java index f6bf7a10cacc..d8faa80b23e7 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetResource.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetResource.java @@ -9,7 +9,7 @@ import com.azure.core.management.SystemData; import com.fasterxml.jackson.annotation.JsonProperty; -/** Resource used by a cache. */ +/** Resource used by a Cache. */ @Immutable public class StorageTargetResource extends ProxyResource { /* diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargets.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargets.java index b8f3a27c0bd1..5ee9e563858a 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargets.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargets.java @@ -13,8 +13,8 @@ public interface StorageTargets { /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,8 +26,8 @@ public interface StorageTargets { /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -38,10 +38,10 @@ public interface StorageTargets { void dnsRefresh(String resourceGroupName, String cacheName, String storageTargetName, Context context); /** - * Returns a list of Storage Targets for the specified cache. + * Returns a list of Storage Targets for the specified Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -51,10 +51,10 @@ public interface StorageTargets { PagedIterable listByCache(String resourceGroupName, String cacheName); /** - * Returns a list of Storage Targets for the specified cache. + * Returns a list of Storage Targets for the specified Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -65,13 +65,13 @@ public interface StorageTargets { PagedIterable listByCache(String resourceGroupName, String cacheName, Context context); /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -81,13 +81,13 @@ public interface StorageTargets { void delete(String resourceGroupName, String cacheName, String storageTargetName); /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param force Boolean value requesting the force delete operation for a storage target. Force delete discards @@ -100,10 +100,10 @@ public interface StorageTargets { void delete(String resourceGroupName, String cacheName, String storageTargetName, String force, Context context); /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -116,10 +116,10 @@ Response getWithResponse( String resourceGroupName, String cacheName, String storageTargetName, Context context); /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,8 +132,8 @@ Response getWithResponse( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -145,8 +145,8 @@ Response getWithResponse( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the * [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param context The context to associate with this operation. @@ -157,7 +157,7 @@ Response getWithResponse( void restoreDefaults(String resourceGroupName, String cacheName, String storageTargetName, Context context); /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -168,7 +168,7 @@ Response getWithResponse( StorageTarget getById(String id); /** - * Returns a Storage Target from a cache. + * Returns a Storage Target from a Cache. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -180,9 +180,9 @@ Response getWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * * @param id the resource ID. @@ -193,9 +193,9 @@ Response getWithResponse( void deleteById(String id); /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is down or - * unhealthy, the actual removal of the Storage Target may be delayed until the cache is healthy again. Note that if - * the cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or + * unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if + * the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be * deleted. * * @param id the resource ID. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetsResult.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetsResult.java index 4244ebf8d10a..84dd902ab0bb 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetsResult.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/StorageTargetsResult.java @@ -19,7 +19,7 @@ public final class StorageTargetsResult { private String nextLink; /* - * The list of Storage Targets defined for the cache. + * The list of Storage Targets defined for the Cache. */ @JsonProperty(value = "value") private List value; @@ -49,7 +49,7 @@ public StorageTargetsResult withNextLink(String nextLink) { } /** - * Get the value property: The list of Storage Targets defined for the cache. + * Get the value property: The list of Storage Targets defined for the Cache. * * @return the value value. */ @@ -58,7 +58,7 @@ public List value() { } /** - * Set the value property: The list of Storage Targets defined for the cache. + * Set the value property: The list of Storage Targets defined for the Cache. * * @param value the value value to set. * @return the StorageTargetsResult object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UsageModels.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UsageModels.java index b51920a27dda..12362741154d 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UsageModels.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UsageModels.java @@ -10,23 +10,23 @@ /** Resource collection API of UsageModels. */ public interface UsageModels { /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * * @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 list of cache usage models available to this subscription as paginated response with {@link + * @return the list of Cache Usage Models available to this subscription as paginated response with {@link * PagedIterable}. */ PagedIterable list(); /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * * @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 list of cache usage models available to this subscription as paginated response with {@link + * @return the list of Cache Usage Models available to this subscription as paginated response with {@link * PagedIterable}. */ PagedIterable list(Context context); diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UsageModelsResult.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UsageModelsResult.java index a027a17fb8c4..eb4e37a75667 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UsageModelsResult.java +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UsageModelsResult.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of cache usage models. */ +/** A list of Cache usage models. */ @Fluent public final class UsageModelsResult { /* - * The URI to fetch the next page of cache usage models. + * The URI to fetch the next page of Cache usage models. */ @JsonProperty(value = "nextLink") private String nextLink; @@ -29,7 +29,7 @@ public UsageModelsResult() { } /** - * Get the nextLink property: The URI to fetch the next page of cache usage models. + * Get the nextLink property: The URI to fetch the next page of Cache usage models. * * @return the nextLink value. */ @@ -38,7 +38,7 @@ public String nextLink() { } /** - * Set the nextLink property: The URI to fetch the next page of cache usage models. + * Set the nextLink property: The URI to fetch the next page of Cache usage models. * * @param nextLink the nextLink value to set. * @return the UsageModelsResult object itself. diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UserAssignedIdentitiesValueAutoGenerated.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UserAssignedIdentitiesValueAutoGenerated.java deleted file mode 100644 index 99ab8b429409..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UserAssignedIdentitiesValueAutoGenerated.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.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The UserAssignedIdentitiesValueAutoGenerated model. */ -@Immutable -public final class UserAssignedIdentitiesValueAutoGenerated { - /* - * The principal ID of the user-assigned identity. - */ - @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) - private String principalId; - - /* - * The client ID of the user-assigned identity. - */ - @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) - private String clientId; - - /** Creates an instance of UserAssignedIdentitiesValueAutoGenerated class. */ - public UserAssignedIdentitiesValueAutoGenerated() { - } - - /** - * Get the principalId property: The principal ID of the user-assigned identity. - * - * @return the principalId value. - */ - public String principalId() { - return this.principalId; - } - - /** - * Get the clientId property: The client ID of the user-assigned identity. - * - * @return the clientId value. - */ - public String clientId() { - return this.clientId; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} 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 deleted file mode 100644 index 7a01e1b06606..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveSamples.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.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo; - -/** Samples for AmlFilesystems Archive. */ -public final class AmlFilesystemsArchiveSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_Archive.json - */ - /** - * Sample code: amlFilesystems_Archive. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsArchive(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager - .amlFilesystems() - .archiveWithResponse( - "scgroup", - "sc", - new AmlFilesystemArchiveInfo().withFilesystemPath("/"), - com.azure.core.util.Context.NONE); - } -} 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 deleted file mode 100644 index e7177b60e527..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveSamples.java +++ /dev/null @@ -1,20 +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; - -/** Samples for AmlFilesystems CancelArchive. */ -public final class AmlFilesystemsCancelArchiveSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_CancelArchive.json - */ - /** - * Sample code: amlFilesystems_cancelArchive. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsCancelArchive(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.amlFilesystems().cancelArchiveWithResponse("scgroup", "sc", com.azure.core.util.Context.NONE); - } -} 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 deleted file mode 100644 index d39718161675..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCreateOrUpdateSamples.java +++ /dev/null @@ -1,87 +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.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemHsmSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentity; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentityType; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesHsm; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.KeyVaultKeyReference; -import com.azure.resourcemanager.storagecache.models.KeyVaultKeyReferenceSourceVault; -import com.azure.resourcemanager.storagecache.models.MaintenanceDayOfWeekType; -import com.azure.resourcemanager.storagecache.models.SkuName; -import com.azure.resourcemanager.storagecache.models.UserAssignedIdentitiesValueAutoGenerated; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** Samples for AmlFilesystems CreateOrUpdate. */ -public final class AmlFilesystemsCreateOrUpdateSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_CreateOrUpdate.json - */ - /** - * Sample code: amlFilesystems_CreateOrUpdate. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsCreateOrUpdate( - com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager - .amlFilesystems() - .define("fs1") - .withRegion("eastus") - .withExistingResourceGroup("scgroup") - .withTags(mapOf("Dept", "ContosoAds")) - .withIdentity( - new AmlFilesystemIdentity() - .withType(AmlFilesystemIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", - new UserAssignedIdentitiesValueAutoGenerated()))) - .withSku(new SkuName().withName("AMLFS-Durable-Premium-250")) - .withZones(Arrays.asList("1")) - .withStorageCapacityTiB(16f) - .withFilesystemSubnet( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/fsSub") - .withEncryptionSettings( - new AmlFilesystemEncryptionSettings() - .withKeyEncryptionKey( - new KeyVaultKeyReference() - .withKeyUrl("fakeTokenPlaceholder") - .withSourceVault( - new KeyVaultKeyReferenceSourceVault() - .withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk")))) - .withMaintenanceWindow( - new AmlFilesystemPropertiesMaintenanceWindow() - .withDayOfWeek(MaintenanceDayOfWeekType.FRIDAY) - .withTimeOfDayUtc("22:00")) - .withHsm( - new AmlFilesystemPropertiesHsm() - .withSettings( - new AmlFilesystemHsmSettings() - .withContainer( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Storage/storageAccounts/storageaccountname/blobServices/default/containers/containername") - .withLoggingContainer( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Storage/storageAccounts/storageaccountname/blobServices/default/containers/loggingcontainername") - .withImportPrefix("/"))) - .create(); - } - - @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/AmlFilesystemsDeleteSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteSamples.java deleted file mode 100644 index 46143be923cc..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteSamples.java +++ /dev/null @@ -1,20 +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; - -/** Samples for AmlFilesystems Delete. */ -public final class AmlFilesystemsDeleteSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_Delete.json - */ - /** - * Sample code: amlFilesystems_Delete. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsDelete(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.amlFilesystems().delete("scgroup", "fs1", com.azure.core.util.Context.NONE); - } -} 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 deleted file mode 100644 index c133f1687bb6..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsGetByResourceGroupSamples.java +++ /dev/null @@ -1,20 +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; - -/** Samples for AmlFilesystems GetByResourceGroup. */ -public final class AmlFilesystemsGetByResourceGroupSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_Get.json - */ - /** - * Sample code: amlFilesystems_Get. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsGet(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.amlFilesystems().getByResourceGroupWithResponse("scgroup", "fs1", com.azure.core.util.Context.NONE); - } -} 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 deleted file mode 100644 index 35036c4b5da6..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListByResourceGroupSamples.java +++ /dev/null @@ -1,21 +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; - -/** Samples for AmlFilesystems ListByResourceGroup. */ -public final class AmlFilesystemsListByResourceGroupSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_ListByResourceGroup.json - */ - /** - * Sample code: amlFilesystems_ListByResourceGroup. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsListByResourceGroup( - com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.amlFilesystems().listByResourceGroup("scgroup", com.azure.core.util.Context.NONE); - } -} 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 deleted file mode 100644 index 46838e19b346..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListSamples.java +++ /dev/null @@ -1,20 +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; - -/** Samples for AmlFilesystems List. */ -public final class AmlFilesystemsListSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_List.json - */ - /** - * Sample code: amlFilesystems_List. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsList(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.amlFilesystems().list(com.azure.core.util.Context.NONE); - } -} 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 deleted file mode 100644 index c8b25bfe43e4..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsUpdateSamples.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.resourcemanager.storagecache.models.AmlFilesystem; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.KeyVaultKeyReference; -import com.azure.resourcemanager.storagecache.models.KeyVaultKeyReferenceSourceVault; -import com.azure.resourcemanager.storagecache.models.MaintenanceDayOfWeekType; -import java.util.HashMap; -import java.util.Map; - -/** Samples for AmlFilesystems Update. */ -public final class AmlFilesystemsUpdateSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/amlFilesystems_Update.json - */ - /** - * Sample code: amlFilesystems_Update. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void amlFilesystemsUpdate(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - AmlFilesystem resource = - manager - .amlFilesystems() - .getByResourceGroupWithResponse("scgroup", "fs1", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withTags(mapOf("Dept", "ContosoAds")) - .withEncryptionSettings( - new AmlFilesystemEncryptionSettings() - .withKeyEncryptionKey( - new KeyVaultKeyReference() - .withKeyUrl("fakeTokenPlaceholder") - .withSourceVault( - new KeyVaultKeyReferenceSourceVault() - .withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk")))) - .withMaintenanceWindow( - new AmlFilesystemUpdatePropertiesMaintenanceWindow() - .withDayOfWeek(MaintenanceDayOfWeekType.FRIDAY) - .withTimeOfDayUtc("22:00")) - .apply(); - } - - @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/AscOperationsGetSamples.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AscOperationsGetSamples.java index 1004b7665349..98f08f1cc584 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 @@ -7,7 +7,7 @@ /** Samples for AscOperations Get. */ public final class AscOperationsGetSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/AscOperations_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/AscOperations_Get.json */ /** * Sample code: AscOperations_Get. 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 b809aea20668..7f31da55c648 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 @@ -7,7 +7,7 @@ /** Samples for AscUsages List. */ public final class AscUsagesListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/AscResourceUsages_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/AscResourceUsages_Get.json */ /** * Sample code: AscUsages_List. 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 9e707b0272cf..6fd05e43e65d 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 @@ -31,7 +31,7 @@ /** Samples for Caches CreateOrUpdate. */ public final class CachesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_CreateOrUpdate_ldap_only.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_CreateOrUpdate_ldap_only.json */ /** * Sample code: Caches_CreateOrUpdate_ldap_only. @@ -48,7 +48,6 @@ public static void cachesCreateOrUpdateLdapOnly( .withTags(mapOf("Dept", "Contoso")) .withSku(new CacheSku().withName("Standard_2G")) .withCacheSizeGB(3072) - .withScalingFactor(1.0D) .withSubnet( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1") .withUpgradeSettings( @@ -96,7 +95,7 @@ public static void cachesCreateOrUpdateLdapOnly( } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_CreateOrUpdate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_CreateOrUpdate.json */ /** * Sample code: Caches_CreateOrUpdate. @@ -119,7 +118,6 @@ public static void cachesCreateOrUpdate(com.azure.resourcemanager.storagecache.S new UserAssignedIdentitiesValue()))) .withSku(new CacheSku().withName("Standard_2G")) .withCacheSizeGB(3072) - .withScalingFactor(1.0D) .withSubnet( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1") .withUpgradeSettings( 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 85676e41cfee..6d11112fe5f8 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 @@ -7,7 +7,7 @@ /** Samples for Caches DebugInfo. */ public final class CachesDebugInfoSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_DebugInfo.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_DebugInfo.json */ /** * Sample code: Caches_DebugInfo. 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 dd802346e8f0..ad818a426bee 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 @@ -7,7 +7,7 @@ /** Samples for Caches Delete. */ public final class CachesDeleteSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Delete.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-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 09fd35ccfe46..5f079d991de9 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 @@ -7,7 +7,7 @@ /** Samples for Caches Flush. */ public final class CachesFlushSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Flush.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-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 777b38439d8d..c9f2b268e6b3 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 @@ -7,7 +7,7 @@ /** Samples for Caches GetByResourceGroup. */ public final class CachesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-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 7f59dec73ffa..243d37450a10 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 @@ -7,7 +7,7 @@ /** Samples for Caches ListByResourceGroup. */ public final class CachesListByResourceGroupSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_ListByResourceGroup.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_ListByResourceGroup.json */ /** * Sample code: Caches_ListByResourceGroup. 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 eb26b3931eba..1a123ae1a5e5 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 @@ -7,7 +7,7 @@ /** Samples for Caches List. */ public final class CachesListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-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 c3b39db90e06..fcbcf205fd33 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 @@ -9,7 +9,7 @@ /** Samples for Caches PausePrimingJob. */ public final class CachesPausePrimingJobSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/PausePrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/PausePrimingJob.json */ /** * Sample code: PausePrimingJob. 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 41a24c4f9278..ffe699b235bd 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 @@ -9,7 +9,7 @@ /** Samples for Caches ResumePrimingJob. */ public final class CachesResumePrimingJobSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/ResumePrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/ResumePrimingJob.json */ /** * Sample code: ResumePrimingJob. 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 a0c06bbcf782..5b5fba66cccd 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 @@ -10,7 +10,7 @@ /** Samples for Caches SpaceAllocation. */ public final class CachesSpaceAllocationSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/SpaceAllocation_Post.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/SpaceAllocation_Post.json */ /** * Sample code: SpaceAllocation_Post. 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 6c0aaf51b0f0..79f75b5d13f9 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 @@ -9,7 +9,7 @@ /** Samples for Caches StartPrimingJob. */ public final class CachesStartPrimingJobSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StartPrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StartPrimingJob.json */ /** * Sample code: StartPrimingJob. 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 243d654ea979..559b9f1459f7 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 @@ -7,7 +7,7 @@ /** Samples for Caches Start. */ public final class CachesStartSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Start.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-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 ca9807814d15..4d3542319c95 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 @@ -9,7 +9,7 @@ /** Samples for Caches StopPrimingJob. */ public final class CachesStopPrimingJobSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StopPrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-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 c6b9fb484eea..7c24206fe536 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 @@ -7,7 +7,7 @@ /** Samples for Caches Stop. */ public final class CachesStopSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Stop.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-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 1addb1001f4d..2c9b03d5cfda 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 @@ -25,7 +25,7 @@ /** Samples for Caches Update. */ public final class CachesUpdateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Update_ldap_only.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Update_ldap_only.json */ /** * Sample code: Caches_Update_ldap_only. @@ -41,7 +41,6 @@ public static void cachesUpdateLdapOnly(com.azure.resourcemanager.storagecache.S resource .update() .withTags(mapOf("Dept", "Contoso")) - .withScalingFactor(1.0D) .withUpgradeSettings( new CacheUpgradeSettings() .withUpgradeScheduleEnabled(true) @@ -111,7 +110,7 @@ public static void cachesUpdateLdapOnly(com.azure.resourcemanager.storagecache.S } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Update.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Update.json */ /** * Sample code: Caches_Update. @@ -127,7 +126,6 @@ public static void cachesUpdate(com.azure.resourcemanager.storagecache.StorageCa resource .update() .withTags(mapOf("Dept", "Contoso")) - .withScalingFactor(2.0D) .withUpgradeSettings( new CacheUpgradeSettings() .withUpgradeScheduleEnabled(true) 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 0641a5790d81..80b5d466a8bd 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 @@ -7,7 +7,7 @@ /** Samples for Caches UpgradeFirmware. */ public final class CachesUpgradeFirmwareSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_UpgradeFirmware.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_UpgradeFirmware.json */ /** * Sample code: Caches_UpgradeFirmware. 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 8aace4f731dc..3b40431fcda6 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 @@ -7,7 +7,7 @@ /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Operations_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Operations_List.json */ /** * Sample code: Operations_List. 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 deleted file mode 100644 index 4909c0b8fcaf..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderCheckAmlFSSubnetsSamples.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.resourcemanager.storagecache.models.AmlFilesystemSubnetInfo; -import com.azure.resourcemanager.storagecache.models.SkuName; - -/** Samples for ResourceProvider CheckAmlFSSubnets. */ -public final class ResourceProviderCheckAmlFSSubnetsSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/checkAmlFSSubnets.json - */ - /** - * Sample code: checkAmlFSSubnets. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void checkAmlFSSubnets(com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager - .resourceProviders() - .checkAmlFSSubnetsWithResponse( - new AmlFilesystemSubnetInfo() - .withFilesystemSubnet( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/fsSub") - .withStorageCapacityTiB(16.0F) - .withSku(new SkuName().withName("AMLFS-Durable-Premium-125")), - com.azure.core.util.Context.NONE); - } -} 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 deleted file mode 100644 index 3fa97f711dd0..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderGetRequiredAmlFSSubnetsSizeSamples.java +++ /dev/null @@ -1,21 +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; - -/** Samples for ResourceProvider GetRequiredAmlFSSubnetsSize. */ -public final class ResourceProviderGetRequiredAmlFSSubnetsSizeSamples { - /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/getRequiredAmlFSSubnetsSize.json - */ - /** - * Sample code: getRequiredAmlFilesystemSubnetsSize. - * - * @param manager Entry point to StorageCacheManager. - */ - public static void getRequiredAmlFilesystemSubnetsSize( - com.azure.resourcemanager.storagecache.StorageCacheManager manager) { - manager.resourceProviders().getRequiredAmlFSSubnetsSizeWithResponse(null, com.azure.core.util.Context.NONE); - } -} 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 332779f54391..47b004b6cdd9 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 @@ -7,7 +7,7 @@ /** Samples for Skus List. */ public final class SkusListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Skus_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-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 f1a9f3ac2481..fb9894b58242 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 @@ -7,7 +7,7 @@ /** Samples for StorageTargetOperation Flush. */ public final class StorageTargetOperationFlushSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Flush.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Flush.json */ /** * Sample code: StorageTargets_Flush. 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 6e28337876dc..272eb749e1db 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 @@ -7,7 +7,7 @@ /** Samples for StorageTargetOperation Invalidate. */ public final class StorageTargetOperationInvalidateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Invalidate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Invalidate.json */ /** * Sample code: StorageTargets_Invalidate. 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 da1fbdf64e5f..814b0d69b3c9 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 @@ -7,7 +7,7 @@ /** Samples for StorageTargetOperation Resume. */ public final class StorageTargetOperationResumeSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Resume.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Resume.json */ /** * Sample code: StorageTargets_Resume. 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 4cecae65ea6e..47fc37eb6123 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 @@ -7,7 +7,7 @@ /** Samples for StorageTargetOperation Suspend. */ public final class StorageTargetOperationSuspendSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Suspend.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Suspend.json */ /** * Sample code: StorageTargets_Suspend. 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 2e6db10de3ac..25d3704629e1 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 @@ -13,7 +13,7 @@ /** Samples for StorageTargets CreateOrUpdate. */ public final class StorageTargetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_CreateOrUpdate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate.json */ /** * Sample code: StorageTargets_CreateOrUpdate. @@ -45,7 +45,7 @@ public static void storageTargetsCreateOrUpdate( } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_CreateOrUpdate_BlobNfs.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate_BlobNfs.json */ /** * Sample code: StorageTargets_CreateOrUpdate_BlobNfs. @@ -71,7 +71,7 @@ public static void storageTargetsCreateOrUpdateBlobNfs( } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_CreateOrUpdate_NoJunctions.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate_NoJunctions.json */ /** * Sample code: StorageTargets_CreateOrUpdate_NoJunctions. 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 e172f92fdd6e..72eeb3077cd8 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 @@ -7,7 +7,7 @@ /** Samples for StorageTargets Delete. */ public final class StorageTargetsDeleteSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Delete.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Delete.json */ /** * Sample code: StorageTargets_Delete. 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 b51aa4777d25..8093f0c306d0 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 @@ -7,7 +7,7 @@ /** Samples for StorageTargets DnsRefresh. */ public final class StorageTargetsDnsRefreshSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_DnsRefresh.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_DnsRefresh.json */ /** * Sample code: Caches_DnsRefresh. 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 1f836cdd390f..8371eccbebc1 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 @@ -7,7 +7,7 @@ /** Samples for StorageTargets Get. */ public final class StorageTargetsGetSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Get.json */ /** * Sample code: StorageTargets_Get. 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 5759265def0c..c136dedcc087 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 @@ -7,7 +7,7 @@ /** Samples for StorageTargets ListByCache. */ public final class StorageTargetsListByCacheSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_ListByCache.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_ListByCache.json */ /** * Sample code: StorageTargets_List. 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 0880efe5f5f5..880cf6ae19a8 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 @@ -7,7 +7,7 @@ /** Samples for StorageTargets RestoreDefaults. */ public final class StorageTargetsRestoreDefaultsSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_RestoreDefaults.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_RestoreDefaults.json */ /** * Sample code: StorageTargets_RestoreDefaults. 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 1dae226177d8..764192fc3cb0 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 @@ -7,7 +7,7 @@ /** Samples for UsageModels List. */ public final class UsageModelsListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/UsageModels_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/UsageModels_List.json */ /** * Sample code: UsageModels_List. 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 a56f7b3671e7..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\":\"mwyhr\"}").toObject(AmlFilesystemArchiveInfo.class); - Assertions.assertEquals("mwyhr", model.filesystemPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmlFilesystemArchiveInfo model = new AmlFilesystemArchiveInfo().withFilesystemPath("mwyhr"); - model = BinaryData.fromObject(model).toObject(AmlFilesystemArchiveInfo.class); - Assertions.assertEquals("mwyhr", 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 bb1afaa608fd..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorFilesystemSubnetTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetErrorFilesystemSubnet; -import com.azure.resourcemanager.storagecache.models.FilesystemSubnetStatusType; -import org.junit.jupiter.api.Assertions; - -public final class AmlFilesystemCheckSubnetErrorFilesystemSubnetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmlFilesystemCheckSubnetErrorFilesystemSubnet model = - BinaryData - .fromString("{\"status\":\"Invalid\",\"message\":\"jqg\"}") - .toObject(AmlFilesystemCheckSubnetErrorFilesystemSubnet.class); - Assertions.assertEquals(FilesystemSubnetStatusType.INVALID, model.status()); - Assertions.assertEquals("jqg", model.message()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmlFilesystemCheckSubnetErrorFilesystemSubnet model = - new AmlFilesystemCheckSubnetErrorFilesystemSubnet() - .withStatus(FilesystemSubnetStatusType.INVALID) - .withMessage("jqg"); - model = BinaryData.fromObject(model).toObject(AmlFilesystemCheckSubnetErrorFilesystemSubnet.class); - Assertions.assertEquals(FilesystemSubnetStatusType.INVALID, model.status()); - Assertions.assertEquals("jqg", 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 da96ec7d4516..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetError; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemCheckSubnetErrorFilesystemSubnet; -import com.azure.resourcemanager.storagecache.models.FilesystemSubnetStatusType; -import org.junit.jupiter.api.Assertions; - -public final class AmlFilesystemCheckSubnetErrorTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmlFilesystemCheckSubnetError model = - BinaryData - .fromString("{\"filesystemSubnet\":{\"status\":\"Invalid\",\"message\":\"omgkopkwho\"}}") - .toObject(AmlFilesystemCheckSubnetError.class); - Assertions.assertEquals(FilesystemSubnetStatusType.INVALID, model.filesystemSubnet().status()); - Assertions.assertEquals("omgkopkwho", model.filesystemSubnet().message()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmlFilesystemCheckSubnetError model = - new AmlFilesystemCheckSubnetError() - .withFilesystemSubnet( - new AmlFilesystemCheckSubnetErrorFilesystemSubnet() - .withStatus(FilesystemSubnetStatusType.INVALID) - .withMessage("omgkopkwho")); - model = BinaryData.fromObject(model).toObject(AmlFilesystemCheckSubnetError.class); - Assertions.assertEquals(FilesystemSubnetStatusType.INVALID, model.filesystemSubnet().status()); - Assertions.assertEquals("omgkopkwho", model.filesystemSubnet().message()); - } -} 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 fabe5c3751a8..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 org.junit.jupiter.api.Assertions; - -public final class AmlFilesystemHsmSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmlFilesystemHsmSettings model = - BinaryData - .fromString( - "{\"container\":\"dyhtozfikdowwquu\",\"loggingContainer\":\"xzxcl\",\"importPrefix\":\"thhqzonosggbh\"}") - .toObject(AmlFilesystemHsmSettings.class); - Assertions.assertEquals("dyhtozfikdowwquu", model.container()); - Assertions.assertEquals("xzxcl", model.loggingContainer()); - Assertions.assertEquals("thhqzonosggbh", model.importPrefix()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmlFilesystemHsmSettings model = - new AmlFilesystemHsmSettings() - .withContainer("dyhtozfikdowwquu") - .withLoggingContainer("xzxcl") - .withImportPrefix("thhqzonosggbh"); - model = BinaryData.fromObject(model).toObject(AmlFilesystemHsmSettings.class); - Assertions.assertEquals("dyhtozfikdowwquu", model.container()); - Assertions.assertEquals("xzxcl", model.loggingContainer()); - Assertions.assertEquals("thhqzonosggbh", model.importPrefix()); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemIdentityTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemIdentityTests.java deleted file mode 100644 index 53d4794ce943..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemIdentityTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentity; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentityType; -import com.azure.resourcemanager.storagecache.models.UserAssignedIdentitiesValueAutoGenerated; -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\":\"jmygtdsslswtmwer\",\"tenantId\":\"fzp\",\"type\":\"None\",\"userAssignedIdentities\":{\"d\":{\"principalId\":\"abnetshh\",\"clientId\":\"h\"},\"lcxog\":{\"principalId\":\"vwiwubmwmbesld\",\"clientId\":\"wwtppj\"},\"qkdltfz\":{\"principalId\":\"konzmnsik\",\"clientId\":\"kqze\"},\"odkwobd\":{\"principalId\":\"hhvh\",\"clientId\":\"r\"}}}") - .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( - "d", - new UserAssignedIdentitiesValueAutoGenerated(), - "lcxog", - new UserAssignedIdentitiesValueAutoGenerated(), - "qkdltfz", - new UserAssignedIdentitiesValueAutoGenerated(), - "odkwobd", - new UserAssignedIdentitiesValueAutoGenerated())); - model = BinaryData.fromObject(model).toObject(AmlFilesystemIdentity.class); - Assertions.assertEquals(AmlFilesystemIdentityType.NONE, model.type()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemPropertiesMaintenanceWindowTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemPropertiesMaintenanceWindowTests.java deleted file mode 100644 index c6509085ed57..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemPropertiesMaintenanceWindowTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemPropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.MaintenanceDayOfWeekType; -import org.junit.jupiter.api.Assertions; - -public final class AmlFilesystemPropertiesMaintenanceWindowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmlFilesystemPropertiesMaintenanceWindow model = - BinaryData - .fromString("{\"dayOfWeek\":\"Monday\",\"timeOfDayUTC\":\"muwlauwzizxbm\"}") - .toObject(AmlFilesystemPropertiesMaintenanceWindow.class); - Assertions.assertEquals(MaintenanceDayOfWeekType.MONDAY, model.dayOfWeek()); - Assertions.assertEquals("muwlauwzizxbm", model.timeOfDayUtc()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmlFilesystemPropertiesMaintenanceWindow model = - new AmlFilesystemPropertiesMaintenanceWindow() - .withDayOfWeek(MaintenanceDayOfWeekType.MONDAY) - .withTimeOfDayUtc("muwlauwzizxbm"); - model = BinaryData.fromObject(model).toObject(AmlFilesystemPropertiesMaintenanceWindow.class); - Assertions.assertEquals(MaintenanceDayOfWeekType.MONDAY, model.dayOfWeek()); - Assertions.assertEquals("muwlauwzizxbm", model.timeOfDayUtc()); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemSubnetInfoTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemSubnetInfoTests.java deleted file mode 100644 index 9077e486284b..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemSubnetInfoTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemSubnetInfo; -import com.azure.resourcemanager.storagecache.models.SkuName; -import org.junit.jupiter.api.Assertions; - -public final class AmlFilesystemSubnetInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmlFilesystemSubnetInfo model = - BinaryData - .fromString( - "{\"filesystemSubnet\":\"uyfta\",\"storageCapacityTiB\":23.020596,\"sku\":{\"name\":\"iyzvqtmnub\"},\"location\":\"kpzksmondjmq\"}") - .toObject(AmlFilesystemSubnetInfo.class); - Assertions.assertEquals("uyfta", model.filesystemSubnet()); - Assertions.assertEquals(23.020596F, model.storageCapacityTiB()); - Assertions.assertEquals("iyzvqtmnub", model.sku().name()); - Assertions.assertEquals("kpzksmondjmq", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmlFilesystemSubnetInfo model = - new AmlFilesystemSubnetInfo() - .withFilesystemSubnet("uyfta") - .withStorageCapacityTiB(23.020596F) - .withSku(new SkuName().withName("iyzvqtmnub")) - .withLocation("kpzksmondjmq"); - model = BinaryData.fromObject(model).toObject(AmlFilesystemSubnetInfo.class); - Assertions.assertEquals("uyfta", model.filesystemSubnet()); - Assertions.assertEquals(23.020596F, model.storageCapacityTiB()); - Assertions.assertEquals("iyzvqtmnub", model.sku().name()); - Assertions.assertEquals("kpzksmondjmq", 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 b5185d2a4dff..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdatePropertiesMaintenanceWindowTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.MaintenanceDayOfWeekType; -import org.junit.jupiter.api.Assertions; - -public final class AmlFilesystemUpdatePropertiesMaintenanceWindowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmlFilesystemUpdatePropertiesMaintenanceWindow model = - BinaryData - .fromString("{\"dayOfWeek\":\"Sunday\",\"timeOfDayUTC\":\"odfvuefywsbp\"}") - .toObject(AmlFilesystemUpdatePropertiesMaintenanceWindow.class); - Assertions.assertEquals(MaintenanceDayOfWeekType.SUNDAY, model.dayOfWeek()); - Assertions.assertEquals("odfvuefywsbp", model.timeOfDayUtc()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmlFilesystemUpdatePropertiesMaintenanceWindow model = - new AmlFilesystemUpdatePropertiesMaintenanceWindow() - .withDayOfWeek(MaintenanceDayOfWeekType.SUNDAY) - .withTimeOfDayUtc("odfvuefywsbp"); - model = BinaryData.fromObject(model).toObject(AmlFilesystemUpdatePropertiesMaintenanceWindow.class); - Assertions.assertEquals(MaintenanceDayOfWeekType.SUNDAY, model.dayOfWeek()); - Assertions.assertEquals("odfvuefywsbp", model.timeOfDayUtc()); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdateTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdateTests.java deleted file mode 100644 index b143ab330c25..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdateTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdate; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow; -import com.azure.resourcemanager.storagecache.models.MaintenanceDayOfWeekType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmlFilesystemUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmlFilesystemUpdate model = - BinaryData - .fromString( - "{\"tags\":{\"wqapnedgfbcvk\":\"yjrxsagafcnih\",\"pkeqdcvdrhvoo\":\"vq\",\"dopcjwvnh\":\"sotbob\",\"mgxcxrslpm\":\"ld\"},\"properties\":{\"encryptionSettings\":{},\"maintenanceWindow\":{\"dayOfWeek\":\"Wednesday\",\"timeOfDayUTC\":\"pkhjwni\"}}}") - .toObject(AmlFilesystemUpdate.class); - Assertions.assertEquals("yjrxsagafcnih", model.tags().get("wqapnedgfbcvk")); - Assertions.assertEquals(MaintenanceDayOfWeekType.WEDNESDAY, model.maintenanceWindow().dayOfWeek()); - Assertions.assertEquals("pkhjwni", model.maintenanceWindow().timeOfDayUtc()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmlFilesystemUpdate model = - new AmlFilesystemUpdate() - .withTags( - mapOf( - "wqapnedgfbcvk", - "yjrxsagafcnih", - "pkeqdcvdrhvoo", - "vq", - "dopcjwvnh", - "sotbob", - "mgxcxrslpm", - "ld")) - .withEncryptionSettings(new AmlFilesystemEncryptionSettings()) - .withMaintenanceWindow( - new AmlFilesystemUpdatePropertiesMaintenanceWindow() - .withDayOfWeek(MaintenanceDayOfWeekType.WEDNESDAY) - .withTimeOfDayUtc("pkhjwni")); - model = BinaryData.fromObject(model).toObject(AmlFilesystemUpdate.class); - Assertions.assertEquals("yjrxsagafcnih", model.tags().get("wqapnedgfbcvk")); - Assertions.assertEquals(MaintenanceDayOfWeekType.WEDNESDAY, model.maintenanceWindow().dayOfWeek()); - Assertions.assertEquals("pkhjwni", model.maintenanceWindow().timeOfDayUtc()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveWithResponseMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveWithResponseMockTests.java deleted file mode 100644 index b2bf16f09281..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveWithResponseMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemArchiveInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class AmlFilesystemsArchiveWithResponseMockTests { - @Test - public void testArchiveWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .amlFilesystems() - .archiveWithResponse( - "ho", - "zqzudph", - new AmlFilesystemArchiveInfo().withFilesystemPath("mvdk"), - 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 7e39b9eac565..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveWithResponseMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class AmlFilesystemsCancelArchiveWithResponseMockTests { - @Test - public void testCancelArchiveWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.amlFilesystems().cancelArchiveWithResponse("wynwcvtbvkayhm", "nvyq", 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 5cb7600d89c3..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class AmlFilesystemsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.amlFilesystems().delete("a", "rqmq", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListResultTests.java deleted file mode 100644 index 5b0cb1627bd4..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListResultTests.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.fluent.models.AmlFilesystemInner; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentity; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemIdentityType; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemsListResult; -import com.azure.resourcemanager.storagecache.models.SkuName; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AmlFilesystemsListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AmlFilesystemsListResult model = - BinaryData - .fromString( - "{\"nextLink\":\"aq\",\"value\":[{\"identity\":{\"principalId\":\"pkii\",\"tenantId\":\"yexz\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"sku\":{\"name\":\"nr\"},\"zones\":[\"o\",\"hb\",\"xknalaulppg\"],\"properties\":{\"storageCapacityTiB\":96.281746,\"provisioningState\":\"Failed\",\"filesystemSubnet\":\"pnyiropuhp\",\"mgsAddress\":\"vpgylgqgitxmed\",\"mountCommand\":\"c\",\"lustreVersion\":\"ynqwwncwzzhxgk\",\"throughputProvisionedMBps\":1481822403},\"location\":\"napkteoellw\",\"tags\":{\"gpfqbuace\":\"d\",\"qeqxo\":\"pzfqrhhuaoppp\",\"ahzxctobgbk\":\"z\",\"mgrcfbu\":\"moizpos\"},\"id\":\"rmfqjhhkxbpvj\",\"name\":\"mjh\",\"type\":\"xjyngudivk\"},{\"identity\":{\"principalId\":\"wbxqzvszjfau\",\"tenantId\":\"fdxxivetvtcqaqtd\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"sku\":{\"name\":\"vwvxyslqbhsfx\"},\"zones\":[\"ytkblmpew\"],\"properties\":{\"storageCapacityTiB\":62.109833,\"provisioningState\":\"Updating\",\"filesystemSubnet\":\"vrnsvshqjohxc\",\"mgsAddress\":\"bfovasrruvwbhsq\",\"mountCommand\":\"ubcgjbirxb\",\"lustreVersion\":\"bsrfbj\",\"throughputProvisionedMBps\":837542479},\"location\":\"otftpvjzbexilz\",\"tags\":{\"aruoujmkcjhwqyt\":\"qqnvwpmq\",\"bnw\":\"r\",\"enq\":\"ewgdrjervn\",\"ndoygmifthnzdnd\":\"eh\"},\"id\":\"l\",\"name\":\"nayqi\",\"type\":\"ynduha\"}]}") - .toObject(AmlFilesystemsListResult.class); - Assertions.assertEquals("aq", model.nextLink()); - Assertions.assertEquals("napkteoellw", model.value().get(0).location()); - Assertions.assertEquals("d", model.value().get(0).tags().get("gpfqbuace")); - Assertions.assertEquals(AmlFilesystemIdentityType.NONE, model.value().get(0).identity().type()); - Assertions.assertEquals("nr", model.value().get(0).sku().name()); - Assertions.assertEquals("o", model.value().get(0).zones().get(0)); - Assertions.assertEquals(96.281746f, model.value().get(0).storageCapacityTiB()); - Assertions.assertEquals("pnyiropuhp", model.value().get(0).filesystemSubnet()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AmlFilesystemsListResult model = - new AmlFilesystemsListResult() - .withNextLink("aq") - .withValue( - Arrays - .asList( - new AmlFilesystemInner() - .withLocation("napkteoellw") - .withTags( - mapOf( - "gpfqbuace", - "d", - "qeqxo", - "pzfqrhhuaoppp", - "ahzxctobgbk", - "z", - "mgrcfbu", - "moizpos")) - .withIdentity( - new AmlFilesystemIdentity() - .withType(AmlFilesystemIdentityType.NONE) - .withUserAssignedIdentities(mapOf())) - .withSku(new SkuName().withName("nr")) - .withZones(Arrays.asList("o", "hb", "xknalaulppg")) - .withStorageCapacityTiB(96.281746f) - .withFilesystemSubnet("pnyiropuhp"), - new AmlFilesystemInner() - .withLocation("otftpvjzbexilz") - .withTags( - mapOf( - "aruoujmkcjhwqyt", - "qqnvwpmq", - "bnw", - "r", - "enq", - "ewgdrjervn", - "ndoygmifthnzdnd", - "eh")) - .withIdentity( - new AmlFilesystemIdentity() - .withType(AmlFilesystemIdentityType.NONE) - .withUserAssignedIdentities(mapOf())) - .withSku(new SkuName().withName("vwvxyslqbhsfx")) - .withZones(Arrays.asList("ytkblmpew")) - .withStorageCapacityTiB(62.109833f) - .withFilesystemSubnet("vrnsvshqjohxc"))); - model = BinaryData.fromObject(model).toObject(AmlFilesystemsListResult.class); - Assertions.assertEquals("aq", model.nextLink()); - Assertions.assertEquals("napkteoellw", model.value().get(0).location()); - Assertions.assertEquals("d", model.value().get(0).tags().get("gpfqbuace")); - Assertions.assertEquals(AmlFilesystemIdentityType.NONE, model.value().get(0).identity().type()); - Assertions.assertEquals("nr", model.value().get(0).sku().name()); - Assertions.assertEquals("o", model.value().get(0).zones().get(0)); - Assertions.assertEquals(96.281746f, model.value().get(0).storageCapacityTiB()); - Assertions.assertEquals("pnyiropuhp", model.value().get(0).filesystemSubnet()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationDisplayTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationDisplayTests.java deleted file mode 100644 index 350afdbb8c18..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationDisplayTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.ApiOperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class ApiOperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApiOperationDisplay model = - BinaryData - .fromString( - "{\"operation\":\"uf\",\"provider\":\"zk\",\"resource\":\"dbihanufhfcbj\",\"description\":\"a\"}") - .toObject(ApiOperationDisplay.class); - Assertions.assertEquals("uf", model.operation()); - Assertions.assertEquals("zk", model.provider()); - Assertions.assertEquals("dbihanufhfcbj", model.resource()); - Assertions.assertEquals("a", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ApiOperationDisplay model = - new ApiOperationDisplay() - .withOperation("uf") - .withProvider("zk") - .withResource("dbihanufhfcbj") - .withDescription("a"); - model = BinaryData.fromObject(model).toObject(ApiOperationDisplay.class); - Assertions.assertEquals("uf", model.operation()); - Assertions.assertEquals("zk", model.provider()); - Assertions.assertEquals("dbihanufhfcbj", model.resource()); - Assertions.assertEquals("a", 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 2db5e3c6b656..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationInnerTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.fluent.models.ApiOperationInner; -import com.azure.resourcemanager.storagecache.models.ApiOperationDisplay; -import com.azure.resourcemanager.storagecache.models.ApiOperationPropertiesServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ApiOperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApiOperationInner model = - BinaryData - .fromString( - "{\"display\":{\"operation\":\"parcry\",\"provider\":\"nzwuxzd\",\"resource\":\"a\",\"description\":\"lhmwhfpmrqobm\"},\"origin\":\"kknryrtihf\",\"isDataAction\":true,\"name\":\"bpzvgn\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[],\"logSpecifications\":[]}}}") - .toObject(ApiOperationInner.class); - Assertions.assertEquals("parcry", model.display().operation()); - Assertions.assertEquals("nzwuxzd", model.display().provider()); - Assertions.assertEquals("a", model.display().resource()); - Assertions.assertEquals("lhmwhfpmrqobm", model.display().description()); - Assertions.assertEquals("kknryrtihf", model.origin()); - Assertions.assertEquals(true, model.isDataAction()); - Assertions.assertEquals("bpzvgn", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ApiOperationInner model = - new ApiOperationInner() - .withDisplay( - new ApiOperationDisplay() - .withOperation("parcry") - .withProvider("nzwuxzd") - .withResource("a") - .withDescription("lhmwhfpmrqobm")) - .withOrigin("kknryrtihf") - .withIsDataAction(true) - .withName("bpzvgn") - .withServiceSpecification( - new ApiOperationPropertiesServiceSpecification() - .withMetricSpecifications(Arrays.asList()) - .withLogSpecifications(Arrays.asList())); - model = BinaryData.fromObject(model).toObject(ApiOperationInner.class); - Assertions.assertEquals("parcry", model.display().operation()); - Assertions.assertEquals("nzwuxzd", model.display().provider()); - Assertions.assertEquals("a", model.display().resource()); - Assertions.assertEquals("lhmwhfpmrqobm", model.display().description()); - Assertions.assertEquals("kknryrtihf", model.origin()); - Assertions.assertEquals(true, model.isDataAction()); - Assertions.assertEquals("bpzvgn", model.name()); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationListResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationListResultTests.java deleted file mode 100644 index 08435ed5c191..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationListResultTests.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.fluent.models.ApiOperationInner; -import com.azure.resourcemanager.storagecache.models.ApiOperationDisplay; -import com.azure.resourcemanager.storagecache.models.ApiOperationListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ApiOperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApiOperationListResult model = - BinaryData - .fromString( - "{\"nextLink\":\"mhquvgjxp\",\"value\":[{\"display\":{\"operation\":\"ehmtzop\",\"provider\":\"phrupidgsybbejhp\",\"resource\":\"ycm\",\"description\":\"ao\"},\"origin\":\"dxbmtqioq\",\"isDataAction\":false,\"name\":\"tbmufpo\",\"properties\":{}},{\"display\":{\"operation\":\"hwlrx\",\"provider\":\"qsoqijgkd\",\"resource\":\"pazlobcufpdz\",\"description\":\"btcqq\"},\"origin\":\"qglhq\",\"isDataAction\":false,\"name\":\"ooojywifsqe\",\"properties\":{}},{\"display\":{\"operation\":\"f\",\"provider\":\"lzl\",\"resource\":\"xrifkwmrvkts\",\"description\":\"nt\"},\"origin\":\"ipa\",\"isDataAction\":false,\"name\":\"psqucmpoyf\",\"properties\":{}},{\"display\":{\"operation\":\"knygjofjddeq\",\"provider\":\"deupewnwrei\",\"resource\":\"zyf\",\"description\":\"sarhmofc\"},\"origin\":\"smy\",\"isDataAction\":true,\"name\":\"tmlxhekuksjtx\",\"properties\":{}}]}") - .toObject(ApiOperationListResult.class); - Assertions.assertEquals("mhquvgjxp", model.nextLink()); - Assertions.assertEquals("ehmtzop", model.value().get(0).display().operation()); - Assertions.assertEquals("phrupidgsybbejhp", model.value().get(0).display().provider()); - Assertions.assertEquals("ycm", model.value().get(0).display().resource()); - Assertions.assertEquals("ao", model.value().get(0).display().description()); - Assertions.assertEquals("dxbmtqioq", model.value().get(0).origin()); - Assertions.assertEquals(false, model.value().get(0).isDataAction()); - Assertions.assertEquals("tbmufpo", model.value().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ApiOperationListResult model = - new ApiOperationListResult() - .withNextLink("mhquvgjxp") - .withValue( - Arrays - .asList( - new ApiOperationInner() - .withDisplay( - new ApiOperationDisplay() - .withOperation("ehmtzop") - .withProvider("phrupidgsybbejhp") - .withResource("ycm") - .withDescription("ao")) - .withOrigin("dxbmtqioq") - .withIsDataAction(false) - .withName("tbmufpo"), - new ApiOperationInner() - .withDisplay( - new ApiOperationDisplay() - .withOperation("hwlrx") - .withProvider("qsoqijgkd") - .withResource("pazlobcufpdz") - .withDescription("btcqq")) - .withOrigin("qglhq") - .withIsDataAction(false) - .withName("ooojywifsqe"), - new ApiOperationInner() - .withDisplay( - new ApiOperationDisplay() - .withOperation("f") - .withProvider("lzl") - .withResource("xrifkwmrvkts") - .withDescription("nt")) - .withOrigin("ipa") - .withIsDataAction(false) - .withName("psqucmpoyf"), - new ApiOperationInner() - .withDisplay( - new ApiOperationDisplay() - .withOperation("knygjofjddeq") - .withProvider("deupewnwrei") - .withResource("zyf") - .withDescription("sarhmofc")) - .withOrigin("smy") - .withIsDataAction(true) - .withName("tmlxhekuksjtx"))); - model = BinaryData.fromObject(model).toObject(ApiOperationListResult.class); - Assertions.assertEquals("mhquvgjxp", model.nextLink()); - Assertions.assertEquals("ehmtzop", model.value().get(0).display().operation()); - Assertions.assertEquals("phrupidgsybbejhp", model.value().get(0).display().provider()); - Assertions.assertEquals("ycm", model.value().get(0).display().resource()); - Assertions.assertEquals("ao", model.value().get(0).display().description()); - Assertions.assertEquals("dxbmtqioq", model.value().get(0).origin()); - Assertions.assertEquals(false, model.value().get(0).isDataAction()); - Assertions.assertEquals("tbmufpo", 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 4643df5d651a..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationPropertiesServiceSpecificationTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.ApiOperationPropertiesServiceSpecification; -import com.azure.resourcemanager.storagecache.models.LogSpecification; -import com.azure.resourcemanager.storagecache.models.MetricAggregationType; -import com.azure.resourcemanager.storagecache.models.MetricSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ApiOperationPropertiesServiceSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApiOperationPropertiesServiceSpecification model = - BinaryData - .fromString( - "{\"metricSpecifications\":[{\"name\":\"mkjozkrwf\",\"displayName\":\"iodjp\",\"displayDescription\":\"w\",\"unit\":\"dpvwryoqpsoaccta\",\"aggregationType\":\"kljla\",\"supportedAggregationTypes\":[\"None\"],\"metricClass\":\"ffdfdosygexpa\",\"dimensions\":[]}],\"logSpecifications\":[{\"name\":\"sbzjhcr\",\"displayName\":\"vdphlxaolthqtr\"},{\"name\":\"jbp\",\"displayName\":\"fsinzgvfcjrwzoxx\"},{\"name\":\"felluwfzitonpe\",\"displayName\":\"pjkjlxofpdv\"},{\"name\":\"fxxypininmayhuy\",\"displayName\":\"kpode\"}]}") - .toObject(ApiOperationPropertiesServiceSpecification.class); - Assertions.assertEquals("mkjozkrwf", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("iodjp", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("w", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("dpvwryoqpsoaccta", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("kljla", model.metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals( - MetricAggregationType.NONE, model.metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("ffdfdosygexpa", model.metricSpecifications().get(0).metricClass()); - Assertions.assertEquals("sbzjhcr", model.logSpecifications().get(0).name()); - Assertions.assertEquals("vdphlxaolthqtr", 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("mkjozkrwf") - .withDisplayName("iodjp") - .withDisplayDescription("w") - .withUnit("dpvwryoqpsoaccta") - .withAggregationType("kljla") - .withSupportedAggregationTypes(Arrays.asList(MetricAggregationType.NONE)) - .withMetricClass("ffdfdosygexpa") - .withDimensions(Arrays.asList()))) - .withLogSpecifications( - Arrays - .asList( - new LogSpecification().withName("sbzjhcr").withDisplayName("vdphlxaolthqtr"), - new LogSpecification().withName("jbp").withDisplayName("fsinzgvfcjrwzoxx"), - new LogSpecification().withName("felluwfzitonpe").withDisplayName("pjkjlxofpdv"), - new LogSpecification().withName("fxxypininmayhuy").withDisplayName("kpode"))); - model = BinaryData.fromObject(model).toObject(ApiOperationPropertiesServiceSpecification.class); - Assertions.assertEquals("mkjozkrwf", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("iodjp", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("w", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("dpvwryoqpsoaccta", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("kljla", model.metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals( - MetricAggregationType.NONE, model.metricSpecifications().get(0).supportedAggregationTypes().get(0)); - Assertions.assertEquals("ffdfdosygexpa", model.metricSpecifications().get(0).metricClass()); - Assertions.assertEquals("sbzjhcr", model.logSpecifications().get(0).name()); - Assertions.assertEquals("vdphlxaolthqtr", 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 7cfba953a3d8..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ApiOperationPropertiesTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.fluent.models.ApiOperationProperties; -import com.azure.resourcemanager.storagecache.models.ApiOperationPropertiesServiceSpecification; -import com.azure.resourcemanager.storagecache.models.LogSpecification; -import com.azure.resourcemanager.storagecache.models.MetricSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ApiOperationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApiOperationProperties model = - BinaryData - .fromString( - "{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"qhabifpikxwcz\",\"displayName\":\"scnpqxuhivy\",\"displayDescription\":\"iwbybrkxvdumjg\",\"unit\":\"fwvuk\",\"aggregationType\":\"audccsnhs\",\"supportedAggregationTypes\":[],\"metricClass\":\"yejhk\",\"dimensions\":[]}],\"logSpecifications\":[{\"name\":\"apcz\",\"displayName\":\"okjye\"},{\"name\":\"kvnipjoxz\",\"displayName\":\"chgejspodm\"},{\"name\":\"lzydehojwyahux\",\"displayName\":\"pmqnja\"},{\"name\":\"ixjsprozvcputeg\",\"displayName\":\"wmfdatscmdvpjhul\"}]}}") - .toObject(ApiOperationProperties.class); - Assertions.assertEquals("qhabifpikxwcz", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals("scnpqxuhivy", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals( - "iwbybrkxvdumjg", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("fwvuk", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals("audccsnhs", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("yejhk", model.serviceSpecification().metricSpecifications().get(0).metricClass()); - Assertions.assertEquals("apcz", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("okjye", 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("qhabifpikxwcz") - .withDisplayName("scnpqxuhivy") - .withDisplayDescription("iwbybrkxvdumjg") - .withUnit("fwvuk") - .withAggregationType("audccsnhs") - .withSupportedAggregationTypes(Arrays.asList()) - .withMetricClass("yejhk") - .withDimensions(Arrays.asList()))) - .withLogSpecifications( - Arrays - .asList( - new LogSpecification().withName("apcz").withDisplayName("okjye"), - new LogSpecification().withName("kvnipjoxz").withDisplayName("chgejspodm"), - new LogSpecification().withName("lzydehojwyahux").withDisplayName("pmqnja"), - new LogSpecification() - .withName("ixjsprozvcputeg") - .withDisplayName("wmfdatscmdvpjhul")))); - model = BinaryData.fromObject(model).toObject(ApiOperationProperties.class); - Assertions.assertEquals("qhabifpikxwcz", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals("scnpqxuhivy", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals( - "iwbybrkxvdumjg", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("fwvuk", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals("audccsnhs", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("yejhk", model.serviceSpecification().metricSpecifications().get(0).metricClass()); - Assertions.assertEquals("apcz", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("okjye", 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 fec660212e2e..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscOperationPropertiesTests.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.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\":{\"ppofmxaxcfjpgdd\":\"databfkgukdkex\",\"zxibqeoj\":\"dataocjjxhvpmouexh\"}}") - .toObject(AscOperationProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AscOperationProperties model = - new AscOperationProperties() - .withOutput(mapOf("ppofmxaxcfjpgdd", "databfkgukdkex", "zxibqeoj", "dataocjjxhvpmouexh")); - model = BinaryData.fromObject(model).toObject(AscOperationProperties.class); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListMockTests.java deleted file mode 100644 index 76e0e17b79fe..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import com.azure.resourcemanager.storagecache.models.ResourceUsage; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class AscUsagesListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"limit\":1344310513,\"unit\":\"allatmelwuipic\",\"currentValue\":834190026,\"name\":{\"value\":\"ivgvvcna\",\"localizedValue\":\"hyrnxxmu\"}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.ascUsages().list("qgxqquezikyw", 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 61bdf1908687..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/BlobNfsTargetTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.BlobNfsTarget; -import org.junit.jupiter.api.Assertions; - -public final class BlobNfsTargetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobNfsTarget model = - BinaryData - .fromString( - "{\"target\":\"sjyofdx\",\"usageModel\":\"us\",\"verificationTimer\":578093218,\"writeBackTimer\":648396636}") - .toObject(BlobNfsTarget.class); - Assertions.assertEquals("sjyofdx", model.target()); - Assertions.assertEquals("us", model.usageModel()); - Assertions.assertEquals(578093218, model.verificationTimer()); - Assertions.assertEquals(648396636, model.writeBackTimer()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobNfsTarget model = - new BlobNfsTarget() - .withTarget("sjyofdx") - .withUsageModel("us") - .withVerificationTimer(578093218) - .withWriteBackTimer(648396636); - model = BinaryData.fromObject(model).toObject(BlobNfsTarget.class); - Assertions.assertEquals("sjyofdx", model.target()); - Assertions.assertEquals("us", model.usageModel()); - Assertions.assertEquals(578093218, model.verificationTimer()); - Assertions.assertEquals(648396636, 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 222d460fd601..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheHealthTests.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.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\":\"mwvvjektcxsenhw\",\"conditions\":[{\"timestamp\":\"2021-01-30T03:05:29Z\",\"message\":\"zpwv\"}]}") - .toObject(CacheHealth.class); - Assertions.assertEquals(HealthStateType.UPGRADE_FAILED, model.state()); - Assertions.assertEquals("mwvvjektcxsenhw", model.statusDescription()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CacheHealth model = - new CacheHealth().withState(HealthStateType.UPGRADE_FAILED).withStatusDescription("mwvvjektcxsenhw"); - model = BinaryData.fromObject(model).toObject(CacheHealth.class); - Assertions.assertEquals(HealthStateType.UPGRADE_FAILED, model.state()); - Assertions.assertEquals("mwvvjektcxsenhw", 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 374e12aea263..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheIdentityTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.CacheIdentity; -import com.azure.resourcemanager.storagecache.models.CacheIdentityType; -import com.azure.resourcemanager.storagecache.models.UserAssignedIdentitiesValue; -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\":\"v\",\"tenantId\":\"csonpclhoco\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"vmezy\":{\"principalId\":\"leggzfbu\",\"clientId\":\"mvfaxkffeiith\"}}}") - .toObject(CacheIdentity.class); - Assertions.assertEquals(CacheIdentityType.USER_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CacheIdentity model = - new CacheIdentity() - .withType(CacheIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("vmezy", new UserAssignedIdentitiesValue())); - model = BinaryData.fromObject(model).toObject(CacheIdentity.class); - Assertions.assertEquals(CacheIdentityType.USER_ASSIGNED, model.type()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheNetworkSettingsTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheNetworkSettingsTests.java deleted file mode 100644 index 857a5d8b7c62..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheNetworkSettingsTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.CacheNetworkSettings; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CacheNetworkSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CacheNetworkSettings model = - BinaryData - .fromString( - "{\"mtu\":910788688,\"utilityAddresses\":[\"fuwutttxf\",\"jrbirphxepcyv\"],\"dnsServers\":[\"nljky\",\"xjvuujqgidokg\"],\"dnsSearchDomain\":\"jyoxgvclt\",\"ntpServer\":\"sncghkjeszz\"}") - .toObject(CacheNetworkSettings.class); - Assertions.assertEquals(910788688, model.mtu()); - Assertions.assertEquals("nljky", model.dnsServers().get(0)); - Assertions.assertEquals("jyoxgvclt", model.dnsSearchDomain()); - Assertions.assertEquals("sncghkjeszz", model.ntpServer()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CacheNetworkSettings model = - new CacheNetworkSettings() - .withMtu(910788688) - .withDnsServers(Arrays.asList("nljky", "xjvuujqgidokg")) - .withDnsSearchDomain("jyoxgvclt") - .withNtpServer("sncghkjeszz"); - model = BinaryData.fromObject(model).toObject(CacheNetworkSettings.class); - Assertions.assertEquals(910788688, model.mtu()); - Assertions.assertEquals("nljky", model.dnsServers().get(0)); - Assertions.assertEquals("jyoxgvclt", model.dnsSearchDomain()); - Assertions.assertEquals("sncghkjeszz", 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 153fa789baf1..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheSecuritySettingsTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.CacheSecuritySettings; -import com.azure.resourcemanager.storagecache.models.NfsAccessPolicy; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CacheSecuritySettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CacheSecuritySettings model = - BinaryData - .fromString( - "{\"accessPolicies\":[{\"name\":\"mpvecxgodebfqk\",\"accessRules\":[]},{\"name\":\"bmpukgriwflz\",\"accessRules\":[]}]}") - .toObject(CacheSecuritySettings.class); - Assertions.assertEquals("mpvecxgodebfqk", model.accessPolicies().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CacheSecuritySettings model = - new CacheSecuritySettings() - .withAccessPolicies( - Arrays - .asList( - new NfsAccessPolicy().withName("mpvecxgodebfqk").withAccessRules(Arrays.asList()), - new NfsAccessPolicy().withName("bmpukgriwflz").withAccessRules(Arrays.asList()))); - model = BinaryData.fromObject(model).toObject(CacheSecuritySettings.class); - Assertions.assertEquals("mpvecxgodebfqk", model.accessPolicies().get(0).name()); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheSkuTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheSkuTests.java deleted file mode 100644 index 69d59e076acc..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\":\"yonobgl\"}").toObject(CacheSku.class); - Assertions.assertEquals("yonobgl", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CacheSku model = new CacheSku().withName("yonobgl"); - model = BinaryData.fromObject(model).toObject(CacheSku.class); - Assertions.assertEquals("yonobgl", 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 9417cd00c4f4..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheUpgradeSettingsTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.CacheUpgradeSettings; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class CacheUpgradeSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CacheUpgradeSettings model = - BinaryData - .fromString("{\"upgradeScheduleEnabled\":false,\"scheduledTime\":\"2021-02-04T13:42:35Z\"}") - .toObject(CacheUpgradeSettings.class); - Assertions.assertEquals(false, model.upgradeScheduleEnabled()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-04T13:42:35Z"), model.scheduledTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CacheUpgradeSettings model = - new CacheUpgradeSettings() - .withUpgradeScheduleEnabled(false) - .withScheduledTime(OffsetDateTime.parse("2021-02-04T13:42:35Z")); - model = BinaryData.fromObject(model).toObject(CacheUpgradeSettings.class); - Assertions.assertEquals(false, model.upgradeScheduleEnabled()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-04T13:42:35Z"), 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 ab03d4422e87..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CacheUpgradeStatusTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.CacheUpgradeStatus; - -public final class CacheUpgradeStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CacheUpgradeStatus model = - BinaryData - .fromString( - "{\"currentFirmwareVersion\":\"tvfcivfsn\",\"firmwareUpdateStatus\":\"available\",\"firmwareUpdateDeadline\":\"2021-03-08T06:28:46Z\",\"lastFirmwareUpdate\":\"2021-07-09T15:46:39Z\",\"pendingFirmwareVersion\":\"jf\"}") - .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 622e351475c9..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesDebugInfoMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class CachesDebugInfoMockTests { - @Test - public void testDebugInfo() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.caches().debugInfo("foakgg", "fpagaowpulp", 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 818f7136e841..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesDeleteMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class CachesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.caches().delete("i", "pxacqqudfn", 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 e8ba935b5d2f..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesFlushMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class CachesFlushMockTests { - @Test - public void testFlush() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.caches().flush("blylsyxkqjnsj", "r", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesListResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesListResultTests.java deleted file mode 100644 index b7ac1720fede..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesListResultTests.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.fluent.models.CacheInner; -import com.azure.resourcemanager.storagecache.models.CacheIdentity; -import com.azure.resourcemanager.storagecache.models.CacheIdentityType; -import com.azure.resourcemanager.storagecache.models.CacheSku; -import com.azure.resourcemanager.storagecache.models.CachesListResult; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CachesListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CachesListResult model = - BinaryData - .fromString( - "{\"nextLink\":\"fwnfnb\",\"value\":[{\"identity\":{\"principalId\":\"nlebxetqgtzxd\",\"tenantId\":\"qbqqwxr\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"properties\":{\"cacheSizeGB\":69356874,\"scalingFactor\":72.7998351594212,\"mountAddresses\":[],\"provisioningState\":\"Creating\",\"subnet\":\"mpmngnzscxaqwoo\",\"zones\":[],\"primingJobs\":[],\"spaceAllocation\":[]},\"sku\":{\"name\":\"rxnjeaseipheofl\"},\"location\":\"keyyi\",\"tags\":{\"masxazjpqyegu\":\"bdlwtgrhpdjpj\",\"wdslfhotwmcy\":\"lhbxxhejjzzvdud\",\"cftadeh\":\"pwlbjnpg\",\"dejbavo\":\"nltyfsoppusuesnz\"},\"id\":\"xzdmohctb\",\"name\":\"vudwx\",\"type\":\"ndnvo\"},{\"identity\":{\"principalId\":\"jjugwdkcglhslaz\",\"tenantId\":\"yggdtjixh\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"cacheSizeGB\":194127225,\"scalingFactor\":8.463135298414981,\"mountAddresses\":[],\"provisioningState\":\"Creating\",\"subnet\":\"fyexfwhy\",\"zones\":[],\"primingJobs\":[],\"spaceAllocation\":[]},\"sku\":{\"name\":\"ynnaam\"},\"location\":\"ectehf\",\"tags\":{\"ypvhezrkg\":\"cj\",\"sle\":\"hcjrefovgmk\"},\"id\":\"yvxyqjp\",\"name\":\"cattpngjcrcczsq\",\"type\":\"jh\"}]}") - .toObject(CachesListResult.class); - Assertions.assertEquals("fwnfnb", model.nextLink()); - Assertions.assertEquals("keyyi", model.value().get(0).location()); - Assertions.assertEquals("bdlwtgrhpdjpj", model.value().get(0).tags().get("masxazjpqyegu")); - Assertions.assertEquals(CacheIdentityType.NONE, model.value().get(0).identity().type()); - Assertions.assertEquals("rxnjeaseipheofl", model.value().get(0).sku().name()); - Assertions.assertEquals(69356874, model.value().get(0).cacheSizeGB()); - Assertions.assertEquals(72.7998351594212D, model.value().get(0).scalingFactor()); - Assertions.assertEquals("mpmngnzscxaqwoo", model.value().get(0).subnet()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CachesListResult model = - new CachesListResult() - .withNextLink("fwnfnb") - .withValue( - Arrays - .asList( - new CacheInner() - .withLocation("keyyi") - .withTags( - mapOf( - "masxazjpqyegu", - "bdlwtgrhpdjpj", - "wdslfhotwmcy", - "lhbxxhejjzzvdud", - "cftadeh", - "pwlbjnpg", - "dejbavo", - "nltyfsoppusuesnz")) - .withIdentity( - new CacheIdentity() - .withType(CacheIdentityType.NONE) - .withUserAssignedIdentities(mapOf())) - .withSku(new CacheSku().withName("rxnjeaseipheofl")) - .withCacheSizeGB(69356874) - .withScalingFactor(72.7998351594212D) - .withSubnet("mpmngnzscxaqwoo") - .withZones(Arrays.asList()), - new CacheInner() - .withLocation("ectehf") - .withTags(mapOf("ypvhezrkg", "cj", "sle", "hcjrefovgmk")) - .withIdentity( - new CacheIdentity() - .withType(CacheIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf())) - .withSku(new CacheSku().withName("ynnaam")) - .withCacheSizeGB(194127225) - .withScalingFactor(8.463135298414981D) - .withSubnet("fyexfwhy") - .withZones(Arrays.asList()))); - model = BinaryData.fromObject(model).toObject(CachesListResult.class); - Assertions.assertEquals("fwnfnb", model.nextLink()); - Assertions.assertEquals("keyyi", model.value().get(0).location()); - Assertions.assertEquals("bdlwtgrhpdjpj", model.value().get(0).tags().get("masxazjpqyegu")); - Assertions.assertEquals(CacheIdentityType.NONE, model.value().get(0).identity().type()); - Assertions.assertEquals("rxnjeaseipheofl", model.value().get(0).sku().name()); - Assertions.assertEquals(69356874, model.value().get(0).cacheSizeGB()); - Assertions.assertEquals(72.7998351594212D, model.value().get(0).scalingFactor()); - Assertions.assertEquals("mpmngnzscxaqwoo", model.value().get(0).subnet()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStartMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStartMockTests.java deleted file mode 100644 index fb123f24613a..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStartMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class CachesStartMockTests { - @Test - public void testStart() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.caches().start("tiagx", "dszue", 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 459aa4ae3815..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/CachesStopMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class CachesStopMockTests { - @Test - public void testStop() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.caches().stop("psbzkfzbeyvpn", "icvi", 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 0e38534a6198..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\":\"e\"}").toObject(ClfsTarget.class); - Assertions.assertEquals("e", model.target()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClfsTarget model = new ClfsTarget().withTarget("e"); - model = BinaryData.fromObject(model).toObject(ClfsTarget.class); - Assertions.assertEquals("e", 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 4a045f250e37..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ConditionTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.Condition; - -public final class ConditionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Condition model = - BinaryData - .fromString("{\"timestamp\":\"2021-01-03T19:26:04Z\",\"message\":\"gbiqylihkaet\"}") - .toObject(Condition.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Condition model = new Condition(); - model = BinaryData.fromObject(model).toObject(Condition.class); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/KeyVaultKeyReferenceSourceVaultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/KeyVaultKeyReferenceSourceVaultTests.java deleted file mode 100644 index c18fc82c20b8..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\":\"smx\"}").toObject(KeyVaultKeyReferenceSourceVault.class); - Assertions.assertEquals("smx", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KeyVaultKeyReferenceSourceVault model = new KeyVaultKeyReferenceSourceVault().withId("smx"); - model = BinaryData.fromObject(model).toObject(KeyVaultKeyReferenceSourceVault.class); - Assertions.assertEquals("smx", 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 1ed28c73e2cb..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/LogSpecificationTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.LogSpecification; -import org.junit.jupiter.api.Assertions; - -public final class LogSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogSpecification model = - BinaryData - .fromString("{\"name\":\"zlljfmppeebvm\",\"displayName\":\"sabkyqduujitcjcz\"}") - .toObject(LogSpecification.class); - Assertions.assertEquals("zlljfmppeebvm", model.name()); - Assertions.assertEquals("sabkyqduujitcjcz", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogSpecification model = new LogSpecification().withName("zlljfmppeebvm").withDisplayName("sabkyqduujitcjcz"); - model = BinaryData.fromObject(model).toObject(LogSpecification.class); - Assertions.assertEquals("zlljfmppeebvm", model.name()); - Assertions.assertEquals("sabkyqduujitcjcz", 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 d0204a5763cf..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricDimensionTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.MetricDimension; -import org.junit.jupiter.api.Assertions; - -public final class MetricDimensionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MetricDimension model = - BinaryData - .fromString( - "{\"name\":\"qvkoc\",\"displayName\":\"jdkwtnhxbnjb\",\"internalName\":\"sqrglssainq\",\"toBeExportedForShoebox\":true}") - .toObject(MetricDimension.class); - Assertions.assertEquals("qvkoc", model.name()); - Assertions.assertEquals("jdkwtnhxbnjb", model.displayName()); - Assertions.assertEquals("sqrglssainq", model.internalName()); - Assertions.assertEquals(true, model.toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetricDimension model = - new MetricDimension() - .withName("qvkoc") - .withDisplayName("jdkwtnhxbnjb") - .withInternalName("sqrglssainq") - .withToBeExportedForShoebox(true); - model = BinaryData.fromObject(model).toObject(MetricDimension.class); - Assertions.assertEquals("qvkoc", model.name()); - Assertions.assertEquals("jdkwtnhxbnjb", model.displayName()); - Assertions.assertEquals("sqrglssainq", model.internalName()); - Assertions.assertEquals(true, model.toBeExportedForShoebox()); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricSpecificationTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricSpecificationTests.java deleted file mode 100644 index 612149f03d4c..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/MetricSpecificationTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.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\":\"oginuvamiheognar\",\"displayName\":\"xth\",\"displayDescription\":\"tusivyevcciqihn\",\"unit\":\"ngbwjz\",\"aggregationType\":\"fygxgispemvtzfk\",\"supportedAggregationTypes\":[\"Total\",\"Average\",\"Maximum\"],\"metricClass\":\"fxqeof\",\"dimensions\":[{\"name\":\"jhqjbasvmsmjqul\",\"displayName\":\"sntnbybkzgcw\",\"internalName\":\"clxxwrljdo\",\"toBeExportedForShoebox\":true}]}") - .toObject(MetricSpecification.class); - Assertions.assertEquals("oginuvamiheognar", model.name()); - Assertions.assertEquals("xth", model.displayName()); - Assertions.assertEquals("tusivyevcciqihn", model.displayDescription()); - Assertions.assertEquals("ngbwjz", model.unit()); - Assertions.assertEquals("fygxgispemvtzfk", model.aggregationType()); - Assertions.assertEquals(MetricAggregationType.TOTAL, model.supportedAggregationTypes().get(0)); - Assertions.assertEquals("fxqeof", model.metricClass()); - Assertions.assertEquals("jhqjbasvmsmjqul", model.dimensions().get(0).name()); - Assertions.assertEquals("sntnbybkzgcw", model.dimensions().get(0).displayName()); - Assertions.assertEquals("clxxwrljdo", 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("oginuvamiheognar") - .withDisplayName("xth") - .withDisplayDescription("tusivyevcciqihn") - .withUnit("ngbwjz") - .withAggregationType("fygxgispemvtzfk") - .withSupportedAggregationTypes( - Arrays - .asList( - MetricAggregationType.TOTAL, MetricAggregationType.AVERAGE, MetricAggregationType.MAXIMUM)) - .withMetricClass("fxqeof") - .withDimensions( - Arrays - .asList( - new MetricDimension() - .withName("jhqjbasvmsmjqul") - .withDisplayName("sntnbybkzgcw") - .withInternalName("clxxwrljdo") - .withToBeExportedForShoebox(true))); - model = BinaryData.fromObject(model).toObject(MetricSpecification.class); - Assertions.assertEquals("oginuvamiheognar", model.name()); - Assertions.assertEquals("xth", model.displayName()); - Assertions.assertEquals("tusivyevcciqihn", model.displayDescription()); - Assertions.assertEquals("ngbwjz", model.unit()); - Assertions.assertEquals("fygxgispemvtzfk", model.aggregationType()); - Assertions.assertEquals(MetricAggregationType.TOTAL, model.supportedAggregationTypes().get(0)); - Assertions.assertEquals("fxqeof", model.metricClass()); - Assertions.assertEquals("jhqjbasvmsmjqul", model.dimensions().get(0).name()); - Assertions.assertEquals("sntnbybkzgcw", model.dimensions().get(0).displayName()); - Assertions.assertEquals("clxxwrljdo", 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 ffff6a238b44..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NamespaceJunctionTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.NamespaceJunction; -import org.junit.jupiter.api.Assertions; - -public final class NamespaceJunctionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NamespaceJunction model = - BinaryData - .fromString( - "{\"namespacePath\":\"sgzvahapjyzhpv\",\"targetPath\":\"zcjrvxdjzlmwlx\",\"nfsExport\":\"ug\",\"nfsAccessPolicy\":\"zovawjvz\"}") - .toObject(NamespaceJunction.class); - Assertions.assertEquals("sgzvahapjyzhpv", model.namespacePath()); - Assertions.assertEquals("zcjrvxdjzlmwlx", model.targetPath()); - Assertions.assertEquals("ug", model.nfsExport()); - Assertions.assertEquals("zovawjvz", model.nfsAccessPolicy()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NamespaceJunction model = - new NamespaceJunction() - .withNamespacePath("sgzvahapjyzhpv") - .withTargetPath("zcjrvxdjzlmwlx") - .withNfsExport("ug") - .withNfsAccessPolicy("zovawjvz"); - model = BinaryData.fromObject(model).toObject(NamespaceJunction.class); - Assertions.assertEquals("sgzvahapjyzhpv", model.namespacePath()); - Assertions.assertEquals("zcjrvxdjzlmwlx", model.targetPath()); - Assertions.assertEquals("ug", model.nfsExport()); - Assertions.assertEquals("zovawjvz", 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 5c0e60dff374..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/Nfs3TargetTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.Nfs3Target; -import org.junit.jupiter.api.Assertions; - -public final class Nfs3TargetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Nfs3Target model = - BinaryData - .fromString( - "{\"target\":\"luthn\",\"usageModel\":\"rnxipei\",\"verificationTimer\":2136356878,\"writeBackTimer\":703232115}") - .toObject(Nfs3Target.class); - Assertions.assertEquals("luthn", model.target()); - Assertions.assertEquals("rnxipei", model.usageModel()); - Assertions.assertEquals(2136356878, model.verificationTimer()); - Assertions.assertEquals(703232115, model.writeBackTimer()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Nfs3Target model = - new Nfs3Target() - .withTarget("luthn") - .withUsageModel("rnxipei") - .withVerificationTimer(2136356878) - .withWriteBackTimer(703232115); - model = BinaryData.fromObject(model).toObject(Nfs3Target.class); - Assertions.assertEquals("luthn", model.target()); - Assertions.assertEquals("rnxipei", model.usageModel()); - Assertions.assertEquals(2136356878, model.verificationTimer()); - Assertions.assertEquals(703232115, 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 34eeb6081082..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NfsAccessPolicyTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.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\":\"bxzpuzycisp\",\"accessRules\":[{\"scope\":\"host\",\"filter\":\"hmgkbrpyy\",\"access\":\"ro\",\"suid\":true,\"submountAccess\":false,\"rootSquash\":true,\"anonymousUID\":\"pikad\",\"anonymousGID\":\"vtq\"},{\"scope\":\"network\",\"filter\":\"buynhijggm\",\"access\":\"rw\",\"suid\":true,\"submountAccess\":false,\"rootSquash\":false,\"anonymousUID\":\"trcvpnazzmh\",\"anonymousGID\":\"unmpxttd\"},{\"scope\":\"network\",\"filter\":\"bnlankxmyskpb\",\"access\":\"no\",\"suid\":true,\"submountAccess\":false,\"rootSquash\":true,\"anonymousUID\":\"w\",\"anonymousGID\":\"tnrsyn\"}]}") - .toObject(NfsAccessPolicy.class); - Assertions.assertEquals("bxzpuzycisp", model.name()); - Assertions.assertEquals(NfsAccessRuleScope.HOST, model.accessRules().get(0).scope()); - Assertions.assertEquals("hmgkbrpyy", model.accessRules().get(0).filter()); - Assertions.assertEquals(NfsAccessRuleAccess.RO, model.accessRules().get(0).access()); - Assertions.assertEquals(true, model.accessRules().get(0).suid()); - Assertions.assertEquals(false, model.accessRules().get(0).submountAccess()); - Assertions.assertEquals(true, model.accessRules().get(0).rootSquash()); - Assertions.assertEquals("pikad", model.accessRules().get(0).anonymousUid()); - Assertions.assertEquals("vtq", model.accessRules().get(0).anonymousGid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NfsAccessPolicy model = - new NfsAccessPolicy() - .withName("bxzpuzycisp") - .withAccessRules( - Arrays - .asList( - new NfsAccessRule() - .withScope(NfsAccessRuleScope.HOST) - .withFilter("hmgkbrpyy") - .withAccess(NfsAccessRuleAccess.RO) - .withSuid(true) - .withSubmountAccess(false) - .withRootSquash(true) - .withAnonymousUid("pikad") - .withAnonymousGid("vtq"), - new NfsAccessRule() - .withScope(NfsAccessRuleScope.NETWORK) - .withFilter("buynhijggm") - .withAccess(NfsAccessRuleAccess.RW) - .withSuid(true) - .withSubmountAccess(false) - .withRootSquash(false) - .withAnonymousUid("trcvpnazzmh") - .withAnonymousGid("unmpxttd"), - new NfsAccessRule() - .withScope(NfsAccessRuleScope.NETWORK) - .withFilter("bnlankxmyskpb") - .withAccess(NfsAccessRuleAccess.NO) - .withSuid(true) - .withSubmountAccess(false) - .withRootSquash(true) - .withAnonymousUid("w") - .withAnonymousGid("tnrsyn"))); - model = BinaryData.fromObject(model).toObject(NfsAccessPolicy.class); - Assertions.assertEquals("bxzpuzycisp", model.name()); - Assertions.assertEquals(NfsAccessRuleScope.HOST, model.accessRules().get(0).scope()); - Assertions.assertEquals("hmgkbrpyy", model.accessRules().get(0).filter()); - Assertions.assertEquals(NfsAccessRuleAccess.RO, model.accessRules().get(0).access()); - Assertions.assertEquals(true, model.accessRules().get(0).suid()); - Assertions.assertEquals(false, model.accessRules().get(0).submountAccess()); - Assertions.assertEquals(true, model.accessRules().get(0).rootSquash()); - Assertions.assertEquals("pikad", model.accessRules().get(0).anonymousUid()); - Assertions.assertEquals("vtq", 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 058c214b79b0..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/NfsAccessRuleTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.NfsAccessRule; -import com.azure.resourcemanager.storagecache.models.NfsAccessRuleAccess; -import com.azure.resourcemanager.storagecache.models.NfsAccessRuleScope; -import org.junit.jupiter.api.Assertions; - -public final class NfsAccessRuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NfsAccessRule model = - BinaryData - .fromString( - "{\"scope\":\"default\",\"filter\":\"dybyxczfclhaa\",\"access\":\"rw\",\"suid\":false,\"submountAccess\":false,\"rootSquash\":false,\"anonymousUID\":\"rqlfktsthsucocmn\",\"anonymousGID\":\"azt\"}") - .toObject(NfsAccessRule.class); - Assertions.assertEquals(NfsAccessRuleScope.DEFAULT, model.scope()); - Assertions.assertEquals("dybyxczfclhaa", model.filter()); - Assertions.assertEquals(NfsAccessRuleAccess.RW, model.access()); - Assertions.assertEquals(false, model.suid()); - Assertions.assertEquals(false, model.submountAccess()); - Assertions.assertEquals(false, model.rootSquash()); - Assertions.assertEquals("rqlfktsthsucocmn", model.anonymousUid()); - Assertions.assertEquals("azt", model.anonymousGid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NfsAccessRule model = - new NfsAccessRule() - .withScope(NfsAccessRuleScope.DEFAULT) - .withFilter("dybyxczfclhaa") - .withAccess(NfsAccessRuleAccess.RW) - .withSuid(false) - .withSubmountAccess(false) - .withRootSquash(false) - .withAnonymousUid("rqlfktsthsucocmn") - .withAnonymousGid("azt"); - model = BinaryData.fromObject(model).toObject(NfsAccessRule.class); - Assertions.assertEquals(NfsAccessRuleScope.DEFAULT, model.scope()); - Assertions.assertEquals("dybyxczfclhaa", model.filter()); - Assertions.assertEquals(NfsAccessRuleAccess.RW, model.access()); - Assertions.assertEquals(false, model.suid()); - Assertions.assertEquals(false, model.submountAccess()); - Assertions.assertEquals(false, model.rootSquash()); - Assertions.assertEquals("rqlfktsthsucocmn", model.anonymousUid()); - Assertions.assertEquals("azt", 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 3653a0bb23c3..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/OperationsListMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import com.azure.resourcemanager.storagecache.models.ApiOperation; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"display\":{\"operation\":\"pvhelxprg\",\"provider\":\"atddc\",\"resource\":\"bcuejrjxgci\",\"description\":\"brh\"},\"origin\":\"xsdqrhzoymibmrqy\",\"isDataAction\":true,\"name\":\"wfluszdt\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[],\"logSpecifications\":[]}}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pvhelxprg", response.iterator().next().display().operation()); - Assertions.assertEquals("atddc", response.iterator().next().display().provider()); - Assertions.assertEquals("bcuejrjxgci", response.iterator().next().display().resource()); - Assertions.assertEquals("brh", response.iterator().next().display().description()); - Assertions.assertEquals("xsdqrhzoymibmrqy", response.iterator().next().origin()); - Assertions.assertEquals(true, response.iterator().next().isDataAction()); - Assertions.assertEquals("wfluszdt", response.iterator().next().name()); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/PrimingJobIdParameterTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/PrimingJobIdParameterTests.java deleted file mode 100644 index dc802ae33a26..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\":\"xyawj\"}").toObject(PrimingJobIdParameter.class); - Assertions.assertEquals("xyawj", model.primingJobId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrimingJobIdParameter model = new PrimingJobIdParameter().withPrimingJobId("xyawj"); - model = BinaryData.fromObject(model).toObject(PrimingJobIdParameter.class); - Assertions.assertEquals("xyawj", 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 b433694f19a0..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/PrimingJobTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.PrimingJob; -import org.junit.jupiter.api.Assertions; - -public final class PrimingJobTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrimingJob model = - BinaryData - .fromString( - "{\"primingJobName\":\"cnjbkcnxdhbt\",\"primingManifestUrl\":\"kphywpnvjto\",\"primingJobId\":\"ermclfplphoxuscr\",\"primingJobState\":\"Running\",\"primingJobStatus\":\"ye\",\"primingJobDetails\":\"bjtazqugxywpmu\",\"primingJobPercentComplete\":17.17857902556815}") - .toObject(PrimingJob.class); - Assertions.assertEquals("cnjbkcnxdhbt", model.primingJobName()); - Assertions.assertEquals("kphywpnvjto", model.primingManifestUrl()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrimingJob model = new PrimingJob().withPrimingJobName("cnjbkcnxdhbt").withPrimingManifestUrl("kphywpnvjto"); - model = BinaryData.fromObject(model).toObject(PrimingJob.class); - Assertions.assertEquals("cnjbkcnxdhbt", model.primingJobName()); - Assertions.assertEquals("kphywpnvjto", 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 160bbe32a7fc..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInfoTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSizeInfo; -import com.azure.resourcemanager.storagecache.models.SkuName; -import org.junit.jupiter.api.Assertions; - -public final class RequiredAmlFilesystemSubnetsSizeInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RequiredAmlFilesystemSubnetsSizeInfo model = - BinaryData - .fromString("{\"storageCapacityTiB\":38.353115,\"sku\":{\"name\":\"cmbqfqvmk\"}}") - .toObject(RequiredAmlFilesystemSubnetsSizeInfo.class); - Assertions.assertEquals(38.353115F, model.storageCapacityTiB()); - Assertions.assertEquals("cmbqfqvmk", model.sku().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RequiredAmlFilesystemSubnetsSizeInfo model = - new RequiredAmlFilesystemSubnetsSizeInfo() - .withStorageCapacityTiB(38.353115F) - .withSku(new SkuName().withName("cmbqfqvmk")); - model = BinaryData.fromObject(model).toObject(RequiredAmlFilesystemSubnetsSizeInfo.class); - Assertions.assertEquals(38.353115F, model.storageCapacityTiB()); - Assertions.assertEquals("cmbqfqvmk", 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 8c31b4017c10..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInnerTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.fluent.models.RequiredAmlFilesystemSubnetsSizeInner; -import org.junit.jupiter.api.Assertions; - -public final class RequiredAmlFilesystemSubnetsSizeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RequiredAmlFilesystemSubnetsSizeInner model = - BinaryData - .fromString("{\"filesystemSubnetSize\":370806274}") - .toObject(RequiredAmlFilesystemSubnetsSizeInner.class); - Assertions.assertEquals(370806274, model.filesystemSubnetSize()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RequiredAmlFilesystemSubnetsSizeInner model = - new RequiredAmlFilesystemSubnetsSizeInner().withFilesystemSubnetSize(370806274); - model = BinaryData.fromObject(model).toObject(RequiredAmlFilesystemSubnetsSizeInner.class); - Assertions.assertEquals(370806274, 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 daf28aa6b9aa..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersCheckAmlFSSubnetsWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import com.azure.resourcemanager.storagecache.models.AmlFilesystemSubnetInfo; -import com.azure.resourcemanager.storagecache.models.SkuName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ResourceProvidersCheckAmlFSSubnetsWithResponseMockTests { - @Test - public void testCheckAmlFSSubnetsWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .resourceProviders() - .checkAmlFSSubnetsWithResponse( - new AmlFilesystemSubnetInfo() - .withFilesystemSubnet("epbqpcrfkbw") - .withStorageCapacityTiB(94.3013F) - .withSku(new SkuName().withName("vcdwxlpqekftn")) - .withLocation("tjsyin"), - 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 7bceb20ce82e..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersGetRequiredAmlFSSubnetsSizeWithResponseMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSize; -import com.azure.resourcemanager.storagecache.models.RequiredAmlFilesystemSubnetsSizeInfo; -import com.azure.resourcemanager.storagecache.models.SkuName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ResourceProvidersGetRequiredAmlFSSubnetsSizeWithResponseMockTests { - @Test - public void testGetRequiredAmlFSSubnetsSizeWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"filesystemSubnetSize\":624157964}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RequiredAmlFilesystemSubnetsSize response = - manager - .resourceProviders() - .getRequiredAmlFSSubnetsSizeWithResponse( - new RequiredAmlFilesystemSubnetsSizeInfo() - .withStorageCapacityTiB(6.7967834F) - .withSku(new SkuName().withName("tmtdhtmdvypgik")), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(624157964, 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 a00e45aa2e9f..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkuCapabilitiesTests.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.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\":\"yc\",\"value\":\"newmdwzjeiachbo\"}") - .toObject(ResourceSkuCapabilities.class); - Assertions.assertEquals("yc", model.name()); - Assertions.assertEquals("newmdwzjeiachbo", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceSkuCapabilities model = new ResourceSkuCapabilities().withName("yc").withValue("newmdwzjeiachbo"); - model = BinaryData.fromObject(model).toObject(ResourceSkuCapabilities.class); - Assertions.assertEquals("yc", model.name()); - Assertions.assertEquals("newmdwzjeiachbo", 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 44ba02a013d0..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkuLocationInfoTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.ResourceSkuLocationInfo; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ResourceSkuLocationInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceSkuLocationInfo model = - BinaryData - .fromString("{\"location\":\"flnrosfqpteehzz\",\"zones\":[\"yqrimzin\"]}") - .toObject(ResourceSkuLocationInfo.class); - Assertions.assertEquals("flnrosfqpteehzz", model.location()); - Assertions.assertEquals("yqrimzin", model.zones().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceSkuLocationInfo model = - new ResourceSkuLocationInfo().withLocation("flnrosfqpteehzz").withZones(Arrays.asList("yqrimzin")); - model = BinaryData.fromObject(model).toObject(ResourceSkuLocationInfo.class); - Assertions.assertEquals("flnrosfqpteehzz", model.location()); - Assertions.assertEquals("yqrimzin", model.zones().get(0)); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkusResultTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkusResultTests.java deleted file mode 100644 index e88315ed9b58..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceSkusResultTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.ResourceSkusResult; -import org.junit.jupiter.api.Assertions; - -public final class ResourceSkusResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceSkusResult model = - BinaryData - .fromString( - "{\"nextLink\":\"evndh\",\"value\":[{\"resourceType\":\"d\",\"capabilities\":[],\"locations\":[\"bdkvwrwjf\",\"usnhutje\"],\"locationInfo\":[],\"name\":\"ldhugjzzdatqxh\",\"restrictions\":[]},{\"resourceType\":\"eablg\",\"capabilities\":[],\"locations\":[\"cndvkaozwyiftyhx\",\"urokft\",\"xolniwpwcukjfk\",\"iawxklry\"],\"locationInfo\":[],\"name\":\"kbasyypn\",\"restrictions\":[]},{\"resourceType\":\"gcbacphejkot\",\"capabilities\":[],\"locations\":[\"ulzndlikwyqk\",\"fgibmadgakeq\",\"rxybz\"],\"locationInfo\":[],\"name\":\"qytbciq\",\"restrictions\":[]}]}") - .toObject(ResourceSkusResult.class); - Assertions.assertEquals("evndh", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceSkusResult model = new ResourceSkusResult().withNextLink("evndh"); - model = BinaryData.fromObject(model).toObject(ResourceSkusResult.class); - Assertions.assertEquals("evndh", model.nextLink()); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageInnerTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageInnerTests.java deleted file mode 100644 index 594595b5c9b4..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.fluent.models.ResourceUsageInner; - -public final class ResourceUsageInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceUsageInner model = - BinaryData - .fromString( - "{\"limit\":974943815,\"unit\":\"tzlcuiywgqywgn\",\"currentValue\":974991639,\"name\":{\"value\":\"hzgpphrcgyncocpe\",\"localizedValue\":\"vmmcoofs\"}}") - .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 b1e3b1c825ed..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsageNameTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.ResourceUsageName; -import org.junit.jupiter.api.Assertions; - -public final class ResourceUsageNameTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceUsageName model = - BinaryData - .fromString("{\"value\":\"zevgb\",\"localizedValue\":\"jqabcypmivkwlzuv\"}") - .toObject(ResourceUsageName.class); - Assertions.assertEquals("zevgb", model.value()); - Assertions.assertEquals("jqabcypmivkwlzuv", model.localizedValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceUsageName model = new ResourceUsageName().withValue("zevgb").withLocalizedValue("jqabcypmivkwlzuv"); - model = BinaryData.fromObject(model).toObject(ResourceUsageName.class); - Assertions.assertEquals("zevgb", model.value()); - Assertions.assertEquals("jqabcypmivkwlzuv", 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 fdf109311ead..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceUsagesListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.ResourceUsagesListResult; - -public final class ResourceUsagesListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceUsagesListResult model = - BinaryData - .fromString( - "{\"nextLink\":\"qbzvddntwnd\",\"value\":[{\"limit\":1638817627,\"unit\":\"npzaoq\",\"currentValue\":2037494020,\"name\":{\"value\":\"cffcyddglmj\",\"localizedValue\":\"jqkwpyeicx\"}},{\"limit\":1788510913,\"unit\":\"wqvhkhixuigdt\",\"currentValue\":588882350,\"name\":{\"value\":\"joghmewuama\",\"localizedValue\":\"rzayv\"}},{\"limit\":1120285230,\"unit\":\"vdfgiotk\",\"currentValue\":1980414786,\"name\":{\"value\":\"xlngx\",\"localizedValue\":\"fgugnxkrxdqmid\"}},{\"limit\":1583346323,\"unit\":\"rvqdra\",\"currentValue\":1546969178,\"name\":{\"value\":\"igeho\",\"localizedValue\":\"bowsk\"}}]}") - .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 0057783e9918..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\":\"podxunkb\"}").toObject(SkuName.class); - Assertions.assertEquals("podxunkb", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkuName model = new SkuName().withName("podxunkb"); - model = BinaryData.fromObject(model).toObject(SkuName.class); - Assertions.assertEquals("podxunkb", 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 dfacf3d7c7e1..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetInnerTests.java +++ /dev/null @@ -1,122 +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\":\"kyv\",\"targetPath\":\"ca\",\"nfsExport\":\"z\",\"nfsAccessPolicy\":\"zka\"},{\"namespacePath\":\"uwbc\",\"targetPath\":\"wbme\",\"nfsExport\":\"seyvj\",\"nfsAccessPolicy\":\"rts\"},{\"namespacePath\":\"spkdee\",\"targetPath\":\"ofmxagkvtmelmqkr\",\"nfsExport\":\"hvljuahaquh\",\"nfsAccessPolicy\":\"hmdua\"},{\"namespacePath\":\"exq\",\"targetPath\":\"fadmws\",\"nfsExport\":\"r\",\"nfsAccessPolicy\":\"xpvgo\"}],\"targetType\":\"blobNfs\",\"provisioningState\":\"Creating\",\"state\":\"Flushing\",\"nfs3\":{\"target\":\"wbnb\",\"usageModel\":\"ldawkzbaliourqha\",\"verificationTimer\":30531984,\"writeBackTimer\":33232567},\"clfs\":{\"target\":\"sfwxosowzxc\"},\"unknown\":{\"attributes\":{\"ucww\":\"jooxdjebw\",\"bvmeuecivy\":\"vo\",\"ueiotwmcdyt\":\"zceuojgjrw\",\"it\":\"x\"}},\"blobNfs\":{\"target\":\"jawgqwg\",\"usageModel\":\"ni\",\"verificationTimer\":236193588,\"writeBackTimer\":1319341047},\"allocationPercentage\":494916053},\"location\":\"cg\",\"id\":\"wndnhj\",\"name\":\"auwhvylwzbtdhx\",\"type\":\"jznb\"}") - .toObject(StorageTargetInner.class); - Assertions.assertEquals("kyv", model.junctions().get(0).namespacePath()); - Assertions.assertEquals("ca", model.junctions().get(0).targetPath()); - Assertions.assertEquals("z", model.junctions().get(0).nfsExport()); - Assertions.assertEquals("zka", model.junctions().get(0).nfsAccessPolicy()); - Assertions.assertEquals(StorageTargetType.BLOB_NFS, model.targetType()); - Assertions.assertEquals(OperationalStateType.FLUSHING, model.state()); - Assertions.assertEquals("wbnb", model.nfs3().target()); - Assertions.assertEquals("ldawkzbaliourqha", model.nfs3().usageModel()); - Assertions.assertEquals(30531984, model.nfs3().verificationTimer()); - Assertions.assertEquals(33232567, model.nfs3().writeBackTimer()); - Assertions.assertEquals("sfwxosowzxc", model.clfs().target()); - Assertions.assertEquals("jooxdjebw", model.unknown().attributes().get("ucww")); - Assertions.assertEquals("jawgqwg", model.blobNfs().target()); - Assertions.assertEquals("ni", model.blobNfs().usageModel()); - Assertions.assertEquals(236193588, model.blobNfs().verificationTimer()); - Assertions.assertEquals(1319341047, model.blobNfs().writeBackTimer()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageTargetInner model = - new StorageTargetInner() - .withJunctions( - Arrays - .asList( - new NamespaceJunction() - .withNamespacePath("kyv") - .withTargetPath("ca") - .withNfsExport("z") - .withNfsAccessPolicy("zka"), - new NamespaceJunction() - .withNamespacePath("uwbc") - .withTargetPath("wbme") - .withNfsExport("seyvj") - .withNfsAccessPolicy("rts"), - new NamespaceJunction() - .withNamespacePath("spkdee") - .withTargetPath("ofmxagkvtmelmqkr") - .withNfsExport("hvljuahaquh") - .withNfsAccessPolicy("hmdua"), - new NamespaceJunction() - .withNamespacePath("exq") - .withTargetPath("fadmws") - .withNfsExport("r") - .withNfsAccessPolicy("xpvgo"))) - .withTargetType(StorageTargetType.BLOB_NFS) - .withState(OperationalStateType.FLUSHING) - .withNfs3( - new Nfs3Target() - .withTarget("wbnb") - .withUsageModel("ldawkzbaliourqha") - .withVerificationTimer(30531984) - .withWriteBackTimer(33232567)) - .withClfs(new ClfsTarget().withTarget("sfwxosowzxc")) - .withUnknown( - new UnknownTarget() - .withAttributes( - mapOf("ucww", "jooxdjebw", "bvmeuecivy", "vo", "ueiotwmcdyt", "zceuojgjrw", "it", "x"))) - .withBlobNfs( - new BlobNfsTarget() - .withTarget("jawgqwg") - .withUsageModel("ni") - .withVerificationTimer(236193588) - .withWriteBackTimer(1319341047)); - model = BinaryData.fromObject(model).toObject(StorageTargetInner.class); - Assertions.assertEquals("kyv", model.junctions().get(0).namespacePath()); - Assertions.assertEquals("ca", model.junctions().get(0).targetPath()); - Assertions.assertEquals("z", model.junctions().get(0).nfsExport()); - Assertions.assertEquals("zka", model.junctions().get(0).nfsAccessPolicy()); - Assertions.assertEquals(StorageTargetType.BLOB_NFS, model.targetType()); - Assertions.assertEquals(OperationalStateType.FLUSHING, model.state()); - Assertions.assertEquals("wbnb", model.nfs3().target()); - Assertions.assertEquals("ldawkzbaliourqha", model.nfs3().usageModel()); - Assertions.assertEquals(30531984, model.nfs3().verificationTimer()); - Assertions.assertEquals(33232567, model.nfs3().writeBackTimer()); - Assertions.assertEquals("sfwxosowzxc", model.clfs().target()); - Assertions.assertEquals("jooxdjebw", model.unknown().attributes().get("ucww")); - Assertions.assertEquals("jawgqwg", model.blobNfs().target()); - Assertions.assertEquals("ni", model.blobNfs().usageModel()); - Assertions.assertEquals(236193588, model.blobNfs().verificationTimer()); - Assertions.assertEquals(1319341047, model.blobNfs().writeBackTimer()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsFlushMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsFlushMockTests.java deleted file mode 100644 index 41c66d8f4dfb..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsFlushMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageTargetOperationsFlushMockTests { - @Test - public void testFlush() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .storageTargetOperations() - .flush("vfvpdbodaciz", "j", "lhkrribdeibqipqk", 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 23f0ea01c4b7..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsInvalidateMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageTargetOperationsInvalidateMockTests { - @Test - public void testInvalidate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .storageTargetOperations() - .invalidate("vncjabudurgk", "kmokz", "jjklff", 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 d62fae759598..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsResumeMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageTargetOperationsResumeMockTests { - @Test - public void testResume() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .storageTargetOperations() - .resume("sjabibs", "stawfsdjpvkv", "bjxbkzbzk", 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 42fdd7ff9e6f..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetOperationsSuspendMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageTargetOperationsSuspendMockTests { - @Test - public void testSuspend() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .storageTargetOperations() - .suspend("hvxndzwmkrefajpj", "rwkq", "yhgbijtjivfx", 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 f55813cc7882..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetPropertiesTests.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.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\":\"uwprzql\",\"targetPath\":\"ualupjmkh\",\"nfsExport\":\"obbc\",\"nfsAccessPolicy\":\"s\"}],\"targetType\":\"clfs\",\"provisioningState\":\"Updating\",\"state\":\"Suspended\",\"nfs3\":{\"target\":\"bpbewtghfgb\",\"usageModel\":\"gw\",\"verificationTimer\":748159283,\"writeBackTimer\":161265854},\"clfs\":{\"target\":\"jkbegibtnmxiebww\"},\"unknown\":{\"attributes\":{\"mhtxongmtsavjcb\":\"yqcgwrtzjuzgwy\",\"hprwmdyv\":\"wxqpsrknftguvri\"}},\"blobNfs\":{\"target\":\"ayriwwroyqbexrm\",\"usageModel\":\"ibycno\",\"verificationTimer\":988905675,\"writeBackTimer\":2121055666},\"allocationPercentage\":841332893}") - .toObject(StorageTargetProperties.class); - Assertions.assertEquals("uwprzql", model.junctions().get(0).namespacePath()); - Assertions.assertEquals("ualupjmkh", model.junctions().get(0).targetPath()); - Assertions.assertEquals("obbc", model.junctions().get(0).nfsExport()); - Assertions.assertEquals("s", model.junctions().get(0).nfsAccessPolicy()); - Assertions.assertEquals(StorageTargetType.CLFS, model.targetType()); - Assertions.assertEquals(OperationalStateType.SUSPENDED, model.state()); - Assertions.assertEquals("bpbewtghfgb", model.nfs3().target()); - Assertions.assertEquals("gw", model.nfs3().usageModel()); - Assertions.assertEquals(748159283, model.nfs3().verificationTimer()); - Assertions.assertEquals(161265854, model.nfs3().writeBackTimer()); - Assertions.assertEquals("jkbegibtnmxiebww", model.clfs().target()); - Assertions.assertEquals("yqcgwrtzjuzgwy", model.unknown().attributes().get("mhtxongmtsavjcb")); - Assertions.assertEquals("ayriwwroyqbexrm", model.blobNfs().target()); - Assertions.assertEquals("ibycno", model.blobNfs().usageModel()); - Assertions.assertEquals(988905675, model.blobNfs().verificationTimer()); - Assertions.assertEquals(2121055666, model.blobNfs().writeBackTimer()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageTargetProperties model = - new StorageTargetProperties() - .withJunctions( - Arrays - .asList( - new NamespaceJunction() - .withNamespacePath("uwprzql") - .withTargetPath("ualupjmkh") - .withNfsExport("obbc") - .withNfsAccessPolicy("s"))) - .withTargetType(StorageTargetType.CLFS) - .withState(OperationalStateType.SUSPENDED) - .withNfs3( - new Nfs3Target() - .withTarget("bpbewtghfgb") - .withUsageModel("gw") - .withVerificationTimer(748159283) - .withWriteBackTimer(161265854)) - .withClfs(new ClfsTarget().withTarget("jkbegibtnmxiebww")) - .withUnknown( - new UnknownTarget() - .withAttributes(mapOf("mhtxongmtsavjcb", "yqcgwrtzjuzgwy", "hprwmdyv", "wxqpsrknftguvri"))) - .withBlobNfs( - new BlobNfsTarget() - .withTarget("ayriwwroyqbexrm") - .withUsageModel("ibycno") - .withVerificationTimer(988905675) - .withWriteBackTimer(2121055666)); - model = BinaryData.fromObject(model).toObject(StorageTargetProperties.class); - Assertions.assertEquals("uwprzql", model.junctions().get(0).namespacePath()); - Assertions.assertEquals("ualupjmkh", model.junctions().get(0).targetPath()); - Assertions.assertEquals("obbc", model.junctions().get(0).nfsExport()); - Assertions.assertEquals("s", model.junctions().get(0).nfsAccessPolicy()); - Assertions.assertEquals(StorageTargetType.CLFS, model.targetType()); - Assertions.assertEquals(OperationalStateType.SUSPENDED, model.state()); - Assertions.assertEquals("bpbewtghfgb", model.nfs3().target()); - Assertions.assertEquals("gw", model.nfs3().usageModel()); - Assertions.assertEquals(748159283, model.nfs3().verificationTimer()); - Assertions.assertEquals(161265854, model.nfs3().writeBackTimer()); - Assertions.assertEquals("jkbegibtnmxiebww", model.clfs().target()); - Assertions.assertEquals("yqcgwrtzjuzgwy", model.unknown().attributes().get("mhtxongmtsavjcb")); - Assertions.assertEquals("ayriwwroyqbexrm", model.blobNfs().target()); - Assertions.assertEquals("ibycno", model.blobNfs().usageModel()); - Assertions.assertEquals(988905675, model.blobNfs().verificationTimer()); - Assertions.assertEquals(2121055666, model.blobNfs().writeBackTimer()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetResourceTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetResourceTests.java deleted file mode 100644 index 9be073add904..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetResourceTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.StorageTargetResource; - -public final class StorageTargetResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageTargetResource model = - BinaryData - .fromString("{\"location\":\"aboekqv\",\"id\":\"lns\",\"name\":\"vbxwyjsflhh\",\"type\":\"aalnjixi\"}") - .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 a7f00bdf5a08..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetSpaceAllocationTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.StorageTargetSpaceAllocation; -import org.junit.jupiter.api.Assertions; - -public final class StorageTargetSpaceAllocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageTargetSpaceAllocation model = - BinaryData - .fromString("{\"name\":\"wfqkquj\",\"allocationPercentage\":1148622887}") - .toObject(StorageTargetSpaceAllocation.class); - Assertions.assertEquals("wfqkquj", model.name()); - Assertions.assertEquals(1148622887, model.allocationPercentage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageTargetSpaceAllocation model = - new StorageTargetSpaceAllocation().withName("wfqkquj").withAllocationPercentage(1148622887); - model = BinaryData.fromObject(model).toObject(StorageTargetSpaceAllocation.class); - Assertions.assertEquals("wfqkquj", model.name()); - Assertions.assertEquals(1148622887, 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 93ebf4867087..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import com.azure.resourcemanager.storagecache.models.BlobNfsTarget; -import com.azure.resourcemanager.storagecache.models.ClfsTarget; -import com.azure.resourcemanager.storagecache.models.Nfs3Target; -import com.azure.resourcemanager.storagecache.models.OperationalStateType; -import com.azure.resourcemanager.storagecache.models.StorageTarget; -import com.azure.resourcemanager.storagecache.models.StorageTargetType; -import com.azure.resourcemanager.storagecache.models.UnknownTarget; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageTargetsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"junctions\":[],\"targetType\":\"blobNfs\",\"provisioningState\":\"Succeeded\",\"state\":\"Ready\",\"nfs3\":{\"target\":\"ksrpqv\",\"usageModel\":\"zraehtwd\",\"verificationTimer\":1778813982,\"writeBackTimer\":1438579727},\"clfs\":{\"target\":\"byrcdlbhshfwp\"},\"unknown\":{\"attributes\":{}},\"blobNfs\":{\"target\":\"wity\",\"usageModel\":\"evxccedcp\",\"verificationTimer\":586634828,\"writeBackTimer\":684475424},\"allocationPercentage\":167865446},\"location\":\"zxltjcvn\",\"id\":\"tiugcxnav\",\"name\":\"wxqibyq\",\"type\":\"nyowxwlmdjrkvfg\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - StorageTarget response = - manager - .storageTargets() - .define("piyylhalnswhccsp") - .withExistingCache("ah", "icslfaoq") - .withJunctions(Arrays.asList()) - .withTargetType(StorageTargetType.UNKNOWN) - .withState(OperationalStateType.BUSY) - .withNfs3( - new Nfs3Target() - .withTarget("ywuggwoluhcz") - .withUsageModel("emh") - .withVerificationTimer(200585156) - .withWriteBackTimer(1060937316)) - .withClfs(new ClfsTarget().withTarget("z")) - .withUnknown(new UnknownTarget().withAttributes(mapOf())) - .withBlobNfs( - new BlobNfsTarget() - .withTarget("eypqwdxggicccn") - .withUsageModel("huexmk") - .withVerificationTimer(171161135) - .withWriteBackTimer(1054348500)) - .create(); - - Assertions.assertEquals(StorageTargetType.BLOB_NFS, response.targetType()); - Assertions.assertEquals(OperationalStateType.READY, response.state()); - Assertions.assertEquals("ksrpqv", response.nfs3().target()); - Assertions.assertEquals("zraehtwd", response.nfs3().usageModel()); - Assertions.assertEquals(1778813982, response.nfs3().verificationTimer()); - Assertions.assertEquals(1438579727, response.nfs3().writeBackTimer()); - Assertions.assertEquals("byrcdlbhshfwp", response.clfs().target()); - Assertions.assertEquals("wity", response.blobNfs().target()); - Assertions.assertEquals("evxccedcp", response.blobNfs().usageModel()); - Assertions.assertEquals(586634828, response.blobNfs().verificationTimer()); - Assertions.assertEquals(684475424, response.blobNfs().writeBackTimer()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteMockTests.java deleted file mode 100644 index be24c576200f..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDeleteMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageTargetsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.storageTargets().delete("t", "gsfraoyzkoow", "lmnguxaw", "aldsy", 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 d733d757c628..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsDnsRefreshMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageTargetsDnsRefreshMockTests { - @Test - public void testDnsRefresh() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .storageTargets() - .dnsRefresh("uwjuetaeburuvdmo", "s", "zlxwabmqoefkifr", 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 e619ef602e5d..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsGetWithResponseMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import com.azure.resourcemanager.storagecache.models.OperationalStateType; -import com.azure.resourcemanager.storagecache.models.StorageTarget; -import com.azure.resourcemanager.storagecache.models.StorageTargetType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageTargetsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"junctions\":[],\"targetType\":\"nfs3\",\"provisioningState\":\"Creating\",\"state\":\"Flushing\",\"nfs3\":{\"target\":\"kgtdlmkkze\",\"usageModel\":\"l\",\"verificationTimer\":1094584073,\"writeBackTimer\":2133700898},\"clfs\":{\"target\":\"sttwvogvbbe\"},\"unknown\":{\"attributes\":{}},\"blobNfs\":{\"target\":\"qqmoaku\",\"usageModel\":\"m\",\"verificationTimer\":574072146,\"writeBackTimer\":1463483261},\"allocationPercentage\":1475020462},\"location\":\"twaenuuzko\",\"id\":\"minrfdw\",\"name\":\"yuhhziu\",\"type\":\"efozbhdms\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - StorageTarget response = - manager - .storageTargets() - .getWithResponse("uximerqfobw", "znkbykutwpfhpagm", "r", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(StorageTargetType.NFS3, response.targetType()); - Assertions.assertEquals(OperationalStateType.FLUSHING, response.state()); - Assertions.assertEquals("kgtdlmkkze", response.nfs3().target()); - Assertions.assertEquals("l", response.nfs3().usageModel()); - Assertions.assertEquals(1094584073, response.nfs3().verificationTimer()); - Assertions.assertEquals(2133700898, response.nfs3().writeBackTimer()); - Assertions.assertEquals("sttwvogvbbe", response.clfs().target()); - Assertions.assertEquals("qqmoaku", response.blobNfs().target()); - Assertions.assertEquals("m", response.blobNfs().usageModel()); - Assertions.assertEquals(574072146, response.blobNfs().verificationTimer()); - Assertions.assertEquals(1463483261, 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 b7bfe2048fdf..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsListByCacheMockTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import com.azure.resourcemanager.storagecache.models.OperationalStateType; -import com.azure.resourcemanager.storagecache.models.StorageTarget; -import com.azure.resourcemanager.storagecache.models.StorageTargetType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageTargetsListByCacheMockTests { - @Test - public void testListByCache() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"junctions\":[],\"targetType\":\"unknown\",\"provisioningState\":\"Succeeded\",\"state\":\"Ready\",\"nfs3\":{\"target\":\"ed\",\"usageModel\":\"wwa\",\"verificationTimer\":1170623374,\"writeBackTimer\":1301478988},\"clfs\":{\"target\":\"c\"},\"unknown\":{\"attributes\":{}},\"blobNfs\":{\"target\":\"ouicybxarzgszu\",\"usageModel\":\"x\",\"verificationTimer\":95404001,\"writeBackTimer\":153808073},\"allocationPercentage\":1015925448},\"location\":\"amcio\",\"id\":\"khazxkhnzbonlwn\",\"name\":\"oegokdwbwh\",\"type\":\"szzcmrvexztv\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.storageTargets().listByCache("tpuqujmq", "gkfbtndoaong", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(StorageTargetType.UNKNOWN, response.iterator().next().targetType()); - Assertions.assertEquals(OperationalStateType.READY, response.iterator().next().state()); - Assertions.assertEquals("ed", response.iterator().next().nfs3().target()); - Assertions.assertEquals("wwa", response.iterator().next().nfs3().usageModel()); - Assertions.assertEquals(1170623374, response.iterator().next().nfs3().verificationTimer()); - Assertions.assertEquals(1301478988, response.iterator().next().nfs3().writeBackTimer()); - Assertions.assertEquals("c", response.iterator().next().clfs().target()); - Assertions.assertEquals("ouicybxarzgszu", response.iterator().next().blobNfs().target()); - Assertions.assertEquals("x", response.iterator().next().blobNfs().usageModel()); - Assertions.assertEquals(95404001, response.iterator().next().blobNfs().verificationTimer()); - Assertions.assertEquals(153808073, 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 dbeb6a2b774a..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsRestoreDefaultsMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageTargetsRestoreDefaultsMockTests { - @Test - public void testRestoreDefaults() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.storageTargets().restoreDefaults("l", "zqhof", "rmaequ", 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 76e304bf2ed7..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/StorageTargetsResultTests.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.fluent.models.StorageTargetInner; -import com.azure.resourcemanager.storagecache.models.OperationalStateType; -import com.azure.resourcemanager.storagecache.models.StorageTargetType; -import com.azure.resourcemanager.storagecache.models.StorageTargetsResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class StorageTargetsResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageTargetsResult model = - BinaryData - .fromString( - "{\"nextLink\":\"cq\",\"value\":[{\"properties\":{\"junctions\":[],\"targetType\":\"nfs3\",\"provisioningState\":\"Canceled\",\"state\":\"Ready\",\"allocationPercentage\":1172540413},\"location\":\"xv\",\"id\":\"u\",\"name\":\"wpzntxhdzh\",\"type\":\"rqjbhckfrl\"}]}") - .toObject(StorageTargetsResult.class); - Assertions.assertEquals("cq", model.nextLink()); - Assertions.assertEquals(StorageTargetType.NFS3, model.value().get(0).targetType()); - Assertions.assertEquals(OperationalStateType.READY, model.value().get(0).state()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageTargetsResult model = - new StorageTargetsResult() - .withNextLink("cq") - .withValue( - Arrays - .asList( - new StorageTargetInner() - .withJunctions(Arrays.asList()) - .withTargetType(StorageTargetType.NFS3) - .withState(OperationalStateType.READY))); - model = BinaryData.fromObject(model).toObject(StorageTargetsResult.class); - Assertions.assertEquals("cq", model.nextLink()); - Assertions.assertEquals(StorageTargetType.NFS3, model.value().get(0).targetType()); - Assertions.assertEquals(OperationalStateType.READY, model.value().get(0).state()); - } -} diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UnknownTargetTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UnknownTargetTests.java deleted file mode 100644 index 28d2d5f176cb..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UnknownTargetTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.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\":{\"mv\":\"ultskzbbtdz\",\"wozuhkf\":\"ekg\"}}") - .toObject(UnknownTarget.class); - Assertions.assertEquals("ultskzbbtdz", model.attributes().get("mv")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UnknownTarget model = new UnknownTarget().withAttributes(mapOf("mv", "ultskzbbtdz", "wozuhkf", "ekg")); - model = BinaryData.fromObject(model).toObject(UnknownTarget.class); - Assertions.assertEquals("ultskzbbtdz", model.attributes().get("mv")); - } - - @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 85690680d545..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelDisplayTests.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.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\":\"jtjaodxobnbdxkq\"}").toObject(UsageModelDisplay.class); - Assertions.assertEquals("jtjaodxobnbdxkq", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UsageModelDisplay model = new UsageModelDisplay().withDescription("jtjaodxobnbdxkq"); - model = BinaryData.fromObject(model).toObject(UsageModelDisplay.class); - Assertions.assertEquals("jtjaodxobnbdxkq", 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 7fb060dd550a..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelInnerTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.fluent.models.UsageModelInner; -import com.azure.resourcemanager.storagecache.models.UsageModelDisplay; -import org.junit.jupiter.api.Assertions; - -public final class UsageModelInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UsageModelInner model = - BinaryData - .fromString( - "{\"display\":{\"description\":\"locx\"},\"modelName\":\"paierh\",\"targetType\":\"csglum\"}") - .toObject(UsageModelInner.class); - Assertions.assertEquals("locx", model.display().description()); - Assertions.assertEquals("paierh", model.modelName()); - Assertions.assertEquals("csglum", model.targetType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UsageModelInner model = - new UsageModelInner() - .withDisplay(new UsageModelDisplay().withDescription("locx")) - .withModelName("paierh") - .withTargetType("csglum"); - model = BinaryData.fromObject(model).toObject(UsageModelInner.class); - Assertions.assertEquals("locx", model.display().description()); - Assertions.assertEquals("paierh", model.modelName()); - Assertions.assertEquals("csglum", 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 ca450c4b2aab..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelsListMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.storagecache.StorageCacheManager; -import com.azure.resourcemanager.storagecache.models.UsageModel; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class UsageModelsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"display\":{\"description\":\"rpzbchckqqzqi\"},\"modelName\":\"iysui\",\"targetType\":\"ynkedyatrwyhqmib\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - StorageCacheManager manager = - StorageCacheManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.usageModels().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("rpzbchckqqzqi", response.iterator().next().display().description()); - Assertions.assertEquals("iysui", response.iterator().next().modelName()); - Assertions.assertEquals("ynkedyatrwyhqmib", 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 1835f4667821..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UsageModelsResultTests.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.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\":\"dsoifiyipj\",\"value\":[{\"display\":{\"description\":\"gr\"},\"modelName\":\"znorcj\",\"targetType\":\"snb\"},{\"display\":{\"description\":\"abnmocpcyshu\"},\"modelName\":\"afbljjgpbtoqcjmk\",\"targetType\":\"a\"},{\"display\":{\"description\":\"idtqajzyu\"},\"modelName\":\"kudjkrlkhb\",\"targetType\":\"fepgzgq\"}]}") - .toObject(UsageModelsResult.class); - Assertions.assertEquals("dsoifiyipj", model.nextLink()); - Assertions.assertEquals("gr", model.value().get(0).display().description()); - Assertions.assertEquals("znorcj", model.value().get(0).modelName()); - Assertions.assertEquals("snb", model.value().get(0).targetType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UsageModelsResult model = - new UsageModelsResult() - .withNextLink("dsoifiyipj") - .withValue( - Arrays - .asList( - new UsageModelInner() - .withDisplay(new UsageModelDisplay().withDescription("gr")) - .withModelName("znorcj") - .withTargetType("snb"), - new UsageModelInner() - .withDisplay(new UsageModelDisplay().withDescription("abnmocpcyshu")) - .withModelName("afbljjgpbtoqcjmk") - .withTargetType("a"), - new UsageModelInner() - .withDisplay(new UsageModelDisplay().withDescription("idtqajzyu")) - .withModelName("kudjkrlkhb") - .withTargetType("fepgzgq"))); - model = BinaryData.fromObject(model).toObject(UsageModelsResult.class); - Assertions.assertEquals("dsoifiyipj", model.nextLink()); - Assertions.assertEquals("gr", model.value().get(0).display().description()); - Assertions.assertEquals("znorcj", model.value().get(0).modelName()); - Assertions.assertEquals("snb", 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 318139f66747..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueAutoGeneratedTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.UserAssignedIdentitiesValueAutoGenerated; - -public final class UserAssignedIdentitiesValueAutoGeneratedTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedIdentitiesValueAutoGenerated model = - BinaryData - .fromString("{\"principalId\":\"xtibqdxbxwakbog\",\"clientId\":\"ndlkzgxhurip\"}") - .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 04a2a317aaf2..000000000000 --- a/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.storagecache.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.storagecache.models.UserAssignedIdentitiesValue; - -public final class UserAssignedIdentitiesValueTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedIdentitiesValue model = - BinaryData - .fromString("{\"principalId\":\"hxmzsbbzoggig\",\"clientId\":\"wburvjxxjnspydpt\"}") - .toObject(UserAssignedIdentitiesValue.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAssignedIdentitiesValue model = new UserAssignedIdentitiesValue(); - model = BinaryData.fromObject(model).toObject(UserAssignedIdentitiesValue.class); - } -}