From f602099777b8e45d6c816e84a131749bdc80245d Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 13 Mar 2023 05:07:30 +0000 Subject: [PATCH] [Automation] Generate Fluent Lite from storagecache#package-preview-2023-03 --- .../CHANGELOG.md | 87 +- .../README.md | 4 +- .../SAMPLE.md | 409 +++- .../pom.xml | 2 +- .../storagecache/StorageCacheManager.java | 34 +- .../fluent/AmlFilesystemsClient.java | 349 +++ .../fluent/AscOperationsClient.java | 8 +- .../storagecache/fluent/CachesClient.java | 336 +-- .../fluent/ResourceProvidersClient.java | 68 + .../fluent/StorageCacheManagementClient.java | 17 +- .../fluent/StorageTargetOperationsClient.java | 64 +- .../fluent/StorageTargetsClient.java | 128 +- .../fluent/UsageModelsClient.java | 8 +- .../fluent/models/AmlFilesystemInner.java | 344 +++ .../models/AmlFilesystemProperties.java | 280 +++ .../models/AmlFilesystemUpdateProperties.java | 85 + .../fluent/models/CacheInner.java | 65 +- .../fluent/models/CacheProperties.java | 74 +- ...RequiredAmlFilesystemSubnetsSizeInner.java | 52 + .../fluent/models/StorageTargetInner.java | 4 +- .../models/StorageTargetProperties.java | 6 +- .../implementation/AmlFilesystemImpl.java | 319 +++ .../AmlFilesystemsClientImpl.java | 1946 +++++++++++++++++ .../implementation/AmlFilesystemsImpl.java | 192 ++ .../AscOperationsClientImpl.java | 20 +- .../implementation/CacheImpl.java | 9 + .../implementation/CachesClientImpl.java | 920 ++++---- .../RequiredAmlFilesystemSubnetsSizeImpl.java | 33 + .../ResourceProvidersClientImpl.java | 344 +++ .../implementation/ResourceProvidersImpl.java | 72 + .../StorageCacheManagementClientBuilder.java | 6 +- .../StorageCacheManagementClientImpl.java | 41 +- .../StorageTargetOperationsClientImpl.java | 160 +- .../StorageTargetsClientImpl.java | 346 +-- .../implementation/UsageModelsClientImpl.java | 28 +- .../storagecache/models/AmlFilesystem.java | 466 ++++ .../models/AmlFilesystemArchive.java | 58 + .../models/AmlFilesystemArchiveInfo.java | 52 + .../models/AmlFilesystemArchiveStatus.java | 115 + .../models/AmlFilesystemCheckSubnetError.java | 54 + ...mlFilesystemCheckSubnetErrorException.java | 39 + ...ystemCheckSubnetErrorFilesystemSubnet.java | 76 + .../AmlFilesystemEncryptionSettings.java | 53 + .../models/AmlFilesystemHealth.java | 104 + .../models/AmlFilesystemHealthStateType.java | 56 + .../models/AmlFilesystemHsmSettings.java | 129 ++ .../models/AmlFilesystemIdentity.java | 123 ++ .../models/AmlFilesystemIdentityType.java | 51 + .../models/AmlFilesystemPropertiesHsm.java | 72 + ...FilesystemPropertiesMaintenanceWindow.java | 76 + .../AmlFilesystemProvisioningStateType.java | 59 + .../models/AmlFilesystemSubnetInfo.java | 134 ++ .../models/AmlFilesystemUpdate.java | 118 + ...stemUpdatePropertiesMaintenanceWindow.java | 76 + .../storagecache/models/AmlFilesystems.java | 214 ++ .../models/AmlFilesystemsListResult.java | 84 + .../models/ArchiveStatusType.java | 65 + .../storagecache/models/AscOperations.java | 8 +- .../storagecache/models/Cache.java | 113 +- ...cheActiveDirectorySettingsCredentials.java | 8 +- .../models/CacheEncryptionSettings.java | 12 +- .../storagecache/models/CacheHealth.java | 17 +- .../models/CacheNetworkSettings.java | 4 +- .../storagecache/models/CacheSku.java | 8 +- .../models/CacheUpgradeStatus.java | 14 +- .../storagecache/models/Caches.java | 160 +- .../storagecache/models/CachesListResult.java | 8 +- .../models/FilesystemSubnetStatusType.java | 47 + .../models/FirmwareStatusType.java | 2 +- .../storagecache/models/HealthStateType.java | 7 +- .../models/KeyVaultKeyReference.java | 14 +- .../KeyVaultKeyReferenceSourceVault.java | 2 +- .../models/MaintenanceDayOfWeekType.java | 66 + .../models/NamespaceJunction.java | 6 +- .../models/ProvisioningStateType.java | 4 +- .../RequiredAmlFilesystemSubnetsSize.java | 25 + .../RequiredAmlFilesystemSubnetsSizeInfo.java | 82 + .../models/ResourceProviders.java | 59 + .../models/ResourceSkusResult.java | 6 +- .../storagecache/models/SkuName.java | 50 + .../storagecache/models/StorageTarget.java | 14 +- .../models/StorageTargetOperations.java | 32 +- .../models/StorageTargetResource.java | 2 +- .../storagecache/models/StorageTargets.java | 76 +- .../models/StorageTargetsResult.java | 6 +- .../storagecache/models/UsageModels.java | 8 +- .../models/UsageModelsResult.java | 8 +- ...rAssignedIdentitiesValueAutoGenerated.java | 54 + .../AmlFilesystemsArchiveSamples.java | 28 + .../AmlFilesystemsCancelArchiveSamples.java | 20 + .../AmlFilesystemsCreateOrUpdateSamples.java | 87 + .../AmlFilesystemsDeleteSamples.java | 20 + ...lFilesystemsGetByResourceGroupSamples.java | 20 + ...FilesystemsListByResourceGroupSamples.java | 21 + .../generated/AmlFilesystemsListSamples.java | 20 + .../AmlFilesystemsUpdateSamples.java | 61 + .../generated/AscOperationsGetSamples.java | 2 +- .../generated/AscUsagesListSamples.java | 2 +- .../CachesCreateOrUpdateSamples.java | 6 +- .../generated/CachesDebugInfoSamples.java | 2 +- .../generated/CachesDeleteSamples.java | 2 +- .../generated/CachesFlushSamples.java | 2 +- .../CachesGetByResourceGroupSamples.java | 2 +- .../CachesListByResourceGroupSamples.java | 2 +- .../generated/CachesListSamples.java | 2 +- .../CachesPausePrimingJobSamples.java | 2 +- .../CachesResumePrimingJobSamples.java | 2 +- .../CachesSpaceAllocationSamples.java | 2 +- .../CachesStartPrimingJobSamples.java | 2 +- .../generated/CachesStartSamples.java | 2 +- .../CachesStopPrimingJobSamples.java | 2 +- .../generated/CachesStopSamples.java | 2 +- .../generated/CachesUpdateSamples.java | 6 +- .../CachesUpgradeFirmwareSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- ...ourceProviderCheckAmlFSSubnetsSamples.java | 31 + ...derGetRequiredAmlFSSubnetsSizeSamples.java | 21 + .../generated/SkusListSamples.java | 2 +- .../StorageTargetOperationFlushSamples.java | 2 +- ...orageTargetOperationInvalidateSamples.java | 2 +- .../StorageTargetOperationResumeSamples.java | 2 +- .../StorageTargetOperationSuspendSamples.java | 2 +- .../StorageTargetsCreateOrUpdateSamples.java | 6 +- .../StorageTargetsDeleteSamples.java | 2 +- .../StorageTargetsDnsRefreshSamples.java | 2 +- .../generated/StorageTargetsGetSamples.java | 2 +- .../StorageTargetsListByCacheSamples.java | 2 +- .../StorageTargetsRestoreDefaultsSamples.java | 2 +- .../generated/UsageModelsListSamples.java | 2 +- .../AmlFilesystemArchiveInfoTests.java | 25 + ...CheckSubnetErrorFilesystemSubnetTests.java | 33 + .../AmlFilesystemCheckSubnetErrorTests.java | 36 + .../AmlFilesystemHsmSettingsTests.java | 36 + .../generated/AmlFilesystemIdentityTests.java | 55 + ...ystemPropertiesMaintenanceWindowTests.java | 33 + .../AmlFilesystemSubnetInfoTests.java | 40 + ...pdatePropertiesMaintenanceWindowTests.java | 33 + .../generated/AmlFilesystemUpdateTests.java | 64 + ...lesystemsArchiveWithResponseMockTests.java | 68 + ...emsCancelArchiveWithResponseMockTests.java | 61 + .../AmlFilesystemsDeleteMockTests.java | 61 + .../AmlFilesystemsListResultTests.java | 105 + .../generated/AscUsagesListMockTests.java | 4 +- .../generated/BlobNfsTargetTests.java | 26 +- .../generated/CacheHealthTests.java | 12 +- .../generated/CacheIdentityTests.java | 18 +- .../generated/CacheNetworkSettingsTests.java | 26 +- .../generated/CacheSecuritySettingsTests.java | 12 +- .../storagecache/generated/CacheSkuTests.java | 8 +- .../generated/CacheUpgradeSettingsTests.java | 8 +- .../generated/CacheUpgradeStatusTests.java | 2 +- .../generated/CachesDebugInfoMockTests.java | 2 +- .../generated/CachesDeleteMockTests.java | 2 +- .../generated/CachesFlushMockTests.java | 2 +- .../generated/CachesListResultTests.java | 56 +- .../generated/CachesStartMockTests.java | 2 +- .../generated/CachesStopMockTests.java | 2 +- .../generated/ClfsTargetTests.java | 8 +- .../generated/ConditionTests.java | 2 +- .../KeyVaultKeyReferenceSourceVaultTests.java | 8 +- .../generated/NamespaceJunctionTests.java | 26 +- .../generated/Nfs3TargetTests.java | 26 +- .../generated/NfsAccessPolicyTests.java | 64 +- .../generated/NfsAccessRuleTests.java | 38 +- .../generated/OperationsListMockTests.java | 14 +- .../generated/PrimingJobIdParameterTests.java | 8 +- .../generated/PrimingJobTests.java | 12 +- ...iredAmlFilesystemSubnetsSizeInfoTests.java | 33 + ...redAmlFilesystemSubnetsSizeInnerTests.java | 28 + ...heckAmlFSSubnetsWithResponseMockTests.java | 71 + ...AmlFSSubnetsSizeWithResponseMockTests.java | 75 + .../storagecache/generated/SkuNameTests.java | 24 + .../generated/StorageTargetInnerTests.java | 102 +- ...StorageTargetOperationsFlushMockTests.java | 4 +- ...geTargetOperationsInvalidateMockTests.java | 2 +- ...torageTargetOperationsResumeMockTests.java | 4 +- ...orageTargetOperationsSuspendMockTests.java | 4 +- .../StorageTargetPropertiesTests.java | 104 +- .../generated/StorageTargetResourceTests.java | 3 +- .../StorageTargetSpaceAllocationTests.java | 12 +- ...StorageTargetsCreateOrUpdateMockTests.java | 48 +- .../StorageTargetsDeleteMockTests.java | 4 +- .../StorageTargetsDnsRefreshMockTests.java | 4 +- ...torageTargetsGetWithResponseMockTests.java | 26 +- .../StorageTargetsListByCacheMockTests.java | 26 +- ...torageTargetsRestoreDefaultsMockTests.java | 2 +- .../generated/StorageTargetsResultTests.java | 32 +- .../generated/UnknownTargetTests.java | 11 +- .../generated/UsageModelsListMockTests.java | 8 +- ...gnedIdentitiesValueAutoGeneratedTests.java | 24 + .../UserAssignedIdentitiesValueTests.java | 2 +- 191 files changed, 10379 insertions(+), 1771 deletions(-) create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AmlFilesystemsClient.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/ResourceProvidersClient.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemInner.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemProperties.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemUpdateProperties.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/RequiredAmlFilesystemSubnetsSizeInner.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemImpl.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemsClientImpl.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemsImpl.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/RequiredAmlFilesystemSubnetsSizeImpl.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ResourceProvidersClientImpl.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ResourceProvidersImpl.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystem.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchive.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchiveInfo.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchiveStatus.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetError.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetErrorException.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetErrorFilesystemSubnet.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemEncryptionSettings.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHealth.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHealthStateType.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHsmSettings.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemIdentity.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemIdentityType.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemPropertiesHsm.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemPropertiesMaintenanceWindow.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemProvisioningStateType.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemSubnetInfo.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemUpdate.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemUpdatePropertiesMaintenanceWindow.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystems.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemsListResult.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ArchiveStatusType.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/FilesystemSubnetStatusType.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/MaintenanceDayOfWeekType.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/RequiredAmlFilesystemSubnetsSize.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/RequiredAmlFilesystemSubnetsSizeInfo.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ResourceProviders.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/SkuName.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UserAssignedIdentitiesValueAutoGenerated.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveSamples.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveSamples.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCreateOrUpdateSamples.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteSamples.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsGetByResourceGroupSamples.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListByResourceGroupSamples.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListSamples.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsUpdateSamples.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderCheckAmlFSSubnetsSamples.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderGetRequiredAmlFSSubnetsSizeSamples.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemArchiveInfoTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorFilesystemSubnetTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemHsmSettingsTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemIdentityTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemPropertiesMaintenanceWindowTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemSubnetInfoTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdatePropertiesMaintenanceWindowTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdateTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveWithResponseMockTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveWithResponseMockTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteMockTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListResultTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInfoTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInnerTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersCheckAmlFSSubnetsWithResponseMockTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersGetRequiredAmlFSSubnetsSizeWithResponseMockTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/SkuNameTests.java create mode 100644 sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueAutoGeneratedTests.java diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md b/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md index 75339a7d08353..76cda34af8e2c 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md +++ b/sdk/storagecache/azure-resourcemanager-storagecache/CHANGELOG.md @@ -1,14 +1,93 @@ # Release History -## 1.0.0-beta.8 (Unreleased) +## 1.0.0-beta.8 (2023-03-13) + +- 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). ### Features Added -### Breaking Changes +* `models.AmlFilesystemIdentity` was added + +* `models.AmlFilesystemsListResult` was added + +* `models.FilesystemSubnetStatusType` was added + +* `models.AmlFilesystemIdentityType` was added + +* `models.AmlFilesystemEncryptionSettings` was added + +* `models.AmlFilesystemArchiveInfo` was added + +* `models.AmlFilesystem$Definition` was added + +* `models.AmlFilesystem$DefinitionStages` was added + +* `models.AmlFilesystemArchiveStatus` was added + +* `models.AmlFilesystemProvisioningStateType` was added + +* `models.RequiredAmlFilesystemSubnetsSize` was added + +* `models.ResourceProviders` was added + +* `models.AmlFilesystemUpdatePropertiesMaintenanceWindow` was added + +* `models.AmlFilesystems` was added + +* `models.MaintenanceDayOfWeekType` was added + +* `models.AmlFilesystemUpdate` was added + +* `models.AmlFilesystem$UpdateStages` was added + +* `models.ArchiveStatusType` was added + +* `models.AmlFilesystemCheckSubnetErrorFilesystemSubnet` was added + +* `models.AmlFilesystemArchive` was added + +* `models.AmlFilesystemHealth` was added -### Bugs Fixed +* `models.RequiredAmlFilesystemSubnetsSizeInfo` was added + +* `models.AmlFilesystemHealthStateType` was added + +* `models.AmlFilesystemCheckSubnetError` was added + +* `models.AmlFilesystemCheckSubnetErrorException` was added + +* `models.SkuName` was added + +* `models.AmlFilesystem` was added + +* `models.AmlFilesystemSubnetInfo` was added + +* `models.AmlFilesystemHsmSettings` was added + +* `models.AmlFilesystemPropertiesHsm` was added + +* `models.AmlFilesystem$Update` was added + +* `models.AmlFilesystemPropertiesMaintenanceWindow` was added + +* `models.UserAssignedIdentitiesValueAutoGenerated` was added + +#### `models.Cache` was modified + +* `scalingFactor()` was added + +#### `models.Cache$Definition` was modified + +* `withScalingFactor(java.lang.Double)` was added + +#### `StorageCacheManager` was modified + +* `resourceProviders()` was added +* `amlFilesystems()` was added + +#### `models.Cache$Update` was modified -### Other Changes +* `withScalingFactor(java.lang.Double)` was added ## 1.0.0-beta.7 (2023-02-22) diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/README.md b/sdk/storagecache/azure-resourcemanager-storagecache/README.md index 62ee65f116a35..e18e59df624b4 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-2023-01. 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-preview-2023-03. 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.7 + 1.0.0-beta.8 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md b/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md index 1e3adcd70d6f6..a063f64483c6a 100644 --- a/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md +++ b/sdk/storagecache/azure-resourcemanager-storagecache/SAMPLE.md @@ -1,6 +1,17 @@ # 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) @@ -32,6 +43,11 @@ - [List](#operations_list) +## ResourceProvider + +- [CheckAmlFSSubnets](#resourceprovider_checkamlfssubnets) +- [GetRequiredAmlFSSubnetsSize](#resourceprovider_getrequiredamlfssubnetssize) + ## Skus - [List](#skus_list) @@ -55,13 +71,282 @@ ## 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/stable/2023-01-01/examples/AscOperations_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/AscOperations_Get.json */ /** * Sample code: AscOperations_Get. @@ -80,7 +365,7 @@ public final class AscOperationsGetSamples { /** Samples for AscUsages List. */ public final class AscUsagesListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/AscResourceUsages_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/AscResourceUsages_Get.json */ /** * Sample code: AscUsages_List. @@ -123,7 +408,7 @@ import java.util.Map; /** Samples for Caches CreateOrUpdate. */ public final class CachesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_CreateOrUpdate_ldap_only.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_CreateOrUpdate_ldap_only.json */ /** * Sample code: Caches_CreateOrUpdate_ldap_only. @@ -140,6 +425,7 @@ 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( @@ -187,7 +473,7 @@ public final class CachesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_CreateOrUpdate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_CreateOrUpdate.json */ /** * Sample code: Caches_CreateOrUpdate. @@ -210,6 +496,7 @@ 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( @@ -286,7 +573,7 @@ public final class CachesCreateOrUpdateSamples { /** Samples for Caches DebugInfo. */ public final class CachesDebugInfoSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_DebugInfo.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_DebugInfo.json */ /** * Sample code: Caches_DebugInfo. @@ -305,7 +592,7 @@ public final class CachesDebugInfoSamples { /** Samples for Caches Delete. */ public final class CachesDeleteSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Delete.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Delete.json */ /** * Sample code: Caches_Delete. @@ -324,7 +611,7 @@ public final class CachesDeleteSamples { /** Samples for Caches Flush. */ public final class CachesFlushSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Flush.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Flush.json */ /** * Sample code: Caches_Flush. @@ -343,7 +630,7 @@ public final class CachesFlushSamples { /** Samples for Caches GetByResourceGroup. */ public final class CachesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Get.json */ /** * Sample code: Caches_Get. @@ -362,7 +649,7 @@ public final class CachesGetByResourceGroupSamples { /** Samples for Caches List. */ public final class CachesListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_List.json */ /** * Sample code: Caches_List. @@ -381,7 +668,7 @@ public final class CachesListSamples { /** Samples for Caches ListByResourceGroup. */ public final class CachesListByResourceGroupSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_ListByResourceGroup.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_ListByResourceGroup.json */ /** * Sample code: Caches_ListByResourceGroup. @@ -402,7 +689,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/stable/2023-01-01/examples/PausePrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/PausePrimingJob.json */ /** * Sample code: PausePrimingJob. @@ -429,7 +716,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/stable/2023-01-01/examples/ResumePrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/ResumePrimingJob.json */ /** * Sample code: ResumePrimingJob. @@ -457,7 +744,7 @@ import java.util.Arrays; /** Samples for Caches SpaceAllocation. */ public final class CachesSpaceAllocationSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/SpaceAllocation_Post.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/SpaceAllocation_Post.json */ /** * Sample code: SpaceAllocation_Post. @@ -486,7 +773,7 @@ public final class CachesSpaceAllocationSamples { /** Samples for Caches Start. */ public final class CachesStartSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Start.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Start.json */ /** * Sample code: Caches_Start. @@ -507,7 +794,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/stable/2023-01-01/examples/StartPrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StartPrimingJob.json */ /** * Sample code: StartPrimingJob. @@ -535,7 +822,7 @@ public final class CachesStartPrimingJobSamples { /** Samples for Caches Stop. */ public final class CachesStopSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Stop.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Stop.json */ /** * Sample code: Caches_Stop. @@ -556,7 +843,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/stable/2023-01-01/examples/StopPrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StopPrimingJob.json */ /** * Sample code: StopPrimingJob. @@ -599,7 +886,7 @@ import java.util.Map; /** Samples for Caches Update. */ public final class CachesUpdateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Update_ldap_only.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Update_ldap_only.json */ /** * Sample code: Caches_Update_ldap_only. @@ -615,6 +902,7 @@ public final class CachesUpdateSamples { resource .update() .withTags(mapOf("Dept", "Contoso")) + .withScalingFactor(1.0D) .withUpgradeSettings( new CacheUpgradeSettings() .withUpgradeScheduleEnabled(true) @@ -684,7 +972,7 @@ public final class CachesUpdateSamples { } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Update.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Update.json */ /** * Sample code: Caches_Update. @@ -700,6 +988,7 @@ public final class CachesUpdateSamples { resource .update() .withTags(mapOf("Dept", "Contoso")) + .withScalingFactor(2.0D) .withUpgradeSettings( new CacheUpgradeSettings() .withUpgradeScheduleEnabled(true) @@ -788,7 +1077,7 @@ public final class CachesUpdateSamples { /** Samples for Caches UpgradeFirmware. */ public final class CachesUpgradeFirmwareSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_UpgradeFirmware.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_UpgradeFirmware.json */ /** * Sample code: Caches_UpgradeFirmware. @@ -807,7 +1096,7 @@ public final class CachesUpgradeFirmwareSamples { /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Operations_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Operations_List.json */ /** * Sample code: Operations_List. @@ -820,13 +1109,63 @@ 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/stable/2023-01-01/examples/Skus_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Skus_List.json */ /** * Sample code: Skus_List. @@ -845,7 +1184,7 @@ public final class SkusListSamples { /** Samples for StorageTargetOperation Flush. */ public final class StorageTargetOperationFlushSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Flush.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Flush.json */ /** * Sample code: StorageTargets_Flush. @@ -864,7 +1203,7 @@ public final class StorageTargetOperationFlushSamples { /** Samples for StorageTargetOperation Invalidate. */ public final class StorageTargetOperationInvalidateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Invalidate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Invalidate.json */ /** * Sample code: StorageTargets_Invalidate. @@ -883,7 +1222,7 @@ public final class StorageTargetOperationInvalidateSamples { /** Samples for StorageTargetOperation Resume. */ public final class StorageTargetOperationResumeSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Resume.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Resume.json */ /** * Sample code: StorageTargets_Resume. @@ -902,7 +1241,7 @@ public final class StorageTargetOperationResumeSamples { /** Samples for StorageTargetOperation Suspend. */ public final class StorageTargetOperationSuspendSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Suspend.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Suspend.json */ /** * Sample code: StorageTargets_Suspend. @@ -927,7 +1266,7 @@ import java.util.Arrays; /** Samples for StorageTargets CreateOrUpdate. */ public final class StorageTargetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_CreateOrUpdate.json */ /** * Sample code: StorageTargets_CreateOrUpdate. @@ -959,7 +1298,7 @@ public final class StorageTargetsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate_BlobNfs.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_CreateOrUpdate_BlobNfs.json */ /** * Sample code: StorageTargets_CreateOrUpdate_BlobNfs. @@ -985,7 +1324,7 @@ public final class StorageTargetsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate_NoJunctions.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_CreateOrUpdate_NoJunctions.json */ /** * Sample code: StorageTargets_CreateOrUpdate_NoJunctions. @@ -1011,7 +1350,7 @@ public final class StorageTargetsCreateOrUpdateSamples { /** Samples for StorageTargets Delete. */ public final class StorageTargetsDeleteSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Delete.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Delete.json */ /** * Sample code: StorageTargets_Delete. @@ -1030,7 +1369,7 @@ public final class StorageTargetsDeleteSamples { /** Samples for StorageTargets DnsRefresh. */ public final class StorageTargetsDnsRefreshSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_DnsRefresh.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_DnsRefresh.json */ /** * Sample code: Caches_DnsRefresh. @@ -1049,7 +1388,7 @@ public final class StorageTargetsDnsRefreshSamples { /** Samples for StorageTargets Get. */ public final class StorageTargetsGetSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_Get.json */ /** * Sample code: StorageTargets_Get. @@ -1068,7 +1407,7 @@ public final class StorageTargetsGetSamples { /** Samples for StorageTargets ListByCache. */ public final class StorageTargetsListByCacheSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_ListByCache.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_ListByCache.json */ /** * Sample code: StorageTargets_List. @@ -1087,7 +1426,7 @@ public final class StorageTargetsListByCacheSamples { /** Samples for StorageTargets RestoreDefaults. */ public final class StorageTargetsRestoreDefaultsSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_RestoreDefaults.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/StorageTargets_RestoreDefaults.json */ /** * Sample code: StorageTargets_RestoreDefaults. @@ -1107,7 +1446,7 @@ public final class StorageTargetsRestoreDefaultsSamples { /** Samples for UsageModels List. */ public final class UsageModelsListSamples { /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/UsageModels_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 762a6bd25e866..65a31caa38f41 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-2023-01. + 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. 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 8fc4ebc39cea7..bf65c1f022ca4 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,19 +24,23 @@ 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; @@ -70,6 +74,10 @@ 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) { @@ -235,7 +243,7 @@ public StorageCacheManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.storagecache") .append("/") - .append("1.0.0-beta.7"); + .append("1.0.0-beta.8"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -389,6 +397,30 @@ 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 new file mode 100644 index 0000000000000..28f559127b1d2 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/AmlFilesystemsClient.java @@ -0,0 +1,349 @@ +// Copyright (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 5c5dbc49bbba6..2e24e96ee5427 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 the region used to look up the operation. - * @param operationId The operation id which uniquely identifies the asynchronous operation. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async 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 the region used to look up the operation. - * @param operationId The operation id which uniquely identifies the asynchronous operation. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async 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 3a76b9ad631e7..126ef5787ed2c 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 Target 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 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 Target 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 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 new file mode 100644 index 0000000000000..0cf707eeed635 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/ResourceProvidersClient.java @@ -0,0 +1,68 @@ +// Copyright (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 92dcb4215f968..aa1f46c6d01c5 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,8 +10,7 @@ /** The interface for StorageCacheManagementClient class. */ public interface StorageCacheManagementClient { /** - * Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms - * part of the URI for every service call. + * Gets The ID of the target subscription. * * @return the subscriptionId value. */ @@ -100,4 +99,18 @@ 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 445a444bff6f5..9b44f97ee635e 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 40d8eaf3deeac..e04a63626648c 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 961cd4d0e8992..17f6a6f73f5d8 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 new file mode 100644 index 0000000000000..b72d5fef17b71 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemInner.java @@ -0,0 +1,344 @@ +// Copyright (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 new file mode 100644 index 0000000000000..e02ed52d88b1d --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemProperties.java @@ -0,0 +1,280 @@ +// Copyright (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 new file mode 100644 index 0000000000000..6d99ee9599d6e --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/AmlFilesystemUpdateProperties.java @@ -0,0 +1,85 @@ +// Copyright (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 320edd066c062..9799b475a5406 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,7 +130,9 @@ public CacheInner withTags(Map tags) { } /** - * Get the cacheSizeGB property: The size of this Cache, in GB. + * 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>. * * @return the cacheSizeGB value. */ @@ -139,7 +141,9 @@ public Integer cacheSizeGB() { } /** - * Set the cacheSizeGB property: The size of this Cache, in GB. + * 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>. * * @param cacheSizeGB the cacheSizeGB value to set. * @return the CacheInner object itself. @@ -153,7 +157,38 @@ public CacheInner withCacheSizeGB(Integer cacheSizeGB) { } /** - * Get the health property: Health of the Cache. + * 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. * * @return the health value. */ @@ -162,7 +197,7 @@ public CacheHealth health() { } /** - * Get the mountAddresses property: Array of IP addresses that can be used by clients mounting this Cache. + * Get the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache. * * @return the mountAddresses value. */ @@ -181,7 +216,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. */ @@ -190,7 +225,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. @@ -204,7 +239,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. */ @@ -213,7 +248,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. */ @@ -222,7 +257,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 8f6c381e5a073..6efbb11a9b6fc 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,23 +18,33 @@ 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. + * The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the cache SKU - List SKUs. */ @JsonProperty(value = "cacheSizeGB") private Integer cacheSizeGB; /* - * Health of the Cache. + * 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. */ @JsonProperty(value = "health", access = JsonProperty.Access.WRITE_ONLY) private CacheHealth health; /* - * Array of IP addresses that can be used by clients mounting this Cache. + * Array of IPv4 addresses that can be used by clients mounting this cache. */ @JsonProperty(value = "mountAddresses", access = JsonProperty.Access.WRITE_ONLY) private List mountAddresses; @@ -47,19 +57,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; @@ -111,7 +121,9 @@ public CacheProperties() { } /** - * Get the cacheSizeGB property: The size of this Cache, in GB. + * 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>. * * @return the cacheSizeGB value. */ @@ -120,7 +132,9 @@ public Integer cacheSizeGB() { } /** - * Set the cacheSizeGB property: The size of this Cache, in GB. + * 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>. * * @param cacheSizeGB the cacheSizeGB value to set. * @return the CacheProperties object itself. @@ -131,7 +145,35 @@ public CacheProperties withCacheSizeGB(Integer cacheSizeGB) { } /** - * Get the health property: Health of the Cache. + * 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. * * @return the health value. */ @@ -140,7 +182,7 @@ public CacheHealth health() { } /** - * Get the mountAddresses property: Array of IP addresses that can be used by clients mounting this Cache. + * Get the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache. * * @return the mountAddresses value. */ @@ -159,7 +201,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. */ @@ -168,7 +210,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. @@ -179,7 +221,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. */ @@ -188,7 +230,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. */ @@ -197,7 +239,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 new file mode 100644 index 0000000000000..156b44c5990a9 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/fluent/models/RequiredAmlFilesystemSubnetsSizeInner.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.storagecache.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 d0fe6c191f7f2..0ddaf29dfe18d 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 2d64a86e7e129..2026a94b52add 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 new file mode 100644 index 0000000000000..a84b1ad4783e4 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemImpl.java @@ -0,0 +1,319 @@ +// Copyright (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 new file mode 100644 index 0000000000000..9c083fce17bb7 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemsClientImpl.java @@ -0,0 +1,1946 @@ +// Copyright (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 new file mode 100644 index 0000000000000..c79218b466cb1 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/AmlFilesystemsImpl.java @@ -0,0 +1,192 @@ +// Copyright (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 8ca0207216fa7..a7b7c546467f1 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 @@ -70,8 +70,8 @@ Mono> get( /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @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 location The name of Azure region. + * @param operationId The ID of an ongoing async 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 +117,8 @@ private Mono> getWithResponseAsync(String location, /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @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 location The name of Azure region. + * @param operationId The ID of an ongoing async 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 +163,8 @@ private Mono> getWithResponseAsync( /** * Gets the status of an asynchronous operation for the Azure HPC Cache. * - * @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 location The name of Azure region. + * @param operationId The ID of an ongoing async 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 +178,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 the region used to look up the operation. - * @param operationId The operation id which uniquely identifies the asynchronous operation. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async 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 +194,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 the region used to look up the operation. - * @param operationId The operation id which uniquely identifies the asynchronous operation. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async 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 e277e16b66836..b6c6bb313e6b8 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,6 +72,10 @@ public Integer cacheSizeGB() { return this.innerModel().cacheSizeGB(); } + public Double scalingFactor() { + return this.innerModel().scalingFactor(); + } + public CacheHealth health() { return this.innerModel().health(); } @@ -345,6 +349,11 @@ 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 04585a9cbf244..1fd01ce44b115 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 @@ -333,11 +333,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 +378,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 +422,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 +434,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 +449,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 +461,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 +475,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 Target 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 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 +527,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 Target 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 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 +578,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 Target 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 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 +594,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 Target 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 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 +611,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 Target 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 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 +625,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 Target 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 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 +640,10 @@ public PagedIterable listByResourceGroup(String resourceGroupName, C } /** - * Schedules a Cache for deletion. + * Schedules a cache for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +688,10 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Schedules a Cache for deletion. + * Schedules a cache for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +735,10 @@ private Mono>> deleteWithResponseAsync( } /** - * Schedules a Cache for deletion. + * Schedules a cache for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +755,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Schedules a Cache for deletion. + * Schedules a cache for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +777,10 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Schedules a Cache for deletion. + * Schedules a cache for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +793,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Schedules a Cache for deletion. + * Schedules a cache for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +810,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Schedules a Cache for deletion. + * Schedules a cache for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +826,10 @@ private Mono deleteAsync(String resourceGroupName, String cacheName) { } /** - * Schedules a Cache for deletion. + * Schedules a cache for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +845,10 @@ private Mono deleteAsync(String resourceGroupName, String cacheName, Conte } /** - * Schedules a Cache for deletion. + * Schedules a cache for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +860,10 @@ public void delete(String resourceGroupName, String cacheName) { } /** - * Schedules a Cache for deletion. + * Schedules a cache for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +876,15 @@ public void delete(String resourceGroupName, String cacheName, Context context) } /** - * Returns a Cache. + * Returns a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +924,16 @@ private Mono> getByResourceGroupWithResponseAsync(String re } /** - * Returns a Cache. + * Returns a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +971,15 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Returns a Cache. + * Returns a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +988,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Strin } /** - * Returns a Cache. + * Returns a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1006,15 @@ public Response getByResourceGroupWithResponse( } /** - * Returns a Cache. + * Returns a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1022,17 @@ public CacheInner getByResourceGroup(String resourceGroupName, String cacheName) } /** - * Create or update a Cache. + * Create or update a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1079,18 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update a Cache. + * Create or update a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1134,17 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update a Cache. + * Create or update a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1157,18 @@ private PollerFlux, CacheInner> beginCreateOrUpdateAsync( } /** - * Create or update a Cache. + * Create or update a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1183,17 @@ private PollerFlux, CacheInner> beginCreateOrUpdateAsync( } /** - * Create or update a Cache. + * Create or update a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1202,18 @@ public SyncPoller, CacheInner> beginCreateOrUpdate( } /** - * Create or update a Cache. + * Create or update a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1222,17 @@ public SyncPoller, CacheInner> beginCreateOrUpdate( } /** - * Create or update a Cache. + * Create or update a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1242,18 @@ private Mono createOrUpdateAsync(String resourceGroupName, String ca } /** - * Create or update a Cache. + * Create or update a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1264,17 @@ private Mono createOrUpdateAsync( } /** - * Create or update a Cache. + * Create or update a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1282,18 @@ public CacheInner createOrUpdate(String resourceGroupName, String cacheName, Cac } /** - * Create or update a Cache. + * Create or update a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1301,17 @@ public CacheInner createOrUpdate(String resourceGroupName, String cacheName, Cac } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1356,18 @@ private Mono>> updateWithResponseAsync( } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1409,17 @@ private Mono>> updateWithResponseAsync( } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1432,15 @@ private PollerFlux, CacheInner> beginUpdateAsync( } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1454,18 @@ private PollerFlux, CacheInner> beginUpdateAsync( } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1479,15 @@ private PollerFlux, CacheInner> beginUpdateAsync( } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1496,18 @@ public SyncPoller, CacheInner> beginUpdate(String resourc } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1516,17 @@ public SyncPoller, CacheInner> beginUpdate( } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1536,15 @@ private Mono updateAsync(String resourceGroupName, String cacheName, } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1555,18 @@ private Mono updateAsync(String resourceGroupName, String cacheName) } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1577,15 @@ private Mono updateAsync( } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1594,18 @@ public CacheInner update(String resourceGroupName, String cacheName) { } /** - * Update a Cache instance. + * Update a cache instance. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1613,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1661,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1708,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1728,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1750,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1766,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1784,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1800,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1819,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1834,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1850,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1899,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1947,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +1968,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1991,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2008,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2026,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2043,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2063,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2079,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2096,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2144,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2191,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2211,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2233,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2249,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2266,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2282,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2301,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2316,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2332,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2380,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2427,10 @@ private Mono>> stopWithResponseAsync( } /** - * Tells an Active Cache to transition to Stopped state. + * Tells an Active cache to transition to Stopped state. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2447,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2469,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2485,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2502,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2518,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2537,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2552,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2570,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2624,8 @@ private Mono>> startPrimingJobWithResponseAsync( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2676,8 @@ private Mono>> startPrimingJobWithResponseAsync( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2699,8 @@ private PollerFlux, Void> beginStartPrimingJobAsync( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2721,8 @@ private PollerFlux, Void> beginStartPrimingJobAsync(String reso /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2745,8 @@ private PollerFlux, Void> beginStartPrimingJobAsync( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2762,8 @@ public SyncPoller, Void> beginStartPrimingJob(String resourceGr /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2781,8 @@ public SyncPoller, Void> beginStartPrimingJob( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2800,8 @@ private Mono startPrimingJobAsync(String resourceGroupName, String cacheNa /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2819,8 @@ private Mono startPrimingJobAsync(String resourceGroupName, String cacheNa /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2840,8 @@ private Mono startPrimingJobAsync( /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +2856,8 @@ public void startPrimingJob(String resourceGroupName, String cacheName) { /** * Create a priming job. This operation is only allowed when the cache is healthy. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2873,8 @@ public void startPrimingJob(String resourceGroupName, String cacheName, PrimingJ /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2927,8 @@ private Mono>> stopPrimingJobWithResponseAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +2979,8 @@ private Mono>> stopPrimingJobWithResponseAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3002,8 @@ private PollerFlux, Void> beginStopPrimingJobAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3024,8 @@ private PollerFlux, Void> beginStopPrimingJobAsync(String resou /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3048,8 @@ private PollerFlux, Void> beginStopPrimingJobAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3065,8 @@ public SyncPoller, Void> beginStopPrimingJob(String resourceGro /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3084,8 @@ public SyncPoller, Void> beginStopPrimingJob( /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3104,8 @@ private Mono stopPrimingJobAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3123,8 @@ private Mono stopPrimingJobAsync(String resourceGroupName, String cacheNam /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3144,8 @@ private Mono stopPrimingJobAsync( /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3160,8 @@ public void stopPrimingJob(String resourceGroupName, String cacheName) { /** * Schedule a priming job for deletion. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3178,8 @@ public void stopPrimingJob( /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3232,8 @@ private Mono>> pausePrimingJobWithResponseAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3284,8 @@ private Mono>> pausePrimingJobWithResponseAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3307,8 @@ private PollerFlux, Void> beginPausePrimingJobAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3329,8 @@ private PollerFlux, Void> beginPausePrimingJobAsync(String reso /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3353,8 @@ private PollerFlux, Void> beginPausePrimingJobAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3370,8 @@ public SyncPoller, Void> beginPausePrimingJob(String resourceGr /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3389,8 @@ public SyncPoller, Void> beginPausePrimingJob( /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3409,8 @@ private Mono pausePrimingJobAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3428,8 @@ private Mono pausePrimingJobAsync(String resourceGroupName, String cacheNa /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3449,8 @@ private Mono pausePrimingJobAsync( /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3465,8 @@ public void pausePrimingJob(String resourceGroupName, String cacheName) { /** * Schedule a priming job to be paused. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3483,8 @@ public void pausePrimingJob( /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3537,8 @@ private Mono>> resumePrimingJobWithResponseAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3589,8 @@ private Mono>> resumePrimingJobWithResponseAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3612,8 @@ private PollerFlux, Void> beginResumePrimingJobAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3634,8 @@ private PollerFlux, Void> beginResumePrimingJobAsync(String res /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3658,8 @@ private PollerFlux, Void> beginResumePrimingJobAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3675,8 @@ public SyncPoller, Void> beginResumePrimingJob(String resourceG /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3694,8 @@ public SyncPoller, Void> beginResumePrimingJob( /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3714,8 @@ private Mono resumePrimingJobAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3733,8 @@ private Mono resumePrimingJobAsync(String resourceGroupName, String cacheN /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3754,8 @@ private Mono resumePrimingJobAsync( /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3770,8 @@ public void resumePrimingJob(String resourceGroupName, String cacheName) { /** * Resumes a paused priming job. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3786,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3835,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3882,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3902,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3924,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3940,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3958,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +3976,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +3995,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +4010,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +4028,8 @@ public void upgradeFirmware(String resourceGroupName, String cacheName, Context /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +4082,8 @@ private Mono>> spaceAllocationWithResponseAsync( /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +4137,8 @@ private Mono>> spaceAllocationWithResponseAsync( /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +4160,8 @@ private PollerFlux, Void> beginSpaceAllocationAsync( /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +4182,8 @@ private PollerFlux, Void> beginSpaceAllocationAsync(String reso /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +4209,8 @@ private PollerFlux, Void> beginSpaceAllocationAsync( /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +4226,8 @@ public SyncPoller, Void> beginSpaceAllocation(String resourceGr /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +4248,8 @@ public SyncPoller, Void> beginSpaceAllocation( /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +4268,8 @@ private Mono spaceAllocationAsync( /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +4287,8 @@ private Mono spaceAllocationAsync(String resourceGroupName, String cacheNa /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +4311,8 @@ private Mono spaceAllocationAsync( /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +4327,8 @@ public void spaceAllocation(String resourceGroupName, String cacheName) { /** * Update cache space allocation. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +4353,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 +4391,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 +4428,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 +4467,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 new file mode 100644 index 0000000000000..b73f7d0fe59b7 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/RequiredAmlFilesystemSubnetsSizeImpl.java @@ -0,0 +1,33 @@ +// Copyright (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 new file mode 100644 index 0000000000000..48cda39ff2c2f --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ResourceProvidersClientImpl.java @@ -0,0 +1,344 @@ +// Copyright (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 new file mode 100644 index 0000000000000..8928213088fb1 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/implementation/ResourceProvidersImpl.java @@ -0,0 +1,72 @@ +// Copyright (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 c20fe559c2b29..d1c932247ec9b 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,14 +18,12 @@ @ServiceClientBuilder(serviceClients = {StorageCacheManagementClientImpl.class}) public final class StorageCacheManagementClientBuilder { /* - * Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of - * the URI for every service call. + * The ID of the target subscription. */ private String subscriptionId; /** - * Sets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms - * part of the URI for every service call. + * Sets The ID of the target subscription. * * @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 f7aef45519d66..10c674ae0336e 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,10 +22,12 @@ 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; @@ -43,15 +45,11 @@ /** Initializes a new instance of the StorageCacheManagementClientImpl type. */ @ServiceClient(builder = StorageCacheManagementClientBuilder.class) public final class StorageCacheManagementClientImpl implements StorageCacheManagementClient { - /** - * Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of - * the URI for every service call. - */ + /** The ID of the target subscription. */ private final String subscriptionId; /** - * Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms - * part of the URI for every service call. + * Gets The ID of the target subscription. * * @return the subscriptionId value. */ @@ -215,6 +213,30 @@ 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. * @@ -222,8 +244,7 @@ public StorageTargetOperationsClient getStorageTargetOperations() { * @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 Subscription credentials which uniquely identify Microsoft Azure subscription. The - * subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. * @param endpoint server parameter. */ StorageCacheManagementClientImpl( @@ -238,7 +259,7 @@ public StorageTargetOperationsClient getStorageTargetOperations() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-01-01"; + this.apiVersion = "2023-03-01-preview"; this.operations = new OperationsClientImpl(this); this.skus = new SkusClientImpl(this); this.usageModels = new UsageModelsClientImpl(this); @@ -247,6 +268,8 @@ public StorageTargetOperationsClient getStorageTargetOperations() { 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 335bf57dd5c81..4ca9a951b4e3b 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 @@ -125,8 +125,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +181,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +235,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +258,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +283,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +302,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +322,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +342,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +364,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +381,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +398,8 @@ public void flush(String resourceGroupName, String cacheName, String storageTarg /** * Suspends client access to a storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +453,8 @@ private Mono>> suspendWithResponseAsync( /** * Suspends client access to a storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +506,8 @@ private Mono>> suspendWithResponseAsync( /** * Suspends client access to a storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +529,8 @@ private PollerFlux, Void> beginSuspendAsync( /** * Suspends client access to a storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +553,8 @@ private PollerFlux, Void> beginSuspendAsync( /** * Suspends client access to a storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +571,8 @@ public SyncPoller, Void> beginSuspend( /** * Suspends client access to a storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +590,8 @@ public SyncPoller, Void> beginSuspend( /** * Suspends client access to a storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +609,8 @@ private Mono suspendAsync(String resourceGroupName, String cacheName, Stri /** * Suspends client access to a storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +630,8 @@ private Mono suspendAsync( /** * Suspends client access to a storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +646,8 @@ public void suspend(String resourceGroupName, String cacheName, String storageTa /** * Suspends client access to a storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +663,8 @@ public void suspend(String resourceGroupName, String cacheName, String storageTa /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +718,8 @@ private Mono>> resumeWithResponseAsync( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +771,8 @@ private Mono>> resumeWithResponseAsync( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +794,8 @@ private PollerFlux, Void> beginResumeAsync( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +818,8 @@ private PollerFlux, Void> beginResumeAsync( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +836,8 @@ public SyncPoller, Void> beginResume( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +855,8 @@ public SyncPoller, Void> beginResume( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +874,8 @@ private Mono resumeAsync(String resourceGroupName, String cacheName, Strin /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +895,8 @@ private Mono resumeAsync( /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +911,8 @@ public void resume(String resourceGroupName, String cacheName, String storageTar /** * Resumes client access to a previously suspended storage target. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +929,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +985,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1039,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1063,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1088,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1107,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1127,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1147,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1169,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1186,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 8658c0a15be02..c775eaf4750ca 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 @@ -176,8 +176,8 @@ Mono> listByCacheNext( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +231,8 @@ private Mono>> dnsRefreshWithResponseAsync( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +284,8 @@ private Mono>> dnsRefreshWithResponseAsync( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +307,8 @@ private PollerFlux, Void> beginDnsRefreshAsync( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +331,8 @@ private PollerFlux, Void> beginDnsRefreshAsync( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +349,8 @@ public SyncPoller, Void> beginDnsRefresh( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +368,8 @@ public SyncPoller, Void> beginDnsRefresh( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +387,8 @@ private Mono dnsRefreshAsync(String resourceGroupName, String cacheName, S /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +408,8 @@ private Mono dnsRefreshAsync( /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +424,8 @@ public void dnsRefresh(String resourceGroupName, String cacheName, String storag /** * Tells a storage target to refresh its DNS information. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +439,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +497,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +553,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +571,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +591,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 +607,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +624,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +685,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +744,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +772,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +799,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +828,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +850,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +874,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +898,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +921,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +947,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +967,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +990,10 @@ public void delete( } /** - * Returns a Storage Target from a Cache. + * Returns a Storage Target from a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1045,10 @@ private Mono> getWithResponseAsync( } /** - * Returns a Storage Target from a Cache. + * Returns a Storage Target from a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1098,10 @@ private Mono> getWithResponseAsync( } /** - * Returns a Storage Target from a Cache. + * Returns a Storage Target from a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1116,10 @@ private Mono getAsync(String resourceGroupName, String cache } /** - * Returns a Storage Target from a Cache. + * Returns a Storage Target from a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1135,10 @@ public Response getWithResponse( } /** - * Returns a Storage Target from a Cache. + * Returns a Storage Target from a cache. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1152,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1215,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1280,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1309,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1340,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1362,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1389,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1411,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1438,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1458,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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1485,8 @@ public StorageTargetInner createOrUpdate( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1540,8 @@ private Mono>> restoreDefaultsWithResponseAsync( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1593,8 @@ private Mono>> restoreDefaultsWithResponseAsync( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1616,8 @@ private PollerFlux, Void> beginRestoreDefaultsAsync( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1640,8 @@ private PollerFlux, Void> beginRestoreDefaultsAsync( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1658,8 @@ public SyncPoller, Void> beginRestoreDefaults( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1677,8 @@ public SyncPoller, Void> beginRestoreDefaults( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1696,8 @@ private Mono restoreDefaultsAsync(String resourceGroupName, String cacheNa /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1717,8 @@ private Mono restoreDefaultsAsync( /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 +1733,8 @@ public void restoreDefaults(String resourceGroupName, String cacheName, String s /** * Tells a storage target to restore its settings to their default values. * - * @param resourceGroupName Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 5b83bf780b677..035d3f82dc8e2 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 new file mode 100644 index 0000000000000..85816bc8bec37 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystem.java @@ -0,0 +1,466 @@ +// Copyright (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 new file mode 100644 index 0000000000000..96794797a87be --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchive.java @@ -0,0 +1,58 @@ +// Copyright (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 new file mode 100644 index 0000000000000..b89b45f5dc2e9 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchiveInfo.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.storagecache.models; + +import com.azure.core.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 new file mode 100644 index 0000000000000..3f2b4d97bfcb1 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemArchiveStatus.java @@ -0,0 +1,115 @@ +// Copyright (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 new file mode 100644 index 0000000000000..c0912c91bb30a --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetError.java @@ -0,0 +1,54 @@ +// Copyright (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 new file mode 100644 index 0000000000000..8a5799a6add99 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetErrorException.java @@ -0,0 +1,39 @@ +// Copyright (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 new file mode 100644 index 0000000000000..59a16b53f52c3 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemCheckSubnetErrorFilesystemSubnet.java @@ -0,0 +1,76 @@ +// Copyright (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 new file mode 100644 index 0000000000000..d3878e52db3bb --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemEncryptionSettings.java @@ -0,0 +1,53 @@ +// Copyright (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 new file mode 100644 index 0000000000000..36483fedc7493 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHealth.java @@ -0,0 +1,104 @@ +// Copyright (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 new file mode 100644 index 0000000000000..db49174800f42 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHealthStateType.java @@ -0,0 +1,56 @@ +// Copyright (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 new file mode 100644 index 0000000000000..68f2b3bb2b2df --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemHsmSettings.java @@ -0,0 +1,129 @@ +// Copyright (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 new file mode 100644 index 0000000000000..35d12fc026a7f --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemIdentity.java @@ -0,0 +1,123 @@ +// Copyright (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 new file mode 100644 index 0000000000000..f8ff0fc68779c --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemIdentityType.java @@ -0,0 +1,51 @@ +// Copyright (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 new file mode 100644 index 0000000000000..b5fa3d77f0b87 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemPropertiesHsm.java @@ -0,0 +1,72 @@ +// Copyright (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 new file mode 100644 index 0000000000000..51d04e6d9385f --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemPropertiesMaintenanceWindow.java @@ -0,0 +1,76 @@ +// Copyright (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 new file mode 100644 index 0000000000000..7c92c9fc0f0d7 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemProvisioningStateType.java @@ -0,0 +1,59 @@ +// Copyright (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 new file mode 100644 index 0000000000000..784687ae5ecaf --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemSubnetInfo.java @@ -0,0 +1,134 @@ +// Copyright (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 new file mode 100644 index 0000000000000..36af932d1cd5d --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemUpdate.java @@ -0,0 +1,118 @@ +// Copyright (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 new file mode 100644 index 0000000000000..813247f6054ef --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemUpdatePropertiesMaintenanceWindow.java @@ -0,0 +1,76 @@ +// Copyright (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 new file mode 100644 index 0000000000000..7797cd4d9f49b --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystems.java @@ -0,0 +1,214 @@ +// Copyright (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 new file mode 100644 index 0000000000000..e6970ef1d9c3d --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/AmlFilesystemsListResult.java @@ -0,0 +1,84 @@ +// Copyright (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 new file mode 100644 index 0000000000000..b97a4af73cb37 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/ArchiveStatusType.java @@ -0,0 +1,65 @@ +// Copyright (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 48ed72aa21373..1689f53cf4639 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 the region used to look up the operation. - * @param operationId The operation id which uniquely identifies the asynchronous operation. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async 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 the region used to look up the operation. - * @param operationId The operation id which uniquely identifies the asynchronous operation. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async 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 7e5ebacfaa979..f0f101e954cd1 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,28 +63,41 @@ 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. + * 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>. * * @return the cacheSizeGB value. */ Integer cacheSizeGB(); /** - * Gets the health property: Health of the Cache. + * 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. * * @return the health value. */ CacheHealth health(); /** - * Gets the mountAddresses property: Array of IP addresses that can be used by clients mounting this Cache. + * Gets the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache. * * @return the mountAddresses value. */ @@ -99,21 +112,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. */ @@ -233,7 +246,7 @@ interface WithResourceGroup { /** * Specifies resourceGroupName. * - * @param resourceGroupName Target resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithCreate withExistingResourceGroup(String resourceGroupName); @@ -247,6 +260,7 @@ interface WithCreate DefinitionStages.WithIdentity, DefinitionStages.WithSku, DefinitionStages.WithCacheSizeGB, + DefinitionStages.WithScalingFactor, DefinitionStages.WithSubnet, DefinitionStages.WithUpgradeSettings, DefinitionStages.WithNetworkSettings, @@ -292,9 +306,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); @@ -302,19 +316,43 @@ 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.. + * 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>.. * - * @param cacheSizeGB 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>. * @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); @@ -322,9 +360,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); @@ -393,6 +431,7 @@ interface WithZones { interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, + UpdateStages.WithScalingFactor, UpdateStages.WithUpgradeSettings, UpdateStages.WithNetworkSettings, UpdateStages.WithEncryptionSettings, @@ -435,12 +474,30 @@ 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); @@ -502,7 +559,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. @@ -510,7 +567,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. @@ -520,7 +577,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. @@ -529,7 +586,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. @@ -540,7 +597,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. @@ -548,7 +605,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. @@ -558,7 +615,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. @@ -566,7 +623,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. @@ -652,7 +709,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. @@ -660,7 +717,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 28c85585dbc39..33223c7d416d8 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", required = true) + @JsonProperty(value = "password") private String password; /** Creates an instance of CacheActiveDirectorySettingsCredentials class. */ @@ -85,12 +85,6 @@ 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 27b1367a84619..9a3bc70b9137c 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 0932be6d1c921..9a68c2d40fc5f 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,11 +8,14 @@ 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. + * 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. */ @JsonProperty(value = "state") private HealthStateType state; @@ -34,7 +37,10 @@ public CacheHealth() { } /** - * Get the state property: List of Cache health states. + * 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. * * @return the state value. */ @@ -43,7 +49,10 @@ public HealthStateType state() { } /** - * Set the state property: List of Cache health states. + * 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. * * @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/CacheNetworkSettings.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/CacheNetworkSettings.java index bc34ffcfaa43b..8cfe70e3db210 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 26dadeb725fa8..df3aa429f66f5 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 e5d406cd7b0da..182f4aa7c1f60 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 a8bd04fe6f894..d28d597041fb9 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 Target 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 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 Target 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 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 3a283bcf914a8..f4d5024be7cb4 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 new file mode 100644 index 0000000000000..71a6c46706ea8 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/FilesystemSubnetStatusType.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.storagecache.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 ba3bd75d5615b..037a5d9e939a3 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 26c3884355bcc..7a83955ef29b2 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,7 +8,12 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** List of Cache health states. */ +/** + * 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. + */ 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 6ae013733e609..66dfe8880e4fb 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 c46637b618e96..a7ea7df48ce5c 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 new file mode 100644 index 0000000000000..21bc867a1841b --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/MaintenanceDayOfWeekType.java @@ -0,0 +1,66 @@ +// Copyright (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 9ebe734cd211c..a9b531761a190 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 9ab09e08021ca..07fb04dc8784b 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 8fe8c58d073fb..92fc8b6607bda 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 new file mode 100644 index 0000000000000..46c82314151ac --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/SkuName.java @@ -0,0 +1,50 @@ +// Copyright (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 256baa0f0935a..ba095a6bdb8a2 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 ddb167240c295..b83ba0de8d7c7 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 d8faa80b23e71..f6bf7a10cacc7 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 5ee9e563858ad..b8f3a27c0bd1a 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 Target resource group. - * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from the + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cacheName Name 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 84dd902ab0bb3..4244ebf8d10ac 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 12362741154d0..b51920a27ddae 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 eb4e37a75667c..a027a17fb8c4c 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 new file mode 100644 index 0000000000000..99ab8b429409e --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/main/java/com/azure/resourcemanager/storagecache/models/UserAssignedIdentitiesValueAutoGenerated.java @@ -0,0 +1,54 @@ +// Copyright (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 new file mode 100644 index 0000000000000..7a01e1b066061 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..e7177b60e5275 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveSamples.java @@ -0,0 +1,20 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..d39718161675d --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCreateOrUpdateSamples.java @@ -0,0 +1,87 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..46143be923cc7 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteSamples.java @@ -0,0 +1,20 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..c133f1687bb67 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsGetByResourceGroupSamples.java @@ -0,0 +1,20 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..35036c4b5da65 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListByResourceGroupSamples.java @@ -0,0 +1,21 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..46838e19b3460 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListSamples.java @@ -0,0 +1,20 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..c8b25bfe43e46 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsUpdateSamples.java @@ -0,0 +1,61 @@ +// Copyright (c) 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 98f08f1cc584c..1004b76653490 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/stable/2023-01-01/examples/AscOperations_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 7f31da55c648b..b809aea206683 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/stable/2023-01-01/examples/AscResourceUsages_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 6fd05e43e65da..9e707b0272cf4 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/stable/2023-01-01/examples/Caches_CreateOrUpdate_ldap_only.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_CreateOrUpdate_ldap_only.json */ /** * Sample code: Caches_CreateOrUpdate_ldap_only. @@ -48,6 +48,7 @@ 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( @@ -95,7 +96,7 @@ public static void cachesCreateOrUpdateLdapOnly( } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_CreateOrUpdate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_CreateOrUpdate.json */ /** * Sample code: Caches_CreateOrUpdate. @@ -118,6 +119,7 @@ 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 6d11112fe5f8a..85676e41cfeec 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/stable/2023-01-01/examples/Caches_DebugInfo.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 ad818a426bee8..dd802346e8f00 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/stable/2023-01-01/examples/Caches_Delete.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 5f079d991de9f..09fd35ccfe462 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/stable/2023-01-01/examples/Caches_Flush.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 c9f2b268e6b34..777b38439d8d9 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/stable/2023-01-01/examples/Caches_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 243d37450a10c..7f59dec73ffaa 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/stable/2023-01-01/examples/Caches_ListByResourceGroup.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 1a123ae1a5e5a..eb26b3931eba2 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/stable/2023-01-01/examples/Caches_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 fcbcf205fd33d..c3b39db90e06f 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/stable/2023-01-01/examples/PausePrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 ffe699b235bd9..41a24c4f92786 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/stable/2023-01-01/examples/ResumePrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 5b5fba66cccdc..a0c06bbcf7823 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/stable/2023-01-01/examples/SpaceAllocation_Post.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 79f75b5d13f9b..6c0aaf51b0f06 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/stable/2023-01-01/examples/StartPrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 559b9f1459f7f..243d654ea979d 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/stable/2023-01-01/examples/Caches_Start.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 4d3542319c95f..ca9807814d159 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/stable/2023-01-01/examples/StopPrimingJob.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 7c24206fe5364..c6b9fb484eea5 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/stable/2023-01-01/examples/Caches_Stop.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 2c9b03d5cfda5..1addb1001f4d8 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/stable/2023-01-01/examples/Caches_Update_ldap_only.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Update_ldap_only.json */ /** * Sample code: Caches_Update_ldap_only. @@ -41,6 +41,7 @@ public static void cachesUpdateLdapOnly(com.azure.resourcemanager.storagecache.S resource .update() .withTags(mapOf("Dept", "Contoso")) + .withScalingFactor(1.0D) .withUpgradeSettings( new CacheUpgradeSettings() .withUpgradeScheduleEnabled(true) @@ -110,7 +111,7 @@ public static void cachesUpdateLdapOnly(com.azure.resourcemanager.storagecache.S } /* - * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Update.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/examples/Caches_Update.json */ /** * Sample code: Caches_Update. @@ -126,6 +127,7 @@ 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 80b5d466a8bd0..0641a5790d810 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/stable/2023-01-01/examples/Caches_UpgradeFirmware.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 3b40431fcda69..8aace4f731dc5 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/stable/2023-01-01/examples/Operations_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 new file mode 100644 index 0000000000000..4909c0b8fcaf3 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderCheckAmlFSSubnetsSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..3fa97f711dd0b --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/samples/java/com/azure/resourcemanager/storagecache/generated/ResourceProviderGetRequiredAmlFSSubnetsSizeSamples.java @@ -0,0 +1,21 @@ +// Copyright (c) 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 47b004b6cdd9d..332779f543916 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/stable/2023-01-01/examples/Skus_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 fb9894b58242d..f1a9f3ac2481b 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/stable/2023-01-01/examples/StorageTargets_Flush.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 272eb749e1db9..6e28337876dcb 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/stable/2023-01-01/examples/StorageTargets_Invalidate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 814b0d69b3c96..da1fbdf64e5fc 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/stable/2023-01-01/examples/StorageTargets_Resume.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 47fc37eb61239..4cecae65ea6e1 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/stable/2023-01-01/examples/StorageTargets_Suspend.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 25d3704629e1a..2e6db10de3ac0 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/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate_BlobNfs.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate_NoJunctions.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 72eeb3077cd86..e172f92fdd6e6 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/stable/2023-01-01/examples/StorageTargets_Delete.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 8093f0c306d08..b51aa4777d251 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/stable/2023-01-01/examples/StorageTargets_DnsRefresh.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 8371eccbebc1c..1f836cdd390fa 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/stable/2023-01-01/examples/StorageTargets_Get.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 c136dedcc087d..5759265def0c7 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/stable/2023-01-01/examples/StorageTargets_ListByCache.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 880cf6ae19a8a..0880efe5f5f5a 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/stable/2023-01-01/examples/StorageTargets_RestoreDefaults.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 764192fc3cb0d..1dae226177d81 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/stable/2023-01-01/examples/UsageModels_List.json + * x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-03-01-preview/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 new file mode 100644 index 0000000000000..a56f7b3671e74 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemArchiveInfoTests.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.storagecache.generated; + +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 new file mode 100644 index 0000000000000..bb1afaa608fdf --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorFilesystemSubnetTests.java @@ -0,0 +1,33 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..da96ec7d45166 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemCheckSubnetErrorTests.java @@ -0,0 +1,36 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..fabe5c3751a8d --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemHsmSettingsTests.java @@ -0,0 +1,36 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..53d4794ce943f --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemIdentityTests.java @@ -0,0 +1,55 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..c6509085ed577 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemPropertiesMaintenanceWindowTests.java @@ -0,0 +1,33 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..9077e486284b6 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemSubnetInfoTests.java @@ -0,0 +1,40 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..b5185d2a4dff4 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdatePropertiesMaintenanceWindowTests.java @@ -0,0 +1,33 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..b143ab330c256 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemUpdateTests.java @@ -0,0 +1,64 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..b2bf16f092818 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsArchiveWithResponseMockTests.java @@ -0,0 +1,68 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..7e39b9eac5658 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsCancelArchiveWithResponseMockTests.java @@ -0,0 +1,61 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..5cb7600d89c30 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsDeleteMockTests.java @@ -0,0 +1,61 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..5b0cb1627bd49 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AmlFilesystemsListResultTests.java @@ -0,0 +1,105 @@ +// Copyright (c) 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/AscUsagesListMockTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/AscUsagesListMockTests.java index df11cff318c48..76e0e17b79fe0 100644 --- 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 @@ -31,7 +31,7 @@ public void testList() throws Exception { ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); String responseStr = - "{\"value\":[{\"limit\":241843348,\"unit\":\"scdntnevf\",\"currentValue\":2060062752,\"name\":{\"value\":\"gtdsslswt\",\"localizedValue\":\"eriofzpyqs\"}}]}"; + "{\"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()); @@ -60,6 +60,6 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = - manager.ascUsages().list("ylpstdbhhxsrzdz", com.azure.core.util.Context.NONE); + 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 index bcfbf7b470817..61bdf19086874 100644 --- 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 @@ -14,26 +14,26 @@ public void testDeserialize() throws Exception { BlobNfsTarget model = BinaryData .fromString( - "{\"target\":\"lwptfdy\",\"usageModel\":\"fqbuaceopzf\",\"verificationTimer\":1219903446,\"writeBackTimer\":391831639}") + "{\"target\":\"sjyofdx\",\"usageModel\":\"us\",\"verificationTimer\":578093218,\"writeBackTimer\":648396636}") .toObject(BlobNfsTarget.class); - Assertions.assertEquals("lwptfdy", model.target()); - Assertions.assertEquals("fqbuaceopzf", model.usageModel()); - Assertions.assertEquals(1219903446, model.verificationTimer()); - Assertions.assertEquals(391831639, model.writeBackTimer()); + 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("lwptfdy") - .withUsageModel("fqbuaceopzf") - .withVerificationTimer(1219903446) - .withWriteBackTimer(391831639); + .withTarget("sjyofdx") + .withUsageModel("us") + .withVerificationTimer(578093218) + .withWriteBackTimer(648396636); model = BinaryData.fromObject(model).toObject(BlobNfsTarget.class); - Assertions.assertEquals("lwptfdy", model.target()); - Assertions.assertEquals("fqbuaceopzf", model.usageModel()); - Assertions.assertEquals(1219903446, model.verificationTimer()); - Assertions.assertEquals(391831639, model.writeBackTimer()); + 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 index 2dd8590450a04..222d460fd6018 100644 --- 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 @@ -15,18 +15,18 @@ public void testDeserialize() throws Exception { CacheHealth model = BinaryData .fromString( - "{\"state\":\"Transitioning\",\"statusDescription\":\"whzlsicohoq\",\"conditions\":[{\"timestamp\":\"2021-08-05T01:30:43Z\",\"message\":\"yav\"}]}") + "{\"state\":\"UpgradeFailed\",\"statusDescription\":\"mwvvjektcxsenhw\",\"conditions\":[{\"timestamp\":\"2021-01-30T03:05:29Z\",\"message\":\"zpwv\"}]}") .toObject(CacheHealth.class); - Assertions.assertEquals(HealthStateType.TRANSITIONING, model.state()); - Assertions.assertEquals("whzlsicohoq", model.statusDescription()); + 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.TRANSITIONING).withStatusDescription("whzlsicohoq"); + new CacheHealth().withState(HealthStateType.UPGRADE_FAILED).withStatusDescription("mwvvjektcxsenhw"); model = BinaryData.fromObject(model).toObject(CacheHealth.class); - Assertions.assertEquals(HealthStateType.TRANSITIONING, model.state()); - Assertions.assertEquals("whzlsicohoq", model.statusDescription()); + 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 index 9818f3e127f11..374e12aea263c 100644 --- 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 @@ -18,27 +18,19 @@ public void testDeserialize() throws Exception { CacheIdentity model = BinaryData .fromString( - "{\"principalId\":\"bpxjmfl\",\"tenantId\":\"vnchrkcci\",\"type\":\"SystemAssigned," - + " UserAssigned\",\"userAssignedIdentities\":{\"ghsauuimjmvxied\":{\"principalId\":\"khrs\",\"clientId\":\"iwkuofos\"},\"e\":{\"principalId\":\"gidyjrrf\",\"clientId\":\"aos\"},\"eggzfb\":{\"principalId\":\"sonpclhocohs\",\"clientId\":\"ev\"}}}") + "{\"principalId\":\"v\",\"tenantId\":\"csonpclhoco\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"vmezy\":{\"principalId\":\"leggzfbu\",\"clientId\":\"mvfaxkffeiith\"}}}") .toObject(CacheIdentity.class); - Assertions.assertEquals(CacheIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); + Assertions.assertEquals(CacheIdentityType.USER_ASSIGNED, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CacheIdentity model = new CacheIdentity() - .withType(CacheIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "ghsauuimjmvxied", - new UserAssignedIdentitiesValue(), - "e", - new UserAssignedIdentitiesValue(), - "eggzfb", - new UserAssignedIdentitiesValue())); + .withType(CacheIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("vmezy", new UserAssignedIdentitiesValue())); model = BinaryData.fromObject(model).toObject(CacheIdentity.class); - Assertions.assertEquals(CacheIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); + Assertions.assertEquals(CacheIdentityType.USER_ASSIGNED, model.type()); } @SuppressWarnings("unchecked") 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 index 704f799abb19b..857a5d8b7c627 100644 --- 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 @@ -15,26 +15,26 @@ public void testDeserialize() throws Exception { CacheNetworkSettings model = BinaryData .fromString( - "{\"mtu\":1340074682,\"utilityAddresses\":[\"eyp\",\"wrmjmwvvjektc\",\"senhwlrs\"],\"dnsServers\":[\"zpwv\",\"qdqgbi\",\"ylihkaetckt\",\"fcivfsnkym\"],\"dnsSearchDomain\":\"tqhjfbebrjcx\",\"ntpServer\":\"fuwutttxf\"}") + "{\"mtu\":910788688,\"utilityAddresses\":[\"fuwutttxf\",\"jrbirphxepcyv\"],\"dnsServers\":[\"nljky\",\"xjvuujqgidokg\"],\"dnsSearchDomain\":\"jyoxgvclt\",\"ntpServer\":\"sncghkjeszz\"}") .toObject(CacheNetworkSettings.class); - Assertions.assertEquals(1340074682, model.mtu()); - Assertions.assertEquals("zpwv", model.dnsServers().get(0)); - Assertions.assertEquals("tqhjfbebrjcx", model.dnsSearchDomain()); - Assertions.assertEquals("fuwutttxf", model.ntpServer()); + 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(1340074682) - .withDnsServers(Arrays.asList("zpwv", "qdqgbi", "ylihkaetckt", "fcivfsnkym")) - .withDnsSearchDomain("tqhjfbebrjcx") - .withNtpServer("fuwutttxf"); + .withMtu(910788688) + .withDnsServers(Arrays.asList("nljky", "xjvuujqgidokg")) + .withDnsSearchDomain("jyoxgvclt") + .withNtpServer("sncghkjeszz"); model = BinaryData.fromObject(model).toObject(CacheNetworkSettings.class); - Assertions.assertEquals(1340074682, model.mtu()); - Assertions.assertEquals("zpwv", model.dnsServers().get(0)); - Assertions.assertEquals("tqhjfbebrjcx", model.dnsSearchDomain()); - Assertions.assertEquals("fuwutttxf", model.ntpServer()); + 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 index 06135701b9748..153fa789baf19 100644 --- 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 @@ -16,9 +16,9 @@ public void testDeserialize() throws Exception { CacheSecuritySettings model = BinaryData .fromString( - "{\"accessPolicies\":[{\"name\":\"yq\",\"accessRules\":[]},{\"name\":\"vuujq\",\"accessRules\":[]},{\"name\":\"dokgjl\",\"accessRules\":[]},{\"name\":\"oxgvclt\",\"accessRules\":[]}]}") + "{\"accessPolicies\":[{\"name\":\"mpvecxgodebfqk\",\"accessRules\":[]},{\"name\":\"bmpukgriwflz\",\"accessRules\":[]}]}") .toObject(CacheSecuritySettings.class); - Assertions.assertEquals("yq", model.accessPolicies().get(0).name()); + Assertions.assertEquals("mpvecxgodebfqk", model.accessPolicies().get(0).name()); } @org.junit.jupiter.api.Test @@ -28,11 +28,9 @@ public void testSerialize() throws Exception { .withAccessPolicies( Arrays .asList( - new NfsAccessPolicy().withName("yq").withAccessRules(Arrays.asList()), - new NfsAccessPolicy().withName("vuujq").withAccessRules(Arrays.asList()), - new NfsAccessPolicy().withName("dokgjl").withAccessRules(Arrays.asList()), - new NfsAccessPolicy().withName("oxgvclt").withAccessRules(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("yq", model.accessPolicies().get(0).name()); + 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 index 6918f4006eaf4..69d59e076acc2 100644 --- 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 @@ -11,14 +11,14 @@ public final class CacheSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CacheSku model = BinaryData.fromString("{\"name\":\"ugxywpmueef\"}").toObject(CacheSku.class); - Assertions.assertEquals("ugxywpmueef", model.name()); + 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("ugxywpmueef"); + CacheSku model = new CacheSku().withName("yonobgl"); model = BinaryData.fromObject(model).toObject(CacheSku.class); - Assertions.assertEquals("ugxywpmueef", model.name()); + 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 index a3c0e8af96594..9417cd00c4f44 100644 --- 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 @@ -14,10 +14,10 @@ public final class CacheUpgradeSettingsTests { public void testDeserialize() throws Exception { CacheUpgradeSettings model = BinaryData - .fromString("{\"upgradeScheduleEnabled\":false,\"scheduledTime\":\"2021-11-03T09:03:22Z\"}") + .fromString("{\"upgradeScheduleEnabled\":false,\"scheduledTime\":\"2021-02-04T13:42:35Z\"}") .toObject(CacheUpgradeSettings.class); Assertions.assertEquals(false, model.upgradeScheduleEnabled()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-03T09:03:22Z"), model.scheduledTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-04T13:42:35Z"), model.scheduledTime()); } @org.junit.jupiter.api.Test @@ -25,9 +25,9 @@ public void testSerialize() throws Exception { CacheUpgradeSettings model = new CacheUpgradeSettings() .withUpgradeScheduleEnabled(false) - .withScheduledTime(OffsetDateTime.parse("2021-11-03T09:03:22Z")); + .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-11-03T09:03:22Z"), model.scheduledTime()); + 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 index eec0ce3f29fb6..ab03d4422e874 100644 --- 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 @@ -13,7 +13,7 @@ public void testDeserialize() throws Exception { CacheUpgradeStatus model = BinaryData .fromString( - "{\"currentFirmwareVersion\":\"yxzk\",\"firmwareUpdateStatus\":\"unavailable\",\"firmwareUpdateDeadline\":\"2021-05-16T08:19Z\",\"lastFirmwareUpdate\":\"2021-03-20T11:43:44Z\",\"pendingFirmwareVersion\":\"lyaxuc\"}") + "{\"currentFirmwareVersion\":\"tvfcivfsn\",\"firmwareUpdateStatus\":\"available\",\"firmwareUpdateDeadline\":\"2021-03-08T06:28:46Z\",\"lastFirmwareUpdate\":\"2021-07-09T15:46:39Z\",\"pendingFirmwareVersion\":\"jf\"}") .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 index 3715baca2709b..622e351475c9c 100644 --- 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 @@ -56,6 +56,6 @@ public void testDebugInfo() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.caches().debugInfo("omgkopkwho", "v", com.azure.core.util.Context.NONE); + 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 index 6c5d79b19f085..818f7136e8412 100644 --- 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 @@ -56,6 +56,6 @@ public void testDelete() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.caches().delete("ppfufl", "wdmhdlxyjrxs", com.azure.core.util.Context.NONE); + 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 index 22ad7ddbecaad..e8ba935b5d2fd 100644 --- 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 @@ -56,6 +56,6 @@ public void testFlush() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.caches().flush("ajqgxy", "mocmbqfqvmk", com.azure.core.util.Context.NONE); + 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 index 001593c8ceea5..b7ac1720fede2 100644 --- 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 @@ -21,15 +21,16 @@ public void testDeserialize() throws Exception { CachesListResult model = BinaryData .fromString( - "{\"nextLink\":\"fwnfnb\",\"value\":[{\"identity\":{\"principalId\":\"nlebxetqgtzxd\",\"tenantId\":\"qbqqwxr\",\"type\":\"None\",\"userAssignedIdentities\":{}},\"properties\":{\"cacheSizeGB\":69356874,\"mountAddresses\":[],\"provisioningState\":\"Failed\",\"subnet\":\"njampm\",\"zones\":[],\"primingJobs\":[],\"spaceAllocation\":[]},\"sku\":{\"name\":\"chcbonqvpkvlrxnj\"},\"location\":\"ase\",\"tags\":{\"lokeyy\":\"eo\",\"jp\":\"enjbdlwtgrhp\",\"e\":\"umasxazjpq\",\"zvdudgwdslfhotwm\":\"ualhbxxhejj\"},\"id\":\"ynpwlbj\",\"name\":\"pgacftadehxnlty\",\"type\":\"sop\"},{\"identity\":{\"principalId\":\"uesnzwdejbavo\",\"tenantId\":\"zdmohctbqvu\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{}},\"properties\":{\"cacheSizeGB\":378897714,\"mountAddresses\":[],\"provisioningState\":\"Deleting\",\"subnet\":\"jugwdkcglhsl\",\"zones\":[],\"primingJobs\":[],\"spaceAllocation\":[]},\"sku\":{\"name\":\"hbkuofqwey\"},\"location\":\"hmenevfyexfwhybc\",\"tags\":{\"dectehfiqsc\":\"yvdcsitynnaa\",\"hcjrefovgmk\":\"eypvhezrkg\"},\"id\":\"sle\",\"name\":\"yvxyqjp\",\"type\":\"cattpngjcrcczsq\"}]}") + "{\"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("ase", model.value().get(0).location()); - Assertions.assertEquals("eo", model.value().get(0).tags().get("lokeyy")); + 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("chcbonqvpkvlrxnj", model.value().get(0).sku().name()); + Assertions.assertEquals("rxnjeaseipheofl", model.value().get(0).sku().name()); Assertions.assertEquals(69356874, model.value().get(0).cacheSizeGB()); - Assertions.assertEquals("njampm", model.value().get(0).subnet()); + Assertions.assertEquals(72.7998351594212D, model.value().get(0).scalingFactor()); + Assertions.assertEquals("mpmngnzscxaqwoo", model.value().get(0).subnet()); } @org.junit.jupiter.api.Test @@ -41,44 +42,47 @@ public void testSerialize() throws Exception { Arrays .asList( new CacheInner() - .withLocation("ase") + .withLocation("keyyi") .withTags( mapOf( - "lokeyy", - "eo", - "jp", - "enjbdlwtgrhp", - "e", - "umasxazjpq", - "zvdudgwdslfhotwm", - "ualhbxxhejj")) + "masxazjpqyegu", + "bdlwtgrhpdjpj", + "wdslfhotwmcy", + "lhbxxhejjzzvdud", + "cftadeh", + "pwlbjnpg", + "dejbavo", + "nltyfsoppusuesnz")) .withIdentity( new CacheIdentity() .withType(CacheIdentityType.NONE) .withUserAssignedIdentities(mapOf())) - .withSku(new CacheSku().withName("chcbonqvpkvlrxnj")) + .withSku(new CacheSku().withName("rxnjeaseipheofl")) .withCacheSizeGB(69356874) - .withSubnet("njampm") + .withScalingFactor(72.7998351594212D) + .withSubnet("mpmngnzscxaqwoo") .withZones(Arrays.asList()), new CacheInner() - .withLocation("hmenevfyexfwhybc") - .withTags(mapOf("dectehfiqsc", "yvdcsitynnaa", "hcjrefovgmk", "eypvhezrkg")) + .withLocation("ectehf") + .withTags(mapOf("ypvhezrkg", "cj", "sle", "hcjrefovgmk")) .withIdentity( new CacheIdentity() - .withType(CacheIdentityType.SYSTEM_ASSIGNED) + .withType(CacheIdentityType.USER_ASSIGNED) .withUserAssignedIdentities(mapOf())) - .withSku(new CacheSku().withName("hbkuofqwey")) - .withCacheSizeGB(378897714) - .withSubnet("jugwdkcglhsl") + .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("ase", model.value().get(0).location()); - Assertions.assertEquals("eo", model.value().get(0).tags().get("lokeyy")); + 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("chcbonqvpkvlrxnj", model.value().get(0).sku().name()); + Assertions.assertEquals("rxnjeaseipheofl", model.value().get(0).sku().name()); Assertions.assertEquals(69356874, model.value().get(0).cacheSizeGB()); - Assertions.assertEquals("njampm", model.value().get(0).subnet()); + Assertions.assertEquals(72.7998351594212D, model.value().get(0).scalingFactor()); + Assertions.assertEquals("mpmngnzscxaqwoo", model.value().get(0).subnet()); } @SuppressWarnings("unchecked") 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 index bb6ded05ab2ee..fb123f24613ad 100644 --- 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 @@ -56,6 +56,6 @@ public void testStart() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.caches().start("xozap", "helxprglya", com.azure.core.util.Context.NONE); + 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 index 88fb643e2a276..459aa4ae38158 100644 --- 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 @@ -56,6 +56,6 @@ public void testStop() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.caches().stop("dd", "kcbcue", com.azure.core.util.Context.NONE); + 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 index 79960723172a7..0e38534a6198c 100644 --- 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 @@ -11,14 +11,14 @@ public final class ClfsTargetTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ClfsTarget model = BinaryData.fromString("{\"target\":\"alaulppggdtpnapn\"}").toObject(ClfsTarget.class); - Assertions.assertEquals("alaulppggdtpnapn", model.target()); + 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("alaulppggdtpnapn"); + ClfsTarget model = new ClfsTarget().withTarget("e"); model = BinaryData.fromObject(model).toObject(ClfsTarget.class); - Assertions.assertEquals("alaulppggdtpnapn", model.target()); + 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 index 0621c18e6031c..4a045f250e375 100644 --- 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 @@ -12,7 +12,7 @@ public final class ConditionTests { public void testDeserialize() throws Exception { Condition model = BinaryData - .fromString("{\"timestamp\":\"2021-01-21T09:18:25Z\",\"message\":\"unmmq\"}") + .fromString("{\"timestamp\":\"2021-01-03T19:26:04Z\",\"message\":\"gbiqylihkaet\"}") .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 index b0e030edc8963..c18fc82c20b83 100644 --- 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 @@ -12,14 +12,14 @@ public final class KeyVaultKeyReferenceSourceVaultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { KeyVaultKeyReferenceSourceVault model = - BinaryData.fromString("{\"id\":\"ahfn\"}").toObject(KeyVaultKeyReferenceSourceVault.class); - Assertions.assertEquals("ahfn", model.id()); + 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("ahfn"); + KeyVaultKeyReferenceSourceVault model = new KeyVaultKeyReferenceSourceVault().withId("smx"); model = BinaryData.fromObject(model).toObject(KeyVaultKeyReferenceSourceVault.class); - Assertions.assertEquals("ahfn", model.id()); + Assertions.assertEquals("smx", model.id()); } } 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 index 2bef292129acf..ffff6a238b44d 100644 --- 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 @@ -14,26 +14,26 @@ public void testDeserialize() throws Exception { NamespaceJunction model = BinaryData .fromString( - "{\"namespacePath\":\"sflhhca\",\"targetPath\":\"n\",\"nfsExport\":\"xisxyawjoyaqcsl\",\"nfsAccessPolicy\":\"pkii\"}") + "{\"namespacePath\":\"sgzvahapjyzhpv\",\"targetPath\":\"zcjrvxdjzlmwlx\",\"nfsExport\":\"ug\",\"nfsAccessPolicy\":\"zovawjvz\"}") .toObject(NamespaceJunction.class); - Assertions.assertEquals("sflhhca", model.namespacePath()); - Assertions.assertEquals("n", model.targetPath()); - Assertions.assertEquals("xisxyawjoyaqcsl", model.nfsExport()); - Assertions.assertEquals("pkii", model.nfsAccessPolicy()); + 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("sflhhca") - .withTargetPath("n") - .withNfsExport("xisxyawjoyaqcsl") - .withNfsAccessPolicy("pkii"); + .withNamespacePath("sgzvahapjyzhpv") + .withTargetPath("zcjrvxdjzlmwlx") + .withNfsExport("ug") + .withNfsAccessPolicy("zovawjvz"); model = BinaryData.fromObject(model).toObject(NamespaceJunction.class); - Assertions.assertEquals("sflhhca", model.namespacePath()); - Assertions.assertEquals("n", model.targetPath()); - Assertions.assertEquals("xisxyawjoyaqcsl", model.nfsExport()); - Assertions.assertEquals("pkii", model.nfsAccessPolicy()); + 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 index 2369bc7366a07..5c0e60dff374d 100644 --- 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 @@ -14,26 +14,26 @@ public void testDeserialize() throws Exception { Nfs3Target model = BinaryData .fromString( - "{\"target\":\"yexz\",\"usageModel\":\"lixhnrztfol\",\"verificationTimer\":315550434,\"writeBackTimer\":297001975}") + "{\"target\":\"luthn\",\"usageModel\":\"rnxipei\",\"verificationTimer\":2136356878,\"writeBackTimer\":703232115}") .toObject(Nfs3Target.class); - Assertions.assertEquals("yexz", model.target()); - Assertions.assertEquals("lixhnrztfol", model.usageModel()); - Assertions.assertEquals(315550434, model.verificationTimer()); - Assertions.assertEquals(297001975, model.writeBackTimer()); + 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("yexz") - .withUsageModel("lixhnrztfol") - .withVerificationTimer(315550434) - .withWriteBackTimer(297001975); + .withTarget("luthn") + .withUsageModel("rnxipei") + .withVerificationTimer(2136356878) + .withWriteBackTimer(703232115); model = BinaryData.fromObject(model).toObject(Nfs3Target.class); - Assertions.assertEquals("yexz", model.target()); - Assertions.assertEquals("lixhnrztfol", model.usageModel()); - Assertions.assertEquals(315550434, model.verificationTimer()); - Assertions.assertEquals(297001975, model.writeBackTimer()); + 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 index 7ad445e5f4142..34eeb6081082e 100644 --- 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 @@ -18,63 +18,63 @@ public void testDeserialize() throws Exception { NfsAccessPolicy model = BinaryData .fromString( - "{\"name\":\"sncghkjeszz\",\"accessRules\":[{\"scope\":\"network\",\"filter\":\"htxfvgxbfsmxnehm\",\"access\":\"ro\",\"suid\":false,\"submountAccess\":true,\"rootSquash\":true,\"anonymousUID\":\"bfqkkr\",\"anonymousGID\":\"pukgriwflzlfb\"},{\"scope\":\"host\",\"filter\":\"uzycispnqza\",\"access\":\"rw\",\"suid\":true,\"submountAccess\":false,\"rootSquash\":true,\"anonymousUID\":\"dhibnuq\",\"anonymousGID\":\"pikad\"},{\"scope\":\"host\",\"filter\":\"tqagnbuynh\",\"access\":\"rw\",\"suid\":true,\"submountAccess\":false,\"rootSquash\":true,\"anonymousUID\":\"iarbutrcvpna\",\"anonymousGID\":\"mhjrunmpxttdbhr\"}]}") + "{\"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("sncghkjeszz", model.name()); - Assertions.assertEquals(NfsAccessRuleScope.NETWORK, model.accessRules().get(0).scope()); - Assertions.assertEquals("htxfvgxbfsmxnehm", model.accessRules().get(0).filter()); + 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(false, model.accessRules().get(0).suid()); - Assertions.assertEquals(true, model.accessRules().get(0).submountAccess()); + 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("bfqkkr", model.accessRules().get(0).anonymousUid()); - Assertions.assertEquals("pukgriwflzlfb", model.accessRules().get(0).anonymousGid()); + 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("sncghkjeszz") + .withName("bxzpuzycisp") .withAccessRules( Arrays .asList( new NfsAccessRule() - .withScope(NfsAccessRuleScope.NETWORK) - .withFilter("htxfvgxbfsmxnehm") + .withScope(NfsAccessRuleScope.HOST) + .withFilter("hmgkbrpyy") .withAccess(NfsAccessRuleAccess.RO) - .withSuid(false) - .withSubmountAccess(true) + .withSuid(true) + .withSubmountAccess(false) .withRootSquash(true) - .withAnonymousUid("bfqkkr") - .withAnonymousGid("pukgriwflzlfb"), + .withAnonymousUid("pikad") + .withAnonymousGid("vtq"), new NfsAccessRule() - .withScope(NfsAccessRuleScope.HOST) - .withFilter("uzycispnqza") + .withScope(NfsAccessRuleScope.NETWORK) + .withFilter("buynhijggm") .withAccess(NfsAccessRuleAccess.RW) .withSuid(true) .withSubmountAccess(false) - .withRootSquash(true) - .withAnonymousUid("dhibnuq") - .withAnonymousGid("pikad"), + .withRootSquash(false) + .withAnonymousUid("trcvpnazzmh") + .withAnonymousGid("unmpxttd"), new NfsAccessRule() - .withScope(NfsAccessRuleScope.HOST) - .withFilter("tqagnbuynh") - .withAccess(NfsAccessRuleAccess.RW) + .withScope(NfsAccessRuleScope.NETWORK) + .withFilter("bnlankxmyskpb") + .withAccess(NfsAccessRuleAccess.NO) .withSuid(true) .withSubmountAccess(false) .withRootSquash(true) - .withAnonymousUid("iarbutrcvpna") - .withAnonymousGid("mhjrunmpxttdbhr"))); + .withAnonymousUid("w") + .withAnonymousGid("tnrsyn"))); model = BinaryData.fromObject(model).toObject(NfsAccessPolicy.class); - Assertions.assertEquals("sncghkjeszz", model.name()); - Assertions.assertEquals(NfsAccessRuleScope.NETWORK, model.accessRules().get(0).scope()); - Assertions.assertEquals("htxfvgxbfsmxnehm", model.accessRules().get(0).filter()); + 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(false, model.accessRules().get(0).suid()); - Assertions.assertEquals(true, model.accessRules().get(0).submountAccess()); + 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("bfqkkr", model.accessRules().get(0).anonymousUid()); - Assertions.assertEquals("pukgriwflzlfb", model.accessRules().get(0).anonymousGid()); + 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 index c5a0ad5733655..058c214b79b09 100644 --- 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 @@ -16,38 +16,38 @@ public void testDeserialize() throws Exception { NfsAccessRule model = BinaryData .fromString( - "{\"scope\":\"network\",\"filter\":\"ankxmyskpbhenb\",\"access\":\"no\",\"suid\":true,\"submountAccess\":false,\"rootSquash\":false,\"anonymousUID\":\"nrs\",\"anonymousGID\":\"lqidyby\"}") + "{\"scope\":\"default\",\"filter\":\"dybyxczfclhaa\",\"access\":\"rw\",\"suid\":false,\"submountAccess\":false,\"rootSquash\":false,\"anonymousUID\":\"rqlfktsthsucocmn\",\"anonymousGID\":\"azt\"}") .toObject(NfsAccessRule.class); - Assertions.assertEquals(NfsAccessRuleScope.NETWORK, model.scope()); - Assertions.assertEquals("ankxmyskpbhenb", model.filter()); - Assertions.assertEquals(NfsAccessRuleAccess.NO, model.access()); - Assertions.assertEquals(true, model.suid()); + 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("nrs", model.anonymousUid()); - Assertions.assertEquals("lqidyby", model.anonymousGid()); + 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.NETWORK) - .withFilter("ankxmyskpbhenb") - .withAccess(NfsAccessRuleAccess.NO) - .withSuid(true) + .withScope(NfsAccessRuleScope.DEFAULT) + .withFilter("dybyxczfclhaa") + .withAccess(NfsAccessRuleAccess.RW) + .withSuid(false) .withSubmountAccess(false) .withRootSquash(false) - .withAnonymousUid("nrs") - .withAnonymousGid("lqidyby"); + .withAnonymousUid("rqlfktsthsucocmn") + .withAnonymousGid("azt"); model = BinaryData.fromObject(model).toObject(NfsAccessRule.class); - Assertions.assertEquals(NfsAccessRuleScope.NETWORK, model.scope()); - Assertions.assertEquals("ankxmyskpbhenb", model.filter()); - Assertions.assertEquals(NfsAccessRuleAccess.NO, model.access()); - Assertions.assertEquals(true, model.suid()); + 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("nrs", model.anonymousUid()); - Assertions.assertEquals("lqidyby", model.anonymousGid()); + 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 index 90d069306f426..3653a0bb23c3c 100644 --- 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 @@ -32,7 +32,7 @@ public void testList() throws Exception { ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); String responseStr = - "{\"value\":[{\"display\":{\"operation\":\"vjymjhxxjyngud\",\"provider\":\"krtswbxqz\",\"resource\":\"zjf\",\"description\":\"vjfdx\"},\"origin\":\"vetvt\",\"isDataAction\":true,\"name\":\"tdo\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[],\"logSpecifications\":[]}}}]}"; + "{\"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()); @@ -62,12 +62,12 @@ public void testList() throws Exception { PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("vjymjhxxjyngud", response.iterator().next().display().operation()); - Assertions.assertEquals("krtswbxqz", response.iterator().next().display().provider()); - Assertions.assertEquals("zjf", response.iterator().next().display().resource()); - Assertions.assertEquals("vjfdx", response.iterator().next().display().description()); - Assertions.assertEquals("vetvt", response.iterator().next().origin()); + 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("tdo", response.iterator().next().name()); + 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 index a7804e1ffde70..dc802ae33a26d 100644 --- 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 @@ -12,14 +12,14 @@ public final class PrimingJobIdParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrimingJobIdParameter model = - BinaryData.fromString("{\"primingJobId\":\"nrmfqjhhk\"}").toObject(PrimingJobIdParameter.class); - Assertions.assertEquals("nrmfqjhhk", model.primingJobId()); + 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("nrmfqjhhk"); + PrimingJobIdParameter model = new PrimingJobIdParameter().withPrimingJobId("xyawj"); model = BinaryData.fromObject(model).toObject(PrimingJobIdParameter.class); - Assertions.assertEquals("nrmfqjhhk", model.primingJobId()); + 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 index a5a063a004a0b..b433694f19a0c 100644 --- 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 @@ -14,17 +14,17 @@ public void testDeserialize() throws Exception { PrimingJob model = BinaryData .fromString( - "{\"primingJobName\":\"nmic\",\"primingManifestUrl\":\"kvceoveilovnotyf\",\"primingJobId\":\"cnjbkcnxdhbt\",\"primingJobState\":\"Running\",\"primingJobStatus\":\"ywpnvjt\",\"primingJobDetails\":\"nermcl\",\"primingJobPercentComplete\":28.576557843557726}") + "{\"primingJobName\":\"cnjbkcnxdhbt\",\"primingManifestUrl\":\"kphywpnvjto\",\"primingJobId\":\"ermclfplphoxuscr\",\"primingJobState\":\"Running\",\"primingJobStatus\":\"ye\",\"primingJobDetails\":\"bjtazqugxywpmu\",\"primingJobPercentComplete\":17.17857902556815}") .toObject(PrimingJob.class); - Assertions.assertEquals("nmic", model.primingJobName()); - Assertions.assertEquals("kvceoveilovnotyf", model.primingManifestUrl()); + 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("nmic").withPrimingManifestUrl("kvceoveilovnotyf"); + PrimingJob model = new PrimingJob().withPrimingJobName("cnjbkcnxdhbt").withPrimingManifestUrl("kphywpnvjto"); model = BinaryData.fromObject(model).toObject(PrimingJob.class); - Assertions.assertEquals("nmic", model.primingJobName()); - Assertions.assertEquals("kvceoveilovnotyf", model.primingManifestUrl()); + 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 new file mode 100644 index 0000000000000..160bbe32a7fc9 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInfoTests.java @@ -0,0 +1,33 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..8c31b4017c104 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/RequiredAmlFilesystemSubnetsSizeInnerTests.java @@ -0,0 +1,28 @@ +// Copyright (c) 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 new file mode 100644 index 0000000000000..daf28aa6b9aaa --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersCheckAmlFSSubnetsWithResponseMockTests.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.storagecache.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 new file mode 100644 index 0000000000000..7bceb20ce82e9 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/ResourceProvidersGetRequiredAmlFSSubnetsSizeWithResponseMockTests.java @@ -0,0 +1,75 @@ +// Copyright (c) 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/SkuNameTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/SkuNameTests.java new file mode 100644 index 0000000000000..0057783e9918c --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/SkuNameTests.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.storagecache.generated; + +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 index ae1ed24d3d182..dfacf3d7c7e12 100644 --- 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 @@ -24,24 +24,24 @@ public void testDeserialize() throws Exception { StorageTargetInner model = BinaryData .fromString( - "{\"properties\":{\"junctions\":[{\"namespacePath\":\"urqhaka\",\"targetPath\":\"ashsfwxos\",\"nfsExport\":\"z\",\"nfsAccessPolicy\":\"ugicjooxdjebw\"}],\"targetType\":\"nfs3\",\"provisioningState\":\"Succeeded\",\"state\":\"Flushing\",\"nfs3\":{\"target\":\"vbvmeu\",\"usageModel\":\"ivyhzceuojgjrwju\",\"verificationTimer\":1907813820,\"writeBackTimer\":398532590},\"clfs\":{\"target\":\"dytdxwitx\"},\"unknown\":{\"attributes\":{\"skxfbk\":\"wgqwgxhn\",\"gklwn\":\"y\",\"vylwzbtdhxuj\":\"nhjdauw\"}},\"blobNfs\":{\"target\":\"mpowuwpr\",\"usageModel\":\"lve\",\"verificationTimer\":990417532,\"writeBackTimer\":683546621},\"allocationPercentage\":803457218},\"location\":\"hfxobbcswsrtj\",\"id\":\"plrbpbewtghf\",\"name\":\"blcg\",\"type\":\"xzvlvqhjkbegib\"}") + "{\"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("urqhaka", model.junctions().get(0).namespacePath()); - Assertions.assertEquals("ashsfwxos", model.junctions().get(0).targetPath()); + 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("ugicjooxdjebw", model.junctions().get(0).nfsAccessPolicy()); - Assertions.assertEquals(StorageTargetType.NFS3, model.targetType()); + Assertions.assertEquals("zka", model.junctions().get(0).nfsAccessPolicy()); + Assertions.assertEquals(StorageTargetType.BLOB_NFS, model.targetType()); Assertions.assertEquals(OperationalStateType.FLUSHING, model.state()); - Assertions.assertEquals("vbvmeu", model.nfs3().target()); - Assertions.assertEquals("ivyhzceuojgjrwju", model.nfs3().usageModel()); - Assertions.assertEquals(1907813820, model.nfs3().verificationTimer()); - Assertions.assertEquals(398532590, model.nfs3().writeBackTimer()); - Assertions.assertEquals("dytdxwitx", model.clfs().target()); - Assertions.assertEquals("wgqwgxhn", model.unknown().attributes().get("skxfbk")); - Assertions.assertEquals("mpowuwpr", model.blobNfs().target()); - Assertions.assertEquals("lve", model.blobNfs().usageModel()); - Assertions.assertEquals(990417532, model.blobNfs().verificationTimer()); - Assertions.assertEquals(683546621, model.blobNfs().writeBackTimer()); + 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 @@ -52,45 +52,61 @@ public void testSerialize() throws Exception { Arrays .asList( new NamespaceJunction() - .withNamespacePath("urqhaka") - .withTargetPath("ashsfwxos") + .withNamespacePath("kyv") + .withTargetPath("ca") .withNfsExport("z") - .withNfsAccessPolicy("ugicjooxdjebw"))) - .withTargetType(StorageTargetType.NFS3) + .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("vbvmeu") - .withUsageModel("ivyhzceuojgjrwju") - .withVerificationTimer(1907813820) - .withWriteBackTimer(398532590)) - .withClfs(new ClfsTarget().withTarget("dytdxwitx")) + .withTarget("wbnb") + .withUsageModel("ldawkzbaliourqha") + .withVerificationTimer(30531984) + .withWriteBackTimer(33232567)) + .withClfs(new ClfsTarget().withTarget("sfwxosowzxc")) .withUnknown( new UnknownTarget() - .withAttributes(mapOf("skxfbk", "wgqwgxhn", "gklwn", "y", "vylwzbtdhxuj", "nhjdauw"))) + .withAttributes( + mapOf("ucww", "jooxdjebw", "bvmeuecivy", "vo", "ueiotwmcdyt", "zceuojgjrw", "it", "x"))) .withBlobNfs( new BlobNfsTarget() - .withTarget("mpowuwpr") - .withUsageModel("lve") - .withVerificationTimer(990417532) - .withWriteBackTimer(683546621)); + .withTarget("jawgqwg") + .withUsageModel("ni") + .withVerificationTimer(236193588) + .withWriteBackTimer(1319341047)); model = BinaryData.fromObject(model).toObject(StorageTargetInner.class); - Assertions.assertEquals("urqhaka", model.junctions().get(0).namespacePath()); - Assertions.assertEquals("ashsfwxos", model.junctions().get(0).targetPath()); + 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("ugicjooxdjebw", model.junctions().get(0).nfsAccessPolicy()); - Assertions.assertEquals(StorageTargetType.NFS3, model.targetType()); + Assertions.assertEquals("zka", model.junctions().get(0).nfsAccessPolicy()); + Assertions.assertEquals(StorageTargetType.BLOB_NFS, model.targetType()); Assertions.assertEquals(OperationalStateType.FLUSHING, model.state()); - Assertions.assertEquals("vbvmeu", model.nfs3().target()); - Assertions.assertEquals("ivyhzceuojgjrwju", model.nfs3().usageModel()); - Assertions.assertEquals(1907813820, model.nfs3().verificationTimer()); - Assertions.assertEquals(398532590, model.nfs3().writeBackTimer()); - Assertions.assertEquals("dytdxwitx", model.clfs().target()); - Assertions.assertEquals("wgqwgxhn", model.unknown().attributes().get("skxfbk")); - Assertions.assertEquals("mpowuwpr", model.blobNfs().target()); - Assertions.assertEquals("lve", model.blobNfs().usageModel()); - Assertions.assertEquals(990417532, model.blobNfs().verificationTimer()); - Assertions.assertEquals(683546621, model.blobNfs().writeBackTimer()); + 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") 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 index d8392fa0e505e..41c66d8f4dfb4 100644 --- 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 @@ -56,6 +56,8 @@ public void testFlush() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.storageTargetOperations().flush("cqqudf", "byxbaaabjy", "ayffim", com.azure.core.util.Context.NONE); + 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 index ffbe4e2140334..23f0ea01c4b78 100644 --- 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 @@ -58,6 +58,6 @@ public void testInvalidate() throws Exception { manager .storageTargetOperations() - .invalidate("thzvaytdwkqbrqu", "paxh", "xiilivpdtiirqt", com.azure.core.util.Context.NONE); + .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 index db416f953406b..d62fae759598a 100644 --- 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 @@ -56,6 +56,8 @@ public void testResume() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.storageTargetOperations().resume("wmewzsyy", "euzsoi", "judpfrxt", com.azure.core.util.Context.NONE); + 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 index b1d874544aeae..42fdd7ff9e6fe 100644 --- 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 @@ -56,6 +56,8 @@ public void testSuspend() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.storageTargetOperations().suspend("zrtuzq", "gsexne", "fdnw", com.azure.core.util.Context.NONE); + 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 index 871c43e5ee3c6..f55813cc7882b 100644 --- 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 @@ -24,24 +24,24 @@ public void testDeserialize() throws Exception { StorageTargetProperties model = BinaryData .fromString( - "{\"junctions\":[{\"namespacePath\":\"iebwwaloayqcgwrt\",\"targetPath\":\"uzgwyzmhtx\",\"nfsExport\":\"gmtsavjcbpwxqpsr\",\"nfsAccessPolicy\":\"ftguv\"},{\"namespacePath\":\"uhprwmdyvxqt\",\"targetPath\":\"riwwroy\",\"nfsExport\":\"exrmcqibycnojvk\",\"nfsAccessPolicy\":\"e\"}],\"targetType\":\"unknown\",\"provisioningState\":\"Cancelled\",\"state\":\"Ready\",\"nfs3\":{\"target\":\"apj\",\"usageModel\":\"hpvgqz\",\"verificationTimer\":256612038,\"writeBackTimer\":391970506},\"clfs\":{\"target\":\"zlmwlxkvugfhz\"},\"unknown\":{\"attributes\":{\"nxipeil\":\"jvzunluthnnp\",\"dzumveekg\":\"jzuaejxdultskzbb\",\"bsjyofdx\":\"wozuhkf\"}},\"blobNfs\":{\"target\":\"sd\",\"usageModel\":\"ouwaboekqvkeln\",\"verificationTimer\":566883460,\"writeBackTimer\":314739755},\"allocationPercentage\":1393240700}") + "{\"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("iebwwaloayqcgwrt", model.junctions().get(0).namespacePath()); - Assertions.assertEquals("uzgwyzmhtx", model.junctions().get(0).targetPath()); - Assertions.assertEquals("gmtsavjcbpwxqpsr", model.junctions().get(0).nfsExport()); - Assertions.assertEquals("ftguv", model.junctions().get(0).nfsAccessPolicy()); - Assertions.assertEquals(StorageTargetType.UNKNOWN, model.targetType()); - Assertions.assertEquals(OperationalStateType.READY, model.state()); - Assertions.assertEquals("apj", model.nfs3().target()); - Assertions.assertEquals("hpvgqz", model.nfs3().usageModel()); - Assertions.assertEquals(256612038, model.nfs3().verificationTimer()); - Assertions.assertEquals(391970506, model.nfs3().writeBackTimer()); - Assertions.assertEquals("zlmwlxkvugfhz", model.clfs().target()); - Assertions.assertEquals("jvzunluthnnp", model.unknown().attributes().get("nxipeil")); - Assertions.assertEquals("sd", model.blobNfs().target()); - Assertions.assertEquals("ouwaboekqvkeln", model.blobNfs().usageModel()); - Assertions.assertEquals(566883460, model.blobNfs().verificationTimer()); - Assertions.assertEquals(314739755, model.blobNfs().writeBackTimer()); + 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 @@ -52,51 +52,45 @@ public void testSerialize() throws Exception { Arrays .asList( new NamespaceJunction() - .withNamespacePath("iebwwaloayqcgwrt") - .withTargetPath("uzgwyzmhtx") - .withNfsExport("gmtsavjcbpwxqpsr") - .withNfsAccessPolicy("ftguv"), - new NamespaceJunction() - .withNamespacePath("uhprwmdyvxqt") - .withTargetPath("riwwroy") - .withNfsExport("exrmcqibycnojvk") - .withNfsAccessPolicy("e"))) - .withTargetType(StorageTargetType.UNKNOWN) - .withState(OperationalStateType.READY) + .withNamespacePath("uwprzql") + .withTargetPath("ualupjmkh") + .withNfsExport("obbc") + .withNfsAccessPolicy("s"))) + .withTargetType(StorageTargetType.CLFS) + .withState(OperationalStateType.SUSPENDED) .withNfs3( new Nfs3Target() - .withTarget("apj") - .withUsageModel("hpvgqz") - .withVerificationTimer(256612038) - .withWriteBackTimer(391970506)) - .withClfs(new ClfsTarget().withTarget("zlmwlxkvugfhz")) + .withTarget("bpbewtghfgb") + .withUsageModel("gw") + .withVerificationTimer(748159283) + .withWriteBackTimer(161265854)) + .withClfs(new ClfsTarget().withTarget("jkbegibtnmxiebww")) .withUnknown( new UnknownTarget() - .withAttributes( - mapOf("nxipeil", "jvzunluthnnp", "dzumveekg", "jzuaejxdultskzbb", "bsjyofdx", "wozuhkf"))) + .withAttributes(mapOf("mhtxongmtsavjcb", "yqcgwrtzjuzgwy", "hprwmdyv", "wxqpsrknftguvri"))) .withBlobNfs( new BlobNfsTarget() - .withTarget("sd") - .withUsageModel("ouwaboekqvkeln") - .withVerificationTimer(566883460) - .withWriteBackTimer(314739755)); + .withTarget("ayriwwroyqbexrm") + .withUsageModel("ibycno") + .withVerificationTimer(988905675) + .withWriteBackTimer(2121055666)); model = BinaryData.fromObject(model).toObject(StorageTargetProperties.class); - Assertions.assertEquals("iebwwaloayqcgwrt", model.junctions().get(0).namespacePath()); - Assertions.assertEquals("uzgwyzmhtx", model.junctions().get(0).targetPath()); - Assertions.assertEquals("gmtsavjcbpwxqpsr", model.junctions().get(0).nfsExport()); - Assertions.assertEquals("ftguv", model.junctions().get(0).nfsAccessPolicy()); - Assertions.assertEquals(StorageTargetType.UNKNOWN, model.targetType()); - Assertions.assertEquals(OperationalStateType.READY, model.state()); - Assertions.assertEquals("apj", model.nfs3().target()); - Assertions.assertEquals("hpvgqz", model.nfs3().usageModel()); - Assertions.assertEquals(256612038, model.nfs3().verificationTimer()); - Assertions.assertEquals(391970506, model.nfs3().writeBackTimer()); - Assertions.assertEquals("zlmwlxkvugfhz", model.clfs().target()); - Assertions.assertEquals("jvzunluthnnp", model.unknown().attributes().get("nxipeil")); - Assertions.assertEquals("sd", model.blobNfs().target()); - Assertions.assertEquals("ouwaboekqvkeln", model.blobNfs().usageModel()); - Assertions.assertEquals(566883460, model.blobNfs().verificationTimer()); - Assertions.assertEquals(314739755, model.blobNfs().writeBackTimer()); + 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") 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 index 54f7228ad780d..9be073add9040 100644 --- 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 @@ -12,8 +12,7 @@ public final class StorageTargetResourceTests { public void testDeserialize() throws Exception { StorageTargetResource model = BinaryData - .fromString( - "{\"location\":\"opppcqeq\",\"id\":\"lzdahzxctobgbkdm\",\"name\":\"izpost\",\"type\":\"grcfb\"}") + .fromString("{\"location\":\"aboekqv\",\"id\":\"lns\",\"name\":\"vbxwyjsflhh\",\"type\":\"aalnjixi\"}") .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 index 2d58d94d0a0c6..a7f00bdf5a086 100644 --- 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 @@ -13,18 +13,18 @@ public final class StorageTargetSpaceAllocationTests { public void testDeserialize() throws Exception { StorageTargetSpaceAllocation model = BinaryData - .fromString("{\"name\":\"oxuscrpabgyepsbj\",\"allocationPercentage\":300871013}") + .fromString("{\"name\":\"wfqkquj\",\"allocationPercentage\":1148622887}") .toObject(StorageTargetSpaceAllocation.class); - Assertions.assertEquals("oxuscrpabgyepsbj", model.name()); - Assertions.assertEquals(300871013, model.allocationPercentage()); + 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("oxuscrpabgyepsbj").withAllocationPercentage(300871013); + new StorageTargetSpaceAllocation().withName("wfqkquj").withAllocationPercentage(1148622887); model = BinaryData.fromObject(model).toObject(StorageTargetSpaceAllocation.class); - Assertions.assertEquals("oxuscrpabgyepsbj", model.name()); - Assertions.assertEquals(300871013, model.allocationPercentage()); + 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 index 79bf3e0e77e2c..93ebf48670878 100644 --- 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 @@ -40,7 +40,7 @@ public void testCreateOrUpdate() throws Exception { ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); String responseStr = - "{\"properties\":{\"junctions\":[],\"targetType\":\"unknown\",\"provisioningState\":\"Succeeded\",\"state\":\"Suspended\",\"nfs3\":{\"target\":\"g\",\"usageModel\":\"qidbqfatpxllrxcy\",\"verificationTimer\":2031634096,\"writeBackTimer\":2040504053},\"clfs\":{\"target\":\"varmywdmj\"},\"unknown\":{\"attributes\":{}},\"blobNfs\":{\"target\":\"hhyxxrw\",\"usageModel\":\"co\",\"verificationTimer\":381030924,\"writeBackTimer\":1017473450},\"allocationPercentage\":1622537719},\"location\":\"ymareqnajxqugj\",\"id\":\"ycubeddgs\",\"name\":\"ofwq\",\"type\":\"zqalkrmnjijpx\"}"; + "{\"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()); @@ -71,38 +71,38 @@ public void testCreateOrUpdate() throws Exception { StorageTarget response = manager .storageTargets() - .define("hfjx") - .withExistingCache("himdbl", "gwimfn") + .define("piyylhalnswhccsp") + .withExistingCache("ah", "icslfaoq") .withJunctions(Arrays.asList()) - .withTargetType(StorageTargetType.CLFS) + .withTargetType(StorageTargetType.UNKNOWN) .withState(OperationalStateType.BUSY) .withNfs3( new Nfs3Target() - .withTarget("yfkzik") - .withUsageModel("aw") - .withVerificationTimer(113630721) - .withWriteBackTimer(841259449)) - .withClfs(new ClfsTarget().withTarget("czelpcirel")) + .withTarget("ywuggwoluhcz") + .withUsageModel("emh") + .withVerificationTimer(200585156) + .withWriteBackTimer(1060937316)) + .withClfs(new ClfsTarget().withTarget("z")) .withUnknown(new UnknownTarget().withAttributes(mapOf())) .withBlobNfs( new BlobNfsTarget() - .withTarget("nwabfatkldd") - .withUsageModel("jhwuaanozjos") - .withVerificationTimer(1082355314) - .withWriteBackTimer(1172987793)) + .withTarget("eypqwdxggicccn") + .withUsageModel("huexmk") + .withVerificationTimer(171161135) + .withWriteBackTimer(1054348500)) .create(); - Assertions.assertEquals(StorageTargetType.UNKNOWN, response.targetType()); - Assertions.assertEquals(OperationalStateType.SUSPENDED, response.state()); - Assertions.assertEquals("g", response.nfs3().target()); - Assertions.assertEquals("qidbqfatpxllrxcy", response.nfs3().usageModel()); - Assertions.assertEquals(2031634096, response.nfs3().verificationTimer()); - Assertions.assertEquals(2040504053, response.nfs3().writeBackTimer()); - Assertions.assertEquals("varmywdmj", response.clfs().target()); - Assertions.assertEquals("hhyxxrw", response.blobNfs().target()); - Assertions.assertEquals("co", response.blobNfs().usageModel()); - Assertions.assertEquals(381030924, response.blobNfs().verificationTimer()); - Assertions.assertEquals(1017473450, response.blobNfs().writeBackTimer()); + 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") 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 index 7a81a06b4db54..be24c576200fc 100644 --- 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 @@ -56,8 +56,6 @@ public void testDelete() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager - .storageTargets() - .delete("mnzgmwznmabi", "nsorgjhxbldt", "wwrlkdmtncv", "kotl", com.azure.core.util.Context.NONE); + 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 index 2ecfe8e436763..d733d757c6285 100644 --- 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 @@ -56,6 +56,8 @@ public void testDnsRefresh() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.storageTargets().dnsRefresh("kcdyhbpk", "pwdreqnovvqf", "vljxywsu", com.azure.core.util.Context.NONE); + 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 index ccb64cbbc3430..e619ef602e5dd 100644 --- 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 @@ -33,7 +33,7 @@ public void testGetWithResponse() throws Exception { ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); String responseStr = - "{\"properties\":{\"junctions\":[],\"targetType\":\"blobNfs\",\"provisioningState\":\"Deleting\",\"state\":\"Ready\",\"nfs3\":{\"target\":\"mqg\",\"usageModel\":\"queziky\",\"verificationTimer\":566556548,\"writeBackTimer\":33393175},\"clfs\":{\"target\":\"la\"},\"unknown\":{\"attributes\":{}},\"blobNfs\":{\"target\":\"uipiccjzk\",\"usageModel\":\"v\",\"verificationTimer\":422897894,\"writeBackTimer\":1892001157},\"allocationPercentage\":192957128},\"location\":\"hyrnxxmu\",\"id\":\"dndrdvstkwqqtche\",\"name\":\"lmfmtdaay\",\"type\":\"dvwvgpio\"}"; + "{\"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()); @@ -64,19 +64,19 @@ public void testGetWithResponse() throws Exception { StorageTarget response = manager .storageTargets() - .getWithResponse("xdy", "gsyocogj", "tdtbnnhadooc", com.azure.core.util.Context.NONE) + .getWithResponse("uximerqfobw", "znkbykutwpfhpagm", "r", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(StorageTargetType.BLOB_NFS, response.targetType()); - Assertions.assertEquals(OperationalStateType.READY, response.state()); - Assertions.assertEquals("mqg", response.nfs3().target()); - Assertions.assertEquals("queziky", response.nfs3().usageModel()); - Assertions.assertEquals(566556548, response.nfs3().verificationTimer()); - Assertions.assertEquals(33393175, response.nfs3().writeBackTimer()); - Assertions.assertEquals("la", response.clfs().target()); - Assertions.assertEquals("uipiccjzk", response.blobNfs().target()); - Assertions.assertEquals("v", response.blobNfs().usageModel()); - Assertions.assertEquals(422897894, response.blobNfs().verificationTimer()); - Assertions.assertEquals(1892001157, response.blobNfs().writeBackTimer()); + 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 index 1ba4a46004486..b7bfe2048fdf7 100644 --- 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 @@ -34,7 +34,7 @@ public void testListByCache() throws Exception { ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); String responseStr = - "{\"value\":[{\"properties\":{\"junctions\":[],\"targetType\":\"clfs\",\"provisioningState\":\"Failed\",\"state\":\"Flushing\",\"nfs3\":{\"target\":\"wiipfpub\",\"usageModel\":\"bwwift\",\"verificationTimer\":1744501450,\"writeBackTimer\":1368625669},\"clfs\":{\"target\":\"vksgplsaknynfsy\"},\"unknown\":{\"attributes\":{}},\"blobNfs\":{\"target\":\"uopxodlqiyntor\",\"usageModel\":\"hleosjsw\",\"verificationTimer\":1899163147,\"writeBackTimer\":2109654936},\"allocationPercentage\":1326847440},\"location\":\"pzbchck\",\"id\":\"zqioxiysuii\",\"name\":\"ynkedyatrwyhqmib\",\"type\":\"yhwitsmypyynpcdp\"}]}"; + "{\"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()); @@ -63,18 +63,18 @@ public void testListByCache() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = - manager.storageTargets().listByCache("syrsndsytgadgvra", "aeneqnzarrwl", com.azure.core.util.Context.NONE); + manager.storageTargets().listByCache("tpuqujmq", "gkfbtndoaong", com.azure.core.util.Context.NONE); - Assertions.assertEquals(StorageTargetType.CLFS, response.iterator().next().targetType()); - Assertions.assertEquals(OperationalStateType.FLUSHING, response.iterator().next().state()); - Assertions.assertEquals("wiipfpub", response.iterator().next().nfs3().target()); - Assertions.assertEquals("bwwift", response.iterator().next().nfs3().usageModel()); - Assertions.assertEquals(1744501450, response.iterator().next().nfs3().verificationTimer()); - Assertions.assertEquals(1368625669, response.iterator().next().nfs3().writeBackTimer()); - Assertions.assertEquals("vksgplsaknynfsy", response.iterator().next().clfs().target()); - Assertions.assertEquals("uopxodlqiyntor", response.iterator().next().blobNfs().target()); - Assertions.assertEquals("hleosjsw", response.iterator().next().blobNfs().usageModel()); - Assertions.assertEquals(1899163147, response.iterator().next().blobNfs().verificationTimer()); - Assertions.assertEquals(2109654936, response.iterator().next().blobNfs().writeBackTimer()); + 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 index 525c13b197e0e..dbeb6a2b774a7 100644 --- 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 @@ -56,6 +56,6 @@ public void testRestoreDefaults() throws Exception { tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.storageTargets().restoreDefaults("g", "xrtfudxep", "gyqagvrvmnpkuk", com.azure.core.util.Context.NONE); + 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 index 67c2a65192a51..76e304bf2ed72 100644 --- 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 @@ -18,40 +18,28 @@ public void testDeserialize() throws Exception { StorageTargetsResult model = BinaryData .fromString( - "{\"nextLink\":\"wfqkquj\",\"value\":[{\"properties\":{\"junctions\":[],\"targetType\":\"unknown\",\"provisioningState\":\"Failed\",\"state\":\"Busy\",\"allocationPercentage\":1422532209},\"location\":\"ccm\",\"id\":\"udxytlmoyrx\",\"name\":\"wfudwpzntxhdzhl\",\"type\":\"qj\"},{\"properties\":{\"junctions\":[],\"targetType\":\"unknown\",\"provisioningState\":\"Creating\",\"state\":\"Busy\",\"allocationPercentage\":1085647312},\"location\":\"pycanuzbpz\",\"id\":\"fkuwbcrnwbmehhse\",\"name\":\"v\",\"type\":\"us\"},{\"properties\":{\"junctions\":[],\"targetType\":\"clfs\",\"provisioningState\":\"Updating\",\"state\":\"Flushing\",\"allocationPercentage\":2077576568},\"location\":\"mx\",\"id\":\"kv\",\"name\":\"melmqkrha\",\"type\":\"vljua\"},{\"properties\":{\"junctions\":[],\"targetType\":\"clfs\",\"provisioningState\":\"Creating\",\"state\":\"Busy\",\"allocationPercentage\":591978059},\"location\":\"xqpvfadmw\",\"id\":\"crgvxpvgom\",\"name\":\"lf\",\"type\":\"isgwbnbbeldawkz\"}]}") + "{\"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("wfqkquj", model.nextLink()); - Assertions.assertEquals(StorageTargetType.UNKNOWN, model.value().get(0).targetType()); - Assertions.assertEquals(OperationalStateType.BUSY, model.value().get(0).state()); + 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("wfqkquj") + .withNextLink("cq") .withValue( Arrays .asList( new StorageTargetInner() .withJunctions(Arrays.asList()) - .withTargetType(StorageTargetType.UNKNOWN) - .withState(OperationalStateType.BUSY), - new StorageTargetInner() - .withJunctions(Arrays.asList()) - .withTargetType(StorageTargetType.UNKNOWN) - .withState(OperationalStateType.BUSY), - new StorageTargetInner() - .withJunctions(Arrays.asList()) - .withTargetType(StorageTargetType.CLFS) - .withState(OperationalStateType.FLUSHING), - new StorageTargetInner() - .withJunctions(Arrays.asList()) - .withTargetType(StorageTargetType.CLFS) - .withState(OperationalStateType.BUSY))); + .withTargetType(StorageTargetType.NFS3) + .withState(OperationalStateType.READY))); model = BinaryData.fromObject(model).toObject(StorageTargetsResult.class); - Assertions.assertEquals("wfqkquj", model.nextLink()); - Assertions.assertEquals(StorageTargetType.UNKNOWN, model.value().get(0).targetType()); - Assertions.assertEquals(OperationalStateType.BUSY, model.value().get(0).state()); + 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 index 75887b444f5bb..28d2d5f176cbc 100644 --- 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 @@ -15,19 +15,16 @@ public final class UnknownTargetTests { public void testDeserialize() throws Exception { UnknownTarget model = BinaryData - .fromString( - "{\"attributes\":{\"pgylg\":\"opuhpig\",\"medjvcslynqwwncw\":\"git\",\"pkteo\":\"zhxgktrmgucn\"}}") + .fromString("{\"attributes\":{\"mv\":\"ultskzbbtdz\",\"wozuhkf\":\"ekg\"}}") .toObject(UnknownTarget.class); - Assertions.assertEquals("opuhpig", model.attributes().get("pgylg")); + Assertions.assertEquals("ultskzbbtdz", model.attributes().get("mv")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UnknownTarget model = - new UnknownTarget() - .withAttributes(mapOf("pgylg", "opuhpig", "medjvcslynqwwncw", "git", "pkteo", "zhxgktrmgucn")); + UnknownTarget model = new UnknownTarget().withAttributes(mapOf("mv", "ultskzbbtdz", "wozuhkf", "ekg")); model = BinaryData.fromObject(model).toObject(UnknownTarget.class); - Assertions.assertEquals("opuhpig", model.attributes().get("pgylg")); + Assertions.assertEquals("ultskzbbtdz", model.attributes().get("mv")); } @SuppressWarnings("unchecked") 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 index 682b0a3d8ad96..ca450c4b2aabe 100644 --- 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 @@ -32,7 +32,7 @@ public void testList() throws Exception { ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); String responseStr = - "{\"value\":[{\"display\":{\"description\":\"thuma\"},\"modelName\":\"lbg\",\"targetType\":\"duiertgcc\"}]}"; + "{\"value\":[{\"display\":{\"description\":\"rpzbchckqqzqi\"},\"modelName\":\"iysui\",\"targetType\":\"ynkedyatrwyhqmib\"}]}"; Mockito.when(httpResponse.getStatusCode()).thenReturn(200); Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); @@ -62,8 +62,8 @@ public void testList() throws Exception { PagedIterable response = manager.usageModels().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("thuma", response.iterator().next().display().description()); - Assertions.assertEquals("lbg", response.iterator().next().modelName()); - Assertions.assertEquals("duiertgcc", response.iterator().next().targetType()); + 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/UserAssignedIdentitiesValueAutoGeneratedTests.java b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueAutoGeneratedTests.java new file mode 100644 index 0000000000000..318139f667473 --- /dev/null +++ b/sdk/storagecache/azure-resourcemanager-storagecache/src/test/java/com/azure/resourcemanager/storagecache/generated/UserAssignedIdentitiesValueAutoGeneratedTests.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.storagecache.generated; + +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 index b85fdfe0375f7..04a2a317aaf2d 100644 --- 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 @@ -12,7 +12,7 @@ public final class UserAssignedIdentitiesValueTests { public void testDeserialize() throws Exception { UserAssignedIdentitiesValue model = BinaryData - .fromString("{\"principalId\":\"fmvfaxkffeiit\",\"clientId\":\"vmezy\"}") + .fromString("{\"principalId\":\"hxmzsbbzoggig\",\"clientId\":\"wburvjxxjnspydpt\"}") .toObject(UserAssignedIdentitiesValue.class); }