From b30b761581006d27fd6f47c65f4639074f7317d0 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 4 Jan 2023 07:37:56 +0000 Subject: [PATCH] CodeGen from PR 22040 in Azure/azure-rest-api-specs Merge e4d89586b80fee00f0d28d252bad682541fd7934 into 5bba638fd53d813e475bfdc3b1b2789ee75b187c --- .../CHANGELOG.md | 3 +- .../SAMPLE.md | 456 +++++++++--------- .../SiteRecoveryManager.java | 42 +- ...nStorageClassificationMappingsClient.java} | 7 +- ...licationStorageClassificationsClient.java} | 6 +- .../fluent/SiteRecoveryManagementClient.java | 12 +- ...rageClassificationMappingsClientImpl.java} | 24 +- ...ionStorageClassificationMappingsImpl.java} | 16 +- ...tionStorageClassificationsClientImpl.java} | 25 +- ...eplicationStorageClassificationsImpl.java} | 16 +- .../SiteRecoveryManagementClientImpl.java | 32 +- .../StorageClassificationMappingImpl.java | 8 +- ...icationStorageClassificationMappings.java} | 4 +- ...=> ReplicationStorageClassifications.java} | 4 +- ...StorageClassificationMappingsCreateS.java} | 6 +- ...StorageClassificationMappingsDeleteS.java} | 6 +- ...StorageClassificationMappingsGetSamp.java} | 6 +- ...StorageClassificationMappingsListByR.java} | 6 +- ...StorageClassificationMappingsListSam.java} | 6 +- ...tionStorageClassificationsGetSamples.java} | 6 +- ...StorageClassificationsListByReplicat.java} | 6 +- ...ionStorageClassificationsListSamples.java} | 6 +- 22 files changed, 360 insertions(+), 343 deletions(-) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/{StorageClassificationMappingsClient.java => ReplicationStorageClassificationMappingsClient.java} (98%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/{StorageClassificationsClient.java => ReplicationStorageClassificationsClient.java} (97%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/{StorageClassificationMappingsClientImpl.java => ReplicationStorageClassificationMappingsClientImpl.java} (99%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/{StorageClassificationMappingsImpl.java => ReplicationStorageClassificationMappingsImpl.java} (96%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/{StorageClassificationsClientImpl.java => ReplicationStorageClassificationsClientImpl.java} (97%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/{StorageClassificationsImpl.java => ReplicationStorageClassificationsImpl.java} (89%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/{StorageClassificationMappings.java => ReplicationStorageClassificationMappings.java} (98%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/{StorageClassifications.java => ReplicationStorageClassifications.java} (98%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/{StorageClassificationMappingsCreateSamples.java => ReplicationStorageClassificationMappingsCreateS.java} (89%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/{StorageClassificationMappingsDeleteSamples.java => ReplicationStorageClassificationMappingsDeleteS.java} (84%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/{StorageClassificationMappingsGetSamples.java => ReplicationStorageClassificationMappingsGetSamp.java} (85%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/{StorageClassificationMappingsListByReplicationS.java => ReplicationStorageClassificationMappingsListByR.java} (83%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/{StorageClassificationMappingsListSamples.java => ReplicationStorageClassificationMappingsListSam.java} (77%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/{StorageClassificationsGetSamples.java => ReplicationStorageClassificationsGetSamples.java} (86%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/{StorageClassificationsListByReplicationFabricsS.java => ReplicationStorageClassificationsListByReplicat.java} (84%) rename sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/{StorageClassificationsListSamples.java => ReplicationStorageClassificationsListSamples.java} (78%) diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/CHANGELOG.md b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/CHANGELOG.md index 6fc43568782a1..90685cd7210ca 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/CHANGELOG.md +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/CHANGELOG.md @@ -1,5 +1,6 @@ # Release History -## 1.0.0-beta.1 (2023-01-03) +## 1.0.0-beta.1 (2023-01-04) - Azure Resource Manager SiteRecovery client library for Java. This package contains Microsoft Azure SDK for SiteRecovery Management SDK. Package tag package-2022-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). + diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/SAMPLE.md b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/SAMPLE.md index f89d58bd144f2..cf2bb8862621f 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/SAMPLE.md +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/SAMPLE.md @@ -180,6 +180,20 @@ - [Purge](#replicationrecoveryservicesproviders_purge) - [RefreshProvider](#replicationrecoveryservicesproviders_refreshprovider) +## ReplicationStorageClassificationMappings + +- [Create](#replicationstorageclassificationmappings_create) +- [Delete](#replicationstorageclassificationmappings_delete) +- [Get](#replicationstorageclassificationmappings_get) +- [List](#replicationstorageclassificationmappings_list) +- [ListByReplicationStorageClassifications](#replicationstorageclassificationmappings_listbyreplicationstorageclassifications) + +## ReplicationStorageClassifications + +- [Get](#replicationstorageclassifications_get) +- [List](#replicationstorageclassifications_list) +- [ListByReplicationFabrics](#replicationstorageclassifications_listbyreplicationfabrics) + ## ReplicationVaultHealth - [Get](#replicationvaulthealth_get) @@ -200,20 +214,6 @@ - [ListByReplicationFabrics](#replicationvcenters_listbyreplicationfabrics) - [Update](#replicationvcenters_update) -## StorageClassificationMappings - -- [Create](#storageclassificationmappings_create) -- [Delete](#storageclassificationmappings_delete) -- [Get](#storageclassificationmappings_get) -- [List](#storageclassificationmappings_list) -- [ListByReplicationStorageClassifications](#storageclassificationmappings_listbyreplicationstorageclassifications) - -## StorageClassifications - -- [Get](#storageclassifications_get) -- [List](#storageclassifications_list) -- [ListByReplicationFabrics](#storageclassifications_listbyreplicationfabrics) - ## SupportedOperatingSystemsOperation - [Get](#supportedoperatingsystemsoperation_get) @@ -3804,498 +3804,498 @@ public final class ReplicationRecoveryServicesProvidersRefreshProv { } ``` -### ReplicationVaultHealth_Get +### ReplicationStorageClassificationMappings_Create ```java -import com.azure.core.util.Context; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageMappingInputProperties; -/** Samples for ReplicationVaultHealth Get. */ -public final class ReplicationVaultHealthGetSamples { +/** Samples for ReplicationStorageClassificationMappings Create. */ +public final class ReplicationStorageClassificationMappingsCreateS { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultHealth_Get.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Create.json */ /** - * Sample code: Gets the health summary for the vault. + * Sample code: Create storage classification mapping. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheHealthSummaryForTheVault( + public static void createStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationVaultHealths().getWithResponse("vault1", "resourceGroupPS1", Context.NONE); + manager + .replicationStorageClassificationMappings() + .define("testStorageMapping") + .withExistingReplicationStorageClassification( + "vault1", + "resourceGroupPS1", + "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", + "8891569e-aaef-4a46-a4a0-78c14f2d7b09") + .withProperties( + new StorageMappingInputProperties() + .withTargetStorageClassificationId( + "/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09")) + .create(); } } ``` -### ReplicationVaultHealth_Refresh +### ReplicationStorageClassificationMappings_Delete ```java import com.azure.core.util.Context; -/** Samples for ReplicationVaultHealth Refresh. */ -public final class ReplicationVaultHealthRefreshSamples { +/** Samples for ReplicationStorageClassificationMappings Delete. */ +public final class ReplicationStorageClassificationMappingsDeleteS { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultHealth_Refresh.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Delete.json */ /** - * Sample code: Refreshes health summary of the vault. + * Sample code: Delete a storage classification mapping. * * @param manager Entry point to SiteRecoveryManager. */ - public static void refreshesHealthSummaryOfTheVault( + public static void deleteAStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationVaultHealths().refresh("vault1", "resourceGroupPS1", Context.NONE); + manager + .replicationStorageClassificationMappings() + .delete( + "vault1", + "resourceGroupPS1", + "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", + "8891569e-aaef-4a46-a4a0-78c14f2d7b09", + "testStorageMapping", + Context.NONE); } } ``` -### ReplicationVaultSetting_Create +### ReplicationStorageClassificationMappings_Get ```java -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettingCreationInputProperties; +import com.azure.core.util.Context; -/** Samples for ReplicationVaultSetting Create. */ -public final class ReplicationVaultSettingCreateSamples { +/** Samples for ReplicationStorageClassificationMappings Get. */ +public final class ReplicationStorageClassificationMappingsGetSamp { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultSetting_Create.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Get.json */ /** - * Sample code: Updates vault setting. A vault setting object is a singleton per vault and it is always present by - * default. + * Sample code: Gets the details of a storage classification mapping. * * @param manager Entry point to SiteRecoveryManager. */ - public static void updatesVaultSettingAVaultSettingObjectIsASingletonPerVaultAndItIsAlwaysPresentByDefault( + public static void getsTheDetailsOfAStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .replicationVaultSettings() - .define("default") - .withExistingVault("vault1", "resourceGroupPS1") - .withProperties( - new VaultSettingCreationInputProperties() - .withMigrationSolutionId( - "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration")) - .create(); + .replicationStorageClassificationMappings() + .getWithResponse( + "vault1", + "resourceGroupPS1", + "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", + "8891569e-aaef-4a46-a4a0-78c14f2d7b09", + "testStorageMapping", + Context.NONE); } } ``` -### ReplicationVaultSetting_Get +### ReplicationStorageClassificationMappings_List ```java import com.azure.core.util.Context; -/** Samples for ReplicationVaultSetting Get. */ -public final class ReplicationVaultSettingGetSamples { +/** Samples for ReplicationStorageClassificationMappings List. */ +public final class ReplicationStorageClassificationMappingsListSam { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultSetting_Get.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_List.json */ /** - * Sample code: Gets the vault setting. + * Sample code: Gets the list of storage classification mappings objects under a vault. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheVaultSetting( + public static void getsTheListOfStorageClassificationMappingsObjectsUnderAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationVaultSettings().getWithResponse("vault1", "resourceGroupPS1", "default", Context.NONE); + manager.replicationStorageClassificationMappings().list("vault1", "resourceGroupPS1", Context.NONE); } } ``` -### ReplicationVaultSetting_List +### ReplicationStorageClassificationMappings_ListByReplicationStorageClassifications ```java import com.azure.core.util.Context; -/** Samples for ReplicationVaultSetting List. */ -public final class ReplicationVaultSettingListSamples { +/** Samples for ReplicationStorageClassificationMappings ListByReplicationStorageClassifications. */ +public final class ReplicationStorageClassificationMappingsListByR { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultSetting_List.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_ListByReplicationStorageClassifications.json */ /** - * Sample code: Gets the list of vault setting. + * Sample code: Gets the list of storage classification mappings objects under a storage. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheListOfVaultSetting( + public static void getsTheListOfStorageClassificationMappingsObjectsUnderAStorage( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationVaultSettings().list("vault1", "resourceGroupPS1", Context.NONE); + manager + .replicationStorageClassificationMappings() + .listByReplicationStorageClassifications( + "vault1", + "resourceGroupPS1", + "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", + "8891569e-aaef-4a46-a4a0-78c14f2d7b09", + Context.NONE); } } ``` -### ReplicationvCenters_Create +### ReplicationStorageClassifications_Get ```java -import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddVCenterRequestProperties; +import com.azure.core.util.Context; -/** Samples for ReplicationvCenters Create. */ -public final class ReplicationvCentersCreateSamples { +/** Samples for ReplicationStorageClassifications Get. */ +public final class ReplicationStorageClassificationsGetSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Create.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_Get.json */ /** - * Sample code: Add vCenter. + * Sample code: Gets the details of a storage classification. * * @param manager Entry point to SiteRecoveryManager. */ - public static void addVCenter(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + public static void getsTheDetailsOfAStorageClassification( + com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .replicationvCenters() - .define("esx-78") - .withExistingReplicationFabric("MadhaviVault", "MadhaviVRG", "MadhaviFabric") - .withProperties( - new AddVCenterRequestProperties() - .withFriendlyName("esx-78") - .withIpAddress("inmtest78") - .withProcessServerId("5A720CAB-39CB-F445-BD1662B0B33164B5") - .withPort("443") - .withRunAsAccountId("2")) - .create(); + .replicationStorageClassifications() + .getWithResponse( + "vault1", + "resourceGroupPS1", + "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", + "8891569e-aaef-4a46-a4a0-78c14f2d7b09", + Context.NONE); } } ``` -### ReplicationvCenters_Delete +### ReplicationStorageClassifications_List ```java import com.azure.core.util.Context; -/** Samples for ReplicationvCenters Delete. */ -public final class ReplicationvCentersDeleteSamples { +/** Samples for ReplicationStorageClassifications List. */ +public final class ReplicationStorageClassificationsListSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Delete.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_List.json */ /** - * Sample code: Remove vCenter operation. + * Sample code: Gets the list of storage classification objects under a vault. * * @param manager Entry point to SiteRecoveryManager. */ - public static void removeVCenterOperation( + public static void getsTheListOfStorageClassificationObjectsUnderAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationvCenters().delete("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", Context.NONE); + manager.replicationStorageClassifications().list("vault1", "resourceGroupPS1", Context.NONE); } } ``` -### ReplicationvCenters_Get +### ReplicationStorageClassifications_ListByReplicationFabrics ```java import com.azure.core.util.Context; -/** Samples for ReplicationvCenters Get. */ -public final class ReplicationvCentersGetSamples { +/** Samples for ReplicationStorageClassifications ListByReplicationFabrics. */ +public final class ReplicationStorageClassificationsListByReplicat { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Get.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_ListByReplicationFabrics.json */ /** - * Sample code: Gets the details of a vCenter. + * Sample code: Gets the list of storage classification objects under a fabric. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheDetailsOfAVCenter( + public static void getsTheListOfStorageClassificationObjectsUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .replicationvCenters() - .getWithResponse("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", Context.NONE); + .replicationStorageClassifications() + .listByReplicationFabrics( + "vault1", + "resourceGroupPS1", + "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", + Context.NONE); } } ``` -### ReplicationvCenters_List +### ReplicationVaultHealth_Get ```java import com.azure.core.util.Context; -/** Samples for ReplicationvCenters List. */ -public final class ReplicationvCentersListSamples { +/** Samples for ReplicationVaultHealth Get. */ +public final class ReplicationVaultHealthGetSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_List.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultHealth_Get.json */ /** - * Sample code: Gets the list of vCenter registered under the vault. + * Sample code: Gets the health summary for the vault. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheListOfVCenterRegisteredUnderTheVault( + public static void getsTheHealthSummaryForTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.replicationvCenters().list("MadhaviVault", "MadhaviVRG", Context.NONE); + manager.replicationVaultHealths().getWithResponse("vault1", "resourceGroupPS1", Context.NONE); } } ``` -### ReplicationvCenters_ListByReplicationFabrics +### ReplicationVaultHealth_Refresh ```java import com.azure.core.util.Context; -/** Samples for ReplicationvCenters ListByReplicationFabrics. */ -public final class ReplicationvCentersListByReplicationFabricsSamp { +/** Samples for ReplicationVaultHealth Refresh. */ +public final class ReplicationVaultHealthRefreshSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_ListByReplicationFabrics.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultHealth_Refresh.json */ /** - * Sample code: Gets the list of vCenter registered under a fabric. + * Sample code: Refreshes health summary of the vault. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheListOfVCenterRegisteredUnderAFabric( + public static void refreshesHealthSummaryOfTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager - .replicationvCenters() - .listByReplicationFabrics("MadhaviVault", "MadhaviVRG", "MadhaviFabric", Context.NONE); + manager.replicationVaultHealths().refresh("vault1", "resourceGroupPS1", Context.NONE); } } ``` -### ReplicationvCenters_Update +### ReplicationVaultSetting_Create ```java -import com.azure.core.util.Context; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateVCenterRequestProperties; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.VCenter; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.VaultSettingCreationInputProperties; -/** Samples for ReplicationvCenters Update. */ -public final class ReplicationvCentersUpdateSamples { +/** Samples for ReplicationVaultSetting Create. */ +public final class ReplicationVaultSettingCreateSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Update.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultSetting_Create.json */ /** - * Sample code: Update vCenter operation. + * Sample code: Updates vault setting. A vault setting object is a singleton per vault and it is always present by + * default. * * @param manager Entry point to SiteRecoveryManager. */ - public static void updateVCenterOperation( + public static void updatesVaultSettingAVaultSettingObjectIsASingletonPerVaultAndItIsAlwaysPresentByDefault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - VCenter resource = - manager - .replicationvCenters() - .getWithResponse("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", Context.NONE) - .getValue(); - resource.update().withProperties(new UpdateVCenterRequestProperties().withIpAddress("10.150.109.25")).apply(); + manager + .replicationVaultSettings() + .define("default") + .withExistingVault("vault1", "resourceGroupPS1") + .withProperties( + new VaultSettingCreationInputProperties() + .withMigrationSolutionId( + "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration")) + .create(); } } ``` -### StorageClassificationMappings_Create +### ReplicationVaultSetting_Get ```java -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageMappingInputProperties; +import com.azure.core.util.Context; -/** Samples for StorageClassificationMappings Create. */ -public final class StorageClassificationMappingsCreateSamples { +/** Samples for ReplicationVaultSetting Get. */ +public final class ReplicationVaultSettingGetSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Create.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultSetting_Get.json */ /** - * Sample code: Create storage classification mapping. + * Sample code: Gets the vault setting. * * @param manager Entry point to SiteRecoveryManager. */ - public static void createStorageClassificationMapping( + public static void getsTheVaultSetting( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager - .storageClassificationMappings() - .define("testStorageMapping") - .withExistingReplicationStorageClassification( - "vault1", - "resourceGroupPS1", - "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", - "8891569e-aaef-4a46-a4a0-78c14f2d7b09") - .withProperties( - new StorageMappingInputProperties() - .withTargetStorageClassificationId( - "/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09")) - .create(); + manager.replicationVaultSettings().getWithResponse("vault1", "resourceGroupPS1", "default", Context.NONE); } } ``` -### StorageClassificationMappings_Delete +### ReplicationVaultSetting_List ```java import com.azure.core.util.Context; -/** Samples for StorageClassificationMappings Delete. */ -public final class StorageClassificationMappingsDeleteSamples { +/** Samples for ReplicationVaultSetting List. */ +public final class ReplicationVaultSettingListSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Delete.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultSetting_List.json */ /** - * Sample code: Delete a storage classification mapping. + * Sample code: Gets the list of vault setting. * * @param manager Entry point to SiteRecoveryManager. */ - public static void deleteAStorageClassificationMapping( + public static void getsTheListOfVaultSetting( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager - .storageClassificationMappings() - .delete( - "vault1", - "resourceGroupPS1", - "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", - "8891569e-aaef-4a46-a4a0-78c14f2d7b09", - "testStorageMapping", - Context.NONE); + manager.replicationVaultSettings().list("vault1", "resourceGroupPS1", Context.NONE); } } ``` -### StorageClassificationMappings_Get +### ReplicationvCenters_Create ```java -import com.azure.core.util.Context; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.AddVCenterRequestProperties; -/** Samples for StorageClassificationMappings Get. */ -public final class StorageClassificationMappingsGetSamples { +/** Samples for ReplicationvCenters Create. */ +public final class ReplicationvCentersCreateSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Get.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Create.json */ /** - * Sample code: Gets the details of a storage classification mapping. + * Sample code: Add vCenter. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheDetailsOfAStorageClassificationMapping( - com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { + public static void addVCenter(com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .storageClassificationMappings() - .getWithResponse( - "vault1", - "resourceGroupPS1", - "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", - "8891569e-aaef-4a46-a4a0-78c14f2d7b09", - "testStorageMapping", - Context.NONE); + .replicationvCenters() + .define("esx-78") + .withExistingReplicationFabric("MadhaviVault", "MadhaviVRG", "MadhaviFabric") + .withProperties( + new AddVCenterRequestProperties() + .withFriendlyName("esx-78") + .withIpAddress("inmtest78") + .withProcessServerId("5A720CAB-39CB-F445-BD1662B0B33164B5") + .withPort("443") + .withRunAsAccountId("2")) + .create(); } } ``` -### StorageClassificationMappings_List +### ReplicationvCenters_Delete ```java import com.azure.core.util.Context; -/** Samples for StorageClassificationMappings List. */ -public final class StorageClassificationMappingsListSamples { +/** Samples for ReplicationvCenters Delete. */ +public final class ReplicationvCentersDeleteSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_List.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Delete.json */ /** - * Sample code: Gets the list of storage classification mappings objects under a vault. + * Sample code: Remove vCenter operation. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheListOfStorageClassificationMappingsObjectsUnderAVault( + public static void removeVCenterOperation( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.storageClassificationMappings().list("vault1", "resourceGroupPS1", Context.NONE); + manager.replicationvCenters().delete("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", Context.NONE); } } ``` -### StorageClassificationMappings_ListByReplicationStorageClassifications +### ReplicationvCenters_Get ```java import com.azure.core.util.Context; -/** Samples for StorageClassificationMappings ListByReplicationStorageClassifications. */ -public final class StorageClassificationMappingsListByReplicationS { +/** Samples for ReplicationvCenters Get. */ +public final class ReplicationvCentersGetSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_ListByReplicationStorageClassifications.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Get.json */ /** - * Sample code: Gets the list of storage classification mappings objects under a storage. + * Sample code: Gets the details of a vCenter. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheListOfStorageClassificationMappingsObjectsUnderAStorage( + public static void getsTheDetailsOfAVCenter( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .storageClassificationMappings() - .listByReplicationStorageClassifications( - "vault1", - "resourceGroupPS1", - "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", - "8891569e-aaef-4a46-a4a0-78c14f2d7b09", - Context.NONE); + .replicationvCenters() + .getWithResponse("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", Context.NONE); } } ``` -### StorageClassifications_Get +### ReplicationvCenters_List ```java import com.azure.core.util.Context; -/** Samples for StorageClassifications Get. */ -public final class StorageClassificationsGetSamples { +/** Samples for ReplicationvCenters List. */ +public final class ReplicationvCentersListSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_Get.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_List.json */ /** - * Sample code: Gets the details of a storage classification. + * Sample code: Gets the list of vCenter registered under the vault. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheDetailsOfAStorageClassification( + public static void getsTheListOfVCenterRegisteredUnderTheVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager - .storageClassifications() - .getWithResponse( - "vault1", - "resourceGroupPS1", - "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", - "8891569e-aaef-4a46-a4a0-78c14f2d7b09", - Context.NONE); + manager.replicationvCenters().list("MadhaviVault", "MadhaviVRG", Context.NONE); } } ``` -### StorageClassifications_List +### ReplicationvCenters_ListByReplicationFabrics ```java import com.azure.core.util.Context; -/** Samples for StorageClassifications List. */ -public final class StorageClassificationsListSamples { +/** Samples for ReplicationvCenters ListByReplicationFabrics. */ +public final class ReplicationvCentersListByReplicationFabricsSamp { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_List.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_ListByReplicationFabrics.json */ /** - * Sample code: Gets the list of storage classification objects under a vault. + * Sample code: Gets the list of vCenter registered under a fabric. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheListOfStorageClassificationObjectsUnderAVault( + public static void getsTheListOfVCenterRegisteredUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.storageClassifications().list("vault1", "resourceGroupPS1", Context.NONE); + manager + .replicationvCenters() + .listByReplicationFabrics("MadhaviVault", "MadhaviVRG", "MadhaviFabric", Context.NONE); } } ``` -### StorageClassifications_ListByReplicationFabrics +### ReplicationvCenters_Update ```java import com.azure.core.util.Context; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.UpdateVCenterRequestProperties; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.VCenter; -/** Samples for StorageClassifications ListByReplicationFabrics. */ -public final class StorageClassificationsListByReplicationFabricsS { +/** Samples for ReplicationvCenters Update. */ +public final class ReplicationvCentersUpdateSamples { /* - * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_ListByReplicationFabrics.json + * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Update.json */ /** - * Sample code: Gets the list of storage classification objects under a fabric. + * Sample code: Update vCenter operation. * * @param manager Entry point to SiteRecoveryManager. */ - public static void getsTheListOfStorageClassificationObjectsUnderAFabric( + public static void updateVCenterOperation( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager - .storageClassifications() - .listByReplicationFabrics( - "vault1", - "resourceGroupPS1", - "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", - Context.NONE); + VCenter resource = + manager + .replicationvCenters() + .getWithResponse("MadhaviVault", "MadhaviVRG", "MadhaviFabric", "esx-78", Context.NONE) + .getValue(); + resource.update().withProperties(new UpdateVCenterRequestProperties().withIpAddress("10.150.109.25")).apply(); } } ``` diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/SiteRecoveryManager.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/SiteRecoveryManager.java index a51d74a42d6a4..92343a200a2ad 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/SiteRecoveryManager.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/SiteRecoveryManager.java @@ -45,12 +45,12 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionIntentsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationRecoveryPlansImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationRecoveryServicesProvidersImpl; +import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationStorageClassificationMappingsImpl; +import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationStorageClassificationsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationVaultHealthsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationVaultSettingsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationvCentersImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.SiteRecoveryManagementClientBuilder; -import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.StorageClassificationMappingsImpl; -import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.StorageClassificationsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.SupportedOperatingSystemsOperationsImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.TargetComputeSizesImpl; import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrationRecoveryPoints; @@ -74,11 +74,11 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntents; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationRecoveryPlans; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationRecoveryServicesProviders; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationStorageClassificationMappings; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationStorageClassifications; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationVaultHealths; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationVaultSettings; import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationvCenters; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappings; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassifications; import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOperatingSystemsOperations; import com.azure.resourcemanager.recoveryservicessiterecovery.models.TargetComputeSizes; import java.time.Duration; @@ -126,9 +126,9 @@ public final class SiteRecoveryManager { private ReplicationRecoveryServicesProviders replicationRecoveryServicesProviders; - private StorageClassifications storageClassifications; + private ReplicationStorageClassifications replicationStorageClassifications; - private StorageClassificationMappings storageClassificationMappings; + private ReplicationStorageClassificationMappings replicationStorageClassificationMappings; private ReplicationvCenters replicationvCenters; @@ -600,29 +600,31 @@ public ReplicationRecoveryServicesProviders replicationRecoveryServicesProviders } /** - * Gets the resource collection API of StorageClassifications. + * Gets the resource collection API of ReplicationStorageClassifications. * - * @return Resource collection API of StorageClassifications. + * @return Resource collection API of ReplicationStorageClassifications. */ - public StorageClassifications storageClassifications() { - if (this.storageClassifications == null) { - this.storageClassifications = - new StorageClassificationsImpl(clientObject.getStorageClassifications(), this); + public ReplicationStorageClassifications replicationStorageClassifications() { + if (this.replicationStorageClassifications == null) { + this.replicationStorageClassifications = + new ReplicationStorageClassificationsImpl(clientObject.getReplicationStorageClassifications(), this); } - return storageClassifications; + return replicationStorageClassifications; } /** - * Gets the resource collection API of StorageClassificationMappings. It manages StorageClassificationMapping. + * Gets the resource collection API of ReplicationStorageClassificationMappings. It manages + * StorageClassificationMapping. * - * @return Resource collection API of StorageClassificationMappings. + * @return Resource collection API of ReplicationStorageClassificationMappings. */ - public StorageClassificationMappings storageClassificationMappings() { - if (this.storageClassificationMappings == null) { - this.storageClassificationMappings = - new StorageClassificationMappingsImpl(clientObject.getStorageClassificationMappings(), this); + public ReplicationStorageClassificationMappings replicationStorageClassificationMappings() { + if (this.replicationStorageClassificationMappings == null) { + this.replicationStorageClassificationMappings = + new ReplicationStorageClassificationMappingsImpl( + clientObject.getReplicationStorageClassificationMappings(), this); } - return storageClassificationMappings; + return replicationStorageClassificationMappings; } /** diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationMappingsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationStorageClassificationMappingsClient.java similarity index 98% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationMappingsClient.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationStorageClassificationMappingsClient.java index 401a7bd139232..bb81f3b1adaa9 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationMappingsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationStorageClassificationMappingsClient.java @@ -14,8 +14,11 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationMappingInner; import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingInput; -/** An instance of this class provides access to all the operations defined in StorageClassificationMappingsClient. */ -public interface StorageClassificationMappingsClient { +/** + * An instance of this class provides access to all the operations defined in + * ReplicationStorageClassificationMappingsClient. + */ +public interface ReplicationStorageClassificationMappingsClient { /** * Gets the list of storage classification mappings objects under a storage. * diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationsClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationStorageClassificationsClient.java similarity index 97% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationsClient.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationStorageClassificationsClient.java index 6abc5a9cf1740..b2d4b0214b512 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/StorageClassificationsClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/ReplicationStorageClassificationsClient.java @@ -11,8 +11,10 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationInner; -/** An instance of this class provides access to all the operations defined in StorageClassificationsClient. */ -public interface StorageClassificationsClient { +/** + * An instance of this class provides access to all the operations defined in ReplicationStorageClassificationsClient. + */ +public interface ReplicationStorageClassificationsClient { /** * Gets the list of storage classification objects under a fabric. * diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SiteRecoveryManagementClient.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SiteRecoveryManagementClient.java index 15cb744a21f57..110ce0c4f0eaa 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SiteRecoveryManagementClient.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/fluent/SiteRecoveryManagementClient.java @@ -171,18 +171,18 @@ public interface SiteRecoveryManagementClient { ReplicationRecoveryServicesProvidersClient getReplicationRecoveryServicesProviders(); /** - * Gets the StorageClassificationsClient object to access its operations. + * Gets the ReplicationStorageClassificationsClient object to access its operations. * - * @return the StorageClassificationsClient object. + * @return the ReplicationStorageClassificationsClient object. */ - StorageClassificationsClient getStorageClassifications(); + ReplicationStorageClassificationsClient getReplicationStorageClassifications(); /** - * Gets the StorageClassificationMappingsClient object to access its operations. + * Gets the ReplicationStorageClassificationMappingsClient object to access its operations. * - * @return the StorageClassificationMappingsClient object. + * @return the ReplicationStorageClassificationMappingsClient object. */ - StorageClassificationMappingsClient getStorageClassificationMappings(); + ReplicationStorageClassificationMappingsClient getReplicationStorageClassificationMappings(); /** * Gets the ReplicationvCentersClient object to access its operations. diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationMappingsClientImpl.java similarity index 99% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsClientImpl.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationMappingsClientImpl.java index 17725418300c7..a2a62f031742e 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationMappingsClientImpl.java @@ -31,7 +31,7 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.StorageClassificationMappingsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationStorageClassificationMappingsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationMappingInner; import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingCollection; import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingInput; @@ -39,36 +39,40 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in StorageClassificationMappingsClient. */ -public final class StorageClassificationMappingsClientImpl implements StorageClassificationMappingsClient { +/** + * An instance of this class provides access to all the operations defined in + * ReplicationStorageClassificationMappingsClient. + */ +public final class ReplicationStorageClassificationMappingsClientImpl + implements ReplicationStorageClassificationMappingsClient { /** The proxy service used to perform REST calls. */ - private final StorageClassificationMappingsService service; + private final ReplicationStorageClassificationMappingsService service; /** The service client containing this operation class. */ private final SiteRecoveryManagementClientImpl client; /** - * Initializes an instance of StorageClassificationMappingsClientImpl. + * Initializes an instance of ReplicationStorageClassificationMappingsClientImpl. * * @param client the instance of the service client containing this operation class. */ - StorageClassificationMappingsClientImpl(SiteRecoveryManagementClientImpl client) { + ReplicationStorageClassificationMappingsClientImpl(SiteRecoveryManagementClientImpl client) { this.service = RestProxy .create( - StorageClassificationMappingsService.class, + ReplicationStorageClassificationMappingsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SiteRecoveryManagementClientStorageClassificationMappings to be used - * by the proxy service to perform REST calls. + * The interface defining all the services for SiteRecoveryManagementClientReplicationStorageClassificationMappings + * to be used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SiteRecoveryManageme") - public interface StorageClassificationMappingsService { + public interface ReplicationStorageClassificationMappingsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices" diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationMappingsImpl.java similarity index 96% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsImpl.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationMappingsImpl.java index 87135577039b8..3542b2b4d68c6 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationMappingsImpl.java @@ -9,20 +9,20 @@ import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.StorageClassificationMappingsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationStorageClassificationMappingsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationMappingInner; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationStorageClassificationMappings; import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMapping; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappings; -public final class StorageClassificationMappingsImpl implements StorageClassificationMappings { - private static final ClientLogger LOGGER = new ClientLogger(StorageClassificationMappingsImpl.class); +public final class ReplicationStorageClassificationMappingsImpl implements ReplicationStorageClassificationMappings { + private static final ClientLogger LOGGER = new ClientLogger(ReplicationStorageClassificationMappingsImpl.class); - private final StorageClassificationMappingsClient innerClient; + private final ReplicationStorageClassificationMappingsClient innerClient; private final com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager; - public StorageClassificationMappingsImpl( - StorageClassificationMappingsClient innerClient, + public ReplicationStorageClassificationMappingsImpl( + ReplicationStorageClassificationMappingsClient innerClient, com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; @@ -382,7 +382,7 @@ public void deleteByIdWithResponse(String id, Context context) { context); } - private StorageClassificationMappingsClient serviceClient() { + private ReplicationStorageClassificationMappingsClient serviceClient() { return this.innerClient; } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationsClientImpl.java similarity index 97% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsClientImpl.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationsClientImpl.java index 34cb29fc31beb..9b4f48231b20b 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationsClientImpl.java @@ -25,38 +25,43 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.StorageClassificationsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationStorageClassificationsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationInner; import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationCollection; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in StorageClassificationsClient. */ -public final class StorageClassificationsClientImpl implements StorageClassificationsClient { +/** + * An instance of this class provides access to all the operations defined in ReplicationStorageClassificationsClient. + */ +public final class ReplicationStorageClassificationsClientImpl implements ReplicationStorageClassificationsClient { /** The proxy service used to perform REST calls. */ - private final StorageClassificationsService service; + private final ReplicationStorageClassificationsService service; /** The service client containing this operation class. */ private final SiteRecoveryManagementClientImpl client; /** - * Initializes an instance of StorageClassificationsClientImpl. + * Initializes an instance of ReplicationStorageClassificationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - StorageClassificationsClientImpl(SiteRecoveryManagementClientImpl client) { + ReplicationStorageClassificationsClientImpl(SiteRecoveryManagementClientImpl client) { this.service = RestProxy - .create(StorageClassificationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + .create( + ReplicationStorageClassificationsService.class, + client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SiteRecoveryManagementClientStorageClassifications to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for SiteRecoveryManagementClientReplicationStorageClassifications to be + * used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SiteRecoveryManageme") - public interface StorageClassificationsService { + public interface ReplicationStorageClassificationsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices" diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationsImpl.java similarity index 89% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsImpl.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationsImpl.java index 88cb725a62086..380e2e4687fca 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationsImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/ReplicationStorageClassificationsImpl.java @@ -9,20 +9,20 @@ import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.StorageClassificationsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationStorageClassificationsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationInner; +import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationStorageClassifications; import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassification; -import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassifications; -public final class StorageClassificationsImpl implements StorageClassifications { - private static final ClientLogger LOGGER = new ClientLogger(StorageClassificationsImpl.class); +public final class ReplicationStorageClassificationsImpl implements ReplicationStorageClassifications { + private static final ClientLogger LOGGER = new ClientLogger(ReplicationStorageClassificationsImpl.class); - private final StorageClassificationsClient innerClient; + private final ReplicationStorageClassificationsClient innerClient; private final com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager; - public StorageClassificationsImpl( - StorageClassificationsClient innerClient, + public ReplicationStorageClassificationsImpl( + ReplicationStorageClassificationsClient innerClient, com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; @@ -85,7 +85,7 @@ public PagedIterable list(String resourceName, String res return Utils.mapPage(inner, inner1 -> new StorageClassificationImpl(inner1, this.manager())); } - private StorageClassificationsClient serviceClient() { + private ReplicationStorageClassificationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SiteRecoveryManagementClientImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SiteRecoveryManagementClientImpl.java index 99059f9c0c46e..200092a196232 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SiteRecoveryManagementClientImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/SiteRecoveryManagementClientImpl.java @@ -43,12 +43,12 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationProtectionIntentsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationRecoveryPlansClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationRecoveryServicesProvidersClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationStorageClassificationMappingsClient; +import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationStorageClassificationsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationVaultHealthsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationVaultSettingsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationvCentersClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.SiteRecoveryManagementClient; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.StorageClassificationMappingsClient; -import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.StorageClassificationsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.SupportedOperatingSystemsOperationsClient; import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.TargetComputeSizesClient; import java.io.IOException; @@ -351,28 +351,28 @@ public ReplicationRecoveryServicesProvidersClient getReplicationRecoveryServices return this.replicationRecoveryServicesProviders; } - /** The StorageClassificationsClient object to access its operations. */ - private final StorageClassificationsClient storageClassifications; + /** The ReplicationStorageClassificationsClient object to access its operations. */ + private final ReplicationStorageClassificationsClient replicationStorageClassifications; /** - * Gets the StorageClassificationsClient object to access its operations. + * Gets the ReplicationStorageClassificationsClient object to access its operations. * - * @return the StorageClassificationsClient object. + * @return the ReplicationStorageClassificationsClient object. */ - public StorageClassificationsClient getStorageClassifications() { - return this.storageClassifications; + public ReplicationStorageClassificationsClient getReplicationStorageClassifications() { + return this.replicationStorageClassifications; } - /** The StorageClassificationMappingsClient object to access its operations. */ - private final StorageClassificationMappingsClient storageClassificationMappings; + /** The ReplicationStorageClassificationMappingsClient object to access its operations. */ + private final ReplicationStorageClassificationMappingsClient replicationStorageClassificationMappings; /** - * Gets the StorageClassificationMappingsClient object to access its operations. + * Gets the ReplicationStorageClassificationMappingsClient object to access its operations. * - * @return the StorageClassificationMappingsClient object. + * @return the ReplicationStorageClassificationMappingsClient object. */ - public StorageClassificationMappingsClient getStorageClassificationMappings() { - return this.storageClassificationMappings; + public ReplicationStorageClassificationMappingsClient getReplicationStorageClassificationMappings() { + return this.replicationStorageClassificationMappings; } /** The ReplicationvCentersClient object to access its operations. */ @@ -512,8 +512,8 @@ public ReplicationVaultSettingsClient getReplicationVaultSettings() { this.targetComputeSizes = new TargetComputeSizesClientImpl(this); this.replicationProtectionContainerMappings = new ReplicationProtectionContainerMappingsClientImpl(this); this.replicationRecoveryServicesProviders = new ReplicationRecoveryServicesProvidersClientImpl(this); - this.storageClassifications = new StorageClassificationsClientImpl(this); - this.storageClassificationMappings = new StorageClassificationMappingsClientImpl(this); + this.replicationStorageClassifications = new ReplicationStorageClassificationsClientImpl(this); + this.replicationStorageClassificationMappings = new ReplicationStorageClassificationMappingsClientImpl(this); this.replicationvCenters = new ReplicationvCentersClientImpl(this); this.replicationJobs = new ReplicationJobsClientImpl(this); this.replicationPolicies = new ReplicationPoliciesClientImpl(this); diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingImpl.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingImpl.java index 1802d070d1c54..b278e9e9c0dca 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingImpl.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/implementation/StorageClassificationMappingImpl.java @@ -86,7 +86,7 @@ public StorageClassificationMapping create() { this.innerObject = serviceManager .serviceClient() - .getStorageClassificationMappings() + .getReplicationStorageClassificationMappings() .create( resourceName, resourceGroupName, @@ -102,7 +102,7 @@ public StorageClassificationMapping create(Context context) { this.innerObject = serviceManager .serviceClient() - .getStorageClassificationMappings() + .getReplicationStorageClassificationMappings() .create( resourceName, resourceGroupName, @@ -126,7 +126,7 @@ public StorageClassificationMapping refresh() { this.innerObject = serviceManager .serviceClient() - .getStorageClassificationMappings() + .getReplicationStorageClassificationMappings() .getWithResponse( resourceName, resourceGroupName, @@ -142,7 +142,7 @@ public StorageClassificationMapping refresh(Context context) { this.innerObject = serviceManager .serviceClient() - .getStorageClassificationMappings() + .getReplicationStorageClassificationMappings() .getWithResponse( resourceName, resourceGroupName, diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMappings.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationStorageClassificationMappings.java similarity index 98% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMappings.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationStorageClassificationMappings.java index e03de16200332..8438ff3b06f86 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassificationMappings.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationStorageClassificationMappings.java @@ -8,8 +8,8 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of StorageClassificationMappings. */ -public interface StorageClassificationMappings { +/** Resource collection API of ReplicationStorageClassificationMappings. */ +public interface ReplicationStorageClassificationMappings { /** * Gets the list of storage classification mappings objects under a storage. * diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassifications.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationStorageClassifications.java similarity index 98% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassifications.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationStorageClassifications.java index 98ab87e0fff18..5b47a239b3e60 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/StorageClassifications.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/main/java/com/azure/resourcemanager/recoveryservicessiterecovery/models/ReplicationStorageClassifications.java @@ -8,8 +8,8 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of StorageClassifications. */ -public interface StorageClassifications { +/** Resource collection API of ReplicationStorageClassifications. */ +public interface ReplicationStorageClassifications { /** * Gets the list of storage classification objects under a fabric. * diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsCreateSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsCreateS.java similarity index 89% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsCreateSamples.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsCreateS.java index a77e4f83e3276..795ad842cc999 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsCreateSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsCreateS.java @@ -6,8 +6,8 @@ import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageMappingInputProperties; -/** Samples for StorageClassificationMappings Create. */ -public final class StorageClassificationMappingsCreateSamples { +/** Samples for ReplicationStorageClassificationMappings Create. */ +public final class ReplicationStorageClassificationMappingsCreateS { /* * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Create.json */ @@ -19,7 +19,7 @@ public final class StorageClassificationMappingsCreateSamples { public static void createStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .storageClassificationMappings() + .replicationStorageClassificationMappings() .define("testStorageMapping") .withExistingReplicationStorageClassification( "vault1", diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsDeleteSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsDeleteS.java similarity index 84% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsDeleteSamples.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsDeleteS.java index 7ef4aba153abe..f54cbbf03e948 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsDeleteSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsDeleteS.java @@ -6,8 +6,8 @@ import com.azure.core.util.Context; -/** Samples for StorageClassificationMappings Delete. */ -public final class StorageClassificationMappingsDeleteSamples { +/** Samples for ReplicationStorageClassificationMappings Delete. */ +public final class ReplicationStorageClassificationMappingsDeleteS { /* * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Delete.json */ @@ -19,7 +19,7 @@ public final class StorageClassificationMappingsDeleteSamples { public static void deleteAStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .storageClassificationMappings() + .replicationStorageClassificationMappings() .delete( "vault1", "resourceGroupPS1", diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsGetSamp.java similarity index 85% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsGetSamples.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsGetSamp.java index 917d7394beff3..c85494b2b775d 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsGetSamp.java @@ -6,8 +6,8 @@ import com.azure.core.util.Context; -/** Samples for StorageClassificationMappings Get. */ -public final class StorageClassificationMappingsGetSamples { +/** Samples for ReplicationStorageClassificationMappings Get. */ +public final class ReplicationStorageClassificationMappingsGetSamp { /* * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Get.json */ @@ -19,7 +19,7 @@ public final class StorageClassificationMappingsGetSamples { public static void getsTheDetailsOfAStorageClassificationMapping( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .storageClassificationMappings() + .replicationStorageClassificationMappings() .getWithResponse( "vault1", "resourceGroupPS1", diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListByReplicationS.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsListByR.java similarity index 83% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListByReplicationS.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsListByR.java index 9cfa5f32c559f..eea061b9718b2 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListByReplicationS.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsListByR.java @@ -6,8 +6,8 @@ import com.azure.core.util.Context; -/** Samples for StorageClassificationMappings ListByReplicationStorageClassifications. */ -public final class StorageClassificationMappingsListByReplicationS { +/** Samples for ReplicationStorageClassificationMappings ListByReplicationStorageClassifications. */ +public final class ReplicationStorageClassificationMappingsListByR { /* * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_ListByReplicationStorageClassifications.json */ @@ -19,7 +19,7 @@ public final class StorageClassificationMappingsListByReplicationS { public static void getsTheListOfStorageClassificationMappingsObjectsUnderAStorage( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .storageClassificationMappings() + .replicationStorageClassificationMappings() .listByReplicationStorageClassifications( "vault1", "resourceGroupPS1", diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsListSam.java similarity index 77% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListSamples.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsListSam.java index 5f3abf49d486e..ea860f27c03af 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationMappingsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationMappingsListSam.java @@ -6,8 +6,8 @@ import com.azure.core.util.Context; -/** Samples for StorageClassificationMappings List. */ -public final class StorageClassificationMappingsListSamples { +/** Samples for ReplicationStorageClassificationMappings List. */ +public final class ReplicationStorageClassificationMappingsListSam { /* * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_List.json */ @@ -18,6 +18,6 @@ public final class StorageClassificationMappingsListSamples { */ public static void getsTheListOfStorageClassificationMappingsObjectsUnderAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.storageClassificationMappings().list("vault1", "resourceGroupPS1", Context.NONE); + manager.replicationStorageClassificationMappings().list("vault1", "resourceGroupPS1", Context.NONE); } } diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsGetSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationsGetSamples.java similarity index 86% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsGetSamples.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationsGetSamples.java index fdc60abc010de..26f97048b16db 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsGetSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationsGetSamples.java @@ -6,8 +6,8 @@ import com.azure.core.util.Context; -/** Samples for StorageClassifications Get. */ -public final class StorageClassificationsGetSamples { +/** Samples for ReplicationStorageClassifications Get. */ +public final class ReplicationStorageClassificationsGetSamples { /* * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_Get.json */ @@ -19,7 +19,7 @@ public final class StorageClassificationsGetSamples { public static void getsTheDetailsOfAStorageClassification( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .storageClassifications() + .replicationStorageClassifications() .getWithResponse( "vault1", "resourceGroupPS1", diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListByReplicationFabricsS.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationsListByReplicat.java similarity index 84% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListByReplicationFabricsS.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationsListByReplicat.java index 06c5655ff0aa8..620c9e8e5a4f6 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListByReplicationFabricsS.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationsListByReplicat.java @@ -6,8 +6,8 @@ import com.azure.core.util.Context; -/** Samples for StorageClassifications ListByReplicationFabrics. */ -public final class StorageClassificationsListByReplicationFabricsS { +/** Samples for ReplicationStorageClassifications ListByReplicationFabrics. */ +public final class ReplicationStorageClassificationsListByReplicat { /* * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_ListByReplicationFabrics.json */ @@ -19,7 +19,7 @@ public final class StorageClassificationsListByReplicationFabricsS { public static void getsTheListOfStorageClassificationObjectsUnderAFabric( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { manager - .storageClassifications() + .replicationStorageClassifications() .listByReplicationFabrics( "vault1", "resourceGroupPS1", diff --git a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListSamples.java b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationsListSamples.java similarity index 78% rename from sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListSamples.java rename to sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationsListSamples.java index 56bb5c6ec97c9..0ef7b6cd3d71d 100644 --- a/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/StorageClassificationsListSamples.java +++ b/sdk/recoveryservicessiterecovery/azure-resourcemanager-recoveryservicessiterecovery/src/samples/java/com/azure/resourcemanager/recoveryservicessiterecovery/generated/ReplicationStorageClassificationsListSamples.java @@ -6,8 +6,8 @@ import com.azure.core.util.Context; -/** Samples for StorageClassifications List. */ -public final class StorageClassificationsListSamples { +/** Samples for ReplicationStorageClassifications List. */ +public final class ReplicationStorageClassificationsListSamples { /* * x-ms-original-file: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_List.json */ @@ -18,6 +18,6 @@ public final class StorageClassificationsListSamples { */ public static void getsTheListOfStorageClassificationObjectsUnderAVault( com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager manager) { - manager.storageClassifications().list("vault1", "resourceGroupPS1", Context.NONE); + manager.replicationStorageClassifications().list("vault1", "resourceGroupPS1", Context.NONE); } }