diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 5bb766821375..4618a9e06542 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -438,7 +438,7 @@ com.azure.resourcemanager:azure-resourcemanager-billingbenefits;1.0.0-beta.2;1.0 com.azure.resourcemanager:azure-resourcemanager-providerhub;2.1.0;2.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-reservations;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-containerservicefleet;1.2.0;1.3.0-beta.5 -com.azure.resourcemanager:azure-resourcemanager-storagemover;1.5.0;1.6.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-storagemover;1.5.0;1.6.0 com.azure.resourcemanager:azure-resourcemanager-graphservices;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-voiceservices;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-paloaltonetworks-ngfw;1.3.0;1.4.0-beta.1 diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/CHANGELOG.md b/sdk/storagemover/azure-resourcemanager-storagemover/CHANGELOG.md index 85ca9330c969..42337a49049c 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/CHANGELOG.md +++ b/sdk/storagemover/azure-resourcemanager-storagemover/CHANGELOG.md @@ -1,14 +1,104 @@ # Release History -## 1.6.0-beta.1 (Unreleased) +## 1.6.0 (2026-07-23) + +- Azure Resource Manager Storage Mover client library for Java. This package contains Microsoft Azure SDK for Storage Mover Management SDK. The Azure Storage Mover REST API. Package api-version 2026-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added -### Breaking Changes +* `models.SmbMountSourceType` was added + +* `models.NfsMountSourceType` was added + +#### `models.JobDefinitions` was modified + +* `reconcileJobWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `reconcileJob(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was added + +#### `models.SmbMountEndpointProperties` was modified + +* `withSourceType(models.SmbMountSourceType)` was added +* `sourceType()` was added + +#### `models.NfsVersion` was modified + +* `NFSV4_1` was added + +#### `models.AzureStorageSmbFileShareEndpointProperties` was modified + +* `enableCrossTenantTransfer()` was added +* `withEnableCrossTenantTransfer(java.lang.Boolean)` was added +* `allowedStorageAccounts()` was added +* `withAllowedStorageAccounts(java.util.List)` was added + +#### `models.Frequency` was modified + +* `HOURLY` was added + +#### `models.JobDefinitionUpdateParameters` was modified + +* `withMoverSyncedUntil(java.time.OffsetDateTime)` was added +* `withSyncMode(java.lang.String)` was added +* `syncMode()` was added +* `moverSyncedUntil()` was added + +#### `models.AzureStorageBlobContainerEndpointProperties` was modified + +* `enableCrossTenantTransfer()` was added +* `allowedStorageAccounts()` was added +* `withAllowedStorageAccounts(java.util.List)` was added +* `withEnableCrossTenantTransfer(java.lang.Boolean)` was added -### Bugs Fixed +#### `models.JobDefinition` was modified + +* `crossTenantEndpointTenantId()` was added +* `syncMode()` was added +* `moverSyncedUntil()` was added +* `reconcileJobWithResponse(com.azure.core.util.Context)` was added +* `reconcileJob()` was added +* `isCrossTenantJob()` was added +* `crossTenantEndpointResourceId()` was added + +#### `models.AzureStorageSmbFileShareEndpointUpdateProperties` was modified + +* `withAllowedStorageAccounts(java.util.List)` was added +* `allowedStorageAccounts()` was added +* `withEnableCrossTenantTransfer(java.lang.Boolean)` was added +* `enableCrossTenantTransfer()` was added + +#### `models.JobDefinition$Update` was modified + +* `withSyncMode(java.lang.String)` was added +* `withMoverSyncedUntil(java.time.OffsetDateTime)` was added + +#### `models.ScheduleInfo` was modified + +* `withRepeatInterval(java.lang.String)` was added +* `repeatInterval()` was added + +#### `models.JobDefinition$Definition` was modified + +* `withCrossTenantEndpointResourceId(java.lang.String)` was added +* `withIsCrossTenantJob(java.lang.Boolean)` was added +* `withMoverSyncedUntil(java.time.OffsetDateTime)` was added +* `withSyncMode(java.lang.String)` was added +* `withCrossTenantEndpointTenantId(java.lang.String)` was added + +#### `models.AzureStorageBlobContainerEndpointUpdateProperties` was modified + +* `allowedStorageAccounts()` was added +* `withEnableCrossTenantTransfer(java.lang.Boolean)` was added +* `enableCrossTenantTransfer()` was added +* `withAllowedStorageAccounts(java.util.List)` was added + +#### `models.JobType` was modified + +* `ON_PREM_TO_CLOUD_AGENT_LESS` was added + +#### `models.NfsMountEndpointProperties` was modified -### Other Changes +* `sourceType()` was added +* `withSourceType(models.NfsMountSourceType)` was added ## 1.5.0 (2026-04-06) diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/README.md b/sdk/storagemover/azure-resourcemanager-storagemover/README.md index 42552eba92eb..45eea0053f97 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/README.md +++ b/sdk/storagemover/azure-resourcemanager-storagemover/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Storage Mover client library for Java. -This package contains Microsoft Azure SDK for Storage Mover Management SDK. The Azure Storage Mover REST API. Package api-version 2025-12-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for Storage Mover Management SDK. The Azure Storage Mover REST API. Package api-version 2026-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-storagemover - 1.5.0 + 1.6.0 ``` [//]: # ({x-version-update-end}) @@ -70,13 +70,6 @@ See [API design][design] for general introduction on design and key concepts on ## Examples -```java -storageMover = storageMoverManager.storageMovers() - .define(moveName) - .withRegion(REGION) - .withExistingResourceGroup(resourceGroupName) - .create(); -``` [Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/storagemover/azure-resourcemanager-storagemover/SAMPLE.md) diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/SAMPLE.md b/sdk/storagemover/azure-resourcemanager-storagemover/SAMPLE.md index 53a23f564efe..4d4410c46cb1 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/SAMPLE.md +++ b/sdk/storagemover/azure-resourcemanager-storagemover/SAMPLE.md @@ -30,6 +30,7 @@ - [Delete](#jobdefinitions_delete) - [Get](#jobdefinitions_get) - [List](#jobdefinitions_list) +- [ReconcileJob](#jobdefinitions_reconcilejob) - [StartJob](#jobdefinitions_startjob) - [StopJob](#jobdefinitions_stopjob) - [Update](#jobdefinitions_update) @@ -74,7 +75,7 @@ import java.util.Arrays; */ public final class AgentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_MaximumSet.json + * x-ms-original-file: 2026-05-01/Agents_CreateOrUpdate_MaximumSet.json */ /** * Sample code: Agents_CreateOrUpdate_MaximumSet. @@ -99,7 +100,7 @@ public final class AgentsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_UploadLimitSchedule_Overnight.json + * x-ms-original-file: 2026-05-01/Agents_CreateOrUpdate_UploadLimitSchedule_Overnight.json */ /** * Sample code: Agents_CreateOrUpdate_WithOvernightUploadLimitSchedule. @@ -129,7 +130,7 @@ public final class AgentsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_MinimumSet.json + * x-ms-original-file: 2026-05-01/Agents_CreateOrUpdate_MinimumSet.json */ /** * Sample code: Agents_CreateOrUpdate_MinimumSet. @@ -157,7 +158,7 @@ public final class AgentsCreateOrUpdateSamples { */ public final class AgentsDeleteSamples { /* - * x-ms-original-file: 2025-12-01/Agents_Delete.json + * x-ms-original-file: 2026-05-01/Agents_Delete.json */ /** * Sample code: Agents_Delete. @@ -179,7 +180,7 @@ public final class AgentsDeleteSamples { */ public final class AgentsGetSamples { /* - * x-ms-original-file: 2025-12-01/Agents_Get_MaximumSet.json + * x-ms-original-file: 2026-05-01/Agents_Get_MaximumSet.json */ /** * Sample code: Agents_Get_MaximumSet. @@ -193,7 +194,7 @@ public final class AgentsGetSamples { } /* - * x-ms-original-file: 2025-12-01/Agents_Get_MinimumSet.json + * x-ms-original-file: 2026-05-01/Agents_Get_MinimumSet.json */ /** * Sample code: Agents_Get_MinimumSet. @@ -216,7 +217,7 @@ public final class AgentsGetSamples { */ public final class AgentsListSamples { /* - * x-ms-original-file: 2025-12-01/Agents_List_MaximumSet.json + * x-ms-original-file: 2026-05-01/Agents_List_MaximumSet.json */ /** * Sample code: Agents_List_MaximumSet. @@ -228,7 +229,7 @@ public final class AgentsListSamples { } /* - * x-ms-original-file: 2025-12-01/Agents_List_MinimumSet.json + * x-ms-original-file: 2026-05-01/Agents_List_MinimumSet.json */ /** * Sample code: Agents_List_MinimumSet. @@ -257,7 +258,7 @@ import java.util.Arrays; */ public final class AgentsUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Agents_Update.json + * x-ms-original-file: 2026-05-01/Agents_Update.json */ /** * Sample code: Agents_Update. @@ -291,7 +292,7 @@ import com.azure.resourcemanager.storagemover.models.ConnectionProperties; */ public final class ConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Connections_CreateOrUpdate.json + * x-ms-original-file: 2026-05-01/Connections_CreateOrUpdate.json */ /** * Sample code: Connections_CreateOrUpdate. @@ -318,7 +319,7 @@ public final class ConnectionsCreateOrUpdateSamples { */ public final class ConnectionsDeleteSamples { /* - * x-ms-original-file: 2025-12-01/Connections_Delete.json + * x-ms-original-file: 2026-05-01/Connections_Delete.json */ /** * Sample code: Connections_Delete. @@ -340,7 +341,7 @@ public final class ConnectionsDeleteSamples { */ public final class ConnectionsGetSamples { /* - * x-ms-original-file: 2025-12-01/Connections_Get.json + * x-ms-original-file: 2026-05-01/Connections_Get.json */ /** * Sample code: Connections_Get. @@ -363,7 +364,7 @@ public final class ConnectionsGetSamples { */ public final class ConnectionsListSamples { /* - * x-ms-original-file: 2025-12-01/Connections_List.json + * x-ms-original-file: 2026-05-01/Connections_List.json */ /** * Sample code: Connections_List. @@ -386,7 +387,24 @@ import com.azure.resourcemanager.storagemover.models.EndpointBaseProperties; */ public final class EndpointsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageNfsFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare_CrossTenant.json + */ + /** + * Sample code: Endpoints_CreateOrUpdate_AzureStorageSmbFileShare_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsCreateOrUpdateAzureStorageSmbFileShareCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.endpoints() + .define("examples-endpointName") + .withExistingStorageMover("examples-rg", "examples-storageMoverName") + .withProperties((EndpointBaseProperties) null) + .create(); + } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageNfsFileShare. @@ -403,7 +421,24 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_S3WithHMAC.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer_CrossTenant.json + */ + /** + * Sample code: Endpoints_CreateOrUpdate_AzureStorageBlobContainer_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsCreateOrUpdateAzureStorageBlobContainerCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.endpoints() + .define("examples-endpointName") + .withExistingStorageMover("examples-rg", "examples-storageMoverName") + .withProperties((EndpointBaseProperties) null) + .create(); + } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_S3WithHMAC.json */ /** * Sample code: Endpoints_CreateOrUpdate_S3WithHmac. @@ -420,7 +455,7 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureMultiCloudConnector.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureMultiCloudConnector. @@ -437,7 +472,7 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageBlobContainer. @@ -454,7 +489,7 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_NfsMount.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_NfsMount.json */ /** * Sample code: Endpoints_CreateOrUpdate_NfsMount. @@ -471,7 +506,7 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageSmbFileShare. @@ -488,7 +523,7 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_SmbMount.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_SmbMount.json */ /** * Sample code: Endpoints_CreateOrUpdate_SmbMount. @@ -514,7 +549,7 @@ public final class EndpointsCreateOrUpdateSamples { */ public final class EndpointsDeleteSamples { /* - * x-ms-original-file: 2025-12-01/Endpoints_Delete.json + * x-ms-original-file: 2026-05-01/Endpoints_Delete.json */ /** * Sample code: Endpoints_Delete. @@ -537,7 +572,7 @@ public final class EndpointsDeleteSamples { */ public final class EndpointsGetSamples { /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureStorageNfsFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_Get_AzureStorageNfsFileShare. @@ -552,7 +587,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_SmbMount.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_SmbMount.json */ /** * Sample code: Endpoints_Get_SmbMount. @@ -566,7 +601,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_S3WithHMAC.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_S3WithHMAC.json */ /** * Sample code: Endpoints_Get_S3WithHmac. @@ -580,7 +615,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureStorageBlobContainer.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_Get_AzureStorageBlobContainer. @@ -595,7 +630,22 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_NfsMount.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureStorageBlobContainer_CrossTenant.json + */ + /** + * Sample code: Endpoints_Get_AzureStorageBlobContainer_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsGetAzureStorageBlobContainerCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.endpoints() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-endpointName", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_Get_NfsMount.json */ /** * Sample code: Endpoints_Get_NfsMount. @@ -609,7 +659,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureStorageSmbFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_Get_AzureStorageSmbFileShare. @@ -624,7 +674,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureMultiCloudConnector.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_Get_AzureMultiCloudConnector. @@ -637,6 +687,21 @@ public final class EndpointsGetSamples { .getWithResponse("examples-rg", "examples-storageMoverName", "examples-endpointName", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureStorageSmbFileShare_CrossTenant.json + */ + /** + * Sample code: Endpoints_Get_AzureStorageSmbFileShare_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsGetAzureStorageSmbFileShareCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.endpoints() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-endpointName", + com.azure.core.util.Context.NONE); + } } ``` @@ -648,7 +713,7 @@ public final class EndpointsGetSamples { */ public final class EndpointsListSamples { /* - * x-ms-original-file: 2025-12-01/Endpoints_List.json + * x-ms-original-file: 2026-05-01/Endpoints_List.json */ /** * Sample code: Endpoints_List. @@ -671,7 +736,24 @@ import com.azure.resourcemanager.storagemover.models.Endpoint; */ public final class EndpointsUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureMultiCloudConnector.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureStorageSmbFileShare_CrossTenant.json + */ + /** + * Sample code: Endpoints_Update_AzureStorageSmbFileShare_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsUpdateAzureStorageSmbFileShareCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + Endpoint resource = manager.endpoints() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-endpointName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_Update_AzureMultiCloudConnector. @@ -688,7 +770,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageNfsFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_Update_AzureStorageNfsFileShare. @@ -705,7 +787,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_NfsMount.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_NfsMount.json */ /** * Sample code: Endpoints_Update_NfsMount. @@ -721,7 +803,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageSmbFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_Update_AzureStorageSmbFileShare. @@ -738,7 +820,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageBlobContainer.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_Update_AzureStorageBlobContainer. @@ -755,7 +837,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_SmbMount.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_SmbMount.json */ /** * Sample code: Endpoints_Update_SmbMount. @@ -771,7 +853,24 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_S3WithHMAC.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureStorageBlobContainer_CrossTenant.json + */ + /** + * Sample code: Endpoints_Update_AzureStorageBlobContainer_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsUpdateAzureStorageBlobContainerCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + Endpoint resource = manager.endpoints() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-endpointName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_Update_S3WithHMAC.json */ /** * Sample code: Endpoints_Update_S3WithHmac. @@ -805,7 +904,7 @@ import java.util.Arrays; */ public final class JobDefinitionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_CreateOrUpdate_With_Schedule.json + * x-ms-original-file: 2026-05-01/JobDefinitions_CreateOrUpdate_With_Schedule.json */ /** * Sample code: JobDefinitions_CreateOrUpdate_With_Schedule. @@ -830,14 +929,14 @@ public final class JobDefinitionsCreateOrUpdateSamples { .withSchedule(new ScheduleInfo().withFrequency(Frequency.WEEKLY) .withIsActive(true) .withExecutionTime(new SchedulerTime().withHour(9).withMinute(Minute.ZERO)) - .withStartDate(OffsetDateTime.parse("2025-12-01T00:00:00Z")) + .withStartDate(OffsetDateTime.parse("2026-05-01T00:00:00Z")) .withDaysOfWeek(Arrays.asList("Monday", "Wednesday", "Friday")) .withEndDate(OffsetDateTime.parse("2025-12-31T12:00:00Z"))) .create(); } /* - * x-ms-original-file: 2025-12-01/JobDefinitions_CreateOrUpdate_CloudToCloud.json + * x-ms-original-file: 2026-05-01/JobDefinitions_CreateOrUpdate_CloudToCloud.json */ /** * Sample code: JobDefinitions_CreateOrUpdate_CloudToCloud. @@ -859,11 +958,13 @@ public final class JobDefinitionsCreateOrUpdateSamples { .withAgentName("dummy-agent") .withConnections(Arrays.asList( "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) + .withSyncMode("SnapshotBased") + .withMoverSyncedUntil(OffsetDateTime.parse("2026-05-01T00:00:00Z")) .create(); } /* - * x-ms-original-file: 2025-12-01/JobDefinitions_CreateOrUpdate.json + * x-ms-original-file: 2026-05-01/JobDefinitions_CreateOrUpdate.json */ /** * Sample code: JobDefinitions_CreateOrUpdate. @@ -885,6 +986,38 @@ public final class JobDefinitionsCreateOrUpdateSamples { .withAgentName("migration-agent") .withConnections(Arrays.asList( "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) + .withPreservePermissions(false) + .withSyncMode("FullScan") + .withMoverSyncedUntil(OffsetDateTime.parse("2026-05-01T00:00:00Z")) + .create(); + } + + /* + * x-ms-original-file: 2026-05-01/JobDefinitions_CreateOrUpdate_CrossTenant.json + */ + /** + * Sample code: JobDefinitions_CreateOrUpdate_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + jobDefinitionsCreateOrUpdateCrossTenant(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobDefinitions() + .define("examples-jobDefinitionName") + .withExistingProject("examples-rg", "examples-storageMoverName", "examples-projectName") + .withCopyMode(CopyMode.ADDITIVE) + .withSourceName("examples-sourceEndpointName") + .withTargetName("partner-targetEndpoint") + .withDescription( + "Cross-tenant Blob-to-Blob copy job. JobDefinition lives in the source (host) tenant alongside the local source endpoint; the target endpoint lives in a partner (guest) tenant.") + .withJobType(JobType.CLOUD_TO_CLOUD) + .withSourceSubpath("/") + .withTargetSubpath("/") + .withAgentName("migration-agent") + .withIsCrossTenantJob(true) + .withCrossTenantEndpointTenantId("11111111-2222-3333-4444-555555555555") + .withCrossTenantEndpointResourceId( + "/subscriptions/0a2b3c4d-5e6f-7081-92a3-b4c5d6e7f809/resourceGroups/partner-rg/providers/Microsoft.StorageMover/storageMovers/partner-storageMover/endpoints/partner-targetEndpoint") .create(); } } @@ -898,7 +1031,7 @@ public final class JobDefinitionsCreateOrUpdateSamples { */ public final class JobDefinitionsDeleteSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_Delete.json + * x-ms-original-file: 2026-05-01/JobDefinitions_Delete.json */ /** * Sample code: Projects_Delete. @@ -921,7 +1054,7 @@ public final class JobDefinitionsDeleteSamples { */ public final class JobDefinitionsGetSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_Get.json + * x-ms-original-file: 2026-05-01/JobDefinitions_Get.json */ /** * Sample code: JobDefinitions_Get. @@ -935,7 +1068,37 @@ public final class JobDefinitionsGetSamples { } /* - * x-ms-original-file: 2025-12-01/JobDefinitions_Get_With_Schedule.json + * x-ms-original-file: 2026-05-01/JobDefinitions_Get_CrossTenant.json + */ + /** + * Sample code: JobDefinitions_Get_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + jobDefinitionsGetCrossTenant(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobDefinitions() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-projectName", + "examples-jobDefinitionName", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01/JobDefinitions_Get_CrossTenant_Mirror.json + */ + /** + * Sample code: JobDefinitions_Get_CrossTenant_Mirror. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + jobDefinitionsGetCrossTenantMirror(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobDefinitions() + .getWithResponse("partner-rg", "partner-storageMover", "partner-projectName", "examples-jobDefinitionName", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01/JobDefinitions_Get_With_Schedule.json */ /** * Sample code: JobDefinitions_Get_With_Schedule. @@ -959,7 +1122,7 @@ public final class JobDefinitionsGetSamples { */ public final class JobDefinitionsListSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_List.json + * x-ms-original-file: 2026-05-01/JobDefinitions_List.json */ /** * Sample code: JobDefinitions_List. @@ -973,6 +1136,29 @@ public final class JobDefinitionsListSamples { } ``` +### JobDefinitions_ReconcileJob + +```java +/** + * Samples for JobDefinitions ReconcileJob. + */ +public final class JobDefinitionsReconcileJobSamples { + /* + * x-ms-original-file: 2026-05-01/JobDefinitions_ReconcileJob.json + */ + /** + * Sample code: JobDefinitions_ReconcileJob. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void jobDefinitionsReconcileJob(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobDefinitions() + .reconcileJobWithResponse("examples-rg", "examples-storageMoverName", "examples-projectName", + "examples-jobDefinitionName", com.azure.core.util.Context.NONE); + } +} +``` + ### JobDefinitions_StartJob ```java @@ -981,7 +1167,7 @@ public final class JobDefinitionsListSamples { */ public final class JobDefinitionsStartJobSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_StartJob.json + * x-ms-original-file: 2026-05-01/JobDefinitions_StartJob.json */ /** * Sample code: JobDefinitions_StartJob. @@ -1004,7 +1190,7 @@ public final class JobDefinitionsStartJobSamples { */ public final class JobDefinitionsStopJobSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_StopJob.json + * x-ms-original-file: 2026-05-01/JobDefinitions_StopJob.json */ /** * Sample code: JobDefinitions_StopJob. @@ -1030,7 +1216,7 @@ import java.util.Arrays; */ public final class JobDefinitionsUpdateSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_Update.json + * x-ms-original-file: 2026-05-01/JobDefinitions_Update.json */ /** * Sample code: JobDefinitions_Update. @@ -1060,7 +1246,7 @@ public final class JobDefinitionsUpdateSamples { */ public final class JobRunsGetSamples { /* - * x-ms-original-file: 2025-12-01/JobRuns_Get_With_Schedule.json + * x-ms-original-file: 2026-05-01/JobRuns_Get_With_Schedule.json */ /** * Sample code: JobRuns_Get_With_Schedule. @@ -1074,7 +1260,7 @@ public final class JobRunsGetSamples { } /* - * x-ms-original-file: 2025-12-01/JobRuns_Get.json + * x-ms-original-file: 2026-05-01/JobRuns_Get.json */ /** * Sample code: JobRuns_Get. @@ -1097,7 +1283,7 @@ public final class JobRunsGetSamples { */ public final class JobRunsListSamples { /* - * x-ms-original-file: 2025-12-01/JobRuns_List.json + * x-ms-original-file: 2026-05-01/JobRuns_List.json */ /** * Sample code: JobRuns_List. @@ -1120,7 +1306,7 @@ public final class JobRunsListSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-12-01/Operations_List.json + * x-ms-original-file: 2026-05-01/Operations_List.json */ /** * Sample code: Operations_List. @@ -1141,7 +1327,7 @@ public final class OperationsListSamples { */ public final class ProjectsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Projects_CreateOrUpdate.json + * x-ms-original-file: 2026-05-01/Projects_CreateOrUpdate.json */ /** * Sample code: Projects_CreateOrUpdate. @@ -1166,7 +1352,7 @@ public final class ProjectsCreateOrUpdateSamples { */ public final class ProjectsDeleteSamples { /* - * x-ms-original-file: 2025-12-01/Projects_Delete.json + * x-ms-original-file: 2026-05-01/Projects_Delete.json */ /** * Sample code: Projects_Delete. @@ -1189,7 +1375,7 @@ public final class ProjectsDeleteSamples { */ public final class ProjectsGetSamples { /* - * x-ms-original-file: 2025-12-01/Projects_Get.json + * x-ms-original-file: 2026-05-01/Projects_Get.json */ /** * Sample code: Projects_Get. @@ -1212,7 +1398,7 @@ public final class ProjectsGetSamples { */ public final class ProjectsListSamples { /* - * x-ms-original-file: 2025-12-01/Projects_List.json + * x-ms-original-file: 2026-05-01/Projects_List.json */ /** * Sample code: Projects_List. @@ -1235,7 +1421,7 @@ import com.azure.resourcemanager.storagemover.models.Project; */ public final class ProjectsUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Projects_Update.json + * x-ms-original-file: 2026-05-01/Projects_Update.json */ /** * Sample code: Projects_Update. @@ -1263,7 +1449,7 @@ import java.util.Map; */ public final class StorageMoversCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_CreateOrUpdate.json + * x-ms-original-file: 2026-05-01/StorageMovers_CreateOrUpdate.json */ /** * Sample code: StorageMovers_CreateOrUpdate. @@ -1302,7 +1488,7 @@ public final class StorageMoversCreateOrUpdateSamples { */ public final class StorageMoversDeleteSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_Delete.json + * x-ms-original-file: 2026-05-01/StorageMovers_Delete.json */ /** * Sample code: StorageMovers_Delete. @@ -1323,7 +1509,7 @@ public final class StorageMoversDeleteSamples { */ public final class StorageMoversGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_Get.json + * x-ms-original-file: 2026-05-01/StorageMovers_Get.json */ /** * Sample code: StorageMovers_Get. @@ -1346,7 +1532,7 @@ public final class StorageMoversGetByResourceGroupSamples { */ public final class StorageMoversListSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_ListBySubscription.json + * x-ms-original-file: 2026-05-01/StorageMovers_ListBySubscription.json */ /** * Sample code: StorageMovers_List. @@ -1367,7 +1553,7 @@ public final class StorageMoversListSamples { */ public final class StorageMoversListByResourceGroupSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_List.json + * x-ms-original-file: 2026-05-01/StorageMovers_List.json */ /** * Sample code: StorageMovers_List. @@ -1390,7 +1576,7 @@ import com.azure.resourcemanager.storagemover.models.StorageMover; */ public final class StorageMoversUpdateSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_Update.json + * x-ms-original-file: 2026-05-01/StorageMovers_Update.json */ /** * Sample code: StorageMovers_Update. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/pom.xml b/sdk/storagemover/azure-resourcemanager-storagemover/pom.xml index 44148a94b768..d7a650f6fa5a 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/pom.xml +++ b/sdk/storagemover/azure-resourcemanager-storagemover/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-storagemover - 1.6.0-beta.1 + 1.6.0 jar Microsoft Azure SDK for Storage Mover Management - This package contains Microsoft Azure SDK for Storage Mover Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Azure Storage Mover REST API. Package api-version 2025-12-01. + This package contains Microsoft Azure SDK for Storage Mover Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Azure Storage Mover REST API. Package api-version 2026-05-01. https://github.com/Azure/azure-sdk-for-java @@ -45,6 +45,7 @@ UTF-8 0 0 + false diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/JobDefinitionsClient.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/JobDefinitionsClient.java index 4d0b037dbb8a..50b5ed5d5ebc 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/JobDefinitionsClient.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/JobDefinitionsClient.java @@ -282,4 +282,37 @@ Response stopJobWithResponse(String resourceGroupName, St @ServiceMethod(returns = ReturnType.SINGLE) JobRunResourceIdInner stopJob(String resourceGroupName, String storageMoverName, String projectName, String jobDefinitionName); + + /** + * Post action to reconcile the running job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param projectName The name of the Project resource. + * @param jobDefinitionName The name of the Job Definition resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response that identifies a Job Run along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response reconcileJobWithResponse(String resourceGroupName, String storageMoverName, + String projectName, String jobDefinitionName, Context context); + + /** + * Post action to reconcile the running job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param projectName The name of the Project resource. + * @param jobDefinitionName The name of the Job Definition resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response that identifies a Job Run. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + JobRunResourceIdInner reconcileJob(String resourceGroupName, String storageMoverName, String projectName, + String jobDefinitionName); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionInner.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionInner.java index 6b0ed042c9fe..90965cbbde55 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionInner.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionInner.java @@ -18,6 +18,7 @@ import com.azure.resourcemanager.storagemover.models.ProvisioningState; import com.azure.resourcemanager.storagemover.models.ScheduleInfo; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.List; /** @@ -470,6 +471,141 @@ public JobDefinitionInner withPreservePermissions(Boolean preservePermissions) { return this; } + /** + * Get the isCrossTenantJob property: Indicates that this Job Definition is a cross-tenant job where the + * counterpart endpoint resides in a different Azure AD tenant. When true, + * `crossTenantEndpointTenantId` and `crossTenantEndpointResourceId` must be + * provided. Defaults to false. Cannot be modified after the Job Definition is + * created. + * + * @return the isCrossTenantJob value. + */ + public Boolean isCrossTenantJob() { + return this.innerProperties() == null ? null : this.innerProperties().isCrossTenantJob(); + } + + /** + * Set the isCrossTenantJob property: Indicates that this Job Definition is a cross-tenant job where the + * counterpart endpoint resides in a different Azure AD tenant. When true, + * `crossTenantEndpointTenantId` and `crossTenantEndpointResourceId` must be + * provided. Defaults to false. Cannot be modified after the Job Definition is + * created. + * + * @param isCrossTenantJob the isCrossTenantJob value to set. + * @return the JobDefinitionInner object itself. + */ + public JobDefinitionInner withIsCrossTenantJob(Boolean isCrossTenantJob) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionProperties(); + } + this.innerProperties().withIsCrossTenantJob(isCrossTenantJob); + return this; + } + + /** + * Get the crossTenantEndpointTenantId property: The Azure AD tenant ID of the cross-tenant source endpoint. + * Required when + * `isCrossTenantJob` is true. Cannot be modified after the Job Definition is + * created. + * + * @return the crossTenantEndpointTenantId value. + */ + public String crossTenantEndpointTenantId() { + return this.innerProperties() == null ? null : this.innerProperties().crossTenantEndpointTenantId(); + } + + /** + * Set the crossTenantEndpointTenantId property: The Azure AD tenant ID of the cross-tenant source endpoint. + * Required when + * `isCrossTenantJob` is true. Cannot be modified after the Job Definition is + * created. + * + * @param crossTenantEndpointTenantId the crossTenantEndpointTenantId value to set. + * @return the JobDefinitionInner object itself. + */ + public JobDefinitionInner withCrossTenantEndpointTenantId(String crossTenantEndpointTenantId) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionProperties(); + } + this.innerProperties().withCrossTenantEndpointTenantId(crossTenantEndpointTenantId); + return this; + } + + /** + * Get the crossTenantEndpointResourceId property: Full ARM resource ID of the cross-tenant (foreign) endpoint. On + * the + * source-tenant copy this is the TARGET endpoint; on the + * target-tenant copy this is the SOURCE endpoint. + * + * @return the crossTenantEndpointResourceId value. + */ + public String crossTenantEndpointResourceId() { + return this.innerProperties() == null ? null : this.innerProperties().crossTenantEndpointResourceId(); + } + + /** + * Set the crossTenantEndpointResourceId property: Full ARM resource ID of the cross-tenant (foreign) endpoint. On + * the + * source-tenant copy this is the TARGET endpoint; on the + * target-tenant copy this is the SOURCE endpoint. + * + * @param crossTenantEndpointResourceId the crossTenantEndpointResourceId value to set. + * @return the JobDefinitionInner object itself. + */ + public JobDefinitionInner withCrossTenantEndpointResourceId(String crossTenantEndpointResourceId) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionProperties(); + } + this.innerProperties().withCrossTenantEndpointResourceId(crossTenantEndpointResourceId); + return this; + } + + /** + * Get the syncMode property: The synchronization mode for the Job Definition. + * + * @return the syncMode value. + */ + public String syncMode() { + return this.innerProperties() == null ? null : this.innerProperties().syncMode(); + } + + /** + * Set the syncMode property: The synchronization mode for the Job Definition. + * + * @param syncMode the syncMode value to set. + * @return the JobDefinitionInner object itself. + */ + public JobDefinitionInner withSyncMode(String syncMode) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionProperties(); + } + this.innerProperties().withSyncMode(syncMode); + return this; + } + + /** + * Get the moverSyncedUntil property: The last time the mover was synchronized. + * + * @return the moverSyncedUntil value. + */ + public OffsetDateTime moverSyncedUntil() { + return this.innerProperties() == null ? null : this.innerProperties().moverSyncedUntil(); + } + + /** + * Set the moverSyncedUntil property: The last time the mover was synchronized. + * + * @param moverSyncedUntil the moverSyncedUntil value to set. + * @return the JobDefinitionInner object itself. + */ + public JobDefinitionInner withMoverSyncedUntil(OffsetDateTime moverSyncedUntil) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionProperties(); + } + this.innerProperties().withMoverSyncedUntil(moverSyncedUntil); + return this; + } + /** * {@inheritDoc} */ diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionProperties.java index cca8ced2918c..261e1c8f839e 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionProperties.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.storagemover.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,6 +18,8 @@ import com.azure.resourcemanager.storagemover.models.ProvisioningState; import com.azure.resourcemanager.storagemover.models.ScheduleInfo; import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.List; /** @@ -125,6 +128,39 @@ public final class JobDefinitionProperties implements JsonSerializable CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else { reader.skipChildren(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionUpdateProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionUpdateProperties.java index e2dc41b85c29..8a6e1534d64d 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionUpdateProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionUpdateProperties.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.storagemover.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -13,6 +14,8 @@ import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; import com.azure.resourcemanager.storagemover.models.ScheduleInfo; import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.List; /** @@ -50,6 +53,16 @@ public final class JobDefinitionUpdateProperties implements JsonSerializable CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else { reader.skipChildren(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionImpl.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionImpl.java index 76b1de7772b9..6e9020999024 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionImpl.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionImpl.java @@ -18,6 +18,7 @@ import com.azure.resourcemanager.storagemover.models.JobType; import com.azure.resourcemanager.storagemover.models.ProvisioningState; import com.azure.resourcemanager.storagemover.models.ScheduleInfo; +import java.time.OffsetDateTime; import java.util.Collections; import java.util.List; @@ -127,6 +128,26 @@ public Boolean preservePermissions() { return this.innerModel().preservePermissions(); } + public Boolean isCrossTenantJob() { + return this.innerModel().isCrossTenantJob(); + } + + public String crossTenantEndpointTenantId() { + return this.innerModel().crossTenantEndpointTenantId(); + } + + public String crossTenantEndpointResourceId() { + return this.innerModel().crossTenantEndpointResourceId(); + } + + public String syncMode() { + return this.innerModel().syncMode(); + } + + public OffsetDateTime moverSyncedUntil() { + return this.innerModel().moverSyncedUntil(); + } + public String resourceGroupName() { return resourceGroupName; } @@ -250,6 +271,16 @@ public JobRunResourceId stopJob() { .stopJob(resourceGroupName, storageMoverName, projectName, jobDefinitionName); } + public Response reconcileJobWithResponse(Context context) { + return serviceManager.jobDefinitions() + .reconcileJobWithResponse(resourceGroupName, storageMoverName, projectName, jobDefinitionName, context); + } + + public JobRunResourceId reconcileJob() { + return serviceManager.jobDefinitions() + .reconcileJob(resourceGroupName, storageMoverName, projectName, jobDefinitionName); + } + public JobDefinitionImpl withCopyMode(CopyMode copyMode) { if (isInCreateMode()) { this.innerModel().withCopyMode(copyMode); @@ -345,6 +376,41 @@ public JobDefinitionImpl withPreservePermissions(Boolean preservePermissions) { return this; } + public JobDefinitionImpl withIsCrossTenantJob(Boolean isCrossTenantJob) { + this.innerModel().withIsCrossTenantJob(isCrossTenantJob); + return this; + } + + public JobDefinitionImpl withCrossTenantEndpointTenantId(String crossTenantEndpointTenantId) { + this.innerModel().withCrossTenantEndpointTenantId(crossTenantEndpointTenantId); + return this; + } + + public JobDefinitionImpl withCrossTenantEndpointResourceId(String crossTenantEndpointResourceId) { + this.innerModel().withCrossTenantEndpointResourceId(crossTenantEndpointResourceId); + return this; + } + + public JobDefinitionImpl withSyncMode(String syncMode) { + if (isInCreateMode()) { + this.innerModel().withSyncMode(syncMode); + return this; + } else { + this.updateJobDefinition.withSyncMode(syncMode); + return this; + } + } + + public JobDefinitionImpl withMoverSyncedUntil(OffsetDateTime moverSyncedUntil) { + if (isInCreateMode()) { + this.innerModel().withMoverSyncedUntil(moverSyncedUntil); + return this; + } else { + this.updateJobDefinition.withMoverSyncedUntil(moverSyncedUntil); + return this; + } + } + private boolean isInCreateMode() { return this.innerModel() == null || this.innerModel().id() == null; } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsClientImpl.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsClientImpl.java index e6417c21c696..2a5218a9f224 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsClientImpl.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsClientImpl.java @@ -225,6 +225,28 @@ Response stopJobSync(@HostParam("endpoint") String endpoi @PathParam("jobDefinitionName") String jobDefinitionName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/reconcileJob") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> reconcileJob(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("storageMoverName") String storageMoverName, @PathParam("projectName") String projectName, + @PathParam("jobDefinitionName") String jobDefinitionName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/reconcileJob") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response reconcileJobSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("storageMoverName") String storageMoverName, @PathParam("projectName") String projectName, + @PathParam("jobDefinitionName") String jobDefinitionName, @HeaderParam("Accept") String accept, + Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -971,6 +993,89 @@ public JobRunResourceIdInner stopJob(String resourceGroupName, String storageMov .getValue(); } + /** + * Post action to reconcile the running job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param projectName The name of the Project resource. + * @param jobDefinitionName The name of the Job Definition resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response that identifies a Job Run along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> reconcileJobWithResponseAsync(String resourceGroupName, + String storageMoverName, String projectName, String jobDefinitionName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.reconcileJob(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, projectName, jobDefinitionName, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Post action to reconcile the running job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param projectName The name of the Project resource. + * @param jobDefinitionName The name of the Job Definition resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response that identifies a Job Run on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono reconcileJobAsync(String resourceGroupName, String storageMoverName, + String projectName, String jobDefinitionName) { + return reconcileJobWithResponseAsync(resourceGroupName, storageMoverName, projectName, jobDefinitionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Post action to reconcile the running job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param projectName The name of the Project resource. + * @param jobDefinitionName The name of the Job Definition resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response that identifies a Job Run along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response reconcileJobWithResponse(String resourceGroupName, String storageMoverName, + String projectName, String jobDefinitionName, Context context) { + final String accept = "application/json"; + return service.reconcileJobSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, projectName, jobDefinitionName, + accept, context); + } + + /** + * Post action to reconcile the running job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param projectName The name of the Project resource. + * @param jobDefinitionName The name of the Job Definition resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response that identifies a Job Run. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public JobRunResourceIdInner reconcileJob(String resourceGroupName, String storageMoverName, String projectName, + String jobDefinitionName) { + return reconcileJobWithResponse(resourceGroupName, storageMoverName, projectName, jobDefinitionName, + Context.NONE).getValue(); + } + /** * Get the next page of items. * diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsImpl.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsImpl.java index 1706f6b9957b..1aa6d8aed877 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsImpl.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsImpl.java @@ -109,6 +109,25 @@ public JobRunResourceId stopJob(String resourceGroupName, String storageMoverNam } } + public Response reconcileJobWithResponse(String resourceGroupName, String storageMoverName, + String projectName, String jobDefinitionName, Context context) { + Response inner = this.serviceClient() + .reconcileJobWithResponse(resourceGroupName, storageMoverName, projectName, jobDefinitionName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new JobRunResourceIdImpl(inner.getValue(), this.manager())); + } + + public JobRunResourceId reconcileJob(String resourceGroupName, String storageMoverName, String projectName, + String jobDefinitionName) { + JobRunResourceIdInner inner + = this.serviceClient().reconcileJob(resourceGroupName, storageMoverName, projectName, jobDefinitionName); + if (inner != null) { + return new JobRunResourceIdImpl(inner, this.manager()); + } else { + return null; + } + } + public JobDefinition getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoverManagementClientImpl.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoverManagementClientImpl.java index 5747af3579d7..d80d48a58654 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoverManagementClientImpl.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoverManagementClientImpl.java @@ -262,7 +262,7 @@ public JobRunsClient getJobRuns() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2025-12-01"; + this.apiVersion = "2026-05-01"; this.operations = new OperationsClientImpl(this); this.storageMovers = new StorageMoversClientImpl(this); this.agents = new AgentsClientImpl(this); diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointProperties.java index 9a43c95c5782..213d0d77957b 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointProperties.java @@ -9,6 +9,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * The properties of Azure Storage blob container endpoint. @@ -30,6 +31,27 @@ public final class AzureStorageBlobContainerEndpointProperties extends EndpointB */ private String blobContainerName; + /* + * Opt-in flag enabling this endpoint to be used as one side of a cross-tenant + * data transfer pair. When set to true, RBAC for the endpoint's managed + * identity is granted on the customer's storage account so that authorization + * can be performed entirely in the tenant where this endpoint lives. Defaults + * to false. Can be updated via PATCH. + */ + private Boolean enableCrossTenantTransfer; + + /* + * Full ARM resource IDs of partner-tenant storage accounts that are allowed + * to be the other side of a cross-tenant data transfer pair with this + * endpoint. For a source endpoint this lists allowed target storage accounts; + * for a target endpoint this lists allowed source storage accounts. + * The full list is replaced on PATCH (omit an entry to remove it; include + * an entry to add it). Mutual presence in both endpoints' allow lists is + * re-validated at every job run start, so removing an entry blocks future + * runs that reference the removed storage account. + */ + private List allowedStorageAccounts; + /** * Creates an instance of AzureStorageBlobContainerEndpointProperties class. */ @@ -88,6 +110,73 @@ public AzureStorageBlobContainerEndpointProperties withBlobContainerName(String return this; } + /** + * Get the enableCrossTenantTransfer property: Opt-in flag enabling this endpoint to be used as one side of a + * cross-tenant + * data transfer pair. When set to true, RBAC for the endpoint's managed + * identity is granted on the customer's storage account so that authorization + * can be performed entirely in the tenant where this endpoint lives. Defaults + * to false. Can be updated via PATCH. + * + * @return the enableCrossTenantTransfer value. + */ + public Boolean enableCrossTenantTransfer() { + return this.enableCrossTenantTransfer; + } + + /** + * Set the enableCrossTenantTransfer property: Opt-in flag enabling this endpoint to be used as one side of a + * cross-tenant + * data transfer pair. When set to true, RBAC for the endpoint's managed + * identity is granted on the customer's storage account so that authorization + * can be performed entirely in the tenant where this endpoint lives. Defaults + * to false. Can be updated via PATCH. + * + * @param enableCrossTenantTransfer the enableCrossTenantTransfer value to set. + * @return the AzureStorageBlobContainerEndpointProperties object itself. + */ + public AzureStorageBlobContainerEndpointProperties + withEnableCrossTenantTransfer(Boolean enableCrossTenantTransfer) { + this.enableCrossTenantTransfer = enableCrossTenantTransfer; + return this; + } + + /** + * Get the allowedStorageAccounts property: Full ARM resource IDs of partner-tenant storage accounts that are + * allowed + * to be the other side of a cross-tenant data transfer pair with this + * endpoint. For a source endpoint this lists allowed target storage accounts; + * for a target endpoint this lists allowed source storage accounts. + * The full list is replaced on PATCH (omit an entry to remove it; include + * an entry to add it). Mutual presence in both endpoints' allow lists is + * re-validated at every job run start, so removing an entry blocks future + * runs that reference the removed storage account. + * + * @return the allowedStorageAccounts value. + */ + public List allowedStorageAccounts() { + return this.allowedStorageAccounts; + } + + /** + * Set the allowedStorageAccounts property: Full ARM resource IDs of partner-tenant storage accounts that are + * allowed + * to be the other side of a cross-tenant data transfer pair with this + * endpoint. For a source endpoint this lists allowed target storage accounts; + * for a target endpoint this lists allowed source storage accounts. + * The full list is replaced on PATCH (omit an entry to remove it; include + * an entry to add it). Mutual presence in both endpoints' allow lists is + * re-validated at every job run start, so removing an entry blocks future + * runs that reference the removed storage account. + * + * @param allowedStorageAccounts the allowedStorageAccounts value to set. + * @return the AzureStorageBlobContainerEndpointProperties object itself. + */ + public AzureStorageBlobContainerEndpointProperties withAllowedStorageAccounts(List allowedStorageAccounts) { + this.allowedStorageAccounts = allowedStorageAccounts; + return this; + } + /** * {@inheritDoc} */ @@ -117,6 +206,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("storageAccountResourceId", this.storageAccountResourceId); jsonWriter.writeStringField("blobContainerName", this.blobContainerName); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); + jsonWriter.writeBooleanField("enableCrossTenantTransfer", this.enableCrossTenantTransfer); + jsonWriter.writeArrayField("allowedStorageAccounts", this.allowedStorageAccounts, + (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -153,6 +245,13 @@ public static AzureStorageBlobContainerEndpointProperties fromJson(JsonReader js } else if ("endpointType".equals(fieldName)) { deserializedAzureStorageBlobContainerEndpointProperties.endpointType = EndpointType.fromString(reader.getString()); + } else if ("enableCrossTenantTransfer".equals(fieldName)) { + deserializedAzureStorageBlobContainerEndpointProperties.enableCrossTenantTransfer + = reader.getNullable(JsonReader::getBoolean); + } else if ("allowedStorageAccounts".equals(fieldName)) { + List allowedStorageAccounts = reader.readArray(reader1 -> reader1.getString()); + deserializedAzureStorageBlobContainerEndpointProperties.allowedStorageAccounts + = allowedStorageAccounts; } else { reader.skipChildren(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointUpdateProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointUpdateProperties.java index 4f50ba3a6305..1a518e351f5d 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointUpdateProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointUpdateProperties.java @@ -9,6 +9,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * The AzureStorageBlobContainerEndpointUpdateProperties model. @@ -20,6 +21,20 @@ public final class AzureStorageBlobContainerEndpointUpdateProperties extends End */ private EndpointType endpointType = EndpointType.AZURE_STORAGE_BLOB_CONTAINER; + /* + * Opt-in flag enabling this endpoint to be used as one side of a cross-tenant + * data transfer pair. Defaults to false. + */ + private Boolean enableCrossTenantTransfer; + + /* + * Replaces the list of partner-tenant storage account ARM IDs allowed to be + * the other side of a cross-tenant data transfer pair with this endpoint. + * Omit an entry to remove it; include an entry to add it. Removing an entry + * blocks future job runs that reference that storage account. + */ + private List allowedStorageAccounts; + /** * Creates an instance of AzureStorageBlobContainerEndpointUpdateProperties class. */ @@ -36,6 +51,60 @@ public EndpointType endpointType() { return this.endpointType; } + /** + * Get the enableCrossTenantTransfer property: Opt-in flag enabling this endpoint to be used as one side of a + * cross-tenant + * data transfer pair. Defaults to false. + * + * @return the enableCrossTenantTransfer value. + */ + public Boolean enableCrossTenantTransfer() { + return this.enableCrossTenantTransfer; + } + + /** + * Set the enableCrossTenantTransfer property: Opt-in flag enabling this endpoint to be used as one side of a + * cross-tenant + * data transfer pair. Defaults to false. + * + * @param enableCrossTenantTransfer the enableCrossTenantTransfer value to set. + * @return the AzureStorageBlobContainerEndpointUpdateProperties object itself. + */ + public AzureStorageBlobContainerEndpointUpdateProperties + withEnableCrossTenantTransfer(Boolean enableCrossTenantTransfer) { + this.enableCrossTenantTransfer = enableCrossTenantTransfer; + return this; + } + + /** + * Get the allowedStorageAccounts property: Replaces the list of partner-tenant storage account ARM IDs allowed to + * be + * the other side of a cross-tenant data transfer pair with this endpoint. + * Omit an entry to remove it; include an entry to add it. Removing an entry + * blocks future job runs that reference that storage account. + * + * @return the allowedStorageAccounts value. + */ + public List allowedStorageAccounts() { + return this.allowedStorageAccounts; + } + + /** + * Set the allowedStorageAccounts property: Replaces the list of partner-tenant storage account ARM IDs allowed to + * be + * the other side of a cross-tenant data transfer pair with this endpoint. + * Omit an entry to remove it; include an entry to add it. Removing an entry + * blocks future job runs that reference that storage account. + * + * @param allowedStorageAccounts the allowedStorageAccounts value to set. + * @return the AzureStorageBlobContainerEndpointUpdateProperties object itself. + */ + public AzureStorageBlobContainerEndpointUpdateProperties + withAllowedStorageAccounts(List allowedStorageAccounts) { + this.allowedStorageAccounts = allowedStorageAccounts; + return this; + } + /** * {@inheritDoc} */ @@ -53,6 +122,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("description", description()); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); + jsonWriter.writeBooleanField("enableCrossTenantTransfer", this.enableCrossTenantTransfer); + jsonWriter.writeArrayField("allowedStorageAccounts", this.allowedStorageAccounts, + (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -77,6 +149,13 @@ public static AzureStorageBlobContainerEndpointUpdateProperties fromJson(JsonRea } else if ("endpointType".equals(fieldName)) { deserializedAzureStorageBlobContainerEndpointUpdateProperties.endpointType = EndpointType.fromString(reader.getString()); + } else if ("enableCrossTenantTransfer".equals(fieldName)) { + deserializedAzureStorageBlobContainerEndpointUpdateProperties.enableCrossTenantTransfer + = reader.getNullable(JsonReader::getBoolean); + } else if ("allowedStorageAccounts".equals(fieldName)) { + List allowedStorageAccounts = reader.readArray(reader1 -> reader1.getString()); + deserializedAzureStorageBlobContainerEndpointUpdateProperties.allowedStorageAccounts + = allowedStorageAccounts; } else { reader.skipChildren(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointProperties.java index 4cb6582062d4..17c6060f6a82 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointProperties.java @@ -9,6 +9,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * The properties of Azure Storage SMB file share endpoint. @@ -30,6 +31,27 @@ public final class AzureStorageSmbFileShareEndpointProperties extends EndpointBa */ private String fileShareName; + /* + * Opt-in flag enabling this endpoint to be used as one side of a cross-tenant + * data transfer pair. When set to true, RBAC for the endpoint's managed + * identity is granted on the customer's storage account so that authorization + * can be performed entirely in the tenant where this endpoint lives. Defaults + * to false. Can be updated via PATCH. + */ + private Boolean enableCrossTenantTransfer; + + /* + * Full ARM resource IDs of partner-tenant storage accounts that are allowed + * to be the other side of a cross-tenant data transfer pair with this + * endpoint. For a source endpoint this lists allowed target storage accounts; + * for a target endpoint this lists allowed source storage accounts. + * The full list is replaced on PATCH (omit an entry to remove it; include + * an entry to add it). Mutual presence in both endpoints' allow lists is + * re-validated at every job run start, so removing an entry blocks future + * runs that reference the removed storage account. + */ + private List allowedStorageAccounts; + /** * Creates an instance of AzureStorageSmbFileShareEndpointProperties class. */ @@ -86,6 +108,72 @@ public AzureStorageSmbFileShareEndpointProperties withFileShareName(String fileS return this; } + /** + * Get the enableCrossTenantTransfer property: Opt-in flag enabling this endpoint to be used as one side of a + * cross-tenant + * data transfer pair. When set to true, RBAC for the endpoint's managed + * identity is granted on the customer's storage account so that authorization + * can be performed entirely in the tenant where this endpoint lives. Defaults + * to false. Can be updated via PATCH. + * + * @return the enableCrossTenantTransfer value. + */ + public Boolean enableCrossTenantTransfer() { + return this.enableCrossTenantTransfer; + } + + /** + * Set the enableCrossTenantTransfer property: Opt-in flag enabling this endpoint to be used as one side of a + * cross-tenant + * data transfer pair. When set to true, RBAC for the endpoint's managed + * identity is granted on the customer's storage account so that authorization + * can be performed entirely in the tenant where this endpoint lives. Defaults + * to false. Can be updated via PATCH. + * + * @param enableCrossTenantTransfer the enableCrossTenantTransfer value to set. + * @return the AzureStorageSmbFileShareEndpointProperties object itself. + */ + public AzureStorageSmbFileShareEndpointProperties withEnableCrossTenantTransfer(Boolean enableCrossTenantTransfer) { + this.enableCrossTenantTransfer = enableCrossTenantTransfer; + return this; + } + + /** + * Get the allowedStorageAccounts property: Full ARM resource IDs of partner-tenant storage accounts that are + * allowed + * to be the other side of a cross-tenant data transfer pair with this + * endpoint. For a source endpoint this lists allowed target storage accounts; + * for a target endpoint this lists allowed source storage accounts. + * The full list is replaced on PATCH (omit an entry to remove it; include + * an entry to add it). Mutual presence in both endpoints' allow lists is + * re-validated at every job run start, so removing an entry blocks future + * runs that reference the removed storage account. + * + * @return the allowedStorageAccounts value. + */ + public List allowedStorageAccounts() { + return this.allowedStorageAccounts; + } + + /** + * Set the allowedStorageAccounts property: Full ARM resource IDs of partner-tenant storage accounts that are + * allowed + * to be the other side of a cross-tenant data transfer pair with this + * endpoint. For a source endpoint this lists allowed target storage accounts; + * for a target endpoint this lists allowed source storage accounts. + * The full list is replaced on PATCH (omit an entry to remove it; include + * an entry to add it). Mutual presence in both endpoints' allow lists is + * re-validated at every job run start, so removing an entry blocks future + * runs that reference the removed storage account. + * + * @param allowedStorageAccounts the allowedStorageAccounts value to set. + * @return the AzureStorageSmbFileShareEndpointProperties object itself. + */ + public AzureStorageSmbFileShareEndpointProperties withAllowedStorageAccounts(List allowedStorageAccounts) { + this.allowedStorageAccounts = allowedStorageAccounts; + return this; + } + /** * {@inheritDoc} */ @@ -115,6 +203,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("storageAccountResourceId", this.storageAccountResourceId); jsonWriter.writeStringField("fileShareName", this.fileShareName); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); + jsonWriter.writeBooleanField("enableCrossTenantTransfer", this.enableCrossTenantTransfer); + jsonWriter.writeArrayField("allowedStorageAccounts", this.allowedStorageAccounts, + (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -151,6 +242,13 @@ public static AzureStorageSmbFileShareEndpointProperties fromJson(JsonReader jso } else if ("endpointType".equals(fieldName)) { deserializedAzureStorageSmbFileShareEndpointProperties.endpointType = EndpointType.fromString(reader.getString()); + } else if ("enableCrossTenantTransfer".equals(fieldName)) { + deserializedAzureStorageSmbFileShareEndpointProperties.enableCrossTenantTransfer + = reader.getNullable(JsonReader::getBoolean); + } else if ("allowedStorageAccounts".equals(fieldName)) { + List allowedStorageAccounts = reader.readArray(reader1 -> reader1.getString()); + deserializedAzureStorageSmbFileShareEndpointProperties.allowedStorageAccounts + = allowedStorageAccounts; } else { reader.skipChildren(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointUpdateProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointUpdateProperties.java index 313cb943dcfd..390527f6c353 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointUpdateProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointUpdateProperties.java @@ -9,6 +9,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * The properties of Azure Storage SMB file share endpoint to update. @@ -20,6 +21,20 @@ public final class AzureStorageSmbFileShareEndpointUpdateProperties extends Endp */ private EndpointType endpointType = EndpointType.AZURE_STORAGE_SMB_FILE_SHARE; + /* + * Opt-in flag enabling this endpoint to be used as one side of a cross-tenant + * data transfer pair. Defaults to false. + */ + private Boolean enableCrossTenantTransfer; + + /* + * Replaces the list of partner-tenant storage account ARM IDs allowed to be + * the other side of a cross-tenant data transfer pair with this endpoint. + * Omit an entry to remove it; include an entry to add it. Removing an entry + * blocks future job runs that reference that storage account. + */ + private List allowedStorageAccounts; + /** * Creates an instance of AzureStorageSmbFileShareEndpointUpdateProperties class. */ @@ -36,6 +51,60 @@ public EndpointType endpointType() { return this.endpointType; } + /** + * Get the enableCrossTenantTransfer property: Opt-in flag enabling this endpoint to be used as one side of a + * cross-tenant + * data transfer pair. Defaults to false. + * + * @return the enableCrossTenantTransfer value. + */ + public Boolean enableCrossTenantTransfer() { + return this.enableCrossTenantTransfer; + } + + /** + * Set the enableCrossTenantTransfer property: Opt-in flag enabling this endpoint to be used as one side of a + * cross-tenant + * data transfer pair. Defaults to false. + * + * @param enableCrossTenantTransfer the enableCrossTenantTransfer value to set. + * @return the AzureStorageSmbFileShareEndpointUpdateProperties object itself. + */ + public AzureStorageSmbFileShareEndpointUpdateProperties + withEnableCrossTenantTransfer(Boolean enableCrossTenantTransfer) { + this.enableCrossTenantTransfer = enableCrossTenantTransfer; + return this; + } + + /** + * Get the allowedStorageAccounts property: Replaces the list of partner-tenant storage account ARM IDs allowed to + * be + * the other side of a cross-tenant data transfer pair with this endpoint. + * Omit an entry to remove it; include an entry to add it. Removing an entry + * blocks future job runs that reference that storage account. + * + * @return the allowedStorageAccounts value. + */ + public List allowedStorageAccounts() { + return this.allowedStorageAccounts; + } + + /** + * Set the allowedStorageAccounts property: Replaces the list of partner-tenant storage account ARM IDs allowed to + * be + * the other side of a cross-tenant data transfer pair with this endpoint. + * Omit an entry to remove it; include an entry to add it. Removing an entry + * blocks future job runs that reference that storage account. + * + * @param allowedStorageAccounts the allowedStorageAccounts value to set. + * @return the AzureStorageSmbFileShareEndpointUpdateProperties object itself. + */ + public AzureStorageSmbFileShareEndpointUpdateProperties + withAllowedStorageAccounts(List allowedStorageAccounts) { + this.allowedStorageAccounts = allowedStorageAccounts; + return this; + } + /** * {@inheritDoc} */ @@ -53,6 +122,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("description", description()); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); + jsonWriter.writeBooleanField("enableCrossTenantTransfer", this.enableCrossTenantTransfer); + jsonWriter.writeArrayField("allowedStorageAccounts", this.allowedStorageAccounts, + (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -77,6 +149,13 @@ public static AzureStorageSmbFileShareEndpointUpdateProperties fromJson(JsonRead } else if ("endpointType".equals(fieldName)) { deserializedAzureStorageSmbFileShareEndpointUpdateProperties.endpointType = EndpointType.fromString(reader.getString()); + } else if ("enableCrossTenantTransfer".equals(fieldName)) { + deserializedAzureStorageSmbFileShareEndpointUpdateProperties.enableCrossTenantTransfer + = reader.getNullable(JsonReader::getBoolean); + } else if ("allowedStorageAccounts".equals(fieldName)) { + List allowedStorageAccounts = reader.readArray(reader1 -> reader1.getString()); + deserializedAzureStorageSmbFileShareEndpointUpdateProperties.allowedStorageAccounts + = allowedStorageAccounts; } else { reader.skipChildren(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Frequency.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Frequency.java index 0db330e95860..aa8d140a00d2 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Frequency.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Frequency.java @@ -36,6 +36,11 @@ public final class Frequency extends ExpandableStringEnum { */ public static final Frequency NONE = fromString("None"); + /** + * Static value Hourly for Frequency. + */ + public static final Frequency HOURLY = fromString("Hourly"); + /** * Creates a new instance of Frequency value. * diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinition.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinition.java index 2db172f8d321..9133c58f6b84 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinition.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinition.java @@ -8,6 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionInner; +import java.time.OffsetDateTime; import java.util.List; /** @@ -185,6 +186,51 @@ public interface JobDefinition { */ Boolean preservePermissions(); + /** + * Gets the isCrossTenantJob property: Indicates that this Job Definition is a cross-tenant job where the + * counterpart endpoint resides in a different Azure AD tenant. When true, + * `crossTenantEndpointTenantId` and `crossTenantEndpointResourceId` must be + * provided. Defaults to false. Cannot be modified after the Job Definition is + * created. + * + * @return the isCrossTenantJob value. + */ + Boolean isCrossTenantJob(); + + /** + * Gets the crossTenantEndpointTenantId property: The Azure AD tenant ID of the cross-tenant source endpoint. + * Required when + * `isCrossTenantJob` is true. Cannot be modified after the Job Definition is + * created. + * + * @return the crossTenantEndpointTenantId value. + */ + String crossTenantEndpointTenantId(); + + /** + * Gets the crossTenantEndpointResourceId property: Full ARM resource ID of the cross-tenant (foreign) endpoint. On + * the + * source-tenant copy this is the TARGET endpoint; on the + * target-tenant copy this is the SOURCE endpoint. + * + * @return the crossTenantEndpointResourceId value. + */ + String crossTenantEndpointResourceId(); + + /** + * Gets the syncMode property: The synchronization mode for the Job Definition. + * + * @return the syncMode value. + */ + String syncMode(); + + /** + * Gets the moverSyncedUntil property: The last time the mover was synchronized. + * + * @return the moverSyncedUntil value. + */ + OffsetDateTime moverSyncedUntil(); + /** * Gets the name of the resource group. * @@ -278,7 +324,10 @@ interface WithTargetName { interface WithCreate extends DefinitionStages.WithDescription, DefinitionStages.WithJobType, DefinitionStages.WithSourceSubpath, DefinitionStages.WithTargetSubpath, DefinitionStages.WithAgentName, DefinitionStages.WithSourceTargetMap, DefinitionStages.WithConnections, DefinitionStages.WithSchedule, - DefinitionStages.WithDataIntegrityValidation, DefinitionStages.WithPreservePermissions { + DefinitionStages.WithDataIntegrityValidation, DefinitionStages.WithPreservePermissions, + DefinitionStages.WithIsCrossTenantJob, DefinitionStages.WithCrossTenantEndpointTenantId, + DefinitionStages.WithCrossTenantEndpointResourceId, DefinitionStages.WithSyncMode, + DefinitionStages.WithMoverSyncedUntil { /** * Executes the create request. * @@ -426,6 +475,91 @@ interface WithPreservePermissions { */ WithCreate withPreservePermissions(Boolean preservePermissions); } + + /** + * The stage of the JobDefinition definition allowing to specify isCrossTenantJob. + */ + interface WithIsCrossTenantJob { + /** + * Specifies the isCrossTenantJob property: Indicates that this Job Definition is a cross-tenant job where + * the + * counterpart endpoint resides in a different Azure AD tenant. When true, + * `crossTenantEndpointTenantId` and `crossTenantEndpointResourceId` must be + * provided. Defaults to false. Cannot be modified after the Job Definition is + * created.. + * + * @param isCrossTenantJob Indicates that this Job Definition is a cross-tenant job where the + * counterpart endpoint resides in a different Azure AD tenant. When true, + * `crossTenantEndpointTenantId` and `crossTenantEndpointResourceId` must be + * provided. Defaults to false. Cannot be modified after the Job Definition is + * created. + * @return the next definition stage. + */ + WithCreate withIsCrossTenantJob(Boolean isCrossTenantJob); + } + + /** + * The stage of the JobDefinition definition allowing to specify crossTenantEndpointTenantId. + */ + interface WithCrossTenantEndpointTenantId { + /** + * Specifies the crossTenantEndpointTenantId property: The Azure AD tenant ID of the cross-tenant source + * endpoint. Required when + * `isCrossTenantJob` is true. Cannot be modified after the Job Definition is + * created.. + * + * @param crossTenantEndpointTenantId The Azure AD tenant ID of the cross-tenant source endpoint. Required + * when + * `isCrossTenantJob` is true. Cannot be modified after the Job Definition is + * created. + * @return the next definition stage. + */ + WithCreate withCrossTenantEndpointTenantId(String crossTenantEndpointTenantId); + } + + /** + * The stage of the JobDefinition definition allowing to specify crossTenantEndpointResourceId. + */ + interface WithCrossTenantEndpointResourceId { + /** + * Specifies the crossTenantEndpointResourceId property: Full ARM resource ID of the cross-tenant (foreign) + * endpoint. On the + * source-tenant copy this is the TARGET endpoint; on the + * target-tenant copy this is the SOURCE endpoint.. + * + * @param crossTenantEndpointResourceId Full ARM resource ID of the cross-tenant (foreign) endpoint. On the + * source-tenant copy this is the TARGET endpoint; on the + * target-tenant copy this is the SOURCE endpoint. + * @return the next definition stage. + */ + WithCreate withCrossTenantEndpointResourceId(String crossTenantEndpointResourceId); + } + + /** + * The stage of the JobDefinition definition allowing to specify syncMode. + */ + interface WithSyncMode { + /** + * Specifies the syncMode property: The synchronization mode for the Job Definition.. + * + * @param syncMode The synchronization mode for the Job Definition. + * @return the next definition stage. + */ + WithCreate withSyncMode(String syncMode); + } + + /** + * The stage of the JobDefinition definition allowing to specify moverSyncedUntil. + */ + interface WithMoverSyncedUntil { + /** + * Specifies the moverSyncedUntil property: The last time the mover was synchronized.. + * + * @param moverSyncedUntil The last time the mover was synchronized. + * @return the next definition stage. + */ + WithCreate withMoverSyncedUntil(OffsetDateTime moverSyncedUntil); + } } /** @@ -439,7 +573,8 @@ interface WithPreservePermissions { * The template for JobDefinition update. */ interface Update extends UpdateStages.WithDescription, UpdateStages.WithCopyMode, UpdateStages.WithAgentName, - UpdateStages.WithConnections, UpdateStages.WithDataIntegrityValidation, UpdateStages.WithSchedule { + UpdateStages.WithConnections, UpdateStages.WithDataIntegrityValidation, UpdateStages.WithSchedule, + UpdateStages.WithSyncMode, UpdateStages.WithMoverSyncedUntil { /** * Executes the update request. * @@ -537,6 +672,32 @@ interface WithSchedule { */ Update withSchedule(ScheduleInfo schedule); } + + /** + * The stage of the JobDefinition update allowing to specify syncMode. + */ + interface WithSyncMode { + /** + * Specifies the syncMode property: The synchronization mode for the Job Definition.. + * + * @param syncMode The synchronization mode for the Job Definition. + * @return the next definition stage. + */ + Update withSyncMode(String syncMode); + } + + /** + * The stage of the JobDefinition update allowing to specify moverSyncedUntil. + */ + interface WithMoverSyncedUntil { + /** + * Specifies the moverSyncedUntil property: The last time the mover was synchronized.. + * + * @param moverSyncedUntil The last time the mover was synchronized. + * @return the next definition stage. + */ + Update withMoverSyncedUntil(OffsetDateTime moverSyncedUntil); + } } /** @@ -593,4 +754,24 @@ interface WithSchedule { * @return response that identifies a Job Run. */ JobRunResourceId stopJob(); + + /** + * Post action to reconcile the running job. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response that identifies a Job Run along with {@link Response}. + */ + Response reconcileJobWithResponse(Context context); + + /** + * Post action to reconcile the running job. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response that identifies a Job Run. + */ + JobRunResourceId reconcileJob(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitionUpdateParameters.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitionUpdateParameters.java index a5e78de9eee8..6a2573be54f1 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitionUpdateParameters.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitionUpdateParameters.java @@ -11,6 +11,7 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionUpdateProperties; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.List; /** @@ -176,6 +177,52 @@ public JobDefinitionUpdateParameters withSchedule(ScheduleInfo schedule) { return this; } + /** + * Get the syncMode property: The synchronization mode for the Job Definition. + * + * @return the syncMode value. + */ + public String syncMode() { + return this.innerProperties() == null ? null : this.innerProperties().syncMode(); + } + + /** + * Set the syncMode property: The synchronization mode for the Job Definition. + * + * @param syncMode the syncMode value to set. + * @return the JobDefinitionUpdateParameters object itself. + */ + public JobDefinitionUpdateParameters withSyncMode(String syncMode) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionUpdateProperties(); + } + this.innerProperties().withSyncMode(syncMode); + return this; + } + + /** + * Get the moverSyncedUntil property: The last time the mover was synchronized. + * + * @return the moverSyncedUntil value. + */ + public OffsetDateTime moverSyncedUntil() { + return this.innerProperties() == null ? null : this.innerProperties().moverSyncedUntil(); + } + + /** + * Set the moverSyncedUntil property: The last time the mover was synchronized. + * + * @param moverSyncedUntil the moverSyncedUntil value to set. + * @return the JobDefinitionUpdateParameters object itself. + */ + public JobDefinitionUpdateParameters withMoverSyncedUntil(OffsetDateTime moverSyncedUntil) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionUpdateProperties(); + } + this.innerProperties().withMoverSyncedUntil(moverSyncedUntil); + return this; + } + /** * {@inheritDoc} */ diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitions.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitions.java index dba8402551b3..0ea543ac270a 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitions.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitions.java @@ -160,6 +160,37 @@ Response stopJobWithResponse(String resourceGroupName, String JobRunResourceId stopJob(String resourceGroupName, String storageMoverName, String projectName, String jobDefinitionName); + /** + * Post action to reconcile the running job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param projectName The name of the Project resource. + * @param jobDefinitionName The name of the Job Definition resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response that identifies a Job Run along with {@link Response}. + */ + Response reconcileJobWithResponse(String resourceGroupName, String storageMoverName, + String projectName, String jobDefinitionName, Context context); + + /** + * Post action to reconcile the running job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param projectName The name of the Project resource. + * @param jobDefinitionName The name of the Job Definition resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response that identifies a Job Run. + */ + JobRunResourceId reconcileJob(String resourceGroupName, String storageMoverName, String projectName, + String jobDefinitionName); + /** * Gets a Job Definition resource. * diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobType.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobType.java index 795c8ee84053..c818238fa2f2 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobType.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobType.java @@ -21,6 +21,11 @@ public final class JobType extends ExpandableStringEnum { */ public static final JobType CLOUD_TO_CLOUD = fromString("CloudToCloud"); + /** + * Static value OnPremToCloudAgentLess for JobType. + */ + public static final JobType ON_PREM_TO_CLOUD_AGENT_LESS = fromString("OnPremToCloudAgentLess"); + /** * Creates a new instance of JobType value. * diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountEndpointProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountEndpointProperties.java index 5db0f0525fd1..3a3a5fcd61d4 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountEndpointProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountEndpointProperties.java @@ -35,6 +35,11 @@ public final class NfsMountEndpointProperties extends EndpointBaseProperties { */ private String export; + /* + * Source type to differentiate NFSMount and FSX-SMB endpoints. Default is NFSMount. + */ + private NfsMountSourceType sourceType; + /** * Creates an instance of NfsMountEndpointProperties class. */ @@ -111,6 +116,26 @@ public NfsMountEndpointProperties withExport(String export) { return this; } + /** + * Get the sourceType property: Source type to differentiate NFSMount and FSX-SMB endpoints. Default is NFSMount. + * + * @return the sourceType value. + */ + public NfsMountSourceType sourceType() { + return this.sourceType; + } + + /** + * Set the sourceType property: Source type to differentiate NFSMount and FSX-SMB endpoints. Default is NFSMount. + * + * @param sourceType the sourceType value to set. + * @return the NfsMountEndpointProperties object itself. + */ + public NfsMountEndpointProperties withSourceType(NfsMountSourceType sourceType) { + this.sourceType = sourceType; + return this; + } + /** * {@inheritDoc} */ @@ -141,6 +166,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("export", this.export); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); jsonWriter.writeStringField("nfsVersion", this.nfsVersion == null ? null : this.nfsVersion.toString()); + jsonWriter.writeStringField("sourceType", this.sourceType == null ? null : this.sourceType.toString()); return jsonWriter.writeEndObject(); } @@ -176,6 +202,9 @@ public static NfsMountEndpointProperties fromJson(JsonReader jsonReader) throws deserializedNfsMountEndpointProperties.endpointType = EndpointType.fromString(reader.getString()); } else if ("nfsVersion".equals(fieldName)) { deserializedNfsMountEndpointProperties.nfsVersion = NfsVersion.fromString(reader.getString()); + } else if ("sourceType".equals(fieldName)) { + deserializedNfsMountEndpointProperties.sourceType + = NfsMountSourceType.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountSourceType.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountSourceType.java new file mode 100644 index 000000000000..3de621e67e2e --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountSourceType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.storagemover.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Source type to differentiate NFSMount and FSX-EFS endpoints. Default is NFSMount. + */ +public final class NfsMountSourceType extends ExpandableStringEnum { + /** + * Static value NfsMount for NfsMountSourceType. + */ + public static final NfsMountSourceType NFS_MOUNT = fromString("NfsMount"); + + /** + * Static value FSX-EFS for NfsMountSourceType. + */ + public static final NfsMountSourceType FSXEFS = fromString("FSX-EFS"); + + /** + * Creates a new instance of NfsMountSourceType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public NfsMountSourceType() { + } + + /** + * Creates or finds a NfsMountSourceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding NfsMountSourceType. + */ + public static NfsMountSourceType fromString(String name) { + return fromString(name, NfsMountSourceType.class); + } + + /** + * Gets known NfsMountSourceType values. + * + * @return known NfsMountSourceType values. + */ + public static Collection values() { + return values(NfsMountSourceType.class); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsVersion.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsVersion.java index 045142b19073..fee49ef9d550 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsVersion.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/NfsVersion.java @@ -26,6 +26,11 @@ public final class NfsVersion extends ExpandableStringEnum { */ public static final NfsVersion NFSV4 = fromString("NFSv4"); + /** + * Static value NFSv4_1 for NfsVersion. + */ + public static final NfsVersion NFSV4_1 = fromString("NFSv4_1"); + /** * Creates a new instance of NfsVersion value. * diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ScheduleInfo.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ScheduleInfo.java index d50886cbe519..553db55d6a69 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ScheduleInfo.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ScheduleInfo.java @@ -60,6 +60,11 @@ public final class ScheduleInfo implements JsonSerializable { */ private OffsetDateTime endDate; + /* + * Repeat interval used for sub-daily schedules. + */ + private String repeatInterval; + /** * Creates an instance of ScheduleInfo class. */ @@ -226,6 +231,26 @@ public ScheduleInfo withEndDate(OffsetDateTime endDate) { return this; } + /** + * Get the repeatInterval property: Repeat interval used for sub-daily schedules. + * + * @return the repeatInterval value. + */ + public String repeatInterval() { + return this.repeatInterval; + } + + /** + * Set the repeatInterval property: Repeat interval used for sub-daily schedules. + * + * @param repeatInterval the repeatInterval value to set. + * @return the ScheduleInfo object itself. + */ + public ScheduleInfo withRepeatInterval(String repeatInterval) { + this.repeatInterval = repeatInterval; + return this; + } + /** * {@inheritDoc} */ @@ -242,6 +267,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("cronExpression", this.cronExpression); jsonWriter.writeStringField("endDate", this.endDate == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endDate)); + jsonWriter.writeStringField("repeatInterval", this.repeatInterval); return jsonWriter.writeEndObject(); } @@ -280,6 +306,8 @@ public static ScheduleInfo fromJson(JsonReader jsonReader) throws IOException { } else if ("endDate".equals(fieldName)) { deserializedScheduleInfo.endDate = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("repeatInterval".equals(fieldName)) { + deserializedScheduleInfo.repeatInterval = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountEndpointProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountEndpointProperties.java index 733b2fa90e38..b23d3d9bf7b6 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountEndpointProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountEndpointProperties.java @@ -35,6 +35,11 @@ public final class SmbMountEndpointProperties extends EndpointBaseProperties { */ private AzureKeyVaultSmbCredentials credentials; + /* + * Source type to differentiate SMBMount and FSX-SMB endpoints. Default is SMBMount. + */ + private SmbMountSourceType sourceType; + /** * Creates an instance of SmbMountEndpointProperties class. */ @@ -113,6 +118,26 @@ public SmbMountEndpointProperties withCredentials(AzureKeyVaultSmbCredentials cr return this; } + /** + * Get the sourceType property: Source type to differentiate SMBMount and FSX-SMB endpoints. Default is SMBMount. + * + * @return the sourceType value. + */ + public SmbMountSourceType sourceType() { + return this.sourceType; + } + + /** + * Set the sourceType property: Source type to differentiate SMBMount and FSX-SMB endpoints. Default is SMBMount. + * + * @param sourceType the sourceType value to set. + * @return the SmbMountEndpointProperties object itself. + */ + public SmbMountEndpointProperties withSourceType(SmbMountSourceType sourceType) { + this.sourceType = sourceType; + return this; + } + /** * {@inheritDoc} */ @@ -143,6 +168,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("shareName", this.shareName); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); jsonWriter.writeJsonField("credentials", this.credentials); + jsonWriter.writeStringField("sourceType", this.sourceType == null ? null : this.sourceType.toString()); return jsonWriter.writeEndObject(); } @@ -178,6 +204,9 @@ public static SmbMountEndpointProperties fromJson(JsonReader jsonReader) throws deserializedSmbMountEndpointProperties.endpointType = EndpointType.fromString(reader.getString()); } else if ("credentials".equals(fieldName)) { deserializedSmbMountEndpointProperties.credentials = AzureKeyVaultSmbCredentials.fromJson(reader); + } else if ("sourceType".equals(fieldName)) { + deserializedSmbMountEndpointProperties.sourceType + = SmbMountSourceType.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountSourceType.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountSourceType.java new file mode 100644 index 000000000000..d4f12950f439 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountSourceType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.storagemover.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Source type to differentiate SMBMount and FSX-SMB endpoints. Default is SMBMount. + */ +public final class SmbMountSourceType extends ExpandableStringEnum { + /** + * Static value SmbMount for SmbMountSourceType. + */ + public static final SmbMountSourceType SMB_MOUNT = fromString("SmbMount"); + + /** + * Static value FSX-SMB for SmbMountSourceType. + */ + public static final SmbMountSourceType FSXSMB = fromString("FSX-SMB"); + + /** + * Creates a new instance of SmbMountSourceType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SmbMountSourceType() { + } + + /** + * Creates or finds a SmbMountSourceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding SmbMountSourceType. + */ + public static SmbMountSourceType fromString(String name) { + return fromString(name, SmbMountSourceType.class); + } + + /** + * Gets known SmbMountSourceType values. + * + * @return known SmbMountSourceType values. + */ + public static Collection values() { + return values(SmbMountSourceType.class); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/resources/META-INF/azure-resourcemanager-storagemover_metadata.json b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/resources/META-INF/azure-resourcemanager-storagemover_metadata.json index 0262c7ce7786..e7dd451067e1 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/resources/META-INF/azure-resourcemanager-storagemover_metadata.json +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/resources/META-INF/azure-resourcemanager-storagemover_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.StorageMover":"2025-12-01"},"crossLanguageDefinitions":{"com.azure.resourcemanager.storagemover.fluent.AgentsClient":"Microsoft.StorageMover.Agents","com.azure.resourcemanager.storagemover.fluent.AgentsClient.beginDelete":"Microsoft.StorageMover.Agents.delete","com.azure.resourcemanager.storagemover.fluent.AgentsClient.createOrUpdate":"Microsoft.StorageMover.Agents.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.AgentsClient.createOrUpdateWithResponse":"Microsoft.StorageMover.Agents.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.AgentsClient.delete":"Microsoft.StorageMover.Agents.delete","com.azure.resourcemanager.storagemover.fluent.AgentsClient.get":"Microsoft.StorageMover.Agents.get","com.azure.resourcemanager.storagemover.fluent.AgentsClient.getWithResponse":"Microsoft.StorageMover.Agents.get","com.azure.resourcemanager.storagemover.fluent.AgentsClient.list":"Microsoft.StorageMover.Agents.list","com.azure.resourcemanager.storagemover.fluent.AgentsClient.update":"Microsoft.StorageMover.Agents.update","com.azure.resourcemanager.storagemover.fluent.AgentsClient.updateWithResponse":"Microsoft.StorageMover.Agents.update","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient":"Microsoft.StorageMover.Connections","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.beginDelete":"Microsoft.StorageMover.Connections.delete","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.createOrUpdate":"Microsoft.StorageMover.Connections.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.createOrUpdateWithResponse":"Microsoft.StorageMover.Connections.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.delete":"Microsoft.StorageMover.Connections.delete","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.get":"Microsoft.StorageMover.Connections.get","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.getWithResponse":"Microsoft.StorageMover.Connections.get","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.list":"Microsoft.StorageMover.Connections.list","com.azure.resourcemanager.storagemover.fluent.EndpointsClient":"Microsoft.StorageMover.Endpoints","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.beginDelete":"Microsoft.StorageMover.Endpoints.delete","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.createOrUpdate":"Microsoft.StorageMover.Endpoints.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.createOrUpdateWithResponse":"Microsoft.StorageMover.Endpoints.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.delete":"Microsoft.StorageMover.Endpoints.delete","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.get":"Microsoft.StorageMover.Endpoints.get","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.getWithResponse":"Microsoft.StorageMover.Endpoints.get","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.list":"Microsoft.StorageMover.Endpoints.list","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.update":"Microsoft.StorageMover.Endpoints.update","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.updateWithResponse":"Microsoft.StorageMover.Endpoints.update","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient":"Microsoft.StorageMover.JobDefinitions","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.beginDelete":"Microsoft.StorageMover.JobDefinitions.delete","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.createOrUpdate":"Microsoft.StorageMover.JobDefinitions.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.createOrUpdateWithResponse":"Microsoft.StorageMover.JobDefinitions.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.delete":"Microsoft.StorageMover.JobDefinitions.delete","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.get":"Microsoft.StorageMover.JobDefinitions.get","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.getWithResponse":"Microsoft.StorageMover.JobDefinitions.get","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.list":"Microsoft.StorageMover.JobDefinitions.list","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.startJob":"Microsoft.StorageMover.JobDefinitions.startJob","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.startJobWithResponse":"Microsoft.StorageMover.JobDefinitions.startJob","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.stopJob":"Microsoft.StorageMover.JobDefinitions.stopJob","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.stopJobWithResponse":"Microsoft.StorageMover.JobDefinitions.stopJob","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.update":"Microsoft.StorageMover.JobDefinitions.update","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.updateWithResponse":"Microsoft.StorageMover.JobDefinitions.update","com.azure.resourcemanager.storagemover.fluent.JobRunsClient":"Microsoft.StorageMover.JobRuns","com.azure.resourcemanager.storagemover.fluent.JobRunsClient.get":"Microsoft.StorageMover.JobRuns.get","com.azure.resourcemanager.storagemover.fluent.JobRunsClient.getWithResponse":"Microsoft.StorageMover.JobRuns.get","com.azure.resourcemanager.storagemover.fluent.JobRunsClient.list":"Microsoft.StorageMover.JobRuns.list","com.azure.resourcemanager.storagemover.fluent.OperationsClient":"Microsoft.StorageMover.Operations","com.azure.resourcemanager.storagemover.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.storagemover.fluent.ProjectsClient":"Microsoft.StorageMover.Projects","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.beginDelete":"Microsoft.StorageMover.Projects.delete","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.createOrUpdate":"Microsoft.StorageMover.Projects.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.createOrUpdateWithResponse":"Microsoft.StorageMover.Projects.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.delete":"Microsoft.StorageMover.Projects.delete","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.get":"Microsoft.StorageMover.Projects.get","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.getWithResponse":"Microsoft.StorageMover.Projects.get","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.list":"Microsoft.StorageMover.Projects.list","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.update":"Microsoft.StorageMover.Projects.update","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.updateWithResponse":"Microsoft.StorageMover.Projects.update","com.azure.resourcemanager.storagemover.fluent.StorageMoverManagementClient":"Microsoft.StorageMover","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient":"Microsoft.StorageMover.StorageMovers","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.beginDelete":"Microsoft.StorageMover.StorageMovers.delete","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.createOrUpdate":"Microsoft.StorageMover.StorageMovers.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.createOrUpdateWithResponse":"Microsoft.StorageMover.StorageMovers.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.delete":"Microsoft.StorageMover.StorageMovers.delete","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.getByResourceGroup":"Microsoft.StorageMover.StorageMovers.get","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.getByResourceGroupWithResponse":"Microsoft.StorageMover.StorageMovers.get","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.list":"Microsoft.StorageMover.StorageMovers.listBySubscription","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.listByResourceGroup":"Microsoft.StorageMover.StorageMovers.list","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.update":"Microsoft.StorageMover.StorageMovers.update","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.updateWithResponse":"Microsoft.StorageMover.StorageMovers.update","com.azure.resourcemanager.storagemover.fluent.models.AgentInner":"Microsoft.StorageMover.Agent","com.azure.resourcemanager.storagemover.fluent.models.AgentProperties":"Microsoft.StorageMover.AgentProperties","com.azure.resourcemanager.storagemover.fluent.models.AgentUpdateProperties":"Microsoft.StorageMover.AgentUpdateProperties","com.azure.resourcemanager.storagemover.fluent.models.ConnectionInner":"Microsoft.StorageMover.Connection","com.azure.resourcemanager.storagemover.fluent.models.EndpointInner":"Microsoft.StorageMover.Endpoint","com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionInner":"Microsoft.StorageMover.JobDefinition","com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionProperties":"Microsoft.StorageMover.JobDefinitionProperties","com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionUpdateProperties":"Microsoft.StorageMover.JobDefinitionUpdateProperties","com.azure.resourcemanager.storagemover.fluent.models.JobRunInner":"Microsoft.StorageMover.JobRun","com.azure.resourcemanager.storagemover.fluent.models.JobRunProperties":"Microsoft.StorageMover.JobRunProperties","com.azure.resourcemanager.storagemover.fluent.models.JobRunResourceIdInner":"Microsoft.StorageMover.JobRunResourceId","com.azure.resourcemanager.storagemover.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.storagemover.fluent.models.ProjectInner":"Microsoft.StorageMover.Project","com.azure.resourcemanager.storagemover.fluent.models.ProjectProperties":"Microsoft.StorageMover.ProjectProperties","com.azure.resourcemanager.storagemover.fluent.models.ProjectUpdateProperties":"Microsoft.StorageMover.ProjectUpdateProperties","com.azure.resourcemanager.storagemover.fluent.models.StorageMoverInner":"Microsoft.StorageMover.StorageMover","com.azure.resourcemanager.storagemover.fluent.models.StorageMoverProperties":"Microsoft.StorageMover.StorageMoverProperties","com.azure.resourcemanager.storagemover.fluent.models.StorageMoverUpdateProperties":"Microsoft.StorageMover.StorageMoverUpdateProperties","com.azure.resourcemanager.storagemover.implementation.StorageMoverManagementClientBuilder":"Microsoft.StorageMover","com.azure.resourcemanager.storagemover.implementation.models.AgentList":"Microsoft.StorageMover.AgentList","com.azure.resourcemanager.storagemover.implementation.models.ConnectionList":"Microsoft.StorageMover.ConnectionList","com.azure.resourcemanager.storagemover.implementation.models.EndpointList":"Microsoft.StorageMover.EndpointList","com.azure.resourcemanager.storagemover.implementation.models.JobDefinitionList":"Microsoft.StorageMover.JobDefinitionList","com.azure.resourcemanager.storagemover.implementation.models.JobRunList":"Microsoft.StorageMover.JobRunList","com.azure.resourcemanager.storagemover.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.storagemover.implementation.models.ProjectList":"Microsoft.StorageMover.ProjectList","com.azure.resourcemanager.storagemover.implementation.models.StorageMoverList":"Microsoft.StorageMover.StorageMoverList","com.azure.resourcemanager.storagemover.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.storagemover.models.AgentPropertiesErrorDetails":"Microsoft.StorageMover.AgentPropertiesErrorDetails","com.azure.resourcemanager.storagemover.models.AgentStatus":"Microsoft.StorageMover.AgentStatus","com.azure.resourcemanager.storagemover.models.AgentUpdateParameters":"Microsoft.StorageMover.AgentUpdateParameters","com.azure.resourcemanager.storagemover.models.AzureKeyVaultS3WithHmacCredentials":"Microsoft.StorageMover.AzureKeyVaultS3WithHmacCredentials","com.azure.resourcemanager.storagemover.models.AzureKeyVaultSmbCredentials":"Microsoft.StorageMover.AzureKeyVaultSmbCredentials","com.azure.resourcemanager.storagemover.models.AzureMultiCloudConnectorEndpointProperties":"Microsoft.StorageMover.AzureMultiCloudConnectorEndpointProperties","com.azure.resourcemanager.storagemover.models.AzureMultiCloudConnectorEndpointUpdateProperties":"Microsoft.StorageMover.AzureMultiCloudConnectorEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.AzureStorageBlobContainerEndpointProperties":"Microsoft.StorageMover.AzureStorageBlobContainerEndpointProperties","com.azure.resourcemanager.storagemover.models.AzureStorageBlobContainerEndpointUpdateProperties":"Microsoft.StorageMover.AzureStorageBlobContainerEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.AzureStorageNfsFileShareEndpointProperties":"Microsoft.StorageMover.AzureStorageNfsFileShareEndpointProperties","com.azure.resourcemanager.storagemover.models.AzureStorageNfsFileShareEndpointUpdateProperties":"Microsoft.StorageMover.AzureStorageNfsFileShareEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.AzureStorageSmbFileShareEndpointProperties":"Microsoft.StorageMover.AzureStorageSmbFileShareEndpointProperties","com.azure.resourcemanager.storagemover.models.AzureStorageSmbFileShareEndpointUpdateProperties":"Microsoft.StorageMover.AzureStorageSmbFileShareEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.ConnectionProperties":"Microsoft.StorageMover.ConnectionProperties","com.azure.resourcemanager.storagemover.models.ConnectionStatus":"Microsoft.StorageMover.ConnectionStatus","com.azure.resourcemanager.storagemover.models.CopyMode":"Microsoft.StorageMover.CopyMode","com.azure.resourcemanager.storagemover.models.CredentialType":"Microsoft.StorageMover.CredentialType","com.azure.resourcemanager.storagemover.models.Credentials":"Microsoft.StorageMover.Credentials","com.azure.resourcemanager.storagemover.models.DataIntegrityValidation":"Microsoft.StorageMover.DataIntegrityValidation","com.azure.resourcemanager.storagemover.models.DayOfWeek":"Microsoft.StorageMover.DayOfWeek","com.azure.resourcemanager.storagemover.models.EndpointBaseProperties":"Microsoft.StorageMover.EndpointBaseProperties","com.azure.resourcemanager.storagemover.models.EndpointBaseUpdateParameters":"Microsoft.StorageMover.EndpointBaseUpdateParameters","com.azure.resourcemanager.storagemover.models.EndpointBaseUpdateProperties":"Microsoft.StorageMover.EndpointBaseUpdateProperties","com.azure.resourcemanager.storagemover.models.EndpointKind":"Microsoft.StorageMover.EndpointKind","com.azure.resourcemanager.storagemover.models.EndpointType":"Microsoft.StorageMover.EndpointType","com.azure.resourcemanager.storagemover.models.Frequency":"Microsoft.StorageMover.Frequency","com.azure.resourcemanager.storagemover.models.JobDefinitionPropertiesSourceTargetMap":"Microsoft.StorageMover.JobDefinitionProperties.sourceTargetMap.anonymous","com.azure.resourcemanager.storagemover.models.JobDefinitionUpdateParameters":"Microsoft.StorageMover.JobDefinitionUpdateParameters","com.azure.resourcemanager.storagemover.models.JobRunError":"Microsoft.StorageMover.JobRunError","com.azure.resourcemanager.storagemover.models.JobRunScanStatus":"Microsoft.StorageMover.JobRunScanStatus","com.azure.resourcemanager.storagemover.models.JobRunStatus":"Microsoft.StorageMover.JobRunStatus","com.azure.resourcemanager.storagemover.models.JobRunWarning":"Microsoft.StorageMover.JobRunWarning","com.azure.resourcemanager.storagemover.models.JobType":"Microsoft.StorageMover.JobType","com.azure.resourcemanager.storagemover.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.storagemover.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.storagemover.models.Minute":"Microsoft.StorageMover.Minute","com.azure.resourcemanager.storagemover.models.NfsMountEndpointProperties":"Microsoft.StorageMover.NfsMountEndpointProperties","com.azure.resourcemanager.storagemover.models.NfsMountEndpointUpdateProperties":"Microsoft.StorageMover.NfsMountEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.NfsVersion":"Microsoft.StorageMover.NfsVersion","com.azure.resourcemanager.storagemover.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.storagemover.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.storagemover.models.ProjectUpdateParameters":"Microsoft.StorageMover.ProjectUpdateParameters","com.azure.resourcemanager.storagemover.models.ProvisioningState":"Microsoft.StorageMover.ProvisioningState","com.azure.resourcemanager.storagemover.models.Recurrence":"Microsoft.StorageMover.Recurrence","com.azure.resourcemanager.storagemover.models.S3WithHmacEndpointProperties":"Microsoft.StorageMover.S3WithHmacEndpointProperties","com.azure.resourcemanager.storagemover.models.S3WithHmacEndpointUpdateProperties":"Microsoft.StorageMover.S3WithHmacEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.S3WithHmacSourceType":"Microsoft.StorageMover.S3WithHmacSourceType","com.azure.resourcemanager.storagemover.models.ScheduleInfo":"Microsoft.StorageMover.ScheduleInfo","com.azure.resourcemanager.storagemover.models.SchedulerTime":"Microsoft.StorageMover.SchedulerTime","com.azure.resourcemanager.storagemover.models.SmbMountEndpointProperties":"Microsoft.StorageMover.SmbMountEndpointProperties","com.azure.resourcemanager.storagemover.models.SmbMountEndpointUpdateProperties":"Microsoft.StorageMover.SmbMountEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.SourceEndpoint":"Microsoft.StorageMover.SourceEndpoint","com.azure.resourcemanager.storagemover.models.SourceEndpointProperties":"Microsoft.StorageMover.SourceEndpointProperties","com.azure.resourcemanager.storagemover.models.SourceTargetMap":"Microsoft.StorageMover.SourceTargetMap","com.azure.resourcemanager.storagemover.models.StorageMoverUpdateParameters":"Microsoft.StorageMover.StorageMoverUpdateParameters","com.azure.resourcemanager.storagemover.models.TargetEndpoint":"Microsoft.StorageMover.TargetEndpoint","com.azure.resourcemanager.storagemover.models.TargetEndpointProperties":"Microsoft.StorageMover.TargetEndpointProperties","com.azure.resourcemanager.storagemover.models.Time":"Microsoft.StorageMover.Time","com.azure.resourcemanager.storagemover.models.TriggerType":"Microsoft.StorageMover.TriggerType","com.azure.resourcemanager.storagemover.models.UploadLimitSchedule":"Microsoft.StorageMover.UploadLimitSchedule","com.azure.resourcemanager.storagemover.models.UploadLimitWeeklyRecurrence":"Microsoft.StorageMover.UploadLimitWeeklyRecurrence","com.azure.resourcemanager.storagemover.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.storagemover.models.WeeklyRecurrence":"Microsoft.StorageMover.WeeklyRecurrence"},"generatedFiles":["src/main/java/com/azure/resourcemanager/storagemover/StorageMoverManager.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/AgentsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/ConnectionsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/EndpointsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/JobDefinitionsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/JobRunsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/ProjectsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/StorageMoverManagementClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/StorageMoversClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/AgentInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/AgentProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/AgentUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ConnectionInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/EndpointInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunResourceIdInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ProjectInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ProjectProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ProjectUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/StorageMoverInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/StorageMoverProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/StorageMoverUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/package-info.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/AgentImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/AgentsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/AgentsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/EndpointImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/EndpointsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/EndpointsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunResourceIdImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ProjectImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ProjectsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ProjectsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoverImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoverManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoverManagementClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoversClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoversImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/AgentList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/ConnectionList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/EndpointList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/JobDefinitionList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/JobRunList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/ProjectList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/StorageMoverList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/package-info.java","src/main/java/com/azure/resourcemanager/storagemover/models/ActionType.java","src/main/java/com/azure/resourcemanager/storagemover/models/Agent.java","src/main/java/com/azure/resourcemanager/storagemover/models/AgentPropertiesErrorDetails.java","src/main/java/com/azure/resourcemanager/storagemover/models/AgentStatus.java","src/main/java/com/azure/resourcemanager/storagemover/models/AgentUpdateParameters.java","src/main/java/com/azure/resourcemanager/storagemover/models/Agents.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureKeyVaultS3WithHmacCredentials.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureKeyVaultSmbCredentials.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureMultiCloudConnectorEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureMultiCloudConnectorEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageNfsFileShareEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageNfsFileShareEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/Connection.java","src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionStatus.java","src/main/java/com/azure/resourcemanager/storagemover/models/Connections.java","src/main/java/com/azure/resourcemanager/storagemover/models/CopyMode.java","src/main/java/com/azure/resourcemanager/storagemover/models/CredentialType.java","src/main/java/com/azure/resourcemanager/storagemover/models/Credentials.java","src/main/java/com/azure/resourcemanager/storagemover/models/DataIntegrityValidation.java","src/main/java/com/azure/resourcemanager/storagemover/models/DayOfWeek.java","src/main/java/com/azure/resourcemanager/storagemover/models/Endpoint.java","src/main/java/com/azure/resourcemanager/storagemover/models/EndpointBaseProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/EndpointBaseUpdateParameters.java","src/main/java/com/azure/resourcemanager/storagemover/models/EndpointBaseUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/EndpointKind.java","src/main/java/com/azure/resourcemanager/storagemover/models/EndpointType.java","src/main/java/com/azure/resourcemanager/storagemover/models/Endpoints.java","src/main/java/com/azure/resourcemanager/storagemover/models/Frequency.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinition.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitionPropertiesSourceTargetMap.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitionUpdateParameters.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitions.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRun.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRunError.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRunResourceId.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRunScanStatus.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRunStatus.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRunWarning.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRuns.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobType.java","src/main/java/com/azure/resourcemanager/storagemover/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/storagemover/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/storagemover/models/Minute.java","src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/NfsVersion.java","src/main/java/com/azure/resourcemanager/storagemover/models/Operation.java","src/main/java/com/azure/resourcemanager/storagemover/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/storagemover/models/Operations.java","src/main/java/com/azure/resourcemanager/storagemover/models/Origin.java","src/main/java/com/azure/resourcemanager/storagemover/models/Project.java","src/main/java/com/azure/resourcemanager/storagemover/models/ProjectUpdateParameters.java","src/main/java/com/azure/resourcemanager/storagemover/models/Projects.java","src/main/java/com/azure/resourcemanager/storagemover/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/storagemover/models/Recurrence.java","src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacSourceType.java","src/main/java/com/azure/resourcemanager/storagemover/models/ScheduleInfo.java","src/main/java/com/azure/resourcemanager/storagemover/models/SchedulerTime.java","src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/SourceEndpoint.java","src/main/java/com/azure/resourcemanager/storagemover/models/SourceEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/SourceTargetMap.java","src/main/java/com/azure/resourcemanager/storagemover/models/StorageMover.java","src/main/java/com/azure/resourcemanager/storagemover/models/StorageMoverUpdateParameters.java","src/main/java/com/azure/resourcemanager/storagemover/models/StorageMovers.java","src/main/java/com/azure/resourcemanager/storagemover/models/TargetEndpoint.java","src/main/java/com/azure/resourcemanager/storagemover/models/TargetEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/Time.java","src/main/java/com/azure/resourcemanager/storagemover/models/TriggerType.java","src/main/java/com/azure/resourcemanager/storagemover/models/UploadLimitSchedule.java","src/main/java/com/azure/resourcemanager/storagemover/models/UploadLimitWeeklyRecurrence.java","src/main/java/com/azure/resourcemanager/storagemover/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/storagemover/models/WeeklyRecurrence.java","src/main/java/com/azure/resourcemanager/storagemover/models/package-info.java","src/main/java/com/azure/resourcemanager/storagemover/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.StorageMover":"2026-05-01"},"crossLanguagePackageId":"Microsoft.StorageMover","crossLanguageVersion":"3f52fe18b277","crossLanguageDefinitions":{"com.azure.resourcemanager.storagemover.fluent.AgentsClient":"Microsoft.StorageMover.Agents","com.azure.resourcemanager.storagemover.fluent.AgentsClient.beginDelete":"Microsoft.StorageMover.Agents.delete","com.azure.resourcemanager.storagemover.fluent.AgentsClient.createOrUpdate":"Microsoft.StorageMover.Agents.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.AgentsClient.createOrUpdateWithResponse":"Microsoft.StorageMover.Agents.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.AgentsClient.delete":"Microsoft.StorageMover.Agents.delete","com.azure.resourcemanager.storagemover.fluent.AgentsClient.get":"Microsoft.StorageMover.Agents.get","com.azure.resourcemanager.storagemover.fluent.AgentsClient.getWithResponse":"Microsoft.StorageMover.Agents.get","com.azure.resourcemanager.storagemover.fluent.AgentsClient.list":"Microsoft.StorageMover.Agents.list","com.azure.resourcemanager.storagemover.fluent.AgentsClient.update":"Microsoft.StorageMover.Agents.update","com.azure.resourcemanager.storagemover.fluent.AgentsClient.updateWithResponse":"Microsoft.StorageMover.Agents.update","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient":"Microsoft.StorageMover.Connections","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.beginDelete":"Microsoft.StorageMover.Connections.delete","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.createOrUpdate":"Microsoft.StorageMover.Connections.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.createOrUpdateWithResponse":"Microsoft.StorageMover.Connections.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.delete":"Microsoft.StorageMover.Connections.delete","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.get":"Microsoft.StorageMover.Connections.get","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.getWithResponse":"Microsoft.StorageMover.Connections.get","com.azure.resourcemanager.storagemover.fluent.ConnectionsClient.list":"Microsoft.StorageMover.Connections.list","com.azure.resourcemanager.storagemover.fluent.EndpointsClient":"Microsoft.StorageMover.Endpoints","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.beginDelete":"Microsoft.StorageMover.Endpoints.delete","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.createOrUpdate":"Microsoft.StorageMover.Endpoints.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.createOrUpdateWithResponse":"Microsoft.StorageMover.Endpoints.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.delete":"Microsoft.StorageMover.Endpoints.delete","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.get":"Microsoft.StorageMover.Endpoints.get","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.getWithResponse":"Microsoft.StorageMover.Endpoints.get","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.list":"Microsoft.StorageMover.Endpoints.list","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.update":"Microsoft.StorageMover.Endpoints.update","com.azure.resourcemanager.storagemover.fluent.EndpointsClient.updateWithResponse":"Microsoft.StorageMover.Endpoints.update","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient":"Microsoft.StorageMover.JobDefinitions","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.beginDelete":"Microsoft.StorageMover.JobDefinitions.delete","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.createOrUpdate":"Microsoft.StorageMover.JobDefinitions.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.createOrUpdateWithResponse":"Microsoft.StorageMover.JobDefinitions.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.delete":"Microsoft.StorageMover.JobDefinitions.delete","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.get":"Microsoft.StorageMover.JobDefinitions.get","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.getWithResponse":"Microsoft.StorageMover.JobDefinitions.get","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.list":"Microsoft.StorageMover.JobDefinitions.list","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.reconcileJob":"Microsoft.StorageMover.JobDefinitions.reconcileJob","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.reconcileJobWithResponse":"Microsoft.StorageMover.JobDefinitions.reconcileJob","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.startJob":"Microsoft.StorageMover.JobDefinitions.startJob","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.startJobWithResponse":"Microsoft.StorageMover.JobDefinitions.startJob","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.stopJob":"Microsoft.StorageMover.JobDefinitions.stopJob","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.stopJobWithResponse":"Microsoft.StorageMover.JobDefinitions.stopJob","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.update":"Microsoft.StorageMover.JobDefinitions.update","com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient.updateWithResponse":"Microsoft.StorageMover.JobDefinitions.update","com.azure.resourcemanager.storagemover.fluent.JobRunsClient":"Microsoft.StorageMover.JobRuns","com.azure.resourcemanager.storagemover.fluent.JobRunsClient.get":"Microsoft.StorageMover.JobRuns.get","com.azure.resourcemanager.storagemover.fluent.JobRunsClient.getWithResponse":"Microsoft.StorageMover.JobRuns.get","com.azure.resourcemanager.storagemover.fluent.JobRunsClient.list":"Microsoft.StorageMover.JobRuns.list","com.azure.resourcemanager.storagemover.fluent.OperationsClient":"Microsoft.StorageMover.Operations","com.azure.resourcemanager.storagemover.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.storagemover.fluent.ProjectsClient":"Microsoft.StorageMover.Projects","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.beginDelete":"Microsoft.StorageMover.Projects.delete","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.createOrUpdate":"Microsoft.StorageMover.Projects.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.createOrUpdateWithResponse":"Microsoft.StorageMover.Projects.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.delete":"Microsoft.StorageMover.Projects.delete","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.get":"Microsoft.StorageMover.Projects.get","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.getWithResponse":"Microsoft.StorageMover.Projects.get","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.list":"Microsoft.StorageMover.Projects.list","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.update":"Microsoft.StorageMover.Projects.update","com.azure.resourcemanager.storagemover.fluent.ProjectsClient.updateWithResponse":"Microsoft.StorageMover.Projects.update","com.azure.resourcemanager.storagemover.fluent.StorageMoverManagementClient":"Microsoft.StorageMover","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient":"Microsoft.StorageMover.StorageMovers","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.beginDelete":"Microsoft.StorageMover.StorageMovers.delete","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.createOrUpdate":"Microsoft.StorageMover.StorageMovers.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.createOrUpdateWithResponse":"Microsoft.StorageMover.StorageMovers.createOrUpdate","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.delete":"Microsoft.StorageMover.StorageMovers.delete","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.getByResourceGroup":"Microsoft.StorageMover.StorageMovers.get","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.getByResourceGroupWithResponse":"Microsoft.StorageMover.StorageMovers.get","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.list":"Microsoft.StorageMover.StorageMovers.listBySubscription","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.listByResourceGroup":"Microsoft.StorageMover.StorageMovers.list","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.update":"Microsoft.StorageMover.StorageMovers.update","com.azure.resourcemanager.storagemover.fluent.StorageMoversClient.updateWithResponse":"Microsoft.StorageMover.StorageMovers.update","com.azure.resourcemanager.storagemover.fluent.models.AgentInner":"Microsoft.StorageMover.Agent","com.azure.resourcemanager.storagemover.fluent.models.AgentProperties":"Microsoft.StorageMover.AgentProperties","com.azure.resourcemanager.storagemover.fluent.models.AgentUpdateProperties":"Microsoft.StorageMover.AgentUpdateProperties","com.azure.resourcemanager.storagemover.fluent.models.ConnectionInner":"Microsoft.StorageMover.Connection","com.azure.resourcemanager.storagemover.fluent.models.EndpointInner":"Microsoft.StorageMover.Endpoint","com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionInner":"Microsoft.StorageMover.JobDefinition","com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionProperties":"Microsoft.StorageMover.JobDefinitionProperties","com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionUpdateProperties":"Microsoft.StorageMover.JobDefinitionUpdateProperties","com.azure.resourcemanager.storagemover.fluent.models.JobRunInner":"Microsoft.StorageMover.JobRun","com.azure.resourcemanager.storagemover.fluent.models.JobRunProperties":"Microsoft.StorageMover.JobRunProperties","com.azure.resourcemanager.storagemover.fluent.models.JobRunResourceIdInner":"Microsoft.StorageMover.JobRunResourceId","com.azure.resourcemanager.storagemover.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.storagemover.fluent.models.ProjectInner":"Microsoft.StorageMover.Project","com.azure.resourcemanager.storagemover.fluent.models.ProjectProperties":"Microsoft.StorageMover.ProjectProperties","com.azure.resourcemanager.storagemover.fluent.models.ProjectUpdateProperties":"Microsoft.StorageMover.ProjectUpdateProperties","com.azure.resourcemanager.storagemover.fluent.models.StorageMoverInner":"Microsoft.StorageMover.StorageMover","com.azure.resourcemanager.storagemover.fluent.models.StorageMoverProperties":"Microsoft.StorageMover.StorageMoverProperties","com.azure.resourcemanager.storagemover.fluent.models.StorageMoverUpdateProperties":"Microsoft.StorageMover.StorageMoverUpdateProperties","com.azure.resourcemanager.storagemover.implementation.StorageMoverManagementClientBuilder":"Microsoft.StorageMover","com.azure.resourcemanager.storagemover.implementation.models.AgentList":"Microsoft.StorageMover.AgentList","com.azure.resourcemanager.storagemover.implementation.models.ConnectionList":"Microsoft.StorageMover.ConnectionList","com.azure.resourcemanager.storagemover.implementation.models.EndpointList":"Microsoft.StorageMover.EndpointList","com.azure.resourcemanager.storagemover.implementation.models.JobDefinitionList":"Microsoft.StorageMover.JobDefinitionList","com.azure.resourcemanager.storagemover.implementation.models.JobRunList":"Microsoft.StorageMover.JobRunList","com.azure.resourcemanager.storagemover.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.storagemover.implementation.models.ProjectList":"Microsoft.StorageMover.ProjectList","com.azure.resourcemanager.storagemover.implementation.models.StorageMoverList":"Microsoft.StorageMover.StorageMoverList","com.azure.resourcemanager.storagemover.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.storagemover.models.AgentPropertiesErrorDetails":"Microsoft.StorageMover.AgentPropertiesErrorDetails","com.azure.resourcemanager.storagemover.models.AgentStatus":"Microsoft.StorageMover.AgentStatus","com.azure.resourcemanager.storagemover.models.AgentUpdateParameters":"Microsoft.StorageMover.AgentUpdateParameters","com.azure.resourcemanager.storagemover.models.AzureKeyVaultS3WithHmacCredentials":"Microsoft.StorageMover.AzureKeyVaultS3WithHmacCredentials","com.azure.resourcemanager.storagemover.models.AzureKeyVaultSmbCredentials":"Microsoft.StorageMover.AzureKeyVaultSmbCredentials","com.azure.resourcemanager.storagemover.models.AzureMultiCloudConnectorEndpointProperties":"Microsoft.StorageMover.AzureMultiCloudConnectorEndpointProperties","com.azure.resourcemanager.storagemover.models.AzureMultiCloudConnectorEndpointUpdateProperties":"Microsoft.StorageMover.AzureMultiCloudConnectorEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.AzureStorageBlobContainerEndpointProperties":"Microsoft.StorageMover.AzureStorageBlobContainerEndpointProperties","com.azure.resourcemanager.storagemover.models.AzureStorageBlobContainerEndpointUpdateProperties":"Microsoft.StorageMover.AzureStorageBlobContainerEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.AzureStorageNfsFileShareEndpointProperties":"Microsoft.StorageMover.AzureStorageNfsFileShareEndpointProperties","com.azure.resourcemanager.storagemover.models.AzureStorageNfsFileShareEndpointUpdateProperties":"Microsoft.StorageMover.AzureStorageNfsFileShareEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.AzureStorageSmbFileShareEndpointProperties":"Microsoft.StorageMover.AzureStorageSmbFileShareEndpointProperties","com.azure.resourcemanager.storagemover.models.AzureStorageSmbFileShareEndpointUpdateProperties":"Microsoft.StorageMover.AzureStorageSmbFileShareEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.ConnectionProperties":"Microsoft.StorageMover.ConnectionProperties","com.azure.resourcemanager.storagemover.models.ConnectionStatus":"Microsoft.StorageMover.ConnectionStatus","com.azure.resourcemanager.storagemover.models.CopyMode":"Microsoft.StorageMover.CopyMode","com.azure.resourcemanager.storagemover.models.CredentialType":"Microsoft.StorageMover.CredentialType","com.azure.resourcemanager.storagemover.models.Credentials":"Microsoft.StorageMover.Credentials","com.azure.resourcemanager.storagemover.models.DataIntegrityValidation":"Microsoft.StorageMover.DataIntegrityValidation","com.azure.resourcemanager.storagemover.models.DayOfWeek":"Microsoft.StorageMover.DayOfWeek","com.azure.resourcemanager.storagemover.models.EndpointBaseProperties":"Microsoft.StorageMover.EndpointBaseProperties","com.azure.resourcemanager.storagemover.models.EndpointBaseUpdateParameters":"Microsoft.StorageMover.EndpointBaseUpdateParameters","com.azure.resourcemanager.storagemover.models.EndpointBaseUpdateProperties":"Microsoft.StorageMover.EndpointBaseUpdateProperties","com.azure.resourcemanager.storagemover.models.EndpointKind":"Microsoft.StorageMover.EndpointKind","com.azure.resourcemanager.storagemover.models.EndpointType":"Microsoft.StorageMover.EndpointType","com.azure.resourcemanager.storagemover.models.Frequency":"Microsoft.StorageMover.Frequency","com.azure.resourcemanager.storagemover.models.JobDefinitionPropertiesSourceTargetMap":"Microsoft.StorageMover.JobDefinitionProperties.sourceTargetMap.anonymous","com.azure.resourcemanager.storagemover.models.JobDefinitionUpdateParameters":"Microsoft.StorageMover.JobDefinitionUpdateParameters","com.azure.resourcemanager.storagemover.models.JobRunError":"Microsoft.StorageMover.JobRunError","com.azure.resourcemanager.storagemover.models.JobRunScanStatus":"Microsoft.StorageMover.JobRunScanStatus","com.azure.resourcemanager.storagemover.models.JobRunStatus":"Microsoft.StorageMover.JobRunStatus","com.azure.resourcemanager.storagemover.models.JobRunWarning":"Microsoft.StorageMover.JobRunWarning","com.azure.resourcemanager.storagemover.models.JobType":"Microsoft.StorageMover.JobType","com.azure.resourcemanager.storagemover.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.storagemover.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.storagemover.models.Minute":"Microsoft.StorageMover.Minute","com.azure.resourcemanager.storagemover.models.NfsMountEndpointProperties":"Microsoft.StorageMover.NfsMountEndpointProperties","com.azure.resourcemanager.storagemover.models.NfsMountEndpointUpdateProperties":"Microsoft.StorageMover.NfsMountEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.NfsMountSourceType":"Microsoft.StorageMover.NfsMountSourceType","com.azure.resourcemanager.storagemover.models.NfsVersion":"Microsoft.StorageMover.NfsVersion","com.azure.resourcemanager.storagemover.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.storagemover.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.storagemover.models.ProjectUpdateParameters":"Microsoft.StorageMover.ProjectUpdateParameters","com.azure.resourcemanager.storagemover.models.ProvisioningState":"Microsoft.StorageMover.ProvisioningState","com.azure.resourcemanager.storagemover.models.Recurrence":"Microsoft.StorageMover.Recurrence","com.azure.resourcemanager.storagemover.models.S3WithHmacEndpointProperties":"Microsoft.StorageMover.S3WithHmacEndpointProperties","com.azure.resourcemanager.storagemover.models.S3WithHmacEndpointUpdateProperties":"Microsoft.StorageMover.S3WithHmacEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.S3WithHmacSourceType":"Microsoft.StorageMover.S3WithHmacSourceType","com.azure.resourcemanager.storagemover.models.ScheduleInfo":"Microsoft.StorageMover.ScheduleInfo","com.azure.resourcemanager.storagemover.models.SchedulerTime":"Microsoft.StorageMover.SchedulerTime","com.azure.resourcemanager.storagemover.models.SmbMountEndpointProperties":"Microsoft.StorageMover.SmbMountEndpointProperties","com.azure.resourcemanager.storagemover.models.SmbMountEndpointUpdateProperties":"Microsoft.StorageMover.SmbMountEndpointUpdateProperties","com.azure.resourcemanager.storagemover.models.SmbMountSourceType":"Microsoft.StorageMover.SmbMountSourceType","com.azure.resourcemanager.storagemover.models.SourceEndpoint":"Microsoft.StorageMover.SourceEndpoint","com.azure.resourcemanager.storagemover.models.SourceEndpointProperties":"Microsoft.StorageMover.SourceEndpointProperties","com.azure.resourcemanager.storagemover.models.SourceTargetMap":"Microsoft.StorageMover.SourceTargetMap","com.azure.resourcemanager.storagemover.models.StorageMoverUpdateParameters":"Microsoft.StorageMover.StorageMoverUpdateParameters","com.azure.resourcemanager.storagemover.models.TargetEndpoint":"Microsoft.StorageMover.TargetEndpoint","com.azure.resourcemanager.storagemover.models.TargetEndpointProperties":"Microsoft.StorageMover.TargetEndpointProperties","com.azure.resourcemanager.storagemover.models.Time":"Microsoft.StorageMover.Time","com.azure.resourcemanager.storagemover.models.TriggerType":"Microsoft.StorageMover.TriggerType","com.azure.resourcemanager.storagemover.models.UploadLimitSchedule":"Microsoft.StorageMover.UploadLimitSchedule","com.azure.resourcemanager.storagemover.models.UploadLimitWeeklyRecurrence":"Microsoft.StorageMover.UploadLimitWeeklyRecurrence","com.azure.resourcemanager.storagemover.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.storagemover.models.WeeklyRecurrence":"Microsoft.StorageMover.WeeklyRecurrence"},"generatedFiles":["src/main/java/com/azure/resourcemanager/storagemover/StorageMoverManager.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/AgentsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/ConnectionsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/EndpointsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/JobDefinitionsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/JobRunsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/ProjectsClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/StorageMoverManagementClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/StorageMoversClient.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/AgentInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/AgentProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/AgentUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ConnectionInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/EndpointInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobDefinitionUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunResourceIdInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ProjectInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ProjectProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ProjectUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/StorageMoverInner.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/StorageMoverProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/StorageMoverUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/storagemover/fluent/package-info.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/AgentImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/AgentsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/AgentsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/EndpointImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/EndpointsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/EndpointsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobDefinitionsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunResourceIdImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ProjectImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ProjectsClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ProjectsImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoverImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoverManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoverManagementClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoversClientImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/StorageMoversImpl.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/AgentList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/ConnectionList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/EndpointList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/JobDefinitionList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/JobRunList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/ProjectList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/models/StorageMoverList.java","src/main/java/com/azure/resourcemanager/storagemover/implementation/package-info.java","src/main/java/com/azure/resourcemanager/storagemover/models/ActionType.java","src/main/java/com/azure/resourcemanager/storagemover/models/Agent.java","src/main/java/com/azure/resourcemanager/storagemover/models/AgentPropertiesErrorDetails.java","src/main/java/com/azure/resourcemanager/storagemover/models/AgentStatus.java","src/main/java/com/azure/resourcemanager/storagemover/models/AgentUpdateParameters.java","src/main/java/com/azure/resourcemanager/storagemover/models/Agents.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureKeyVaultS3WithHmacCredentials.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureKeyVaultSmbCredentials.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureMultiCloudConnectorEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureMultiCloudConnectorEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageBlobContainerEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageNfsFileShareEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageNfsFileShareEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageSmbFileShareEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/Connection.java","src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionStatus.java","src/main/java/com/azure/resourcemanager/storagemover/models/Connections.java","src/main/java/com/azure/resourcemanager/storagemover/models/CopyMode.java","src/main/java/com/azure/resourcemanager/storagemover/models/CredentialType.java","src/main/java/com/azure/resourcemanager/storagemover/models/Credentials.java","src/main/java/com/azure/resourcemanager/storagemover/models/DataIntegrityValidation.java","src/main/java/com/azure/resourcemanager/storagemover/models/DayOfWeek.java","src/main/java/com/azure/resourcemanager/storagemover/models/Endpoint.java","src/main/java/com/azure/resourcemanager/storagemover/models/EndpointBaseProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/EndpointBaseUpdateParameters.java","src/main/java/com/azure/resourcemanager/storagemover/models/EndpointBaseUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/EndpointKind.java","src/main/java/com/azure/resourcemanager/storagemover/models/EndpointType.java","src/main/java/com/azure/resourcemanager/storagemover/models/Endpoints.java","src/main/java/com/azure/resourcemanager/storagemover/models/Frequency.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinition.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitionPropertiesSourceTargetMap.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitionUpdateParameters.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobDefinitions.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRun.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRunError.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRunResourceId.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRunScanStatus.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRunStatus.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRunWarning.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobRuns.java","src/main/java/com/azure/resourcemanager/storagemover/models/JobType.java","src/main/java/com/azure/resourcemanager/storagemover/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/storagemover/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/storagemover/models/Minute.java","src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/NfsMountSourceType.java","src/main/java/com/azure/resourcemanager/storagemover/models/NfsVersion.java","src/main/java/com/azure/resourcemanager/storagemover/models/Operation.java","src/main/java/com/azure/resourcemanager/storagemover/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/storagemover/models/Operations.java","src/main/java/com/azure/resourcemanager/storagemover/models/Origin.java","src/main/java/com/azure/resourcemanager/storagemover/models/Project.java","src/main/java/com/azure/resourcemanager/storagemover/models/ProjectUpdateParameters.java","src/main/java/com/azure/resourcemanager/storagemover/models/Projects.java","src/main/java/com/azure/resourcemanager/storagemover/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/storagemover/models/Recurrence.java","src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacSourceType.java","src/main/java/com/azure/resourcemanager/storagemover/models/ScheduleInfo.java","src/main/java/com/azure/resourcemanager/storagemover/models/SchedulerTime.java","src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountEndpointUpdateProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/SmbMountSourceType.java","src/main/java/com/azure/resourcemanager/storagemover/models/SourceEndpoint.java","src/main/java/com/azure/resourcemanager/storagemover/models/SourceEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/SourceTargetMap.java","src/main/java/com/azure/resourcemanager/storagemover/models/StorageMover.java","src/main/java/com/azure/resourcemanager/storagemover/models/StorageMoverUpdateParameters.java","src/main/java/com/azure/resourcemanager/storagemover/models/StorageMovers.java","src/main/java/com/azure/resourcemanager/storagemover/models/TargetEndpoint.java","src/main/java/com/azure/resourcemanager/storagemover/models/TargetEndpointProperties.java","src/main/java/com/azure/resourcemanager/storagemover/models/Time.java","src/main/java/com/azure/resourcemanager/storagemover/models/TriggerType.java","src/main/java/com/azure/resourcemanager/storagemover/models/UploadLimitSchedule.java","src/main/java/com/azure/resourcemanager/storagemover/models/UploadLimitWeeklyRecurrence.java","src/main/java/com/azure/resourcemanager/storagemover/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/storagemover/models/WeeklyRecurrence.java","src/main/java/com/azure/resourcemanager/storagemover/models/package-info.java","src/main/java/com/azure/resourcemanager/storagemover/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsCreateOrUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsCreateOrUpdateSamples.java index 19c98ad0917b..fcbfa9f57f3c 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsCreateOrUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class AgentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_MaximumSet.json + * x-ms-original-file: 2026-05-01/Agents_CreateOrUpdate_MaximumSet.json */ /** * Sample code: Agents_CreateOrUpdate_MaximumSet. @@ -41,7 +41,7 @@ public final class AgentsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_UploadLimitSchedule_Overnight.json + * x-ms-original-file: 2026-05-01/Agents_CreateOrUpdate_UploadLimitSchedule_Overnight.json */ /** * Sample code: Agents_CreateOrUpdate_WithOvernightUploadLimitSchedule. @@ -71,7 +71,7 @@ public static void agentsCreateOrUpdateWithOvernightUploadLimitSchedule( } /* - * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_MinimumSet.json + * x-ms-original-file: 2026-05-01/Agents_CreateOrUpdate_MinimumSet.json */ /** * Sample code: Agents_CreateOrUpdate_MinimumSet. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsDeleteSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsDeleteSamples.java index 5d2b138c3a36..3a83d657798a 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsDeleteSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AgentsDeleteSamples { /* - * x-ms-original-file: 2025-12-01/Agents_Delete.json + * x-ms-original-file: 2026-05-01/Agents_Delete.json */ /** * Sample code: Agents_Delete. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsGetSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsGetSamples.java index fca56b9b446d..7df75be06d19 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsGetSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AgentsGetSamples { /* - * x-ms-original-file: 2025-12-01/Agents_Get_MaximumSet.json + * x-ms-original-file: 2026-05-01/Agents_Get_MaximumSet.json */ /** * Sample code: Agents_Get_MaximumSet. @@ -23,7 +23,7 @@ public static void agentsGetMaximumSet(com.azure.resourcemanager.storagemover.St } /* - * x-ms-original-file: 2025-12-01/Agents_Get_MinimumSet.json + * x-ms-original-file: 2026-05-01/Agents_Get_MinimumSet.json */ /** * Sample code: Agents_Get_MinimumSet. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsListSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsListSamples.java index d37592faebd5..2a44b4a74e45 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsListSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsListSamples.java @@ -9,7 +9,7 @@ */ public final class AgentsListSamples { /* - * x-ms-original-file: 2025-12-01/Agents_List_MaximumSet.json + * x-ms-original-file: 2026-05-01/Agents_List_MaximumSet.json */ /** * Sample code: Agents_List_MaximumSet. @@ -21,7 +21,7 @@ public static void agentsListMaximumSet(com.azure.resourcemanager.storagemover.S } /* - * x-ms-original-file: 2025-12-01/Agents_List_MinimumSet.json + * x-ms-original-file: 2026-05-01/Agents_List_MinimumSet.json */ /** * Sample code: Agents_List_MinimumSet. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsUpdateSamples.java index 4ce283ca4910..1496de2e4215 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/AgentsUpdateSamples.java @@ -17,7 +17,7 @@ */ public final class AgentsUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Agents_Update.json + * x-ms-original-file: 2026-05-01/Agents_Update.json */ /** * Sample code: Agents_Update. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateSamples.java index 80b938aa00a2..f01a41f3f946 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class ConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Connections_CreateOrUpdate.json + * x-ms-original-file: 2026-05-01/Connections_CreateOrUpdate.json */ /** * Sample code: Connections_CreateOrUpdate. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsDeleteSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsDeleteSamples.java index 434737023b64..6105885555fc 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsDeleteSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectionsDeleteSamples { /* - * x-ms-original-file: 2025-12-01/Connections_Delete.json + * x-ms-original-file: 2026-05-01/Connections_Delete.json */ /** * Sample code: Connections_Delete. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetSamples.java index 5c332c64f512..3d6aedc0d67f 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectionsGetSamples { /* - * x-ms-original-file: 2025-12-01/Connections_Get.json + * x-ms-original-file: 2026-05-01/Connections_Get.json */ /** * Sample code: Connections_Get. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListSamples.java index ad73285e3371..3f67e492dcfa 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectionsListSamples { /* - * x-ms-original-file: 2025-12-01/Connections_List.json + * x-ms-original-file: 2026-05-01/Connections_List.json */ /** * Sample code: Connections_List. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsCreateOrUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsCreateOrUpdateSamples.java index a40979f1570b..e98bfae21abe 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsCreateOrUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsCreateOrUpdateSamples.java @@ -11,7 +11,24 @@ */ public final class EndpointsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageNfsFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare_CrossTenant.json + */ + /** + * Sample code: Endpoints_CreateOrUpdate_AzureStorageSmbFileShare_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsCreateOrUpdateAzureStorageSmbFileShareCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.endpoints() + .define("examples-endpointName") + .withExistingStorageMover("examples-rg", "examples-storageMoverName") + .withProperties((EndpointBaseProperties) null) + .create(); + } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageNfsFileShare. @@ -28,7 +45,24 @@ public static void endpointsCreateOrUpdateAzureStorageNfsFileShare( } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_S3WithHMAC.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer_CrossTenant.json + */ + /** + * Sample code: Endpoints_CreateOrUpdate_AzureStorageBlobContainer_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsCreateOrUpdateAzureStorageBlobContainerCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.endpoints() + .define("examples-endpointName") + .withExistingStorageMover("examples-rg", "examples-storageMoverName") + .withProperties((EndpointBaseProperties) null) + .create(); + } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_S3WithHMAC.json */ /** * Sample code: Endpoints_CreateOrUpdate_S3WithHmac. @@ -45,7 +79,7 @@ public static void endpointsCreateOrUpdateAzureStorageNfsFileShare( } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureMultiCloudConnector.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureMultiCloudConnector. @@ -62,7 +96,7 @@ public static void endpointsCreateOrUpdateAzureMultiCloudConnector( } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageBlobContainer. @@ -79,7 +113,7 @@ public static void endpointsCreateOrUpdateAzureStorageBlobContainer( } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_NfsMount.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_NfsMount.json */ /** * Sample code: Endpoints_CreateOrUpdate_NfsMount. @@ -96,7 +130,7 @@ public static void endpointsCreateOrUpdateAzureStorageBlobContainer( } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageSmbFileShare. @@ -113,7 +147,7 @@ public static void endpointsCreateOrUpdateAzureStorageSmbFileShare( } /* - * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_SmbMount.json + * x-ms-original-file: 2026-05-01/Endpoints_CreateOrUpdate_SmbMount.json */ /** * Sample code: Endpoints_CreateOrUpdate_SmbMount. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsDeleteSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsDeleteSamples.java index 18464ca6a958..cb23b0b9058b 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsDeleteSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class EndpointsDeleteSamples { /* - * x-ms-original-file: 2025-12-01/Endpoints_Delete.json + * x-ms-original-file: 2026-05-01/Endpoints_Delete.json */ /** * Sample code: Endpoints_Delete. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsGetSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsGetSamples.java index efda1f1e72d1..e734b29d4309 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsGetSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsGetSamples.java @@ -9,7 +9,7 @@ */ public final class EndpointsGetSamples { /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureStorageNfsFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_Get_AzureStorageNfsFileShare. @@ -24,7 +24,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_SmbMount.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_SmbMount.json */ /** * Sample code: Endpoints_Get_SmbMount. @@ -38,7 +38,7 @@ public static void endpointsGetSmbMount(com.azure.resourcemanager.storagemover.S } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_S3WithHMAC.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_S3WithHMAC.json */ /** * Sample code: Endpoints_Get_S3WithHmac. @@ -52,7 +52,7 @@ public static void endpointsGetS3WithHmac(com.azure.resourcemanager.storagemover } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureStorageBlobContainer.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_Get_AzureStorageBlobContainer. @@ -67,7 +67,22 @@ public static void endpointsGetS3WithHmac(com.azure.resourcemanager.storagemover } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_NfsMount.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureStorageBlobContainer_CrossTenant.json + */ + /** + * Sample code: Endpoints_Get_AzureStorageBlobContainer_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsGetAzureStorageBlobContainerCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.endpoints() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-endpointName", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_Get_NfsMount.json */ /** * Sample code: Endpoints_Get_NfsMount. @@ -81,7 +96,7 @@ public static void endpointsGetNfsMount(com.azure.resourcemanager.storagemover.S } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureStorageSmbFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_Get_AzureStorageSmbFileShare. @@ -96,7 +111,7 @@ public static void endpointsGetNfsMount(com.azure.resourcemanager.storagemover.S } /* - * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureMultiCloudConnector.json + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_Get_AzureMultiCloudConnector. @@ -109,4 +124,19 @@ public static void endpointsGetNfsMount(com.azure.resourcemanager.storagemover.S .getWithResponse("examples-rg", "examples-storageMoverName", "examples-endpointName", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_Get_AzureStorageSmbFileShare_CrossTenant.json + */ + /** + * Sample code: Endpoints_Get_AzureStorageSmbFileShare_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsGetAzureStorageSmbFileShareCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.endpoints() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-endpointName", + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsListSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsListSamples.java index a85cf20e28a2..5ae76310214f 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsListSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsListSamples.java @@ -9,7 +9,7 @@ */ public final class EndpointsListSamples { /* - * x-ms-original-file: 2025-12-01/Endpoints_List.json + * x-ms-original-file: 2026-05-01/Endpoints_List.json */ /** * Sample code: Endpoints_List. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsUpdateSamples.java index 344e3b5107f5..fe31c68a763c 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/EndpointsUpdateSamples.java @@ -11,7 +11,24 @@ */ public final class EndpointsUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureMultiCloudConnector.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureStorageSmbFileShare_CrossTenant.json + */ + /** + * Sample code: Endpoints_Update_AzureStorageSmbFileShare_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsUpdateAzureStorageSmbFileShareCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + Endpoint resource = manager.endpoints() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-endpointName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_Update_AzureMultiCloudConnector. @@ -28,7 +45,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageNfsFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_Update_AzureStorageNfsFileShare. @@ -45,7 +62,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_NfsMount.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_NfsMount.json */ /** * Sample code: Endpoints_Update_NfsMount. @@ -61,7 +78,7 @@ public static void endpointsUpdateNfsMount(com.azure.resourcemanager.storagemove } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageSmbFileShare.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_Update_AzureStorageSmbFileShare. @@ -78,7 +95,7 @@ public static void endpointsUpdateNfsMount(com.azure.resourcemanager.storagemove } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageBlobContainer.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_Update_AzureStorageBlobContainer. @@ -95,7 +112,7 @@ public static void endpointsUpdateNfsMount(com.azure.resourcemanager.storagemove } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_SmbMount.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_SmbMount.json */ /** * Sample code: Endpoints_Update_SmbMount. @@ -111,7 +128,24 @@ public static void endpointsUpdateSmbMount(com.azure.resourcemanager.storagemove } /* - * x-ms-original-file: 2025-12-01/Endpoints_Update_S3WithHMAC.json + * x-ms-original-file: 2026-05-01/Endpoints_Update_AzureStorageBlobContainer_CrossTenant.json + */ + /** + * Sample code: Endpoints_Update_AzureStorageBlobContainer_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsUpdateAzureStorageBlobContainerCrossTenant( + com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + Endpoint resource = manager.endpoints() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-endpointName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + + /* + * x-ms-original-file: 2026-05-01/Endpoints_Update_S3WithHMAC.json */ /** * Sample code: Endpoints_Update_S3WithHmac. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsCreateOrUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsCreateOrUpdateSamples.java index d28cd424e3f1..6bbda03488a0 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsCreateOrUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsCreateOrUpdateSamples.java @@ -18,7 +18,7 @@ */ public final class JobDefinitionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_CreateOrUpdate_With_Schedule.json + * x-ms-original-file: 2026-05-01/JobDefinitions_CreateOrUpdate_With_Schedule.json */ /** * Sample code: JobDefinitions_CreateOrUpdate_With_Schedule. @@ -43,14 +43,14 @@ public final class JobDefinitionsCreateOrUpdateSamples { .withSchedule(new ScheduleInfo().withFrequency(Frequency.WEEKLY) .withIsActive(true) .withExecutionTime(new SchedulerTime().withHour(9).withMinute(Minute.ZERO)) - .withStartDate(OffsetDateTime.parse("2025-12-01T00:00:00Z")) + .withStartDate(OffsetDateTime.parse("2026-05-01T00:00:00Z")) .withDaysOfWeek(Arrays.asList("Monday", "Wednesday", "Friday")) .withEndDate(OffsetDateTime.parse("2025-12-31T12:00:00Z"))) .create(); } /* - * x-ms-original-file: 2025-12-01/JobDefinitions_CreateOrUpdate_CloudToCloud.json + * x-ms-original-file: 2026-05-01/JobDefinitions_CreateOrUpdate_CloudToCloud.json */ /** * Sample code: JobDefinitions_CreateOrUpdate_CloudToCloud. @@ -72,11 +72,13 @@ public final class JobDefinitionsCreateOrUpdateSamples { .withAgentName("dummy-agent") .withConnections(Arrays.asList( "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) + .withSyncMode("SnapshotBased") + .withMoverSyncedUntil(OffsetDateTime.parse("2026-05-01T00:00:00Z")) .create(); } /* - * x-ms-original-file: 2025-12-01/JobDefinitions_CreateOrUpdate.json + * x-ms-original-file: 2026-05-01/JobDefinitions_CreateOrUpdate.json */ /** * Sample code: JobDefinitions_CreateOrUpdate. @@ -98,6 +100,38 @@ public final class JobDefinitionsCreateOrUpdateSamples { .withAgentName("migration-agent") .withConnections(Arrays.asList( "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) + .withPreservePermissions(false) + .withSyncMode("FullScan") + .withMoverSyncedUntil(OffsetDateTime.parse("2026-05-01T00:00:00Z")) + .create(); + } + + /* + * x-ms-original-file: 2026-05-01/JobDefinitions_CreateOrUpdate_CrossTenant.json + */ + /** + * Sample code: JobDefinitions_CreateOrUpdate_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + jobDefinitionsCreateOrUpdateCrossTenant(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobDefinitions() + .define("examples-jobDefinitionName") + .withExistingProject("examples-rg", "examples-storageMoverName", "examples-projectName") + .withCopyMode(CopyMode.ADDITIVE) + .withSourceName("examples-sourceEndpointName") + .withTargetName("partner-targetEndpoint") + .withDescription( + "Cross-tenant Blob-to-Blob copy job. JobDefinition lives in the source (host) tenant alongside the local source endpoint; the target endpoint lives in a partner (guest) tenant.") + .withJobType(JobType.CLOUD_TO_CLOUD) + .withSourceSubpath("/") + .withTargetSubpath("/") + .withAgentName("migration-agent") + .withIsCrossTenantJob(true) + .withCrossTenantEndpointTenantId("11111111-2222-3333-4444-555555555555") + .withCrossTenantEndpointResourceId( + "/subscriptions/0a2b3c4d-5e6f-7081-92a3-b4c5d6e7f809/resourceGroups/partner-rg/providers/Microsoft.StorageMover/storageMovers/partner-storageMover/endpoints/partner-targetEndpoint") .create(); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsDeleteSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsDeleteSamples.java index 4fc80258f109..b4354240e6f9 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsDeleteSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class JobDefinitionsDeleteSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_Delete.json + * x-ms-original-file: 2026-05-01/JobDefinitions_Delete.json */ /** * Sample code: Projects_Delete. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsGetSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsGetSamples.java index 4adf1a51d070..d2f6669a5a65 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsGetSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class JobDefinitionsGetSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_Get.json + * x-ms-original-file: 2026-05-01/JobDefinitions_Get.json */ /** * Sample code: JobDefinitions_Get. @@ -23,7 +23,37 @@ public static void jobDefinitionsGet(com.azure.resourcemanager.storagemover.Stor } /* - * x-ms-original-file: 2025-12-01/JobDefinitions_Get_With_Schedule.json + * x-ms-original-file: 2026-05-01/JobDefinitions_Get_CrossTenant.json + */ + /** + * Sample code: JobDefinitions_Get_CrossTenant. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + jobDefinitionsGetCrossTenant(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobDefinitions() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-projectName", + "examples-jobDefinitionName", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01/JobDefinitions_Get_CrossTenant_Mirror.json + */ + /** + * Sample code: JobDefinitions_Get_CrossTenant_Mirror. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + jobDefinitionsGetCrossTenantMirror(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobDefinitions() + .getWithResponse("partner-rg", "partner-storageMover", "partner-projectName", "examples-jobDefinitionName", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-05-01/JobDefinitions_Get_With_Schedule.json */ /** * Sample code: JobDefinitions_Get_With_Schedule. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsListSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsListSamples.java index 8b959e7b0d69..590687ad4698 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsListSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsListSamples.java @@ -9,7 +9,7 @@ */ public final class JobDefinitionsListSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_List.json + * x-ms-original-file: 2026-05-01/JobDefinitions_List.json */ /** * Sample code: JobDefinitions_List. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsReconcileJobSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsReconcileJobSamples.java new file mode 100644 index 000000000000..0a8345481573 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsReconcileJobSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.storagemover.generated; + +/** + * Samples for JobDefinitions ReconcileJob. + */ +public final class JobDefinitionsReconcileJobSamples { + /* + * x-ms-original-file: 2026-05-01/JobDefinitions_ReconcileJob.json + */ + /** + * Sample code: JobDefinitions_ReconcileJob. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void jobDefinitionsReconcileJob(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobDefinitions() + .reconcileJobWithResponse("examples-rg", "examples-storageMoverName", "examples-projectName", + "examples-jobDefinitionName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStartJobSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStartJobSamples.java index 0f7d85a8104b..9770a1a74054 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStartJobSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStartJobSamples.java @@ -9,7 +9,7 @@ */ public final class JobDefinitionsStartJobSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_StartJob.json + * x-ms-original-file: 2026-05-01/JobDefinitions_StartJob.json */ /** * Sample code: JobDefinitions_StartJob. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStopJobSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStopJobSamples.java index f3a3d7848ace..371c5c5be51c 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStopJobSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStopJobSamples.java @@ -9,7 +9,7 @@ */ public final class JobDefinitionsStopJobSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_StopJob.json + * x-ms-original-file: 2026-05-01/JobDefinitions_StopJob.json */ /** * Sample code: JobDefinitions_StopJob. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsUpdateSamples.java index 9d185f5b7d44..6dc331622a60 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class JobDefinitionsUpdateSamples { /* - * x-ms-original-file: 2025-12-01/JobDefinitions_Update.json + * x-ms-original-file: 2026-05-01/JobDefinitions_Update.json */ /** * Sample code: JobDefinitions_Update. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobRunsGetSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobRunsGetSamples.java index 84d9d4fc6057..2b5eeab2e703 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobRunsGetSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobRunsGetSamples.java @@ -9,7 +9,7 @@ */ public final class JobRunsGetSamples { /* - * x-ms-original-file: 2025-12-01/JobRuns_Get_With_Schedule.json + * x-ms-original-file: 2026-05-01/JobRuns_Get_With_Schedule.json */ /** * Sample code: JobRuns_Get_With_Schedule. @@ -23,7 +23,7 @@ public static void jobRunsGetWithSchedule(com.azure.resourcemanager.storagemover } /* - * x-ms-original-file: 2025-12-01/JobRuns_Get.json + * x-ms-original-file: 2026-05-01/JobRuns_Get.json */ /** * Sample code: JobRuns_Get. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobRunsListSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobRunsListSamples.java index 825c86204f9a..1506d738643e 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobRunsListSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobRunsListSamples.java @@ -9,7 +9,7 @@ */ public final class JobRunsListSamples { /* - * x-ms-original-file: 2025-12-01/JobRuns_List.json + * x-ms-original-file: 2026-05-01/JobRuns_List.json */ /** * Sample code: JobRuns_List. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/OperationsListSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/OperationsListSamples.java index 43a6757b9f54..acbfe1a41044 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/OperationsListSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-12-01/Operations_List.json + * x-ms-original-file: 2026-05-01/Operations_List.json */ /** * Sample code: Operations_List. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsCreateOrUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsCreateOrUpdateSamples.java index 4d37940358b1..f1182f1cbd21 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsCreateOrUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Projects_CreateOrUpdate.json + * x-ms-original-file: 2026-05-01/Projects_CreateOrUpdate.json */ /** * Sample code: Projects_CreateOrUpdate. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsDeleteSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsDeleteSamples.java index 436e2565db4d..9665e783509e 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsDeleteSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectsDeleteSamples { /* - * x-ms-original-file: 2025-12-01/Projects_Delete.json + * x-ms-original-file: 2026-05-01/Projects_Delete.json */ /** * Sample code: Projects_Delete. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsGetSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsGetSamples.java index 5466ac3499e1..1b16a30e226b 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsGetSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectsGetSamples { /* - * x-ms-original-file: 2025-12-01/Projects_Get.json + * x-ms-original-file: 2026-05-01/Projects_Get.json */ /** * Sample code: Projects_Get. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsListSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsListSamples.java index e2e2e846e8b0..b9631313a1a2 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsListSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsListSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectsListSamples { /* - * x-ms-original-file: 2025-12-01/Projects_List.json + * x-ms-original-file: 2026-05-01/Projects_List.json */ /** * Sample code: Projects_List. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsUpdateSamples.java index 071137ceb3c1..f29128115d6c 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ProjectsUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class ProjectsUpdateSamples { /* - * x-ms-original-file: 2025-12-01/Projects_Update.json + * x-ms-original-file: 2026-05-01/Projects_Update.json */ /** * Sample code: Projects_Update. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversCreateOrUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversCreateOrUpdateSamples.java index bbe1d51c11d0..148ea07af474 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversCreateOrUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class StorageMoversCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_CreateOrUpdate.json + * x-ms-original-file: 2026-05-01/StorageMovers_CreateOrUpdate.json */ /** * Sample code: StorageMovers_CreateOrUpdate. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversDeleteSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversDeleteSamples.java index 223674c87c28..8000b2a5f69b 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversDeleteSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class StorageMoversDeleteSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_Delete.json + * x-ms-original-file: 2026-05-01/StorageMovers_Delete.json */ /** * Sample code: StorageMovers_Delete. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversGetByResourceGroupSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversGetByResourceGroupSamples.java index 5be2c84470c0..acb8ad16aa21 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversGetByResourceGroupSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class StorageMoversGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_Get.json + * x-ms-original-file: 2026-05-01/StorageMovers_Get.json */ /** * Sample code: StorageMovers_Get. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListByResourceGroupSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListByResourceGroupSamples.java index 9fdf21df77b5..729202ac2483 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListByResourceGroupSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class StorageMoversListByResourceGroupSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_List.json + * x-ms-original-file: 2026-05-01/StorageMovers_List.json */ /** * Sample code: StorageMovers_List. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListSamples.java index 8b7ecea8f46a..d5739296b226 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListSamples.java @@ -9,7 +9,7 @@ */ public final class StorageMoversListSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_ListBySubscription.json + * x-ms-original-file: 2026-05-01/StorageMovers_ListBySubscription.json */ /** * Sample code: StorageMovers_List. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversUpdateSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversUpdateSamples.java index 823383f5be7a..5c327e003e91 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversUpdateSamples.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/StorageMoversUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class StorageMoversUpdateSamples { /* - * x-ms-original-file: 2025-12-01/StorageMovers_Update.json + * x-ms-original-file: 2026-05-01/StorageMovers_Update.json */ /** * Sample code: StorageMovers_Update. diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AgentsDeleteMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AgentsDeleteMockTests.java index 0254dde71674..3a2d3ec6bf6b 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AgentsDeleteMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AgentsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.agents().delete("xrtfudxep", "gyqagvrvmnpkuk", "himdbl", com.azure.core.util.Context.NONE); + manager.agents().delete("aztz", "ofncckwyfzqwhxxb", "yq", com.azure.core.util.Context.NONE); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureMultiCloudConnectorEndpointPropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureMultiCloudConnectorEndpointPropertiesTests.java index 43990d80efd0..fa264f844bc1 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureMultiCloudConnectorEndpointPropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureMultiCloudConnectorEndpointPropertiesTests.java @@ -13,25 +13,25 @@ public final class AzureMultiCloudConnectorEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureMultiCloudConnectorEndpointProperties model = BinaryData.fromString( - "{\"endpointType\":\"AzureMultiCloudConnector\",\"multiCloudConnectorId\":\"j\",\"awsS3BucketId\":\"odxobnbdxkqpxok\",\"description\":\"ionpimexg\",\"endpointKind\":\"Source\",\"provisioningState\":\"Succeeded\"}") + "{\"endpointType\":\"AzureMultiCloudConnector\",\"multiCloudConnectorId\":\"clwhijcoejctbz\",\"awsS3BucketId\":\"qsqsy\",\"description\":\"kbfkg\",\"endpointKind\":\"Target\",\"provisioningState\":\"Deleting\"}") .toObject(AzureMultiCloudConnectorEndpointProperties.class); - Assertions.assertEquals("ionpimexg", model.description()); - Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); - Assertions.assertEquals("j", model.multiCloudConnectorId()); - Assertions.assertEquals("odxobnbdxkqpxok", model.awsS3BucketId()); + Assertions.assertEquals("kbfkg", model.description()); + Assertions.assertEquals(EndpointKind.TARGET, model.endpointKind()); + Assertions.assertEquals("clwhijcoejctbz", model.multiCloudConnectorId()); + Assertions.assertEquals("qsqsy", model.awsS3BucketId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureMultiCloudConnectorEndpointProperties model - = new AzureMultiCloudConnectorEndpointProperties().withDescription("ionpimexg") - .withEndpointKind(EndpointKind.SOURCE) - .withMultiCloudConnectorId("j") - .withAwsS3BucketId("odxobnbdxkqpxok"); + = new AzureMultiCloudConnectorEndpointProperties().withDescription("kbfkg") + .withEndpointKind(EndpointKind.TARGET) + .withMultiCloudConnectorId("clwhijcoejctbz") + .withAwsS3BucketId("qsqsy"); model = BinaryData.fromObject(model).toObject(AzureMultiCloudConnectorEndpointProperties.class); - Assertions.assertEquals("ionpimexg", model.description()); - Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); - Assertions.assertEquals("j", model.multiCloudConnectorId()); - Assertions.assertEquals("odxobnbdxkqpxok", model.awsS3BucketId()); + Assertions.assertEquals("kbfkg", model.description()); + Assertions.assertEquals(EndpointKind.TARGET, model.endpointKind()); + Assertions.assertEquals("clwhijcoejctbz", model.multiCloudConnectorId()); + Assertions.assertEquals("qsqsy", model.awsS3BucketId()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureMultiCloudConnectorEndpointUpdatePropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureMultiCloudConnectorEndpointUpdatePropertiesTests.java index 33869243bc5e..a8215974db7d 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureMultiCloudConnectorEndpointUpdatePropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureMultiCloudConnectorEndpointUpdatePropertiesTests.java @@ -11,17 +11,17 @@ public final class AzureMultiCloudConnectorEndpointUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AzureMultiCloudConnectorEndpointUpdateProperties model = BinaryData - .fromString("{\"endpointType\":\"AzureMultiCloudConnector\",\"description\":\"qdrabhjybigehoqf\"}") - .toObject(AzureMultiCloudConnectorEndpointUpdateProperties.class); - Assertions.assertEquals("qdrabhjybigehoqf", model.description()); + AzureMultiCloudConnectorEndpointUpdateProperties model + = BinaryData.fromString("{\"endpointType\":\"AzureMultiCloudConnector\",\"description\":\"cynpwlbjnp\"}") + .toObject(AzureMultiCloudConnectorEndpointUpdateProperties.class); + Assertions.assertEquals("cynpwlbjnp", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureMultiCloudConnectorEndpointUpdateProperties model - = new AzureMultiCloudConnectorEndpointUpdateProperties().withDescription("qdrabhjybigehoqf"); + = new AzureMultiCloudConnectorEndpointUpdateProperties().withDescription("cynpwlbjnp"); model = BinaryData.fromObject(model).toObject(AzureMultiCloudConnectorEndpointUpdateProperties.class); - Assertions.assertEquals("qdrabhjybigehoqf", model.description()); + Assertions.assertEquals("cynpwlbjnp", model.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageBlobContainerEndpointPropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageBlobContainerEndpointPropertiesTests.java index 7817117c1f09..0867a79d8e23 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageBlobContainerEndpointPropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageBlobContainerEndpointPropertiesTests.java @@ -7,31 +7,38 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.AzureStorageBlobContainerEndpointProperties; import com.azure.resourcemanager.storagemover.models.EndpointKind; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class AzureStorageBlobContainerEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureStorageBlobContainerEndpointProperties model = BinaryData.fromString( - "{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"waopvkmijcmmxd\",\"blobContainerName\":\"ufufsrp\",\"description\":\"zidnsezcxtbzsgfy\",\"endpointKind\":\"Source\",\"provisioningState\":\"Canceled\"}") + "{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"waopvkmijcmmxd\",\"blobContainerName\":\"ufufsrp\",\"enableCrossTenantTransfer\":true,\"allowedStorageAccounts\":[\"nsez\",\"xtbzsgfyccsne\",\"mdwzjeiachboo\"],\"description\":\"lnrosfqp\",\"endpointKind\":\"Target\",\"provisioningState\":\"Deleting\"}") .toObject(AzureStorageBlobContainerEndpointProperties.class); - Assertions.assertEquals("zidnsezcxtbzsgfy", model.description()); - Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("lnrosfqp", model.description()); + Assertions.assertEquals(EndpointKind.TARGET, model.endpointKind()); Assertions.assertEquals("waopvkmijcmmxd", model.storageAccountResourceId()); Assertions.assertEquals("ufufsrp", model.blobContainerName()); + Assertions.assertTrue(model.enableCrossTenantTransfer()); + Assertions.assertEquals("nsez", model.allowedStorageAccounts().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageBlobContainerEndpointProperties model - = new AzureStorageBlobContainerEndpointProperties().withDescription("zidnsezcxtbzsgfy") - .withEndpointKind(EndpointKind.SOURCE) + = new AzureStorageBlobContainerEndpointProperties().withDescription("lnrosfqp") + .withEndpointKind(EndpointKind.TARGET) .withStorageAccountResourceId("waopvkmijcmmxd") - .withBlobContainerName("ufufsrp"); + .withBlobContainerName("ufufsrp") + .withEnableCrossTenantTransfer(true) + .withAllowedStorageAccounts(Arrays.asList("nsez", "xtbzsgfyccsne", "mdwzjeiachboo")); model = BinaryData.fromObject(model).toObject(AzureStorageBlobContainerEndpointProperties.class); - Assertions.assertEquals("zidnsezcxtbzsgfy", model.description()); - Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("lnrosfqp", model.description()); + Assertions.assertEquals(EndpointKind.TARGET, model.endpointKind()); Assertions.assertEquals("waopvkmijcmmxd", model.storageAccountResourceId()); Assertions.assertEquals("ufufsrp", model.blobContainerName()); + Assertions.assertTrue(model.enableCrossTenantTransfer()); + Assertions.assertEquals("nsez", model.allowedStorageAccounts().get(0)); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageBlobContainerEndpointUpdatePropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageBlobContainerEndpointUpdatePropertiesTests.java index 4503c5e0b898..be3ee1888793 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageBlobContainerEndpointUpdatePropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageBlobContainerEndpointUpdatePropertiesTests.java @@ -6,22 +6,29 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.AzureStorageBlobContainerEndpointUpdateProperties; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class AzureStorageBlobContainerEndpointUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AzureStorageBlobContainerEndpointUpdateProperties model - = BinaryData.fromString("{\"endpointType\":\"AzureStorageBlobContainer\",\"description\":\"utqxlngx\"}") - .toObject(AzureStorageBlobContainerEndpointUpdateProperties.class); - Assertions.assertEquals("utqxlngx", model.description()); + AzureStorageBlobContainerEndpointUpdateProperties model = BinaryData.fromString( + "{\"endpointType\":\"AzureStorageBlobContainer\",\"enableCrossTenantTransfer\":false,\"allowedStorageAccounts\":[\"wxrjfeallnwsub\",\"snjampmng\",\"zscxaqwo\"],\"description\":\"hcbonqvpkvlr\"}") + .toObject(AzureStorageBlobContainerEndpointUpdateProperties.class); + Assertions.assertEquals("hcbonqvpkvlr", model.description()); + Assertions.assertFalse(model.enableCrossTenantTransfer()); + Assertions.assertEquals("wxrjfeallnwsub", model.allowedStorageAccounts().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageBlobContainerEndpointUpdateProperties model - = new AzureStorageBlobContainerEndpointUpdateProperties().withDescription("utqxlngx"); + = new AzureStorageBlobContainerEndpointUpdateProperties().withDescription("hcbonqvpkvlr") + .withEnableCrossTenantTransfer(false) + .withAllowedStorageAccounts(Arrays.asList("wxrjfeallnwsub", "snjampmng", "zscxaqwo")); model = BinaryData.fromObject(model).toObject(AzureStorageBlobContainerEndpointUpdateProperties.class); - Assertions.assertEquals("utqxlngx", model.description()); + Assertions.assertEquals("hcbonqvpkvlr", model.description()); + Assertions.assertFalse(model.enableCrossTenantTransfer()); + Assertions.assertEquals("wxrjfeallnwsub", model.allowedStorageAccounts().get(0)); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageNfsFileShareEndpointPropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageNfsFileShareEndpointPropertiesTests.java index bc6cd842bf4e..6c58db8449ea 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageNfsFileShareEndpointPropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageNfsFileShareEndpointPropertiesTests.java @@ -13,25 +13,25 @@ public final class AzureStorageNfsFileShareEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureStorageNfsFileShareEndpointProperties model = BinaryData.fromString( - "{\"endpointType\":\"AzureStorageNfsFileShare\",\"storageAccountResourceId\":\"c\",\"fileShareName\":\"aierhhb\",\"description\":\"glu\",\"endpointKind\":\"Source\",\"provisioningState\":\"Failed\"}") + "{\"endpointType\":\"AzureStorageNfsFileShare\",\"storageAccountResourceId\":\"obnbdxkqpxokaj\",\"fileShareName\":\"onpimexgstxg\",\"description\":\"odgmaajrmvdjwz\",\"endpointKind\":\"Target\",\"provisioningState\":\"Succeeded\"}") .toObject(AzureStorageNfsFileShareEndpointProperties.class); - Assertions.assertEquals("glu", model.description()); - Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); - Assertions.assertEquals("c", model.storageAccountResourceId()); - Assertions.assertEquals("aierhhb", model.fileShareName()); + Assertions.assertEquals("odgmaajrmvdjwz", model.description()); + Assertions.assertEquals(EndpointKind.TARGET, model.endpointKind()); + Assertions.assertEquals("obnbdxkqpxokaj", model.storageAccountResourceId()); + Assertions.assertEquals("onpimexgstxg", model.fileShareName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageNfsFileShareEndpointProperties model - = new AzureStorageNfsFileShareEndpointProperties().withDescription("glu") - .withEndpointKind(EndpointKind.SOURCE) - .withStorageAccountResourceId("c") - .withFileShareName("aierhhb"); + = new AzureStorageNfsFileShareEndpointProperties().withDescription("odgmaajrmvdjwz") + .withEndpointKind(EndpointKind.TARGET) + .withStorageAccountResourceId("obnbdxkqpxokaj") + .withFileShareName("onpimexgstxg"); model = BinaryData.fromObject(model).toObject(AzureStorageNfsFileShareEndpointProperties.class); - Assertions.assertEquals("glu", model.description()); - Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); - Assertions.assertEquals("c", model.storageAccountResourceId()); - Assertions.assertEquals("aierhhb", model.fileShareName()); + Assertions.assertEquals("odgmaajrmvdjwz", model.description()); + Assertions.assertEquals(EndpointKind.TARGET, model.endpointKind()); + Assertions.assertEquals("obnbdxkqpxokaj", model.storageAccountResourceId()); + Assertions.assertEquals("onpimexgstxg", model.fileShareName()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageNfsFileShareEndpointUpdatePropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageNfsFileShareEndpointUpdatePropertiesTests.java index d59bef5dc7e6..2a0f1db6a560 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageNfsFileShareEndpointUpdatePropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageNfsFileShareEndpointUpdatePropertiesTests.java @@ -12,16 +12,16 @@ public final class AzureStorageNfsFileShareEndpointUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureStorageNfsFileShareEndpointUpdateProperties model - = BinaryData.fromString("{\"endpointType\":\"AzureStorageNfsFileShare\",\"description\":\"thz\"}") + = BinaryData.fromString("{\"endpointType\":\"AzureStorageNfsFileShare\",\"description\":\"dgwdslfhot\"}") .toObject(AzureStorageNfsFileShareEndpointUpdateProperties.class); - Assertions.assertEquals("thz", model.description()); + Assertions.assertEquals("dgwdslfhot", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageNfsFileShareEndpointUpdateProperties model - = new AzureStorageNfsFileShareEndpointUpdateProperties().withDescription("thz"); + = new AzureStorageNfsFileShareEndpointUpdateProperties().withDescription("dgwdslfhot"); model = BinaryData.fromObject(model).toObject(AzureStorageNfsFileShareEndpointUpdateProperties.class); - Assertions.assertEquals("thz", model.description()); + Assertions.assertEquals("dgwdslfhot", model.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageSmbFileShareEndpointPropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageSmbFileShareEndpointPropertiesTests.java index 26502650792e..a432f803c852 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageSmbFileShareEndpointPropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageSmbFileShareEndpointPropertiesTests.java @@ -7,31 +7,38 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.AzureStorageSmbFileShareEndpointProperties; import com.azure.resourcemanager.storagemover.models.EndpointKind; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class AzureStorageSmbFileShareEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureStorageSmbFileShareEndpointProperties model = BinaryData.fromString( - "{\"endpointType\":\"AzureStorageSmbFileShare\",\"storageAccountResourceId\":\"mocpc\",\"fileShareName\":\"shurzafbljjgpbto\",\"description\":\"jmkljavbqidtqajz\",\"endpointKind\":\"Source\",\"provisioningState\":\"Failed\"}") + "{\"endpointType\":\"AzureStorageSmbFileShare\",\"storageAccountResourceId\":\"jjgpb\",\"fileShareName\":\"oq\",\"enableCrossTenantTransfer\":false,\"allowedStorageAccounts\":[\"javbqidtqajz\",\"ulpkudjkrl\"],\"description\":\"bzhfepgzgqexz\",\"endpointKind\":\"Source\",\"provisioningState\":\"Canceled\"}") .toObject(AzureStorageSmbFileShareEndpointProperties.class); - Assertions.assertEquals("jmkljavbqidtqajz", model.description()); + Assertions.assertEquals("bzhfepgzgqexz", model.description()); Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); - Assertions.assertEquals("mocpc", model.storageAccountResourceId()); - Assertions.assertEquals("shurzafbljjgpbto", model.fileShareName()); + Assertions.assertEquals("jjgpb", model.storageAccountResourceId()); + Assertions.assertEquals("oq", model.fileShareName()); + Assertions.assertFalse(model.enableCrossTenantTransfer()); + Assertions.assertEquals("javbqidtqajz", model.allowedStorageAccounts().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageSmbFileShareEndpointProperties model - = new AzureStorageSmbFileShareEndpointProperties().withDescription("jmkljavbqidtqajz") + = new AzureStorageSmbFileShareEndpointProperties().withDescription("bzhfepgzgqexz") .withEndpointKind(EndpointKind.SOURCE) - .withStorageAccountResourceId("mocpc") - .withFileShareName("shurzafbljjgpbto"); + .withStorageAccountResourceId("jjgpb") + .withFileShareName("oq") + .withEnableCrossTenantTransfer(false) + .withAllowedStorageAccounts(Arrays.asList("javbqidtqajz", "ulpkudjkrl")); model = BinaryData.fromObject(model).toObject(AzureStorageSmbFileShareEndpointProperties.class); - Assertions.assertEquals("jmkljavbqidtqajz", model.description()); + Assertions.assertEquals("bzhfepgzgqexz", model.description()); Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); - Assertions.assertEquals("mocpc", model.storageAccountResourceId()); - Assertions.assertEquals("shurzafbljjgpbto", model.fileShareName()); + Assertions.assertEquals("jjgpb", model.storageAccountResourceId()); + Assertions.assertEquals("oq", model.fileShareName()); + Assertions.assertFalse(model.enableCrossTenantTransfer()); + Assertions.assertEquals("javbqidtqajz", model.allowedStorageAccounts().get(0)); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageSmbFileShareEndpointUpdatePropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageSmbFileShareEndpointUpdatePropertiesTests.java index cf813c36a611..9379291b1222 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageSmbFileShareEndpointUpdatePropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/AzureStorageSmbFileShareEndpointUpdatePropertiesTests.java @@ -6,22 +6,29 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.AzureStorageSmbFileShareEndpointUpdateProperties; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class AzureStorageSmbFileShareEndpointUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AzureStorageSmbFileShareEndpointUpdateProperties model - = BinaryData.fromString("{\"endpointType\":\"AzureStorageSmbFileShare\",\"description\":\"i\"}") - .toObject(AzureStorageSmbFileShareEndpointUpdateProperties.class); - Assertions.assertEquals("i", model.description()); + AzureStorageSmbFileShareEndpointUpdateProperties model = BinaryData.fromString( + "{\"endpointType\":\"AzureStorageSmbFileShare\",\"enableCrossTenantTransfer\":true,\"allowedStorageAccounts\":[\"tgrhpdjpjumas\",\"azjpqyegualhbxxh\",\"jj\"],\"description\":\"v\"}") + .toObject(AzureStorageSmbFileShareEndpointUpdateProperties.class); + Assertions.assertEquals("v", model.description()); + Assertions.assertTrue(model.enableCrossTenantTransfer()); + Assertions.assertEquals("tgrhpdjpjumas", model.allowedStorageAccounts().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageSmbFileShareEndpointUpdateProperties model - = new AzureStorageSmbFileShareEndpointUpdateProperties().withDescription("i"); + = new AzureStorageSmbFileShareEndpointUpdateProperties().withDescription("v") + .withEnableCrossTenantTransfer(true) + .withAllowedStorageAccounts(Arrays.asList("tgrhpdjpjumas", "azjpqyegualhbxxh", "jj")); model = BinaryData.fromObject(model).toObject(AzureStorageSmbFileShareEndpointUpdateProperties.class); - Assertions.assertEquals("i", model.description()); + Assertions.assertEquals("v", model.description()); + Assertions.assertTrue(model.enableCrossTenantTransfer()); + Assertions.assertEquals("tgrhpdjpjumas", model.allowedStorageAccounts().get(0)); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionInnerTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionInnerTests.java index 7d4f684f1310..17c8d096a0d4 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionInnerTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionInnerTests.java @@ -14,21 +14,21 @@ public final class ConnectionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"ofd\",\"connectionStatus\":\"Disconnected\",\"privateLinkServiceId\":\"us\",\"privateEndpointName\":\"touwaboekqv\",\"privateEndpointResourceId\":\"lns\",\"jobList\":[\"xwyjsflhhc\",\"aln\",\"ixisxyawjoy\",\"qcslyjpkiid\"],\"provisioningState\":\"Failed\"},\"id\":\"znelixhnrztfolh\",\"name\":\"nxknalaulp\",\"type\":\"ggdtpnapnyiro\"}") + "{\"properties\":{\"description\":\"doy\",\"connectionStatus\":\"Disconnected\",\"privateLinkServiceId\":\"fthnzdn\",\"privateEndpointName\":\"l\",\"privateEndpointResourceId\":\"ayqigynduhav\",\"jobList\":[\"kthumaqolbgycdui\",\"r\"],\"provisioningState\":\"Deleting\"},\"id\":\"y\",\"name\":\"vaolpsslqlf\",\"type\":\"mdnbbglzpswiy\"}") .toObject(ConnectionInner.class); - Assertions.assertEquals("ofd", model.properties().description()); - Assertions.assertEquals("us", model.properties().privateLinkServiceId()); - Assertions.assertEquals("xwyjsflhhc", model.properties().jobList().get(0)); + Assertions.assertEquals("doy", model.properties().description()); + Assertions.assertEquals("fthnzdn", model.properties().privateLinkServiceId()); + Assertions.assertEquals("kthumaqolbgycdui", model.properties().jobList().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionInner model = new ConnectionInner().withProperties(new ConnectionProperties().withDescription("ofd") - .withPrivateLinkServiceId("us") - .withJobList(Arrays.asList("xwyjsflhhc", "aln", "ixisxyawjoy", "qcslyjpkiid"))); + ConnectionInner model = new ConnectionInner().withProperties(new ConnectionProperties().withDescription("doy") + .withPrivateLinkServiceId("fthnzdn") + .withJobList(Arrays.asList("kthumaqolbgycdui", "r"))); model = BinaryData.fromObject(model).toObject(ConnectionInner.class); - Assertions.assertEquals("ofd", model.properties().description()); - Assertions.assertEquals("us", model.properties().privateLinkServiceId()); - Assertions.assertEquals("xwyjsflhhc", model.properties().jobList().get(0)); + Assertions.assertEquals("doy", model.properties().description()); + Assertions.assertEquals("fthnzdn", model.properties().privateLinkServiceId()); + Assertions.assertEquals("kthumaqolbgycdui", model.properties().jobList().get(0)); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionListTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionListTests.java index 44cf348ae462..a8f71f7febbb 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionListTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionListTests.java @@ -12,8 +12,8 @@ public final class ConnectionListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"uaceopzfqrhhu\",\"connectionStatus\":\"Stale\",\"privateLinkServiceId\":\"ppcqeqxolz\",\"privateEndpointName\":\"hzxct\",\"privateEndpointResourceId\":\"gbkdmoizpos\",\"jobList\":[\"rcfbunrm\",\"qjhhkxbpv\"],\"provisioningState\":\"Succeeded\"},\"id\":\"hx\",\"name\":\"j\",\"type\":\"n\"},{\"properties\":{\"description\":\"divkrt\",\"connectionStatus\":\"Stale\",\"privateLinkServiceId\":\"xqzvszjfa\",\"privateEndpointName\":\"j\",\"privateEndpointResourceId\":\"xxivetv\",\"jobList\":[\"aqtdoqmcbx\",\"wvxysl\",\"bhsfxob\",\"ytkblmpew\"],\"provisioningState\":\"Failed\"},\"id\":\"krvrns\",\"name\":\"shqjohxcrsbf\",\"type\":\"vasrruvwb\"},{\"properties\":{\"description\":\"qfsubcgjbirx\",\"connectionStatus\":\"Approved\",\"privateLinkServiceId\":\"bsrfbj\",\"privateEndpointName\":\"twss\",\"privateEndpointResourceId\":\"ftpvjzbexil\",\"jobList\":[\"fqqnvwpmqtaruo\",\"jmkcjhwqytj\"],\"provisioningState\":\"Succeeded\"},\"id\":\"wj\",\"name\":\"wgdrjervnaenqp\",\"type\":\"hin\"}],\"nextLink\":\"ygmi\"}") + "{\"value\":[{\"properties\":{\"description\":\"ygtdsslswt\",\"connectionStatus\":\"Disconnected\",\"privateLinkServiceId\":\"riofzpyqse\",\"privateEndpointName\":\"abnetshh\",\"privateEndpointResourceId\":\"h\",\"jobList\":[\"lvwiwubmwmbesl\",\"nkww\",\"pp\",\"flcxoga\"],\"provisioningState\":\"Succeeded\"},\"id\":\"z\",\"name\":\"nsikvmkqzeqqkdl\",\"type\":\"fzxmhhvhgureodkw\"},{\"properties\":{\"description\":\"dagxtibqd\",\"connectionStatus\":\"Approved\",\"privateLinkServiceId\":\"wakbogqxndl\",\"privateEndpointName\":\"gxhuriplbp\",\"privateEndpointResourceId\":\"xunkbebxmubyynt\",\"jobList\":[\"bqtkoievseotgqr\",\"ltmuwlauwzizx\"],\"provisioningState\":\"Failed\"},\"id\":\"cjefuzmu\",\"name\":\"pbttdum\",\"type\":\"rp\"},{\"properties\":{\"description\":\"ebmnzbtbhjpglk\",\"connectionStatus\":\"Approved\",\"privateLinkServiceId\":\"hdneuelfph\",\"privateEndpointName\":\"yhtozfikdowwqu\",\"privateEndpointResourceId\":\"xzxcl\",\"jobList\":[\"hhqzonosgg\",\"hcohfwdsjnk\",\"ljuti\",\"swacffgdkzz\"],\"provisioningState\":\"Deleting\"},\"id\":\"vhqcrail\",\"name\":\"pnppfuf\",\"type\":\"rwdmhdlxyjrxsa\"},{\"properties\":{\"description\":\"fcnihgwq\",\"connectionStatus\":\"Pending\",\"privateLinkServiceId\":\"edgfbcvkcvq\",\"privateEndpointName\":\"keqdcvdrhvoods\",\"privateEndpointResourceId\":\"bobzdopcjwvnhd\",\"jobList\":[\"mgxcxrslpm\",\"twuoegrpkhjwni\",\"qsluicp\"],\"provisioningState\":\"Succeeded\"},\"id\":\"zzlvmbmpaxmodfv\",\"name\":\"efyw\",\"type\":\"bpfvm\"}],\"nextLink\":\"hrfou\"}") .toObject(ConnectionList.class); - Assertions.assertEquals("ygmi", model.nextLink()); + Assertions.assertEquals("hrfou", model.nextLink()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionPropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionPropertiesTests.java index 8399f12b6b24..bf2c9f3a0f4d 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionPropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionPropertiesTests.java @@ -13,21 +13,21 @@ public final class ConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionProperties model = BinaryData.fromString( - "{\"description\":\"hpigv\",\"connectionStatus\":\"Disconnected\",\"privateLinkServiceId\":\"lgqg\",\"privateEndpointName\":\"xmedjvcsly\",\"privateEndpointResourceId\":\"wwncwzzhxgk\",\"jobList\":[\"gucnapkte\",\"ellwptfdy\"],\"provisioningState\":\"Failed\"}") + "{\"description\":\"cwyhzdxssa\",\"connectionStatus\":\"Disconnected\",\"privateLinkServiceId\":\"mnvdfzn\",\"privateEndpointName\":\"ao\",\"privateEndpointResourceId\":\"xzb\",\"jobList\":[\"lylpstdb\",\"hxsrzdzucersc\",\"ntnev\"],\"provisioningState\":\"Succeeded\"}") .toObject(ConnectionProperties.class); - Assertions.assertEquals("hpigv", model.description()); - Assertions.assertEquals("lgqg", model.privateLinkServiceId()); - Assertions.assertEquals("gucnapkte", model.jobList().get(0)); + Assertions.assertEquals("cwyhzdxssa", model.description()); + Assertions.assertEquals("mnvdfzn", model.privateLinkServiceId()); + Assertions.assertEquals("lylpstdb", model.jobList().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionProperties model = new ConnectionProperties().withDescription("hpigv") - .withPrivateLinkServiceId("lgqg") - .withJobList(Arrays.asList("gucnapkte", "ellwptfdy")); + ConnectionProperties model = new ConnectionProperties().withDescription("cwyhzdxssa") + .withPrivateLinkServiceId("mnvdfzn") + .withJobList(Arrays.asList("lylpstdb", "hxsrzdzucersc", "ntnev")); model = BinaryData.fromObject(model).toObject(ConnectionProperties.class); - Assertions.assertEquals("hpigv", model.description()); - Assertions.assertEquals("lgqg", model.privateLinkServiceId()); - Assertions.assertEquals("gucnapkte", model.jobList().get(0)); + Assertions.assertEquals("cwyhzdxssa", model.description()); + Assertions.assertEquals("mnvdfzn", model.privateLinkServiceId()); + Assertions.assertEquals("lylpstdb", model.jobList().get(0)); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateWithResponseMockTests.java index d5ac04cf97c3..0203ed8b5eb7 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class ConnectionsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"pniyujviyl\",\"connectionStatus\":\"Disconnected\",\"privateLinkServiceId\":\"hfssnrb\",\"privateEndpointName\":\"efr\",\"privateEndpointResourceId\":\"sgaojfmwncot\",\"jobList\":[\"hirctymoxoftpipi\"],\"provisioningState\":\"Deleting\"},\"id\":\"uh\",\"name\":\"a\",\"type\":\"pqjlihhyusps\"}"; + = "{\"properties\":{\"description\":\"pgpqchiszepnnb\",\"connectionStatus\":\"Disconnected\",\"privateLinkServiceId\":\"xgibbda\",\"privateEndpointName\":\"onfo\",\"privateEndpointResourceId\":\"uors\",\"jobList\":[\"kwbqplhlvnuu\",\"pzlrphw\"],\"provisioningState\":\"Failed\"},\"id\":\"dweyuqdunv\",\"name\":\"nnrwrbiork\",\"type\":\"alywjhhgdn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Connection response = manager.connections() - .define("ikyzirtxdy") - .withExistingStorageMover("ybycnunvj", "rtkfawnopq") - .withProperties(new ConnectionProperties().withDescription("zejntps") - .withPrivateLinkServiceId("ioilqukrydxtq") - .withJobList(Arrays.asList("jzhpjbibgjmfx", "mv", "cluyovwxnbkf"))) + .define("v") + .withExistingStorageMover("ewzcjznmwcp", "guaadraufactkahz") + .withProperties(new ConnectionProperties().withDescription("j") + .withPrivateLinkServiceId("xxpshneeku") + .withJobList(Arrays.asList("sutujba"))) .create(); - Assertions.assertEquals("pniyujviyl", response.properties().description()); - Assertions.assertEquals("hfssnrb", response.properties().privateLinkServiceId()); - Assertions.assertEquals("hirctymoxoftpipi", response.properties().jobList().get(0)); + Assertions.assertEquals("pgpqchiszepnnb", response.properties().description()); + Assertions.assertEquals("xgibbda", response.properties().privateLinkServiceId()); + Assertions.assertEquals("kwbqplhlvnuu", response.properties().jobList().get(0)); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetWithResponseMockTests.java index b6d684dda2cc..d594420e4180 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"wjchrdg\",\"connectionStatus\":\"Stale\",\"privateLinkServiceId\":\"xum\",\"privateEndpointName\":\"ton\",\"privateEndpointResourceId\":\"jl\",\"jobList\":[\"fdlwg\",\"ytsbwtovv\",\"gseinq\"],\"provisioningState\":\"Deleting\"},\"id\":\"x\",\"name\":\"knpirgnepttwq\",\"type\":\"sniffc\"}"; + = "{\"properties\":{\"description\":\"x\",\"connectionStatus\":\"Pending\",\"privateLinkServiceId\":\"zheydbsdshmk\",\"privateEndpointName\":\"aehvbbxuri\",\"privateEndpointResourceId\":\"tfnhtbaxkgxywr\",\"jobList\":[\"yklyhpluodpvruud\",\"gzibthostgktstv\",\"xeclzedqbcvhzlhp\",\"odqkdlwwqfb\"],\"provisioningState\":\"Succeeded\"},\"id\":\"xtrqjfs\",\"name\":\"lmbtxhwgfwsrt\",\"type\":\"wcoezbrhub\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Connection response = manager.connections() - .getWithResponse("iithtywu", "xcbihw", "knfd", com.azure.core.util.Context.NONE) + .getWithResponse("vpkjpr", "kwcf", "ql", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wjchrdg", response.properties().description()); - Assertions.assertEquals("xum", response.properties().privateLinkServiceId()); - Assertions.assertEquals("fdlwg", response.properties().jobList().get(0)); + Assertions.assertEquals("x", response.properties().description()); + Assertions.assertEquals("zheydbsdshmk", response.properties().privateLinkServiceId()); + Assertions.assertEquals("yklyhpluodpvruud", response.properties().jobList().get(0)); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListMockTests.java index 07830050b663..d316787e5376 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListMockTests.java @@ -22,7 +22,7 @@ public final class ConnectionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"ronasxift\",\"connectionStatus\":\"Approved\",\"privateLinkServiceId\":\"yzhftwesgogczh\",\"privateEndpointName\":\"nxkrlgnyhmossxkk\",\"privateEndpointResourceId\":\"h\",\"jobList\":[\"hxjbdhqxvc\"],\"provisioningState\":\"Deleting\"},\"id\":\"pdso\",\"name\":\"bshrnsvbuswd\",\"type\":\"z\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"okkqfqjbvleo\",\"connectionStatus\":\"Rejected\",\"privateLinkServiceId\":\"luiqtqzfavyvnqq\",\"privateEndpointName\":\"aryeu\",\"privateEndpointResourceId\":\"jkqa\",\"jobList\":[\"zslesjcbher\",\"ntiew\",\"jcvb\",\"uwrbehwagoh\"],\"provisioningState\":\"Succeeded\"},\"id\":\"kmr\",\"name\":\"emvvhm\",\"type\":\"tdrjfutacoebj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,10 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.connections().list("mqnrojlpijnkr", "frddhcrati", com.azure.core.util.Context.NONE); + PagedIterable response = manager.connections().list("kh", "dyg", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ronasxift", response.iterator().next().properties().description()); - Assertions.assertEquals("yzhftwesgogczh", response.iterator().next().properties().privateLinkServiceId()); - Assertions.assertEquals("hxjbdhqxvc", response.iterator().next().properties().jobList().get(0)); + Assertions.assertEquals("okkqfqjbvleo", response.iterator().next().properties().description()); + Assertions.assertEquals("luiqtqzfavyvnqq", response.iterator().next().properties().privateLinkServiceId()); + Assertions.assertEquals("zslesjcbher", response.iterator().next().properties().jobList().get(0)); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBaseUpdateParametersTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBaseUpdateParametersTests.java index a2b68cfda0a4..19fb16ecfae1 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBaseUpdateParametersTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBaseUpdateParametersTests.java @@ -18,21 +18,23 @@ public final class EndpointBaseUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EndpointBaseUpdateParameters model = BinaryData.fromString( - "{\"properties\":{\"endpointType\":\"EndpointBaseUpdateProperties\",\"description\":\"hjq\"},\"identity\":{\"principalId\":\"yeicxmqciwqvhk\",\"tenantId\":\"xuigdtopbobj\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"uhrzayvvt\":{\"principalId\":\"w\",\"clientId\":\"m\"}}}}") + "{\"properties\":{\"endpointType\":\"EndpointBaseUpdateProperties\",\"description\":\"yb\"},\"identity\":{\"principalId\":\"h\",\"tenantId\":\"fbowskanyk\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"pec\":{\"principalId\":\"iywgqywgndrvynh\",\"clientId\":\"pphrcgynco\"},\"sxlzevgbmqj\":{\"principalId\":\"m\",\"clientId\":\"oo\"},\"zuvccfwnfnbacfio\":{\"principalId\":\"bcypmi\",\"clientId\":\"w\"}}}}") .toObject(EndpointBaseUpdateParameters.class); - Assertions.assertEquals("hjq", model.properties().description()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("yb", model.properties().description()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EndpointBaseUpdateParameters model = new EndpointBaseUpdateParameters() - .withProperties(new EndpointBaseUpdateProperties().withDescription("hjq")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("uhrzayvvt", new UserAssignedIdentity()))); + .withProperties(new EndpointBaseUpdateProperties().withDescription("yb")) + .withIdentity( + new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("pec", new UserAssignedIdentity(), "sxlzevgbmqj", + new UserAssignedIdentity(), "zuvccfwnfnbacfio", new UserAssignedIdentity()))); model = BinaryData.fromObject(model).toObject(EndpointBaseUpdateParameters.class); - Assertions.assertEquals("hjq", model.properties().description()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("yb", model.properties().description()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); } // Use "Map.of" if available diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBaseUpdatePropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBaseUpdatePropertiesTests.java index 9900aacacb2c..f81c50cb6920 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBaseUpdatePropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBaseUpdatePropertiesTests.java @@ -11,16 +11,16 @@ public final class EndpointBaseUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - EndpointBaseUpdateProperties model - = BinaryData.fromString("{\"endpointType\":\"EndpointBaseUpdateProperties\",\"description\":\"vdfgiotk\"}") - .toObject(EndpointBaseUpdateProperties.class); - Assertions.assertEquals("vdfgiotk", model.description()); + EndpointBaseUpdateProperties model = BinaryData + .fromString("{\"endpointType\":\"EndpointBaseUpdateProperties\",\"description\":\"ebxetqgtzxdp\"}") + .toObject(EndpointBaseUpdateProperties.class); + Assertions.assertEquals("ebxetqgtzxdp", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EndpointBaseUpdateProperties model = new EndpointBaseUpdateProperties().withDescription("vdfgiotk"); + EndpointBaseUpdateProperties model = new EndpointBaseUpdateProperties().withDescription("ebxetqgtzxdp"); model = BinaryData.fromObject(model).toObject(EndpointBaseUpdateProperties.class); - Assertions.assertEquals("vdfgiotk", model.description()); + Assertions.assertEquals("ebxetqgtzxdp", model.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointListTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointListTests.java index e3d2cc64b98f..e9b470404d09 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointListTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointListTests.java @@ -12,8 +12,8 @@ public final class EndpointListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EndpointList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"hzgpphrcgyncocpe\",\"endpointKind\":\"Source\",\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"ofsx\",\"tenantId\":\"evgbmqjq\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"qgtz\":{\"principalId\":\"mivkwlzuvcc\",\"clientId\":\"nfnbacfionlebxe\"}}},\"id\":\"pnqbqqwxrjfe\",\"name\":\"llnwsubi\",\"type\":\"njampm\"}],\"nextLink\":\"nzscxa\"}") + "{\"value\":[{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"ej\",\"endpointKind\":\"Target\",\"provisioningState\":\"Deleting\"},\"identity\":{\"principalId\":\"dmoh\",\"tenantId\":\"bqvudwxdndn\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"kuofqweykhme\":{\"principalId\":\"jjugwdkcglhslaz\",\"clientId\":\"yggdtjixh\"},\"amdecte\":{\"principalId\":\"vfyexfw\",\"clientId\":\"bcibvyvdcsitynn\"},\"kqsleyyvxy\":{\"principalId\":\"iqscjeypv\",\"clientId\":\"zrkgqhcjrefovg\"},\"mdajv\":{\"principalId\":\"pkc\",\"clientId\":\"tpngjcrcczsqpjh\"}}},\"id\":\"sounqecanoaeu\",\"name\":\"fhyhltrpmopjmcma\",\"type\":\"u\"}],\"nextLink\":\"thfuiuaodsfcpkvx\"}") .toObject(EndpointList.class); - Assertions.assertEquals("nzscxa", model.nextLink()); + Assertions.assertEquals("thfuiuaodsfcpkvx", model.nextLink()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsCreateOrUpdateWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsCreateOrUpdateWithResponseMockTests.java index 4cd08d828a61..f93184cf9246 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsCreateOrUpdateWithResponseMockTests.java @@ -28,7 +28,7 @@ public final class EndpointsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"xkhnzbonlwnto\",\"endpointKind\":\"Source\",\"provisioningState\":\"Deleting\"},\"identity\":{\"principalId\":\"whkszzcmrvexztvb\",\"tenantId\":\"gsfraoyzkoow\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ldsyuuximerqfob\":{\"principalId\":\"ux\",\"clientId\":\"q\"},\"dlmkkzevdl\":{\"principalId\":\"znkbykutwpfhpagm\",\"clientId\":\"skdsnfdsdoakg\"},\"m\":{\"principalId\":\"wpusdsttwvogv\",\"clientId\":\"ejdcngqqmoakuf\"}}},\"id\":\"rwr\",\"name\":\"grtwae\",\"type\":\"u\"}"; + = "{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"kayuhqlbjbs\",\"endpointKind\":\"Target\",\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"t\",\"tenantId\":\"gmfpgvmp\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"drhneuyow\":{\"principalId\":\"thaqfxssmwu\",\"clientId\":\"bdsrez\"},\"sibircgpi\":{\"principalId\":\"d\",\"clientId\":\"t\"}}},\"id\":\"zimejzanlfzx\",\"name\":\"av\",\"type\":\"mbzonokix\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,16 +38,19 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Endpoint response = manager.endpoints() - .define("aeburuvdmo") - .withExistingStorageMover("mkycgra", "wjue") - .withProperties(new EndpointBaseProperties().withDescription("mz").withEndpointKind(EndpointKind.SOURCE)) + .define("hfwpracstwit") + .withExistingStorageMover("cdl", "h") + .withProperties( + new EndpointBaseProperties().withDescription("hevxcced").withEndpointKind(EndpointKind.TARGET)) .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("ezkojvdcp", new UserAssignedIdentity()))) + .withUserAssignedIdentities( + mapOf("acizsjqlhkrr", new UserAssignedIdentity(), "pjorwkqnyhg", new UserAssignedIdentity(), + "wfsdjpvkvpbj", new UserAssignedIdentity(), "jk", new UserAssignedIdentity()))) .create(); - Assertions.assertEquals("xkhnzbonlwnto", response.properties().description()); - Assertions.assertEquals(EndpointKind.SOURCE, response.properties().endpointKind()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.identity().type()); + Assertions.assertEquals("kayuhqlbjbs", response.properties().description()); + Assertions.assertEquals(EndpointKind.TARGET, response.properties().endpointKind()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); } // Use "Map.of" if available diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsDeleteMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsDeleteMockTests.java index 3efb13725e5c..710c16c6ad74 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsDeleteMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.endpoints().delete("xsdszuempsb", "kfzbeyvpnqicvi", "v", com.azure.core.util.Context.NONE); + manager.endpoints().delete("zqhof", "rmaequ", "ah", com.azure.core.util.Context.NONE); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsGetWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsGetWithResponseMockTests.java index ce91b89057c3..9d646c578664 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsGetWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class EndpointsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"uzsoi\",\"endpointKind\":\"Source\",\"provisioningState\":\"Failed\"},\"identity\":{\"principalId\":\"xtrthz\",\"tenantId\":\"ytdw\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"ivpdtiir\":{\"principalId\":\"ubpaxhe\",\"clientId\":\"i\"},\"xrxxlep\":{\"principalId\":\"d\",\"clientId\":\"axoruzfgsquy\"},\"ooaojkniodkooebw\":{\"principalId\":\"amxjezwlw\",\"clientId\":\"xuqlcvydypat\"},\"infwjlfltkacjve\":{\"principalId\":\"jhemms\",\"clientId\":\"dkcrodt\"}}},\"id\":\"dlfoakggkfp\",\"name\":\"gaowpulpqblylsyx\",\"type\":\"qjnsjervtia\"}"; + = "{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"gsfraoyzkoow\",\"endpointKind\":\"Target\",\"provisioningState\":\"Deleting\"},\"identity\":{\"principalId\":\"aw\",\"tenantId\":\"ldsyuuximerqfob\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"r\":{\"principalId\":\"bykutw\",\"clientId\":\"hpagm\"},\"twvogvbbe\":{\"principalId\":\"dsnfdsdoakgtdl\",\"clientId\":\"kzevdlhewpusds\"},\"enuuzkopbm\":{\"principalId\":\"cngqqmoakufgmjz\",\"clientId\":\"rdgrtw\"}}},\"id\":\"rfdwoyu\",\"name\":\"hziuiefozbhdms\",\"type\":\"l\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Endpoint response = manager.endpoints() - .getWithResponse("gsexne", "fdnw", "wmewzsyy", com.azure.core.util.Context.NONE) + .getWithResponse("zxkhnzbonlwnto", "gokdwbwhks", "zcmrvexztvb", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("uzsoi", response.properties().description()); - Assertions.assertEquals(EndpointKind.SOURCE, response.properties().endpointKind()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("gsfraoyzkoow", response.properties().description()); + Assertions.assertEquals(EndpointKind.TARGET, response.properties().endpointKind()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.identity().type()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsListMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsListMockTests.java index 86ceec5fbf62..3aa2832a24e7 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsListMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointsListMockTests.java @@ -24,7 +24,7 @@ public final class EndpointsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"tzpofncckwyfzq\",\"endpointKind\":\"Source\",\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"qa\",\"tenantId\":\"feqztppriol\",\"type\":\"None\",\"userAssignedIdentities\":{\"wdcfhucqdpfuv\":{\"principalId\":\"lt\",\"clientId\":\"mncwsobqwcsdb\"},\"t\":{\"principalId\":\"sbjjc\",\"clientId\":\"vxb\"},\"kgjubgdknnqvsazn\":{\"principalId\":\"dut\",\"clientId\":\"ormrlxqtvcofudfl\"}}},\"id\":\"tor\",\"name\":\"dsg\",\"type\":\"a\"}]}"; + = "{\"value\":[{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"aivwitqscywu\",\"endpointKind\":\"Target\",\"provisioningState\":\"Canceled\"},\"identity\":{\"principalId\":\"czbwemhairsbr\",\"tenantId\":\"dwmsweypqwd\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"ncsdtclusiyp\":{\"principalId\":\"ccnxqhuex\",\"clientId\":\"ttlstvlzywemhz\"},\"elolppvksrpqvuj\":{\"principalId\":\"fgytguslfeadcyg\",\"clientId\":\"kyhejhzisxgf\"}}},\"id\":\"aehtwd\",\"name\":\"r\",\"type\":\"tswiby\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,10 +34,10 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.endpoints().list("jjxd", "rbuukzclewyhmlwp", com.azure.core.util.Context.NONE); + = manager.endpoints().list("icslfaoq", "piyylhalnswhccsp", com.azure.core.util.Context.NONE); - Assertions.assertEquals("tzpofncckwyfzq", response.iterator().next().properties().description()); - Assertions.assertEquals(EndpointKind.SOURCE, response.iterator().next().properties().endpointKind()); - Assertions.assertEquals(ManagedServiceIdentityType.NONE, response.iterator().next().identity().type()); + Assertions.assertEquals("aivwitqscywu", response.iterator().next().properties().description()); + Assertions.assertEquals(EndpointKind.TARGET, response.iterator().next().properties().endpointKind()); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionInnerTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionInnerTests.java index 90fd74d045ca..c908709b00e8 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionInnerTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionInnerTests.java @@ -22,72 +22,90 @@ public final class JobDefinitionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobDefinitionInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"f\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Additive\",\"sourceName\":\"jeyp\",\"sourceResourceId\":\"ezrkgqhcjrefo\",\"sourceSubpath\":\"mkqsleyyv\",\"targetName\":\"yqjpkcatt\",\"targetResourceId\":\"gjcrcczsqpjhvm\",\"targetSubpath\":\"jvnysounqe\",\"latestJobRunName\":\"noae\",\"latestJobRunResourceId\":\"fhyhltrpmopjmcma\",\"latestJobRunStatus\":\"Succeeded\",\"agentName\":\"thfuiuaodsfcpkvx\",\"agentResourceId\":\"puozmyzydag\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{\"properties\":{}},\"targetEndpoint\":{\"properties\":{}}},{\"sourceEndpoint\":{\"properties\":{}},\"targetEndpoint\":{\"properties\":{}}},{\"sourceEndpoint\":{\"properties\":{}},\"targetEndpoint\":{\"properties\":{}}},{\"sourceEndpoint\":{\"properties\":{}},\"targetEndpoint\":{\"properties\":{}}}]},\"provisioningState\":\"Deleting\",\"connections\":[\"rdxwzywqsm\",\"surex\",\"moryocfsfksym\",\"dystkiiuxhqyud\"],\"schedule\":{\"frequency\":\"Daily\",\"isActive\":true,\"executionTime\":{\"hour\":1322831619,\"minute\":30},\"startDate\":\"2021-10-04T17:32:47Z\",\"daysOfWeek\":[\"qrvkdv\",\"sllr\",\"vvdfwatkpnpul\",\"xxbczwtr\"],\"daysOfMonth\":[223654021,299344741],\"cronExpression\":\"qjvsovmyokacs\",\"endDate\":\"2021-07-31T02:25:32Z\"},\"dataIntegrityValidation\":\"None\",\"preservePermissions\":true},\"id\":\"bpxjmfl\",\"name\":\"vvnchrkcc\",\"type\":\"wwzjuqkhrsajiwku\"}") + "{\"properties\":{\"description\":\"jmvxie\",\"jobType\":\"CloudToCloud\",\"copyMode\":\"Additive\",\"sourceName\":\"idyjrrfbyaosvexc\",\"sourceResourceId\":\"npc\",\"sourceSubpath\":\"ocohslkevleg\",\"targetName\":\"zfbuhf\",\"targetResourceId\":\"faxkffeii\",\"targetSubpath\":\"lvmezyvshxmzsbbz\",\"latestJobRunName\":\"gigr\",\"latestJobRunResourceId\":\"burvjxxjnspy\",\"latestJobRunStatus\":\"Succeeded\",\"agentName\":\"oenkouknvudwti\",\"agentResourceId\":\"bldngkpoc\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{\"properties\":{}},\"targetEndpoint\":{\"properties\":{}}}]},\"provisioningState\":\"Failed\",\"connections\":[\"kgjn\",\"iucgygevqzn\",\"yp\",\"rbpizc\"],\"schedule\":{\"frequency\":\"Monthly\",\"isActive\":false,\"executionTime\":{\"hour\":2075884745,\"minute\":0},\"startDate\":\"2021-07-10T19:26:28Z\",\"daysOfWeek\":[\"eoejzic\"],\"daysOfMonth\":[764179455],\"cronExpression\":\"ttgzfbis\",\"endDate\":\"2021-05-30T04:32:56Z\",\"repeatInterval\":\"hajdeyeamdpha\"},\"dataIntegrityValidation\":\"SaveFileMD5\",\"preservePermissions\":false,\"isCrossTenantJob\":false,\"crossTenantEndpointTenantId\":\"gipwhonowkg\",\"crossTenantEndpointResourceId\":\"wankixzbi\",\"syncMode\":\"eputtmrywnuzoqf\",\"moverSyncedUntil\":\"2021-02-14T21:37:04Z\"},\"id\":\"zrnkcqvyxlwh\",\"name\":\"lsicohoqqnwv\",\"type\":\"ryavwhheunmmqh\"}") .toObject(JobDefinitionInner.class); - Assertions.assertEquals("f", model.description()); - Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, model.jobType()); + Assertions.assertEquals("jmvxie", model.description()); + Assertions.assertEquals(JobType.CLOUD_TO_CLOUD, model.jobType()); Assertions.assertEquals(CopyMode.ADDITIVE, model.copyMode()); - Assertions.assertEquals("jeyp", model.sourceName()); - Assertions.assertEquals("mkqsleyyv", model.sourceSubpath()); - Assertions.assertEquals("yqjpkcatt", model.targetName()); - Assertions.assertEquals("jvnysounqe", model.targetSubpath()); - Assertions.assertEquals("thfuiuaodsfcpkvx", model.agentName()); - Assertions.assertEquals("rdxwzywqsm", model.connections().get(0)); - Assertions.assertEquals(Frequency.DAILY, model.schedule().frequency()); - Assertions.assertTrue(model.schedule().isActive()); - Assertions.assertEquals(1322831619, model.schedule().executionTime().hour()); - Assertions.assertEquals(Minute.THREE_ZERO, model.schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-04T17:32:47Z"), model.schedule().startDate()); - Assertions.assertEquals("qrvkdv", model.schedule().daysOfWeek().get(0)); - Assertions.assertEquals(223654021, model.schedule().daysOfMonth().get(0)); - Assertions.assertEquals("qjvsovmyokacs", model.schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T02:25:32Z"), model.schedule().endDate()); - Assertions.assertEquals(DataIntegrityValidation.NONE, model.dataIntegrityValidation()); - Assertions.assertTrue(model.preservePermissions()); + Assertions.assertEquals("idyjrrfbyaosvexc", model.sourceName()); + Assertions.assertEquals("ocohslkevleg", model.sourceSubpath()); + Assertions.assertEquals("zfbuhf", model.targetName()); + Assertions.assertEquals("lvmezyvshxmzsbbz", model.targetSubpath()); + Assertions.assertEquals("oenkouknvudwti", model.agentName()); + Assertions.assertEquals("kgjn", model.connections().get(0)); + Assertions.assertEquals(Frequency.MONTHLY, model.schedule().frequency()); + Assertions.assertFalse(model.schedule().isActive()); + Assertions.assertEquals(2075884745, model.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.ZERO, model.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-10T19:26:28Z"), model.schedule().startDate()); + Assertions.assertEquals("eoejzic", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(764179455, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("ttgzfbis", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T04:32:56Z"), model.schedule().endDate()); + Assertions.assertEquals("hajdeyeamdpha", model.schedule().repeatInterval()); + Assertions.assertEquals(DataIntegrityValidation.SAVE_FILE_MD5, model.dataIntegrityValidation()); + Assertions.assertFalse(model.preservePermissions()); + Assertions.assertFalse(model.isCrossTenantJob()); + Assertions.assertEquals("gipwhonowkg", model.crossTenantEndpointTenantId()); + Assertions.assertEquals("wankixzbi", model.crossTenantEndpointResourceId()); + Assertions.assertEquals("eputtmrywnuzoqf", model.syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T21:37:04Z"), model.moverSyncedUntil()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - JobDefinitionInner model = new JobDefinitionInner().withDescription("f") - .withJobType(JobType.ON_PREM_TO_CLOUD) + JobDefinitionInner model = new JobDefinitionInner().withDescription("jmvxie") + .withJobType(JobType.CLOUD_TO_CLOUD) .withCopyMode(CopyMode.ADDITIVE) - .withSourceName("jeyp") - .withSourceSubpath("mkqsleyyv") - .withTargetName("yqjpkcatt") - .withTargetSubpath("jvnysounqe") - .withAgentName("thfuiuaodsfcpkvx") + .withSourceName("idyjrrfbyaosvexc") + .withSourceSubpath("ocohslkevleg") + .withTargetName("zfbuhf") + .withTargetSubpath("lvmezyvshxmzsbbz") + .withAgentName("oenkouknvudwti") .withSourceTargetMap(new JobDefinitionPropertiesSourceTargetMap()) - .withConnections(Arrays.asList("rdxwzywqsm", "surex", "moryocfsfksym", "dystkiiuxhqyud")) - .withSchedule(new ScheduleInfo().withFrequency(Frequency.DAILY) - .withIsActive(true) - .withExecutionTime(new SchedulerTime().withHour(1322831619).withMinute(Minute.THREE_ZERO)) - .withStartDate(OffsetDateTime.parse("2021-10-04T17:32:47Z")) - .withDaysOfWeek(Arrays.asList("qrvkdv", "sllr", "vvdfwatkpnpul", "xxbczwtr")) - .withDaysOfMonth(Arrays.asList(223654021, 299344741)) - .withCronExpression("qjvsovmyokacs") - .withEndDate(OffsetDateTime.parse("2021-07-31T02:25:32Z"))) - .withDataIntegrityValidation(DataIntegrityValidation.NONE) - .withPreservePermissions(true); + .withConnections(Arrays.asList("kgjn", "iucgygevqzn", "yp", "rbpizc")) + .withSchedule(new ScheduleInfo().withFrequency(Frequency.MONTHLY) + .withIsActive(false) + .withExecutionTime(new SchedulerTime().withHour(2075884745).withMinute(Minute.ZERO)) + .withStartDate(OffsetDateTime.parse("2021-07-10T19:26:28Z")) + .withDaysOfWeek(Arrays.asList("eoejzic")) + .withDaysOfMonth(Arrays.asList(764179455)) + .withCronExpression("ttgzfbis") + .withEndDate(OffsetDateTime.parse("2021-05-30T04:32:56Z")) + .withRepeatInterval("hajdeyeamdpha")) + .withDataIntegrityValidation(DataIntegrityValidation.SAVE_FILE_MD5) + .withPreservePermissions(false) + .withIsCrossTenantJob(false) + .withCrossTenantEndpointTenantId("gipwhonowkg") + .withCrossTenantEndpointResourceId("wankixzbi") + .withSyncMode("eputtmrywnuzoqf") + .withMoverSyncedUntil(OffsetDateTime.parse("2021-02-14T21:37:04Z")); model = BinaryData.fromObject(model).toObject(JobDefinitionInner.class); - Assertions.assertEquals("f", model.description()); - Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, model.jobType()); + Assertions.assertEquals("jmvxie", model.description()); + Assertions.assertEquals(JobType.CLOUD_TO_CLOUD, model.jobType()); Assertions.assertEquals(CopyMode.ADDITIVE, model.copyMode()); - Assertions.assertEquals("jeyp", model.sourceName()); - Assertions.assertEquals("mkqsleyyv", model.sourceSubpath()); - Assertions.assertEquals("yqjpkcatt", model.targetName()); - Assertions.assertEquals("jvnysounqe", model.targetSubpath()); - Assertions.assertEquals("thfuiuaodsfcpkvx", model.agentName()); - Assertions.assertEquals("rdxwzywqsm", model.connections().get(0)); - Assertions.assertEquals(Frequency.DAILY, model.schedule().frequency()); - Assertions.assertTrue(model.schedule().isActive()); - Assertions.assertEquals(1322831619, model.schedule().executionTime().hour()); - Assertions.assertEquals(Minute.THREE_ZERO, model.schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-04T17:32:47Z"), model.schedule().startDate()); - Assertions.assertEquals("qrvkdv", model.schedule().daysOfWeek().get(0)); - Assertions.assertEquals(223654021, model.schedule().daysOfMonth().get(0)); - Assertions.assertEquals("qjvsovmyokacs", model.schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T02:25:32Z"), model.schedule().endDate()); - Assertions.assertEquals(DataIntegrityValidation.NONE, model.dataIntegrityValidation()); - Assertions.assertTrue(model.preservePermissions()); + Assertions.assertEquals("idyjrrfbyaosvexc", model.sourceName()); + Assertions.assertEquals("ocohslkevleg", model.sourceSubpath()); + Assertions.assertEquals("zfbuhf", model.targetName()); + Assertions.assertEquals("lvmezyvshxmzsbbz", model.targetSubpath()); + Assertions.assertEquals("oenkouknvudwti", model.agentName()); + Assertions.assertEquals("kgjn", model.connections().get(0)); + Assertions.assertEquals(Frequency.MONTHLY, model.schedule().frequency()); + Assertions.assertFalse(model.schedule().isActive()); + Assertions.assertEquals(2075884745, model.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.ZERO, model.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-10T19:26:28Z"), model.schedule().startDate()); + Assertions.assertEquals("eoejzic", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(764179455, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("ttgzfbis", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T04:32:56Z"), model.schedule().endDate()); + Assertions.assertEquals("hajdeyeamdpha", model.schedule().repeatInterval()); + Assertions.assertEquals(DataIntegrityValidation.SAVE_FILE_MD5, model.dataIntegrityValidation()); + Assertions.assertFalse(model.preservePermissions()); + Assertions.assertFalse(model.isCrossTenantJob()); + Assertions.assertEquals("gipwhonowkg", model.crossTenantEndpointTenantId()); + Assertions.assertEquals("wankixzbi", model.crossTenantEndpointResourceId()); + Assertions.assertEquals("eputtmrywnuzoqf", model.syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T21:37:04Z"), model.moverSyncedUntil()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionListTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionListTests.java index ee3b4f2b8c9a..5d375b495ba5 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionListTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionListTests.java @@ -12,8 +12,8 @@ public final class JobDefinitionListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobDefinitionList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"eyvjusrtslhspkde\",\"jobType\":\"CloudToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"fm\",\"sourceResourceId\":\"gkvtmelmqkrhah\",\"sourceSubpath\":\"juahaquhcdhmdual\",\"targetName\":\"exq\",\"targetResourceId\":\"fadmws\",\"targetSubpath\":\"r\",\"latestJobRunName\":\"xpvgo\",\"latestJobRunResourceId\":\"lf\",\"latestJobRunStatus\":\"Failed\",\"agentName\":\"wbnb\",\"agentResourceId\":\"ldawkzbaliourqha\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Deleting\",\"connections\":[\"fwxosowzxcu\",\"i\",\"jooxdjebw\"],\"schedule\":{\"frequency\":\"Daily\",\"isActive\":true,\"executionTime\":{\"hour\":1446689376,\"minute\":0},\"startDate\":\"2021-05-26T04:02:26Z\",\"daysOfWeek\":[\"civyhzceuo\",\"gjrwjueiotwmcdyt\"],\"daysOfMonth\":[384724385],\"cronExpression\":\"xnrj\",\"endDate\":\"2021-06-11T21:37:26Z\"},\"dataIntegrityValidation\":\"SaveFileMD5\",\"preservePermissions\":true},\"id\":\"ni\",\"name\":\"kxfbkpycgklwndn\",\"type\":\"jdauwhvy\"},{\"properties\":{\"description\":\"zbtd\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Additive\",\"sourceName\":\"znbmpowuwprzq\",\"sourceResourceId\":\"eualupjmkhf\",\"sourceSubpath\":\"bbcswsrtjri\",\"targetName\":\"lrbpbewtghfgbl\",\"targetResourceId\":\"wxzvlvqhjkb\",\"targetSubpath\":\"ibtnmxiebwwaloay\",\"latestJobRunName\":\"gwrtzju\",\"latestJobRunResourceId\":\"wyzmhtxon\",\"latestJobRunStatus\":\"Failed\",\"agentName\":\"avjcbpwx\",\"agentResourceId\":\"srknftguv\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Failed\",\"connections\":[\"dyvxqtayriww\",\"oyq\",\"exrmcqibycnojvk\"],\"schedule\":{\"frequency\":\"Monthly\",\"isActive\":true,\"executionTime\":{\"hour\":615019599,\"minute\":30},\"startDate\":\"2021-09-24T18:39:34Z\",\"daysOfWeek\":[\"zhpvgqzcjrvxd\"],\"daysOfMonth\":[1152020606,1413734297,1151827085,391686670],\"cronExpression\":\"vu\",\"endDate\":\"2021-11-07T19:38:17Z\"},\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"preservePermissions\":true},\"id\":\"jvzunluthnnp\",\"name\":\"nxipeil\",\"type\":\"jzuaejxdultskzbb\"}],\"nextLink\":\"zumveekgpwo\"}") + "{\"value\":[{\"properties\":{\"description\":\"wwncwzzhxgk\",\"jobType\":\"CloudToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"ucnapkteoellwp\",\"sourceResourceId\":\"d\",\"sourceSubpath\":\"pfqbuaceopzf\",\"targetName\":\"rhhuaopppcqeqx\",\"targetResourceId\":\"z\",\"targetSubpath\":\"hzxct\",\"latestJobRunName\":\"gbkdmoizpos\",\"latestJobRunResourceId\":\"grcfb\",\"latestJobRunStatus\":\"Queued\",\"agentName\":\"fqjhhkxbpvjymj\",\"agentResourceId\":\"xjyngudivk\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Failed\",\"connections\":[\"vszjfauvjfdxxi\",\"e\"],\"schedule\":{\"frequency\":\"Onetime\",\"isActive\":true,\"executionTime\":{\"hour\":1261594790,\"minute\":30},\"startDate\":\"2021-07-13T14:12:40Z\",\"daysOfWeek\":[\"vwvxyslqbhsfx\"],\"daysOfMonth\":[168100762],\"cronExpression\":\"k\",\"endDate\":\"2021-11-17T19:10:27Z\",\"repeatInterval\":\"ewwwfbkrvrnsv\"},\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"preservePermissions\":true,\"isCrossTenantJob\":false,\"crossTenantEndpointTenantId\":\"rsbfovasrruvw\",\"crossTenantEndpointResourceId\":\"sqfsubcgjbirxb\",\"syncMode\":\"bsrfbj\",\"moverSyncedUntil\":\"2021-07-26T21:20:39Z\"},\"id\":\"ssotftpv\",\"name\":\"zbexilzznfqqnvw\",\"type\":\"mqtaruoujmkcjh\"}],\"nextLink\":\"ytjrybnwjewgdr\"}") .toObject(JobDefinitionList.class); - Assertions.assertEquals("zumveekgpwo", model.nextLink()); + Assertions.assertEquals("ytjrybnwjewgdr", model.nextLink()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionPropertiesSourceTargetMapTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionPropertiesSourceTargetMapTests.java index bf7b12b35093..6e04798ebf32 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionPropertiesSourceTargetMapTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionPropertiesSourceTargetMapTests.java @@ -11,7 +11,7 @@ public final class JobDefinitionPropertiesSourceTargetMapTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobDefinitionPropertiesSourceTargetMap model = BinaryData.fromString( - "{\"value\":[{\"sourceEndpoint\":{\"properties\":{\"name\":\"bfs\",\"sourceEndpointResourceId\":\"nehmpvecx\",\"awsS3BucketId\":\"debfqkkrbmpukgri\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"zlfbxzpuzycispnq\",\"targetEndpointResourceId\":\"hmgkbrpyy\",\"azureStorageAccountResourceId\":\"ibnuqqkpik\",\"azureStorageBlobContainerName\":\"rgvtqag\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"ynhijggme\",\"sourceEndpointResourceId\":\"siarbutrcvpn\",\"awsS3BucketId\":\"zmhjrunmp\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"dbhrbnlankxm\",\"targetEndpointResourceId\":\"k\",\"azureStorageAccountResourceId\":\"henbtkcxywnytn\",\"azureStorageBlobContainerName\":\"yn\"}}}]}") + "{\"value\":[{\"sourceEndpoint\":{\"properties\":{\"name\":\"apskrdqm\",\"sourceEndpointResourceId\":\"jdhtldwkyzxu\",\"awsS3BucketId\":\"kn\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"cwsvlxotog\",\"targetEndpointResourceId\":\"rupqsxvnmicy\",\"azureStorageAccountResourceId\":\"ceoveilovno\",\"azureStorageBlobContainerName\":\"fj\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"jbkcnxdhbttkph\",\"sourceEndpointResourceId\":\"pnvjtoqnermclf\",\"awsS3BucketId\":\"phoxus\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"abgy\",\"targetEndpointResourceId\":\"sbj\",\"azureStorageAccountResourceId\":\"zq\",\"azureStorageBlobContainerName\":\"xywpmueefjzwfqkq\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"dsuyonobgla\",\"sourceEndpointResourceId\":\"qxtccmgyudx\",\"awsS3BucketId\":\"lmoyrx\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"u\",\"targetEndpointResourceId\":\"pz\",\"azureStorageAccountResourceId\":\"xhdzhlrqjbhckf\",\"azureStorageBlobContainerName\":\"hrxsbk\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"ycanuzbpzkafku\",\"sourceEndpointResourceId\":\"crnwbmeh\",\"awsS3BucketId\":\"eyvjusrtslhspkde\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"ofmxagkvtmelmqkr\",\"targetEndpointResourceId\":\"hvljuahaquh\",\"azureStorageAccountResourceId\":\"hmdua\",\"azureStorageBlobContainerName\":\"exq\"}}}]}") .toObject(JobDefinitionPropertiesSourceTargetMap.class); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionPropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionPropertiesTests.java index a87c5370cf75..c799d621f83e 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionPropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionPropertiesTests.java @@ -22,72 +22,90 @@ public final class JobDefinitionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobDefinitionProperties model = BinaryData.fromString( - "{\"description\":\"oskg\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"uimjmvx\",\"sourceResourceId\":\"duugidyjr\",\"sourceSubpath\":\"byao\",\"targetName\":\"v\",\"targetResourceId\":\"csonpclhoco\",\"targetSubpath\":\"lkevle\",\"latestJobRunName\":\"zfbuhf\",\"latestJobRunResourceId\":\"faxkffeii\",\"latestJobRunStatus\":\"CancelRequested\",\"agentName\":\"m\",\"agentResourceId\":\"yvshxmz\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{\"properties\":{\"name\":\"gigr\",\"sourceEndpointResourceId\":\"burvjxxjnspy\",\"awsS3BucketId\":\"tko\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"ou\",\"targetEndpointResourceId\":\"vudwtiukbldng\",\"azureStorageAccountResourceId\":\"ocipazyxoeg\",\"azureStorageBlobContainerName\":\"g\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"iucgygevqzn\",\"sourceEndpointResourceId\":\"pmr\",\"awsS3BucketId\":\"izcdrqjsd\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"nfyhx\",\"targetEndpointResourceId\":\"oejzi\",\"azureStorageAccountResourceId\":\"ifsjttgzfbishcb\",\"azureStorageBlobContainerName\":\"ajdeyeamdphaga\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"uxwgipwho\",\"sourceEndpointResourceId\":\"wkgshwa\",\"awsS3BucketId\":\"ixzbinjeputtmryw\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"oqftiyqzrnkcq\",\"targetEndpointResourceId\":\"xlwhzlsicoh\",\"azureStorageAccountResourceId\":\"qnwvlrya\",\"azureStorageBlobContainerName\":\"hheunmmqhgyx\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"noc\",\"sourceEndpointResourceId\":\"oklyaxuconuq\",\"awsS3BucketId\":\"fkbey\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"rmjmwvvjektc\",\"targetEndpointResourceId\":\"enhwlrs\",\"azureStorageAccountResourceId\":\"rzpwvlqdqgbiq\",\"azureStorageBlobContainerName\":\"ihkaetcktvfc\"}}}]},\"provisioningState\":\"Failed\",\"connections\":[\"kymuctqhjfbebr\",\"cxerf\",\"wutttxfvjrbi\",\"phxepcyvahf\"],\"schedule\":{\"frequency\":\"None\",\"isActive\":false,\"executionTime\":{\"hour\":1238878906,\"minute\":0},\"startDate\":\"2021-01-04T05:40:41Z\",\"daysOfWeek\":[\"dokgjl\",\"yoxgvcltbgsnc\"],\"daysOfMonth\":[1555368773,630804167],\"cronExpression\":\"zz\",\"endDate\":\"2021-12-06T11:52:19Z\"},\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"preservePermissions\":true}") + "{\"description\":\"xzko\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Additive\",\"sourceName\":\"koklya\",\"sourceResourceId\":\"conuqszfkbeype\",\"sourceSubpath\":\"mjmwvvjektcx\",\"targetName\":\"enhwlrs\",\"targetResourceId\":\"rzpwvlqdqgbiq\",\"targetSubpath\":\"ihkaetcktvfc\",\"latestJobRunName\":\"fsnkymuctq\",\"latestJobRunResourceId\":\"fbebrjcxer\",\"latestJobRunStatus\":\"Started\",\"agentName\":\"tttxfvjrb\",\"agentResourceId\":\"phxepcyvahf\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{\"properties\":{\"name\":\"xjvuujqgidokg\",\"sourceEndpointResourceId\":\"jyoxgvclt\",\"awsS3BucketId\":\"sncghkjeszz\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"jhtxfvgxbfsmxne\",\"targetEndpointResourceId\":\"pvecxgodeb\",\"azureStorageAccountResourceId\":\"kk\",\"azureStorageBlobContainerName\":\"mpukgriw\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"lfbxzpuzycisp\",\"sourceEndpointResourceId\":\"zahmgkbrpyydhibn\",\"awsS3BucketId\":\"qkpikadrgvtqagnb\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"hijggme\",\"targetEndpointResourceId\":\"siarbutrcvpn\",\"azureStorageAccountResourceId\":\"zmhjrunmp\",\"azureStorageBlobContainerName\":\"tdbhrbnla\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"myskpbhenbtkcxy\",\"sourceEndpointResourceId\":\"y\",\"awsS3BucketId\":\"rsyn\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"dybyxczfclhaa\",\"targetEndpointResourceId\":\"babphlwrqlfk\",\"azureStorageAccountResourceId\":\"thsu\",\"azureStorageBlobContainerName\":\"cmnyyazttb\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"rq\",\"sourceEndpointResourceId\":\"edckzywbiexzfey\",\"awsS3BucketId\":\"axibxujw\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"walm\",\"targetEndpointResourceId\":\"yoxa\",\"azureStorageAccountResourceId\":\"dkzjancuxrh\",\"azureStorageBlobContainerName\":\"bavxbniwdjswzt\"}}}]},\"provisioningState\":\"Succeeded\",\"connections\":[\"nxytxh\",\"zxbzpfzabglc\",\"hxw\"],\"schedule\":{\"frequency\":\"Hourly\",\"isActive\":true,\"executionTime\":{\"hour\":1945421242,\"minute\":0},\"startDate\":\"2021-04-06T10:17:39Z\",\"daysOfWeek\":[\"zbhvgyuguosv\",\"kfssxqukkf\",\"l\"],\"daysOfMonth\":[1737094412,301968900,1462188439,538990219],\"cronExpression\":\"zkd\",\"endDate\":\"2021-10-06T03:42:02Z\",\"repeatInterval\":\"vlopwiyighx\"},\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"preservePermissions\":false,\"isCrossTenantJob\":true,\"crossTenantEndpointTenantId\":\"uebbaumnyqup\",\"crossTenantEndpointResourceId\":\"eojnabc\",\"syncMode\":\"smtxpsieb\",\"moverSyncedUntil\":\"2021-06-30T11:17:19Z\"}") .toObject(JobDefinitionProperties.class); - Assertions.assertEquals("oskg", model.description()); + Assertions.assertEquals("xzko", model.description()); Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, model.jobType()); - Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("uimjmvx", model.sourceName()); - Assertions.assertEquals("byao", model.sourceSubpath()); - Assertions.assertEquals("v", model.targetName()); - Assertions.assertEquals("lkevle", model.targetSubpath()); - Assertions.assertEquals("m", model.agentName()); - Assertions.assertEquals("kymuctqhjfbebr", model.connections().get(0)); - Assertions.assertEquals(Frequency.NONE, model.schedule().frequency()); - Assertions.assertFalse(model.schedule().isActive()); - Assertions.assertEquals(1238878906, model.schedule().executionTime().hour()); + Assertions.assertEquals(CopyMode.ADDITIVE, model.copyMode()); + Assertions.assertEquals("koklya", model.sourceName()); + Assertions.assertEquals("mjmwvvjektcx", model.sourceSubpath()); + Assertions.assertEquals("enhwlrs", model.targetName()); + Assertions.assertEquals("ihkaetcktvfc", model.targetSubpath()); + Assertions.assertEquals("tttxfvjrb", model.agentName()); + Assertions.assertEquals("nxytxh", model.connections().get(0)); + Assertions.assertEquals(Frequency.HOURLY, model.schedule().frequency()); + Assertions.assertTrue(model.schedule().isActive()); + Assertions.assertEquals(1945421242, model.schedule().executionTime().hour()); Assertions.assertEquals(Minute.ZERO, model.schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-04T05:40:41Z"), model.schedule().startDate()); - Assertions.assertEquals("dokgjl", model.schedule().daysOfWeek().get(0)); - Assertions.assertEquals(1555368773, model.schedule().daysOfMonth().get(0)); - Assertions.assertEquals("zz", model.schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-06T11:52:19Z"), model.schedule().endDate()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-06T10:17:39Z"), model.schedule().startDate()); + Assertions.assertEquals("zbhvgyuguosv", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(1737094412, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("zkd", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-06T03:42:02Z"), model.schedule().endDate()); + Assertions.assertEquals("vlopwiyighx", model.schedule().repeatInterval()); Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, model.dataIntegrityValidation()); - Assertions.assertTrue(model.preservePermissions()); + Assertions.assertFalse(model.preservePermissions()); + Assertions.assertTrue(model.isCrossTenantJob()); + Assertions.assertEquals("uebbaumnyqup", model.crossTenantEndpointTenantId()); + Assertions.assertEquals("eojnabc", model.crossTenantEndpointResourceId()); + Assertions.assertEquals("smtxpsieb", model.syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T11:17:19Z"), model.moverSyncedUntil()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - JobDefinitionProperties model = new JobDefinitionProperties().withDescription("oskg") + JobDefinitionProperties model = new JobDefinitionProperties().withDescription("xzko") .withJobType(JobType.ON_PREM_TO_CLOUD) - .withCopyMode(CopyMode.MIRROR) - .withSourceName("uimjmvx") - .withSourceSubpath("byao") - .withTargetName("v") - .withTargetSubpath("lkevle") - .withAgentName("m") + .withCopyMode(CopyMode.ADDITIVE) + .withSourceName("koklya") + .withSourceSubpath("mjmwvvjektcx") + .withTargetName("enhwlrs") + .withTargetSubpath("ihkaetcktvfc") + .withAgentName("tttxfvjrb") .withSourceTargetMap(new JobDefinitionPropertiesSourceTargetMap()) - .withConnections(Arrays.asList("kymuctqhjfbebr", "cxerf", "wutttxfvjrbi", "phxepcyvahf")) - .withSchedule(new ScheduleInfo().withFrequency(Frequency.NONE) - .withIsActive(false) - .withExecutionTime(new SchedulerTime().withHour(1238878906).withMinute(Minute.ZERO)) - .withStartDate(OffsetDateTime.parse("2021-01-04T05:40:41Z")) - .withDaysOfWeek(Arrays.asList("dokgjl", "yoxgvcltbgsnc")) - .withDaysOfMonth(Arrays.asList(1555368773, 630804167)) - .withCronExpression("zz") - .withEndDate(OffsetDateTime.parse("2021-12-06T11:52:19Z"))) + .withConnections(Arrays.asList("nxytxh", "zxbzpfzabglc", "hxw")) + .withSchedule(new ScheduleInfo().withFrequency(Frequency.HOURLY) + .withIsActive(true) + .withExecutionTime(new SchedulerTime().withHour(1945421242).withMinute(Minute.ZERO)) + .withStartDate(OffsetDateTime.parse("2021-04-06T10:17:39Z")) + .withDaysOfWeek(Arrays.asList("zbhvgyuguosv", "kfssxqukkf", "l")) + .withDaysOfMonth(Arrays.asList(1737094412, 301968900, 1462188439, 538990219)) + .withCronExpression("zkd") + .withEndDate(OffsetDateTime.parse("2021-10-06T03:42:02Z")) + .withRepeatInterval("vlopwiyighx")) .withDataIntegrityValidation(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5) - .withPreservePermissions(true); + .withPreservePermissions(false) + .withIsCrossTenantJob(true) + .withCrossTenantEndpointTenantId("uebbaumnyqup") + .withCrossTenantEndpointResourceId("eojnabc") + .withSyncMode("smtxpsieb") + .withMoverSyncedUntil(OffsetDateTime.parse("2021-06-30T11:17:19Z")); model = BinaryData.fromObject(model).toObject(JobDefinitionProperties.class); - Assertions.assertEquals("oskg", model.description()); + Assertions.assertEquals("xzko", model.description()); Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, model.jobType()); - Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("uimjmvx", model.sourceName()); - Assertions.assertEquals("byao", model.sourceSubpath()); - Assertions.assertEquals("v", model.targetName()); - Assertions.assertEquals("lkevle", model.targetSubpath()); - Assertions.assertEquals("m", model.agentName()); - Assertions.assertEquals("kymuctqhjfbebr", model.connections().get(0)); - Assertions.assertEquals(Frequency.NONE, model.schedule().frequency()); - Assertions.assertFalse(model.schedule().isActive()); - Assertions.assertEquals(1238878906, model.schedule().executionTime().hour()); + Assertions.assertEquals(CopyMode.ADDITIVE, model.copyMode()); + Assertions.assertEquals("koklya", model.sourceName()); + Assertions.assertEquals("mjmwvvjektcx", model.sourceSubpath()); + Assertions.assertEquals("enhwlrs", model.targetName()); + Assertions.assertEquals("ihkaetcktvfc", model.targetSubpath()); + Assertions.assertEquals("tttxfvjrb", model.agentName()); + Assertions.assertEquals("nxytxh", model.connections().get(0)); + Assertions.assertEquals(Frequency.HOURLY, model.schedule().frequency()); + Assertions.assertTrue(model.schedule().isActive()); + Assertions.assertEquals(1945421242, model.schedule().executionTime().hour()); Assertions.assertEquals(Minute.ZERO, model.schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-04T05:40:41Z"), model.schedule().startDate()); - Assertions.assertEquals("dokgjl", model.schedule().daysOfWeek().get(0)); - Assertions.assertEquals(1555368773, model.schedule().daysOfMonth().get(0)); - Assertions.assertEquals("zz", model.schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-06T11:52:19Z"), model.schedule().endDate()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-06T10:17:39Z"), model.schedule().startDate()); + Assertions.assertEquals("zbhvgyuguosv", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(1737094412, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("zkd", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-06T03:42:02Z"), model.schedule().endDate()); + Assertions.assertEquals("vlopwiyighx", model.schedule().repeatInterval()); Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, model.dataIntegrityValidation()); - Assertions.assertTrue(model.preservePermissions()); + Assertions.assertFalse(model.preservePermissions()); + Assertions.assertTrue(model.isCrossTenantJob()); + Assertions.assertEquals("uebbaumnyqup", model.crossTenantEndpointTenantId()); + Assertions.assertEquals("eojnabc", model.crossTenantEndpointResourceId()); + Assertions.assertEquals("smtxpsieb", model.syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T11:17:19Z"), model.moverSyncedUntil()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionUpdateParametersTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionUpdateParametersTests.java index aa3feee1baf7..5d7d4c8d251c 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionUpdateParametersTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionUpdateParametersTests.java @@ -20,53 +20,62 @@ public final class JobDefinitionUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobDefinitionUpdateParameters model = BinaryData.fromString( - "{\"properties\":{\"description\":\"ceoveilovno\",\"copyMode\":\"Additive\",\"agentName\":\"fcnj\",\"connections\":[\"nxdhbt\"],\"dataIntegrityValidation\":\"None\",\"schedule\":{\"frequency\":\"Weekly\",\"isActive\":false,\"executionTime\":{\"hour\":224051014,\"minute\":30},\"startDate\":\"2021-01-19T13:13:37Z\",\"daysOfWeek\":[\"clfp\",\"phoxus\",\"rpabg\",\"epsbjtazqu\"],\"daysOfMonth\":[2007801220,856340492,1245972135,931082725],\"cronExpression\":\"ef\",\"endDate\":\"2021-05-04T20:06:55Z\"}}}") + "{\"properties\":{\"description\":\"gmtsavjcbpwxqpsr\",\"copyMode\":\"Additive\",\"agentName\":\"guvriuhprwmd\",\"connections\":[\"qtayri\",\"wroyqbexrmcq\",\"bycnojvkn\"],\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"schedule\":{\"frequency\":\"Daily\",\"isActive\":false,\"executionTime\":{\"hour\":673503494,\"minute\":0},\"startDate\":\"2021-03-02T11:20:46Z\",\"daysOfWeek\":[\"vgqzcjrvxd\",\"zlmwlxkvugfhz\",\"vawjvzunlu\",\"hnnpr\"],\"daysOfMonth\":[1539688741],\"cronExpression\":\"ilpjzuaejxdult\",\"endDate\":\"2021-07-28T02:16:26Z\",\"repeatInterval\":\"btdzumveekg\"},\"syncMode\":\"ozuhkfp\",\"moverSyncedUntil\":\"2021-02-19T22:50:40Z\"}}") .toObject(JobDefinitionUpdateParameters.class); - Assertions.assertEquals("ceoveilovno", model.description()); + Assertions.assertEquals("gmtsavjcbpwxqpsr", model.description()); Assertions.assertEquals(CopyMode.ADDITIVE, model.copyMode()); - Assertions.assertEquals("fcnj", model.agentName()); - Assertions.assertEquals("nxdhbt", model.connections().get(0)); - Assertions.assertEquals(DataIntegrityValidation.NONE, model.dataIntegrityValidation()); - Assertions.assertEquals(Frequency.WEEKLY, model.schedule().frequency()); + Assertions.assertEquals("guvriuhprwmd", model.agentName()); + Assertions.assertEquals("qtayri", model.connections().get(0)); + Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, model.dataIntegrityValidation()); + Assertions.assertEquals(Frequency.DAILY, model.schedule().frequency()); Assertions.assertFalse(model.schedule().isActive()); - Assertions.assertEquals(224051014, model.schedule().executionTime().hour()); - Assertions.assertEquals(Minute.THREE_ZERO, model.schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-19T13:13:37Z"), model.schedule().startDate()); - Assertions.assertEquals("clfp", model.schedule().daysOfWeek().get(0)); - Assertions.assertEquals(2007801220, model.schedule().daysOfMonth().get(0)); - Assertions.assertEquals("ef", model.schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-04T20:06:55Z"), model.schedule().endDate()); + Assertions.assertEquals(673503494, model.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.ZERO, model.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-02T11:20:46Z"), model.schedule().startDate()); + Assertions.assertEquals("vgqzcjrvxd", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(1539688741, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("ilpjzuaejxdult", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-28T02:16:26Z"), model.schedule().endDate()); + Assertions.assertEquals("btdzumveekg", model.schedule().repeatInterval()); + Assertions.assertEquals("ozuhkfp", model.syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T22:50:40Z"), model.moverSyncedUntil()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - JobDefinitionUpdateParameters model = new JobDefinitionUpdateParameters().withDescription("ceoveilovno") + JobDefinitionUpdateParameters model = new JobDefinitionUpdateParameters().withDescription("gmtsavjcbpwxqpsr") .withCopyMode(CopyMode.ADDITIVE) - .withAgentName("fcnj") - .withConnections(Arrays.asList("nxdhbt")) - .withDataIntegrityValidation(DataIntegrityValidation.NONE) - .withSchedule(new ScheduleInfo().withFrequency(Frequency.WEEKLY) + .withAgentName("guvriuhprwmd") + .withConnections(Arrays.asList("qtayri", "wroyqbexrmcq", "bycnojvkn")) + .withDataIntegrityValidation(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5) + .withSchedule(new ScheduleInfo().withFrequency(Frequency.DAILY) .withIsActive(false) - .withExecutionTime(new SchedulerTime().withHour(224051014).withMinute(Minute.THREE_ZERO)) - .withStartDate(OffsetDateTime.parse("2021-01-19T13:13:37Z")) - .withDaysOfWeek(Arrays.asList("clfp", "phoxus", "rpabg", "epsbjtazqu")) - .withDaysOfMonth(Arrays.asList(2007801220, 856340492, 1245972135, 931082725)) - .withCronExpression("ef") - .withEndDate(OffsetDateTime.parse("2021-05-04T20:06:55Z"))); + .withExecutionTime(new SchedulerTime().withHour(673503494).withMinute(Minute.ZERO)) + .withStartDate(OffsetDateTime.parse("2021-03-02T11:20:46Z")) + .withDaysOfWeek(Arrays.asList("vgqzcjrvxd", "zlmwlxkvugfhz", "vawjvzunlu", "hnnpr")) + .withDaysOfMonth(Arrays.asList(1539688741)) + .withCronExpression("ilpjzuaejxdult") + .withEndDate(OffsetDateTime.parse("2021-07-28T02:16:26Z")) + .withRepeatInterval("btdzumveekg")) + .withSyncMode("ozuhkfp") + .withMoverSyncedUntil(OffsetDateTime.parse("2021-02-19T22:50:40Z")); model = BinaryData.fromObject(model).toObject(JobDefinitionUpdateParameters.class); - Assertions.assertEquals("ceoveilovno", model.description()); + Assertions.assertEquals("gmtsavjcbpwxqpsr", model.description()); Assertions.assertEquals(CopyMode.ADDITIVE, model.copyMode()); - Assertions.assertEquals("fcnj", model.agentName()); - Assertions.assertEquals("nxdhbt", model.connections().get(0)); - Assertions.assertEquals(DataIntegrityValidation.NONE, model.dataIntegrityValidation()); - Assertions.assertEquals(Frequency.WEEKLY, model.schedule().frequency()); + Assertions.assertEquals("guvriuhprwmd", model.agentName()); + Assertions.assertEquals("qtayri", model.connections().get(0)); + Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, model.dataIntegrityValidation()); + Assertions.assertEquals(Frequency.DAILY, model.schedule().frequency()); Assertions.assertFalse(model.schedule().isActive()); - Assertions.assertEquals(224051014, model.schedule().executionTime().hour()); - Assertions.assertEquals(Minute.THREE_ZERO, model.schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-19T13:13:37Z"), model.schedule().startDate()); - Assertions.assertEquals("clfp", model.schedule().daysOfWeek().get(0)); - Assertions.assertEquals(2007801220, model.schedule().daysOfMonth().get(0)); - Assertions.assertEquals("ef", model.schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-04T20:06:55Z"), model.schedule().endDate()); + Assertions.assertEquals(673503494, model.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.ZERO, model.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-02T11:20:46Z"), model.schedule().startDate()); + Assertions.assertEquals("vgqzcjrvxd", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(1539688741, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("ilpjzuaejxdult", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-28T02:16:26Z"), model.schedule().endDate()); + Assertions.assertEquals("btdzumveekg", model.schedule().repeatInterval()); + Assertions.assertEquals("ozuhkfp", model.syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T22:50:40Z"), model.moverSyncedUntil()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionUpdatePropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionUpdatePropertiesTests.java index 02dbea9a4aa7..9ae1b0b0c41d 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionUpdatePropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionUpdatePropertiesTests.java @@ -20,53 +20,62 @@ public final class JobDefinitionUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobDefinitionUpdateProperties model = BinaryData.fromString( - "{\"description\":\"qkqujidsu\",\"copyMode\":\"Mirror\",\"agentName\":\"bglaocqxtccm\",\"connections\":[\"dxyt\",\"moyrxvwfudwpz\",\"txhdzh\"],\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"schedule\":{\"frequency\":\"Daily\",\"isActive\":true,\"executionTime\":{\"hour\":869075022,\"minute\":0},\"startDate\":\"2021-11-29T20:48:55Z\",\"daysOfWeek\":[\"yvpycanuzbpzk\"],\"daysOfMonth\":[863454925,1834539320,133840349],\"cronExpression\":\"rnwb\",\"endDate\":\"2021-01-14T01:50:46Z\"}}") + "{\"description\":\"ofd\",\"copyMode\":\"Mirror\",\"agentName\":\"sd\",\"connections\":[\"uwaboekqvke\",\"nsmvbxwyj\",\"flhhcaal\",\"jixisxyawjoyaqcs\"],\"dataIntegrityValidation\":\"SaveFileMD5\",\"schedule\":{\"frequency\":\"Monthly\",\"isActive\":true,\"executionTime\":{\"hour\":787836165,\"minute\":30},\"startDate\":\"2021-09-29T21:30:45Z\",\"daysOfWeek\":[\"xhnrztfolhb\",\"xknalaulppg\"],\"daysOfMonth\":[955485143,1767174247,1198942422,523387413],\"cronExpression\":\"yiropu\",\"endDate\":\"2021-01-29T15:08:53Z\",\"repeatInterval\":\"vpgylgqgitxmed\"},\"syncMode\":\"c\",\"moverSyncedUntil\":\"2021-07-31T02:12:25Z\"}") .toObject(JobDefinitionUpdateProperties.class); - Assertions.assertEquals("qkqujidsu", model.description()); + Assertions.assertEquals("ofd", model.description()); Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("bglaocqxtccm", model.agentName()); - Assertions.assertEquals("dxyt", model.connections().get(0)); - Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, model.dataIntegrityValidation()); - Assertions.assertEquals(Frequency.DAILY, model.schedule().frequency()); + Assertions.assertEquals("sd", model.agentName()); + Assertions.assertEquals("uwaboekqvke", model.connections().get(0)); + Assertions.assertEquals(DataIntegrityValidation.SAVE_FILE_MD5, model.dataIntegrityValidation()); + Assertions.assertEquals(Frequency.MONTHLY, model.schedule().frequency()); Assertions.assertTrue(model.schedule().isActive()); - Assertions.assertEquals(869075022, model.schedule().executionTime().hour()); - Assertions.assertEquals(Minute.ZERO, model.schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-29T20:48:55Z"), model.schedule().startDate()); - Assertions.assertEquals("yvpycanuzbpzk", model.schedule().daysOfWeek().get(0)); - Assertions.assertEquals(863454925, model.schedule().daysOfMonth().get(0)); - Assertions.assertEquals("rnwb", model.schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-14T01:50:46Z"), model.schedule().endDate()); + Assertions.assertEquals(787836165, model.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.THREE_ZERO, model.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-29T21:30:45Z"), model.schedule().startDate()); + Assertions.assertEquals("xhnrztfolhb", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(955485143, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("yiropu", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-29T15:08:53Z"), model.schedule().endDate()); + Assertions.assertEquals("vpgylgqgitxmed", model.schedule().repeatInterval()); + Assertions.assertEquals("c", model.syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T02:12:25Z"), model.moverSyncedUntil()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - JobDefinitionUpdateProperties model = new JobDefinitionUpdateProperties().withDescription("qkqujidsu") + JobDefinitionUpdateProperties model = new JobDefinitionUpdateProperties().withDescription("ofd") .withCopyMode(CopyMode.MIRROR) - .withAgentName("bglaocqxtccm") - .withConnections(Arrays.asList("dxyt", "moyrxvwfudwpz", "txhdzh")) - .withDataIntegrityValidation(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5) - .withSchedule(new ScheduleInfo().withFrequency(Frequency.DAILY) + .withAgentName("sd") + .withConnections(Arrays.asList("uwaboekqvke", "nsmvbxwyj", "flhhcaal", "jixisxyawjoyaqcs")) + .withDataIntegrityValidation(DataIntegrityValidation.SAVE_FILE_MD5) + .withSchedule(new ScheduleInfo().withFrequency(Frequency.MONTHLY) .withIsActive(true) - .withExecutionTime(new SchedulerTime().withHour(869075022).withMinute(Minute.ZERO)) - .withStartDate(OffsetDateTime.parse("2021-11-29T20:48:55Z")) - .withDaysOfWeek(Arrays.asList("yvpycanuzbpzk")) - .withDaysOfMonth(Arrays.asList(863454925, 1834539320, 133840349)) - .withCronExpression("rnwb") - .withEndDate(OffsetDateTime.parse("2021-01-14T01:50:46Z"))); + .withExecutionTime(new SchedulerTime().withHour(787836165).withMinute(Minute.THREE_ZERO)) + .withStartDate(OffsetDateTime.parse("2021-09-29T21:30:45Z")) + .withDaysOfWeek(Arrays.asList("xhnrztfolhb", "xknalaulppg")) + .withDaysOfMonth(Arrays.asList(955485143, 1767174247, 1198942422, 523387413)) + .withCronExpression("yiropu") + .withEndDate(OffsetDateTime.parse("2021-01-29T15:08:53Z")) + .withRepeatInterval("vpgylgqgitxmed")) + .withSyncMode("c") + .withMoverSyncedUntil(OffsetDateTime.parse("2021-07-31T02:12:25Z")); model = BinaryData.fromObject(model).toObject(JobDefinitionUpdateProperties.class); - Assertions.assertEquals("qkqujidsu", model.description()); + Assertions.assertEquals("ofd", model.description()); Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("bglaocqxtccm", model.agentName()); - Assertions.assertEquals("dxyt", model.connections().get(0)); - Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, model.dataIntegrityValidation()); - Assertions.assertEquals(Frequency.DAILY, model.schedule().frequency()); + Assertions.assertEquals("sd", model.agentName()); + Assertions.assertEquals("uwaboekqvke", model.connections().get(0)); + Assertions.assertEquals(DataIntegrityValidation.SAVE_FILE_MD5, model.dataIntegrityValidation()); + Assertions.assertEquals(Frequency.MONTHLY, model.schedule().frequency()); Assertions.assertTrue(model.schedule().isActive()); - Assertions.assertEquals(869075022, model.schedule().executionTime().hour()); - Assertions.assertEquals(Minute.ZERO, model.schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-29T20:48:55Z"), model.schedule().startDate()); - Assertions.assertEquals("yvpycanuzbpzk", model.schedule().daysOfWeek().get(0)); - Assertions.assertEquals(863454925, model.schedule().daysOfMonth().get(0)); - Assertions.assertEquals("rnwb", model.schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-14T01:50:46Z"), model.schedule().endDate()); + Assertions.assertEquals(787836165, model.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.THREE_ZERO, model.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-29T21:30:45Z"), model.schedule().startDate()); + Assertions.assertEquals("xhnrztfolhb", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(955485143, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("yiropu", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-29T15:08:53Z"), model.schedule().endDate()); + Assertions.assertEquals("vpgylgqgitxmed", model.schedule().repeatInterval()); + Assertions.assertEquals("c", model.syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T02:12:25Z"), model.moverSyncedUntil()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsCreateOrUpdateWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsCreateOrUpdateWithResponseMockTests.java index 63229f4dbd13..918383eebd62 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsCreateOrUpdateWithResponseMockTests.java @@ -30,7 +30,7 @@ public final class JobDefinitionsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"joqkagfhsxt\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"zxnfaaz\",\"sourceResourceId\":\"dtnkdmkq\",\"sourceSubpath\":\"lwuenvrkp\",\"targetName\":\"ou\",\"targetResourceId\":\"bre\",\"targetSubpath\":\"aays\",\"latestJobRunName\":\"ixqtn\",\"latestJobRunResourceId\":\"tezlwff\",\"latestJobRunStatus\":\"Failed\",\"agentName\":\"pjpqqmtedltmmji\",\"agentResourceId\":\"eozphv\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Succeeded\",\"connections\":[\"gupkvipmdscwxq\",\"pevzhfst\"],\"schedule\":{\"frequency\":\"Monthly\",\"isActive\":true,\"executionTime\":{\"hour\":1229940730,\"minute\":30},\"startDate\":\"2021-06-17T22:54:10Z\",\"daysOfWeek\":[\"uvhixbjxyfwn\"],\"daysOfMonth\":[1461211866],\"cronExpression\":\"o\",\"endDate\":\"2021-03-11T06:14Z\"},\"dataIntegrityValidation\":\"SaveFileMD5\",\"preservePermissions\":false},\"id\":\"kkbnu\",\"name\":\"rywvtylbfpn\",\"type\":\"urdoi\"}"; + = "{\"properties\":{\"description\":\"sreuzvxurisjnh\",\"jobType\":\"OnPremToCloudAgentLess\",\"copyMode\":\"Mirror\",\"sourceName\":\"ifqjz\",\"sourceResourceId\":\"mrhublwpc\",\"sourceSubpath\":\"utr\",\"targetName\":\"jupauut\",\"targetResourceId\":\"oqh\",\"targetSubpath\":\"ejqgw\",\"latestJobRunName\":\"nfqn\",\"latestJobRunResourceId\":\"ypsxjvfoim\",\"latestJobRunStatus\":\"Queued\",\"agentName\":\"ircizjxvy\",\"agentResourceId\":\"ceacvlhvygdy\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Deleting\",\"connections\":[\"awjs\",\"biwkojgcyzt\",\"fmznba\",\"qphchqnrnrpxehuw\"],\"schedule\":{\"frequency\":\"Daily\",\"isActive\":false,\"executionTime\":{\"hour\":1222828891,\"minute\":30},\"startDate\":\"2021-08-17T14:20Z\",\"daysOfWeek\":[\"dvk\"],\"daysOfMonth\":[725495584],\"cronExpression\":\"znxcvds\",\"endDate\":\"2021-11-18T18:42:57Z\",\"repeatInterval\":\"iv\"},\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"preservePermissions\":false,\"isCrossTenantJob\":false,\"crossTenantEndpointTenantId\":\"fzg\",\"crossTenantEndpointResourceId\":\"jdftuljltd\",\"syncMode\":\"eamtmcz\",\"moverSyncedUntil\":\"2020-12-22T05:25Z\"},\"id\":\"jw\",\"name\":\"w\",\"type\":\"qioknssxmojm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -40,49 +40,61 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobDefinition response = manager.jobDefinitions() - .define("birryuzhl") - .withExistingProject("mdvy", "gikdgsz", "w") - .withCopyMode(CopyMode.ADDITIVE) - .withSourceName("goupmfiibfg") - .withTargetName("hvkzuh") - .withDescription("joqrvqqaatj") - .withJobType(JobType.ON_PREM_TO_CLOUD) - .withSourceSubpath("jygvjayvbl") - .withTargetSubpath("pbyrqufegxu") - .withAgentName("rixkwmyijejve") + .define("pdso") + .withExistingProject("thrrgh", "jbdhqxvc", "gf") + .withCopyMode(CopyMode.MIRROR) + .withSourceName("cnunvjsr") + .withTargetName("yuxzejntpsewgi") + .withDescription("shrnsvbuswdvz") + .withJobType(JobType.CLOUD_TO_CLOUD) + .withSourceSubpath("nopqgikyzirtx") + .withTargetSubpath("kr") + .withAgentName("rvk") .withSourceTargetMap(new JobDefinitionPropertiesSourceTargetMap()) - .withConnections(Arrays.asList("drrvqahqkght", "wijnh", "jsvfycxzbfvoowv", "vmtgjqppy")) - .withSchedule(new ScheduleInfo().withFrequency(Frequency.NONE) + .withConnections(Arrays.asList("ovwxnbkfezzxsc")) + .withSchedule(new ScheduleInfo().withFrequency(Frequency.DAILY) .withIsActive(false) - .withExecutionTime(new SchedulerTime().withHour(152966788).withMinute(Minute.ZERO)) - .withStartDate(OffsetDateTime.parse("2021-09-22T16:58:17Z")) - .withDaysOfWeek(Arrays.asList("sxkm", "waekrrjreafxtsgu", "hjglikk", "wslolbqp")) - .withDaysOfMonth(Arrays.asList(613388775, 182360383, 1725196825)) - .withCronExpression("elfk") - .withEndDate(OffsetDateTime.parse("2021-02-21T20:32:58Z"))) - .withDataIntegrityValidation(DataIntegrityValidation.SAVE_FILE_MD5) + .withExecutionTime(new SchedulerTime().withHour(619889018).withMinute(Minute.THREE_ZERO)) + .withStartDate(OffsetDateTime.parse("2021-05-23T20:25:15Z")) + .withDaysOfWeek(Arrays.asList("vzzbtdcq", "pniyujviyl", "dshf")) + .withDaysOfMonth(Arrays.asList(2141139443)) + .withCronExpression("gy") + .withEndDate(OffsetDateTime.parse("2021-02-17T11:04:17Z")) + .withRepeatInterval("msgaoj")) + .withDataIntegrityValidation(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5) .withPreservePermissions(false) + .withIsCrossTenantJob(false) + .withCrossTenantEndpointTenantId("rfh") + .withCrossTenantEndpointResourceId("ctymoxoftp") + .withSyncMode("iwyczuh") + .withMoverSyncedUntil(OffsetDateTime.parse("2021-09-05T19:51:12Z")) .create(); - Assertions.assertEquals("joqkagfhsxt", response.description()); - Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, response.jobType()); + Assertions.assertEquals("sreuzvxurisjnh", response.description()); + Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD_AGENT_LESS, response.jobType()); Assertions.assertEquals(CopyMode.MIRROR, response.copyMode()); - Assertions.assertEquals("zxnfaaz", response.sourceName()); - Assertions.assertEquals("lwuenvrkp", response.sourceSubpath()); - Assertions.assertEquals("ou", response.targetName()); - Assertions.assertEquals("aays", response.targetSubpath()); - Assertions.assertEquals("pjpqqmtedltmmji", response.agentName()); - Assertions.assertEquals("gupkvipmdscwxq", response.connections().get(0)); - Assertions.assertEquals(Frequency.MONTHLY, response.schedule().frequency()); - Assertions.assertTrue(response.schedule().isActive()); - Assertions.assertEquals(1229940730, response.schedule().executionTime().hour()); + Assertions.assertEquals("ifqjz", response.sourceName()); + Assertions.assertEquals("utr", response.sourceSubpath()); + Assertions.assertEquals("jupauut", response.targetName()); + Assertions.assertEquals("ejqgw", response.targetSubpath()); + Assertions.assertEquals("ircizjxvy", response.agentName()); + Assertions.assertEquals("awjs", response.connections().get(0)); + Assertions.assertEquals(Frequency.DAILY, response.schedule().frequency()); + Assertions.assertFalse(response.schedule().isActive()); + Assertions.assertEquals(1222828891, response.schedule().executionTime().hour()); Assertions.assertEquals(Minute.THREE_ZERO, response.schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T22:54:10Z"), response.schedule().startDate()); - Assertions.assertEquals("uvhixbjxyfwn", response.schedule().daysOfWeek().get(0)); - Assertions.assertEquals(1461211866, response.schedule().daysOfMonth().get(0)); - Assertions.assertEquals("o", response.schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-11T06:14Z"), response.schedule().endDate()); - Assertions.assertEquals(DataIntegrityValidation.SAVE_FILE_MD5, response.dataIntegrityValidation()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-17T14:20Z"), response.schedule().startDate()); + Assertions.assertEquals("dvk", response.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(725495584, response.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("znxcvds", response.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-18T18:42:57Z"), response.schedule().endDate()); + Assertions.assertEquals("iv", response.schedule().repeatInterval()); + Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, response.dataIntegrityValidation()); Assertions.assertFalse(response.preservePermissions()); + Assertions.assertFalse(response.isCrossTenantJob()); + Assertions.assertEquals("fzg", response.crossTenantEndpointTenantId()); + Assertions.assertEquals("jdftuljltd", response.crossTenantEndpointResourceId()); + Assertions.assertEquals("eamtmcz", response.syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-22T05:25Z"), response.moverSyncedUntil()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsDeleteMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsDeleteMockTests.java index c1d84e6332ce..ac7420e3c893 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsDeleteMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsDeleteMockTests.java @@ -27,8 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.jobDefinitions() - .delete("ejzanlfz", "iavrm", "zonokixrjqci", "gzpfrla", com.azure.core.util.Context.NONE); + manager.jobDefinitions().delete("gumhjglikkxws", "olbq", "vuzlm", "felfktg", com.azure.core.util.Context.NONE); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsGetWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsGetWithResponseMockTests.java index 57047185de20..4d46c2ee508c 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsGetWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsGetWithResponseMockTests.java @@ -26,7 +26,7 @@ public final class JobDefinitionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"daciz\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"hkr\",\"sourceResourceId\":\"bdeibqipqk\",\"sourceSubpath\":\"vxndz\",\"targetName\":\"mkrefajpjorwkq\",\"targetResourceId\":\"hgbijt\",\"targetSubpath\":\"vfxzsjab\",\"latestJobRunName\":\"systawfsdjp\",\"latestJobRunResourceId\":\"vp\",\"latestJobRunStatus\":\"Running\",\"agentName\":\"kzbzkdvncjabudu\",\"agentResourceId\":\"kakmokzh\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Canceled\",\"connections\":[\"ouw\",\"lgzrfzeeyeb\",\"zi\",\"ayuhqlbjbsy\"],\"schedule\":{\"frequency\":\"None\",\"isActive\":true,\"executionTime\":{\"hour\":1583288095,\"minute\":0},\"startDate\":\"2021-06-20T07:23:19Z\",\"daysOfWeek\":[\"mpipaslthaqfxs\"],\"daysOfMonth\":[236380813,1198185628,1174161651],\"cronExpression\":\"dsrezpdrhneuyow\",\"endDate\":\"2021-05-29T05:28:10Z\"},\"dataIntegrityValidation\":\"None\",\"preservePermissions\":false},\"id\":\"ib\",\"name\":\"rcgp\",\"type\":\"kpzi\"}"; + = "{\"properties\":{\"description\":\"ccsnjvcdwxlpq\",\"jobType\":\"CloudToCloud\",\"copyMode\":\"Additive\",\"sourceName\":\"nkhtjsyingw\",\"sourceResourceId\":\"atmtdhtmdvy\",\"sourceSubpath\":\"ikdgszywkbir\",\"targetName\":\"yuzhlhkjoqrvq\",\"targetResourceId\":\"atjinrvgoupmfiib\",\"targetSubpath\":\"gjio\",\"latestJobRunName\":\"vrwxkv\",\"latestJobRunResourceId\":\"k\",\"latestJobRunStatus\":\"Canceling\",\"agentName\":\"wjygvjayvblmhvk\",\"agentResourceId\":\"hbxvvyhgsopbyrqu\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Succeeded\",\"connections\":[\"fbn\"],\"schedule\":{\"frequency\":\"Monthly\",\"isActive\":false,\"executionTime\":{\"hour\":1814176762,\"minute\":30},\"startDate\":\"2021-01-29T19:24:27Z\",\"daysOfWeek\":[\"mhrixkwmyijejve\",\"rh\",\"pna\",\"xexccbdreaxhcexd\"],\"daysOfMonth\":[1321945994,1241067704,762768084],\"cronExpression\":\"kghtpwijnh\",\"endDate\":\"2021-01-19T12:23:33Z\",\"repeatInterval\":\"f\"},\"dataIntegrityValidation\":\"SaveFileMD5\",\"preservePermissions\":true,\"isCrossTenantJob\":false,\"crossTenantEndpointTenantId\":\"owvrvmtgjqppyos\",\"crossTenantEndpointResourceId\":\"on\",\"syncMode\":\"yhgfipnsx\",\"moverSyncedUntil\":\"2021-11-02T02:58:50Z\"},\"id\":\"a\",\"name\":\"krrjrea\",\"type\":\"xt\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,28 +36,35 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobDefinition response = manager.jobDefinitions() - .getWithResponse("xqi", "y", "unyowxwl", "djrkvfgbvfvpd", com.azure.core.util.Context.NONE) + .getWithResponse("vpsvuoymgcce", "vezrypqlmfeo", "erqwkyhkobopg", "edkowepbqpcrfk", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("daciz", response.description()); - Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, response.jobType()); - Assertions.assertEquals(CopyMode.MIRROR, response.copyMode()); - Assertions.assertEquals("hkr", response.sourceName()); - Assertions.assertEquals("vxndz", response.sourceSubpath()); - Assertions.assertEquals("mkrefajpjorwkq", response.targetName()); - Assertions.assertEquals("vfxzsjab", response.targetSubpath()); - Assertions.assertEquals("kzbzkdvncjabudu", response.agentName()); - Assertions.assertEquals("ouw", response.connections().get(0)); - Assertions.assertEquals(Frequency.NONE, response.schedule().frequency()); - Assertions.assertTrue(response.schedule().isActive()); - Assertions.assertEquals(1583288095, response.schedule().executionTime().hour()); - Assertions.assertEquals(Minute.ZERO, response.schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-20T07:23:19Z"), response.schedule().startDate()); - Assertions.assertEquals("mpipaslthaqfxs", response.schedule().daysOfWeek().get(0)); - Assertions.assertEquals(236380813, response.schedule().daysOfMonth().get(0)); - Assertions.assertEquals("dsrezpdrhneuyow", response.schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-29T05:28:10Z"), response.schedule().endDate()); - Assertions.assertEquals(DataIntegrityValidation.NONE, response.dataIntegrityValidation()); - Assertions.assertFalse(response.preservePermissions()); + Assertions.assertEquals("ccsnjvcdwxlpq", response.description()); + Assertions.assertEquals(JobType.CLOUD_TO_CLOUD, response.jobType()); + Assertions.assertEquals(CopyMode.ADDITIVE, response.copyMode()); + Assertions.assertEquals("nkhtjsyingw", response.sourceName()); + Assertions.assertEquals("ikdgszywkbir", response.sourceSubpath()); + Assertions.assertEquals("yuzhlhkjoqrvq", response.targetName()); + Assertions.assertEquals("gjio", response.targetSubpath()); + Assertions.assertEquals("wjygvjayvblmhvk", response.agentName()); + Assertions.assertEquals("fbn", response.connections().get(0)); + Assertions.assertEquals(Frequency.MONTHLY, response.schedule().frequency()); + Assertions.assertFalse(response.schedule().isActive()); + Assertions.assertEquals(1814176762, response.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.THREE_ZERO, response.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-29T19:24:27Z"), response.schedule().startDate()); + Assertions.assertEquals("mhrixkwmyijejve", response.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(1321945994, response.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("kghtpwijnh", response.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-19T12:23:33Z"), response.schedule().endDate()); + Assertions.assertEquals("f", response.schedule().repeatInterval()); + Assertions.assertEquals(DataIntegrityValidation.SAVE_FILE_MD5, response.dataIntegrityValidation()); + Assertions.assertTrue(response.preservePermissions()); + Assertions.assertFalse(response.isCrossTenantJob()); + Assertions.assertEquals("owvrvmtgjqppyos", response.crossTenantEndpointTenantId()); + Assertions.assertEquals("on", response.crossTenantEndpointResourceId()); + Assertions.assertEquals("yhgfipnsx", response.syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T02:58:50Z"), response.moverSyncedUntil()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsListMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsListMockTests.java index fd3622d9887c..3bbdbeec3878 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsListMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsListMockTests.java @@ -27,7 +27,7 @@ public final class JobDefinitionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"flsjc\",\"jobType\":\"CloudToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"fjvfbgofeljagr\",\"sourceResourceId\":\"qhl\",\"sourceSubpath\":\"riiiojnalghfkv\",\"targetName\":\"vsexsowuelu\",\"targetResourceId\":\"hahhxvrhmzkwpj\",\"targetSubpath\":\"wspughftqsxhqx\",\"latestJobRunName\":\"xukndxdigr\",\"latestJobRunResourceId\":\"uufzdmsyqtfihw\",\"latestJobRunStatus\":\"CancelRequested\",\"agentName\":\"z\",\"agentResourceId\":\"gamv\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Canceled\",\"connections\":[\"udphqamvdkfwyn\",\"cvtbv\",\"ayhmtnvyqiatkz\",\"pcnp\"],\"schedule\":{\"frequency\":\"Weekly\",\"isActive\":true,\"executionTime\":{\"hour\":691812304,\"minute\":30},\"startDate\":\"2021-07-14T16:40:38Z\",\"daysOfWeek\":[\"jguq\",\"hwyg\"],\"daysOfMonth\":[1249464934,307379599,826622083],\"cronExpression\":\"xu\",\"endDate\":\"2021-10-16T01:46:34Z\"},\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"preservePermissions\":true},\"id\":\"uh\",\"name\":\"pfcqdp\",\"type\":\"qxqvpsvuoymgc\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"nbsazejjoqkag\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"ttaugzxnfaazp\",\"sourceResourceId\":\"tnkdmkqj\",\"sourceSubpath\":\"wuenvr\",\"targetName\":\"pyouaibrebqaays\",\"targetResourceId\":\"ixqtn\",\"targetSubpath\":\"tezlwff\",\"latestJobRunName\":\"akpjpqqmtedlt\",\"latestJobRunResourceId\":\"jihy\",\"latestJobRunStatus\":\"Started\",\"agentName\":\"hvwauyqncy\",\"agentResourceId\":\"p\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Deleting\",\"connections\":[\"wx\",\"upev\"],\"schedule\":{\"frequency\":\"Weekly\",\"isActive\":true,\"executionTime\":{\"hour\":1386174682,\"minute\":30},\"startDate\":\"2021-09-07T00:16:30Z\",\"daysOfWeek\":[\"pelmcuvhixbjxyf\",\"n\"],\"daysOfMonth\":[1461211866],\"cronExpression\":\"o\",\"endDate\":\"2021-03-11T06:14Z\",\"repeatInterval\":\"p\"},\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"preservePermissions\":false,\"isCrossTenantJob\":true,\"crossTenantEndpointTenantId\":\"jrywvtylbfpnc\",\"crossTenantEndpointResourceId\":\"doiwi\",\"syncMode\":\"htywubxcbihwq\",\"moverSyncedUntil\":\"2021-06-27T00:09:55Z\"},\"id\":\"ntwjch\",\"name\":\"dgoihxumwctondzj\",\"type\":\"uu\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,30 +37,37 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.jobDefinitions().list("szrnwo", "indfpwpjyl", "bt", com.azure.core.util.Context.NONE); + = manager.jobDefinitions().list("lcrpw", "xeznoi", "brnjwmw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("flsjc", response.iterator().next().description()); - Assertions.assertEquals(JobType.CLOUD_TO_CLOUD, response.iterator().next().jobType()); + Assertions.assertEquals("nbsazejjoqkag", response.iterator().next().description()); + Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, response.iterator().next().jobType()); Assertions.assertEquals(CopyMode.MIRROR, response.iterator().next().copyMode()); - Assertions.assertEquals("fjvfbgofeljagr", response.iterator().next().sourceName()); - Assertions.assertEquals("riiiojnalghfkv", response.iterator().next().sourceSubpath()); - Assertions.assertEquals("vsexsowuelu", response.iterator().next().targetName()); - Assertions.assertEquals("wspughftqsxhqx", response.iterator().next().targetSubpath()); - Assertions.assertEquals("z", response.iterator().next().agentName()); - Assertions.assertEquals("udphqamvdkfwyn", response.iterator().next().connections().get(0)); + Assertions.assertEquals("ttaugzxnfaazp", response.iterator().next().sourceName()); + Assertions.assertEquals("wuenvr", response.iterator().next().sourceSubpath()); + Assertions.assertEquals("pyouaibrebqaays", response.iterator().next().targetName()); + Assertions.assertEquals("tezlwff", response.iterator().next().targetSubpath()); + Assertions.assertEquals("hvwauyqncy", response.iterator().next().agentName()); + Assertions.assertEquals("wx", response.iterator().next().connections().get(0)); Assertions.assertEquals(Frequency.WEEKLY, response.iterator().next().schedule().frequency()); Assertions.assertTrue(response.iterator().next().schedule().isActive()); - Assertions.assertEquals(691812304, response.iterator().next().schedule().executionTime().hour()); + Assertions.assertEquals(1386174682, response.iterator().next().schedule().executionTime().hour()); Assertions.assertEquals(Minute.THREE_ZERO, response.iterator().next().schedule().executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-14T16:40:38Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-09-07T00:16:30Z"), response.iterator().next().schedule().startDate()); - Assertions.assertEquals("jguq", response.iterator().next().schedule().daysOfWeek().get(0)); - Assertions.assertEquals(1249464934, response.iterator().next().schedule().daysOfMonth().get(0)); - Assertions.assertEquals("xu", response.iterator().next().schedule().cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-16T01:46:34Z"), + Assertions.assertEquals("pelmcuvhixbjxyf", response.iterator().next().schedule().daysOfWeek().get(0)); + Assertions.assertEquals(1461211866, response.iterator().next().schedule().daysOfMonth().get(0)); + Assertions.assertEquals("o", response.iterator().next().schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-11T06:14Z"), response.iterator().next().schedule().endDate()); + Assertions.assertEquals("p", response.iterator().next().schedule().repeatInterval()); Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, response.iterator().next().dataIntegrityValidation()); - Assertions.assertTrue(response.iterator().next().preservePermissions()); + Assertions.assertFalse(response.iterator().next().preservePermissions()); + Assertions.assertTrue(response.iterator().next().isCrossTenantJob()); + Assertions.assertEquals("jrywvtylbfpnc", response.iterator().next().crossTenantEndpointTenantId()); + Assertions.assertEquals("doiwi", response.iterator().next().crossTenantEndpointResourceId()); + Assertions.assertEquals("htywubxcbihwq", response.iterator().next().syncMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-27T00:09:55Z"), + response.iterator().next().moverSyncedUntil()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsReconcileJobWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsReconcileJobWithResponseMockTests.java new file mode 100644 index 000000000000..8b72aae167d0 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsReconcileJobWithResponseMockTests.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.storagemover.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.storagemover.StorageMoverManager; +import com.azure.resourcemanager.storagemover.models.JobRunResourceId; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class JobDefinitionsReconcileJobWithResponseMockTests { + @Test + public void testReconcileJobWithResponse() throws Exception { + String responseStr = "{\"jobRunResourceId\":\"xkk\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + StorageMoverManager manager = StorageMoverManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + JobRunResourceId response = manager.jobDefinitions() + .reconcileJobWithResponse("ozqyzh", "tw", "sgogczhonnxk", "lgnyhmo", com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStartJobWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStartJobWithResponseMockTests.java index 4c41019afeb5..bf5866732755 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStartJobWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStartJobWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class JobDefinitionsStartJobWithResponseMockTests { @Test public void testStartJobWithResponse() throws Exception { - String responseStr = "{\"jobRunResourceId\":\"gxedkow\"}"; + String responseStr = "{\"jobRunResourceId\":\"epttwqmsniff\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testStartJobWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobRunResourceId response = manager.jobDefinitions() - .startJobWithResponse("elvezrypq", "mfe", "kerqwkyh", "ob", com.azure.core.util.Context.NONE) + .startJobWithResponse("fdlwg", "ytsbwtovv", "gseinq", "iufxqknpir", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStopJobWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStopJobWithResponseMockTests.java index 4b06c4827f65..5767e4aad7f1 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStopJobWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsStopJobWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class JobDefinitionsStopJobWithResponseMockTests { @Test public void testStopJobWithResponse() throws Exception { - String responseStr = "{\"jobRunResourceId\":\"mtdh\"}"; + String responseStr = "{\"jobRunResourceId\":\"tizzronasxif\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testStopJobWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobRunResourceId response = manager.jobDefinitions() - .stopJobWithResponse("pbqpcrfkbwccsn", "vcdwxlpqekftn", "htjsying", "fq", com.azure.core.util.Context.NONE) + .stopJobWithResponse("dmqnrojlpij", "k", "xfrdd", "c", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobRunResourceIdInnerTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobRunResourceIdInnerTests.java index 603a01624450..c700e01b98a6 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobRunResourceIdInnerTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/JobRunResourceIdInnerTests.java @@ -11,6 +11,6 @@ public final class JobRunResourceIdInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobRunResourceIdInner model - = BinaryData.fromString("{\"jobRunResourceId\":\"hkfpbs\"}").toObject(JobRunResourceIdInner.class); + = BinaryData.fromString("{\"jobRunResourceId\":\"rvnaenqpeh\"}").toObject(JobRunResourceIdInner.class); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ManagedServiceIdentityTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ManagedServiceIdentityTests.java index 5d910cdfcf6e..d8f6da22128d 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ManagedServiceIdentityTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ManagedServiceIdentityTests.java @@ -16,19 +16,19 @@ public final class ManagedServiceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"odgmaajrmvdjwz\",\"tenantId\":\"ovmclwhijcoejct\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"xaxcfjpgddtocjjx\":{\"principalId\":\"qsycbkbfkgu\",\"clientId\":\"kexxppof\"},\"jnxqbzvddntwn\":{\"principalId\":\"pmouexhdz\",\"clientId\":\"bqe\"}}}") + "{\"principalId\":\"xppofmxaxcfjp\",\"tenantId\":\"dtocj\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"deicbtwnpzao\":{\"principalId\":\"mouexhdzx\",\"clientId\":\"qeojnxqbzvddntw\"},\"jqkwpyeicx\":{\"principalId\":\"uhrhcffcyddgl\",\"clientId\":\"t\"},\"ghmewuam\":{\"principalId\":\"ciwqvhk\",\"clientId\":\"xuigdtopbobj\"},\"efgugnxk\":{\"principalId\":\"hrzayvvtpgvdf\",\"clientId\":\"otkftutqxlngx\"}}}") .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedServiceIdentity model - = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf("xaxcfjpgddtocjjx", new UserAssignedIdentity(), "jnxqbzvddntwn", new UserAssignedIdentity())); + ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities( + mapOf("deicbtwnpzao", new UserAssignedIdentity(), "jqkwpyeicx", new UserAssignedIdentity(), "ghmewuam", + new UserAssignedIdentity(), "efgugnxk", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); } // Use "Map.of" if available diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/NfsMountEndpointPropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/NfsMountEndpointPropertiesTests.java index 1f87d429268b..a3aa8a7ded25 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/NfsMountEndpointPropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/NfsMountEndpointPropertiesTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.EndpointKind; import com.azure.resourcemanager.storagemover.models.NfsMountEndpointProperties; +import com.azure.resourcemanager.storagemover.models.NfsMountSourceType; import com.azure.resourcemanager.storagemover.models.NfsVersion; import org.junit.jupiter.api.Assertions; @@ -14,27 +15,30 @@ public final class NfsMountEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NfsMountEndpointProperties model = BinaryData.fromString( - "{\"endpointType\":\"NfsMount\",\"host\":\"wmdwzjeiachboo\",\"nfsVersion\":\"NFSauto\",\"export\":\"nrosfqpte\",\"description\":\"zzvypyqrimzinp\",\"endpointKind\":\"Source\",\"provisioningState\":\"Deleting\"}") + "{\"endpointType\":\"NfsMount\",\"host\":\"zvypyqrimzinp\",\"nfsVersion\":\"NFSauto\",\"export\":\"jdkirsoodqx\",\"sourceType\":\"NfsMount\",\"description\":\"nohjt\",\"endpointKind\":\"Target\",\"provisioningState\":\"Failed\"}") .toObject(NfsMountEndpointProperties.class); - Assertions.assertEquals("zzvypyqrimzinp", model.description()); - Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); - Assertions.assertEquals("wmdwzjeiachboo", model.host()); + Assertions.assertEquals("nohjt", model.description()); + Assertions.assertEquals(EndpointKind.TARGET, model.endpointKind()); + Assertions.assertEquals("zvypyqrimzinp", model.host()); Assertions.assertEquals(NfsVersion.NFSAUTO, model.nfsVersion()); - Assertions.assertEquals("nrosfqpte", model.export()); + Assertions.assertEquals("jdkirsoodqx", model.export()); + Assertions.assertEquals(NfsMountSourceType.NFS_MOUNT, model.sourceType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NfsMountEndpointProperties model = new NfsMountEndpointProperties().withDescription("zzvypyqrimzinp") - .withEndpointKind(EndpointKind.SOURCE) - .withHost("wmdwzjeiachboo") + NfsMountEndpointProperties model = new NfsMountEndpointProperties().withDescription("nohjt") + .withEndpointKind(EndpointKind.TARGET) + .withHost("zvypyqrimzinp") .withNfsVersion(NfsVersion.NFSAUTO) - .withExport("nrosfqpte"); + .withExport("jdkirsoodqx") + .withSourceType(NfsMountSourceType.NFS_MOUNT); model = BinaryData.fromObject(model).toObject(NfsMountEndpointProperties.class); - Assertions.assertEquals("zzvypyqrimzinp", model.description()); - Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); - Assertions.assertEquals("wmdwzjeiachboo", model.host()); + Assertions.assertEquals("nohjt", model.description()); + Assertions.assertEquals(EndpointKind.TARGET, model.endpointKind()); + Assertions.assertEquals("zvypyqrimzinp", model.host()); Assertions.assertEquals(NfsVersion.NFSAUTO, model.nfsVersion()); - Assertions.assertEquals("nrosfqpte", model.export()); + Assertions.assertEquals("jdkirsoodqx", model.export()); + Assertions.assertEquals(NfsMountSourceType.NFS_MOUNT, model.sourceType()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/NfsMountEndpointUpdatePropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/NfsMountEndpointUpdatePropertiesTests.java index da0dc6be8ce0..17f8a0a51f67 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/NfsMountEndpointUpdatePropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/NfsMountEndpointUpdatePropertiesTests.java @@ -12,15 +12,16 @@ public final class NfsMountEndpointUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NfsMountEndpointUpdateProperties model - = BinaryData.fromString("{\"endpointType\":\"NfsMount\",\"description\":\"krxd\"}") + = BinaryData.fromString("{\"endpointType\":\"NfsMount\",\"description\":\"ipheoflokeyyien\"}") .toObject(NfsMountEndpointUpdateProperties.class); - Assertions.assertEquals("krxd", model.description()); + Assertions.assertEquals("ipheoflokeyyien", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NfsMountEndpointUpdateProperties model = new NfsMountEndpointUpdateProperties().withDescription("krxd"); + NfsMountEndpointUpdateProperties model + = new NfsMountEndpointUpdateProperties().withDescription("ipheoflokeyyien"); model = BinaryData.fromObject(model).toObject(NfsMountEndpointUpdateProperties.class); - Assertions.assertEquals("krxd", model.description()); + Assertions.assertEquals("ipheoflokeyyien", model.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/OperationsListMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/OperationsListMockTests.java index 93b0a2740926..0be0d5e824bd 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/OperationsListMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"keqdcvdrhvoods\",\"isDataAction\":true,\"display\":{\"provider\":\"zdopcjwvnhd\",\"resource\":\"wmgxcxrsl\",\"operation\":\"utwu\",\"description\":\"grpkhjwniyqs\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"syocogjltdtbnnha\",\"isDataAction\":true,\"display\":{\"provider\":\"kvci\",\"resource\":\"nvpamq\",\"operation\":\"qqu\",\"description\":\"ik\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectInnerTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectInnerTests.java index f085b6def379..2d8c038394a9 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectInnerTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectInnerTests.java @@ -12,15 +12,15 @@ public final class ProjectInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"ochcbonqvpkvl\",\"provisioningState\":\"Deleting\"},\"id\":\"ea\",\"name\":\"eipheoflokeyy\",\"type\":\"enjbdlwtgrhp\"}") + "{\"properties\":{\"description\":\"uozmyzydagfua\",\"provisioningState\":\"Deleting\"},\"id\":\"yiuokktwh\",\"name\":\"dxwzywqsmbsurexi\",\"type\":\"o\"}") .toObject(ProjectInner.class); - Assertions.assertEquals("ochcbonqvpkvl", model.description()); + Assertions.assertEquals("uozmyzydagfua", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectInner model = new ProjectInner().withDescription("ochcbonqvpkvl"); + ProjectInner model = new ProjectInner().withDescription("uozmyzydagfua"); model = BinaryData.fromObject(model).toObject(ProjectInner.class); - Assertions.assertEquals("ochcbonqvpkvl", model.description()); + Assertions.assertEquals("uozmyzydagfua", model.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectListTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectListTests.java index 0ea4e17c7cfd..a0093203596e 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectListTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectListTests.java @@ -12,8 +12,8 @@ public final class ProjectListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"description\":\"lfh\",\"provisioningState\":\"Succeeded\"},\"id\":\"cynpwlbjnp\",\"name\":\"acfta\",\"type\":\"ehxnltyfsop\"},{\"properties\":{\"description\":\"uesnzwdejbavo\",\"provisioningState\":\"Failed\"},\"id\":\"mohctb\",\"name\":\"vudwx\",\"type\":\"ndnvo\"},{\"properties\":{\"description\":\"jjugwdkcglhslaz\",\"provisioningState\":\"Failed\"},\"id\":\"gdtjixhbkuofqwey\",\"name\":\"hmenevfyexfwhybc\",\"type\":\"bvyvdcsity\"}],\"nextLink\":\"aamdect\"}") + "{\"value\":[{\"properties\":{\"description\":\"vyifqrvkdvjsl\",\"provisioningState\":\"Succeeded\"},\"id\":\"vdfwatkpn\",\"name\":\"ulexxbczwtr\",\"type\":\"wiqzbqjvsovmyo\"},{\"properties\":{\"description\":\"spkwlhzdobpxjm\",\"provisioningState\":\"Failed\"},\"id\":\"vnchrkcci\",\"name\":\"wzjuqk\",\"type\":\"rsa\"}],\"nextLink\":\"wkuofoskghsauu\"}") .toObject(ProjectList.class); - Assertions.assertEquals("aamdect", model.nextLink()); + Assertions.assertEquals("wkuofoskghsauu", model.nextLink()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectPropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectPropertiesTests.java index 13b27ea34932..a7dedf9c9c78 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectPropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectPropertiesTests.java @@ -11,15 +11,16 @@ public final class ProjectPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ProjectProperties model = BinaryData.fromString("{\"description\":\"pj\",\"provisioningState\":\"Deleting\"}") - .toObject(ProjectProperties.class); - Assertions.assertEquals("pj", model.description()); + ProjectProperties model + = BinaryData.fromString("{\"description\":\"ocfs\",\"provisioningState\":\"Succeeded\"}") + .toObject(ProjectProperties.class); + Assertions.assertEquals("ocfs", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectProperties model = new ProjectProperties().withDescription("pj"); + ProjectProperties model = new ProjectProperties().withDescription("ocfs"); model = BinaryData.fromObject(model).toObject(ProjectProperties.class); - Assertions.assertEquals("pj", model.description()); + Assertions.assertEquals("ocfs", model.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectUpdateParametersTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectUpdateParametersTests.java index 6e8bf6a85dc3..26094d6767e5 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectUpdateParametersTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectUpdateParametersTests.java @@ -11,15 +11,15 @@ public final class ProjectUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ProjectUpdateParameters model = BinaryData.fromString("{\"properties\":{\"description\":\"azjpqyegualhbxxh\"}}") + ProjectUpdateParameters model = BinaryData.fromString("{\"properties\":{\"description\":\"ddystkiiuxhqy\"}}") .toObject(ProjectUpdateParameters.class); - Assertions.assertEquals("azjpqyegualhbxxh", model.description()); + Assertions.assertEquals("ddystkiiuxhqy", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectUpdateParameters model = new ProjectUpdateParameters().withDescription("azjpqyegualhbxxh"); + ProjectUpdateParameters model = new ProjectUpdateParameters().withDescription("ddystkiiuxhqy"); model = BinaryData.fromObject(model).toObject(ProjectUpdateParameters.class); - Assertions.assertEquals("azjpqyegualhbxxh", model.description()); + Assertions.assertEquals("ddystkiiuxhqy", model.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectUpdatePropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectUpdatePropertiesTests.java index 4efe226ae92a..6b7ee9ea2cf9 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectUpdatePropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectUpdatePropertiesTests.java @@ -12,14 +12,14 @@ public final class ProjectUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectUpdateProperties model - = BinaryData.fromString("{\"description\":\"jzzvdud\"}").toObject(ProjectUpdateProperties.class); - Assertions.assertEquals("jzzvdud", model.description()); + = BinaryData.fromString("{\"description\":\"xorrqnb\"}").toObject(ProjectUpdateProperties.class); + Assertions.assertEquals("xorrqnb", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectUpdateProperties model = new ProjectUpdateProperties().withDescription("jzzvdud"); + ProjectUpdateProperties model = new ProjectUpdateProperties().withDescription("xorrqnb"); model = BinaryData.fromObject(model).toObject(ProjectUpdateProperties.class); - Assertions.assertEquals("jzzvdud", model.description()); + Assertions.assertEquals("xorrqnb", model.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsCreateOrUpdateWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsCreateOrUpdateWithResponseMockTests.java index f9d1d8aa1756..7e0213b96443 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsCreateOrUpdateWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ProjectsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"twitykhev\",\"provisioningState\":\"Failed\"},\"id\":\"dcpnmdyodnw\",\"name\":\"xltjcvnhltiu\",\"type\":\"cxnavv\"}"; + = "{\"properties\":{\"description\":\"ygz\",\"provisioningState\":\"Canceled\"},\"id\":\"kfxu\",\"name\":\"emdwzrmuhapfc\",\"type\":\"dpsqx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Project response = manager.projects() - .define("isxgfp") - .withExistingStorageMover("sfgytguslfead", "ygqukyhejh") - .withDescription("lppvksrpq") + .define("vtbvkayh") + .withExistingStorageMover("dphqamv", "kfwynw") + .withDescription("vyqia") .create(); - Assertions.assertEquals("twitykhev", response.description()); + Assertions.assertEquals("ygz", response.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsDeleteMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsDeleteMockTests.java index 69fe9f77aab5..a1d4ade6a673 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsDeleteMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.projects().delete("kaivwit", "scywuggwoluhc", "bwemhairs", com.azure.core.util.Context.NONE); + manager.projects().delete("hfkvtvsexsowuel", "qhhahhxvrhmzkwpj", "wws", com.azure.core.util.Context.NONE); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsGetWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsGetWithResponseMockTests.java index 98b4680e73fe..cee7aca2a525 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsGetWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ProjectsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"zqhof\",\"provisioningState\":\"Deleting\"},\"id\":\"equi\",\"name\":\"hxicslfaoqz\",\"type\":\"iyylhalnswhccsp\"}"; + = "{\"properties\":{\"description\":\"ndfpwpj\",\"provisioningState\":\"Failed\"},\"id\":\"tlhflsjcdhszf\",\"name\":\"vfbgofeljagrqmqh\",\"type\":\"dvriiiojnal\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Project response = manager.projects() - .getWithResponse("zkopb", "inrfdwoyu", "hziuiefozbhdms", com.azure.core.util.Context.NONE) + .getWithResponse("jq", "irgzp", "rlazszrnw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("zqhof", response.description()); + Assertions.assertEquals("ndfpwpj", response.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsListMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsListMockTests.java index eeb87abf8b77..ca92bcffd32c 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsListMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ProjectsListMockTests.java @@ -22,7 +22,7 @@ public final class ProjectsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"gicccnxqhuex\",\"provisioningState\":\"Deleting\"},\"id\":\"lstvlzywe\",\"name\":\"hz\",\"type\":\"ncsdtclusiyp\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"jguufzdm\",\"provisioningState\":\"Deleting\"},\"id\":\"fi\",\"name\":\"whbotzingamv\",\"type\":\"phoszqz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,8 +31,9 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.projects().list("rgzdwmsweyp", "w", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.projects().list("ughftqsx", "qxujxukndxd", com.azure.core.util.Context.NONE); - Assertions.assertEquals("gicccnxqhuex", response.iterator().next().description()); + Assertions.assertEquals("jguufzdm", response.iterator().next().description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ScheduleInfoTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ScheduleInfoTests.java index 12b84480f1c3..bee8aeeb12eb 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ScheduleInfoTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ScheduleInfoTests.java @@ -17,38 +17,41 @@ public final class ScheduleInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScheduleInfo model = BinaryData.fromString( - "{\"frequency\":\"Monthly\",\"isActive\":false,\"executionTime\":{\"hour\":996509936,\"minute\":30},\"startDate\":\"2021-11-20T16:21:10Z\",\"daysOfWeek\":[\"siebtfhvpesapskr\",\"qmhjjdhtld\",\"kyzxuutk\"],\"daysOfMonth\":[1341187268],\"cronExpression\":\"wsvlxotogtwrupqs\",\"endDate\":\"2021-05-04T00:58:15Z\"}") + "{\"frequency\":\"Daily\",\"isActive\":true,\"executionTime\":{\"hour\":1860294594,\"minute\":0},\"startDate\":\"2021-03-12T03:03:28Z\",\"daysOfWeek\":[\"jriplrbpbewtghf\",\"blcg\"],\"daysOfMonth\":[748159283,1623747079,161265854,932562427],\"cronExpression\":\"jkbegibtnmxiebww\",\"endDate\":\"2021-01-03T05:44:47Z\",\"repeatInterval\":\"yqcgwrtzjuzgwy\"}") .toObject(ScheduleInfo.class); - Assertions.assertEquals(Frequency.MONTHLY, model.frequency()); - Assertions.assertFalse(model.isActive()); - Assertions.assertEquals(996509936, model.executionTime().hour()); - Assertions.assertEquals(Minute.THREE_ZERO, model.executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-20T16:21:10Z"), model.startDate()); - Assertions.assertEquals("siebtfhvpesapskr", model.daysOfWeek().get(0)); - Assertions.assertEquals(1341187268, model.daysOfMonth().get(0)); - Assertions.assertEquals("wsvlxotogtwrupqs", model.cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-04T00:58:15Z"), model.endDate()); + Assertions.assertEquals(Frequency.DAILY, model.frequency()); + Assertions.assertTrue(model.isActive()); + Assertions.assertEquals(1860294594, model.executionTime().hour()); + Assertions.assertEquals(Minute.ZERO, model.executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-12T03:03:28Z"), model.startDate()); + Assertions.assertEquals("jriplrbpbewtghf", model.daysOfWeek().get(0)); + Assertions.assertEquals(748159283, model.daysOfMonth().get(0)); + Assertions.assertEquals("jkbegibtnmxiebww", model.cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-03T05:44:47Z"), model.endDate()); + Assertions.assertEquals("yqcgwrtzjuzgwy", model.repeatInterval()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScheduleInfo model = new ScheduleInfo().withFrequency(Frequency.MONTHLY) - .withIsActive(false) - .withExecutionTime(new SchedulerTime().withHour(996509936).withMinute(Minute.THREE_ZERO)) - .withStartDate(OffsetDateTime.parse("2021-11-20T16:21:10Z")) - .withDaysOfWeek(Arrays.asList("siebtfhvpesapskr", "qmhjjdhtld", "kyzxuutk")) - .withDaysOfMonth(Arrays.asList(1341187268)) - .withCronExpression("wsvlxotogtwrupqs") - .withEndDate(OffsetDateTime.parse("2021-05-04T00:58:15Z")); + ScheduleInfo model = new ScheduleInfo().withFrequency(Frequency.DAILY) + .withIsActive(true) + .withExecutionTime(new SchedulerTime().withHour(1860294594).withMinute(Minute.ZERO)) + .withStartDate(OffsetDateTime.parse("2021-03-12T03:03:28Z")) + .withDaysOfWeek(Arrays.asList("jriplrbpbewtghf", "blcg")) + .withDaysOfMonth(Arrays.asList(748159283, 1623747079, 161265854, 932562427)) + .withCronExpression("jkbegibtnmxiebww") + .withEndDate(OffsetDateTime.parse("2021-01-03T05:44:47Z")) + .withRepeatInterval("yqcgwrtzjuzgwy"); model = BinaryData.fromObject(model).toObject(ScheduleInfo.class); - Assertions.assertEquals(Frequency.MONTHLY, model.frequency()); - Assertions.assertFalse(model.isActive()); - Assertions.assertEquals(996509936, model.executionTime().hour()); - Assertions.assertEquals(Minute.THREE_ZERO, model.executionTime().minute()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-20T16:21:10Z"), model.startDate()); - Assertions.assertEquals("siebtfhvpesapskr", model.daysOfWeek().get(0)); - Assertions.assertEquals(1341187268, model.daysOfMonth().get(0)); - Assertions.assertEquals("wsvlxotogtwrupqs", model.cronExpression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-04T00:58:15Z"), model.endDate()); + Assertions.assertEquals(Frequency.DAILY, model.frequency()); + Assertions.assertTrue(model.isActive()); + Assertions.assertEquals(1860294594, model.executionTime().hour()); + Assertions.assertEquals(Minute.ZERO, model.executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-12T03:03:28Z"), model.startDate()); + Assertions.assertEquals("jriplrbpbewtghf", model.daysOfWeek().get(0)); + Assertions.assertEquals(748159283, model.daysOfMonth().get(0)); + Assertions.assertEquals("jkbegibtnmxiebww", model.cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-03T05:44:47Z"), model.endDate()); + Assertions.assertEquals("yqcgwrtzjuzgwy", model.repeatInterval()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SchedulerTimeTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SchedulerTimeTests.java index cf00825274ee..2d79093c30ea 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SchedulerTimeTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SchedulerTimeTests.java @@ -12,16 +12,17 @@ public final class SchedulerTimeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SchedulerTime model = BinaryData.fromString("{\"hour\":208644200,\"minute\":30}").toObject(SchedulerTime.class); - Assertions.assertEquals(208644200, model.hour()); + SchedulerTime model + = BinaryData.fromString("{\"hour\":1235130312,\"minute\":30}").toObject(SchedulerTime.class); + Assertions.assertEquals(1235130312, model.hour()); Assertions.assertEquals(Minute.THREE_ZERO, model.minute()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SchedulerTime model = new SchedulerTime().withHour(208644200).withMinute(Minute.THREE_ZERO); + SchedulerTime model = new SchedulerTime().withHour(1235130312).withMinute(Minute.THREE_ZERO); model = BinaryData.fromObject(model).toObject(SchedulerTime.class); - Assertions.assertEquals(208644200, model.hour()); + Assertions.assertEquals(1235130312, model.hour()); Assertions.assertEquals(Minute.THREE_ZERO, model.minute()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceEndpointPropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceEndpointPropertiesTests.java index de45d80b2e04..fb5087d68825 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceEndpointPropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceEndpointPropertiesTests.java @@ -11,11 +11,11 @@ public final class SourceEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SourceEndpointProperties model = BinaryData.fromString( - "{\"name\":\"avxbniwdjswztsdb\",\"sourceEndpointResourceId\":\"nxytxh\",\"awsS3BucketId\":\"xbzpfzab\"}") + SourceEndpointProperties model = BinaryData + .fromString("{\"name\":\"jueiotwmcdytd\",\"sourceEndpointResourceId\":\"it\",\"awsS3BucketId\":\"rjaw\"}") .toObject(SourceEndpointProperties.class); - Assertions.assertEquals("avxbniwdjswztsdb", model.name()); - Assertions.assertEquals("nxytxh", model.sourceEndpointResourceId()); - Assertions.assertEquals("xbzpfzab", model.awsS3BucketId()); + Assertions.assertEquals("jueiotwmcdytd", model.name()); + Assertions.assertEquals("it", model.sourceEndpointResourceId()); + Assertions.assertEquals("rjaw", model.awsS3BucketId()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceEndpointTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceEndpointTests.java index 3eef52704f9f..7502e4f7e47f 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceEndpointTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceEndpointTests.java @@ -12,10 +12,10 @@ public final class SourceEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SourceEndpoint model = BinaryData.fromString( - "{\"properties\":{\"name\":\"almuzyoxaepdkzja\",\"sourceEndpointResourceId\":\"ux\",\"awsS3BucketId\":\"d\"}}") + "{\"properties\":{\"name\":\"bwpucwwfvovbv\",\"sourceEndpointResourceId\":\"uecivyhz\",\"awsS3BucketId\":\"uojgj\"}}") .toObject(SourceEndpoint.class); - Assertions.assertEquals("almuzyoxaepdkzja", model.properties().name()); - Assertions.assertEquals("ux", model.properties().sourceEndpointResourceId()); - Assertions.assertEquals("d", model.properties().awsS3BucketId()); + Assertions.assertEquals("bwpucwwfvovbv", model.properties().name()); + Assertions.assertEquals("uecivyhz", model.properties().sourceEndpointResourceId()); + Assertions.assertEquals("uojgj", model.properties().awsS3BucketId()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceTargetMapTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceTargetMapTests.java index c3835e9f5aca..9eeebad8b052 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceTargetMapTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/SourceTargetMapTests.java @@ -12,14 +12,14 @@ public final class SourceTargetMapTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SourceTargetMap model = BinaryData.fromString( - "{\"sourceEndpoint\":{\"properties\":{\"name\":\"dybyxczfclhaa\",\"sourceEndpointResourceId\":\"babphlwrqlfk\",\"awsS3BucketId\":\"thsu\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"mnyyazt\",\"targetEndpointResourceId\":\"twwrqp\",\"azureStorageAccountResourceId\":\"dckzywbiexz\",\"azureStorageBlobContainerName\":\"yueaxibxujwb\"}}}") + "{\"sourceEndpoint\":{\"properties\":{\"name\":\"adm\",\"sourceEndpointResourceId\":\"rcrgvx\",\"awsS3BucketId\":\"gomz\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"isgwbnbbeldawkz\",\"targetEndpointResourceId\":\"liourqhak\",\"azureStorageAccountResourceId\":\"hashsfwxosow\",\"azureStorageBlobContainerName\":\"cugicjoox\"}}}") .toObject(SourceTargetMap.class); - Assertions.assertEquals("dybyxczfclhaa", model.sourceEndpoint().properties().name()); - Assertions.assertEquals("babphlwrqlfk", model.sourceEndpoint().properties().sourceEndpointResourceId()); - Assertions.assertEquals("thsu", model.sourceEndpoint().properties().awsS3BucketId()); - Assertions.assertEquals("mnyyazt", model.targetEndpoint().properties().name()); - Assertions.assertEquals("twwrqp", model.targetEndpoint().properties().targetEndpointResourceId()); - Assertions.assertEquals("dckzywbiexz", model.targetEndpoint().properties().azureStorageAccountResourceId()); - Assertions.assertEquals("yueaxibxujwb", model.targetEndpoint().properties().azureStorageBlobContainerName()); + Assertions.assertEquals("adm", model.sourceEndpoint().properties().name()); + Assertions.assertEquals("rcrgvx", model.sourceEndpoint().properties().sourceEndpointResourceId()); + Assertions.assertEquals("gomz", model.sourceEndpoint().properties().awsS3BucketId()); + Assertions.assertEquals("isgwbnbbeldawkz", model.targetEndpoint().properties().name()); + Assertions.assertEquals("liourqhak", model.targetEndpoint().properties().targetEndpointResourceId()); + Assertions.assertEquals("hashsfwxosow", model.targetEndpoint().properties().azureStorageAccountResourceId()); + Assertions.assertEquals("cugicjoox", model.targetEndpoint().properties().azureStorageBlobContainerName()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversCreateOrUpdateWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversCreateOrUpdateWithResponseMockTests.java index 2c4bc2bf5340..289791f83127 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversCreateOrUpdateWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversCreateOrUpdateWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class StorageMoversCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"iysui\",\"provisioningState\":\"Deleting\"},\"location\":\"ked\",\"tags\":{\"pyy\":\"rwyhqmibzyhwitsm\",\"mwzn\":\"pcdpumnz\",\"rgjhxb\":\"abikns\"},\"id\":\"dtlwwrlkd\",\"name\":\"tncvokot\",\"type\":\"lxdy\"}"; + = "{\"properties\":{\"description\":\"oibjudpfrxtrthz\",\"provisioningState\":\"Succeeded\"},\"location\":\"dwkqbrq\",\"tags\":{\"tiirqtdqoa\":\"axhexiilivp\"},\"id\":\"oruzfgsquyfxrxx\",\"name\":\"eptra\",\"type\":\"xje\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,17 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); StorageMover response = manager.storageMovers() - .define("e") - .withRegion("hqkvpuvksgplsak") - .withExistingResourceGroup("jfqka") - .withTags(mapOf("odlqiyntor", "fsynljphuop")) - .withDescription("pfpubjibww") + .define("lr") + .withRegion("wdmjsjqbjhhyx") + .withExistingResourceGroup("eqidbqfatpx") + .withTags(mapOf("duhpk", "lyc", "hky", "kgymareqnajxqug", "sofwqmzqalkrmnji", "ubeddg", "yxbaaabjyvayf", + "pxacqqudfn")) + .withDescription("jmoadsuv") .create(); - Assertions.assertEquals("ked", response.location()); - Assertions.assertEquals("rwyhqmibzyhwitsm", response.tags().get("pyy")); - Assertions.assertEquals("iysui", response.description()); + Assertions.assertEquals("dwkqbrq", response.location()); + Assertions.assertEquals("axhexiilivp", response.tags().get("tiirqtdqoa")); + Assertions.assertEquals("oibjudpfrxtrthz", response.description()); } // Use "Map.of" if available diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversDeleteMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversDeleteMockTests.java index 8e12f59e863d..5684245af846 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversDeleteMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.storageMovers().delete("dd", "kcbcue", com.azure.core.util.Context.NONE); + manager.storageMovers().delete("udxepxgyqagv", "vmnpkukghimdblx", com.azure.core.util.Context.NONE); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversGetByResourceGroupWithResponseMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversGetByResourceGroupWithResponseMockTests.java index 35d15eec771f..13df3265c688 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversGetByResourceGroupWithResponseMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversGetByResourceGroupWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class StorageMoversGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"rfouyftaakcpw\",\"provisioningState\":\"Failed\"},\"location\":\"qtmnubexkpzk\",\"tags\":{\"mg\":\"ndjmquxvyp\",\"ajqgxy\":\"opkwhojv\"},\"id\":\"mocmbqfqvmk\",\"name\":\"xozap\",\"type\":\"helxprglya\"}"; + = "{\"properties\":{\"description\":\"gvvcnayrhyr\",\"provisioningState\":\"Canceled\"},\"location\":\"ueedndrdvs\",\"tags\":{\"alm\":\"qqtch\"},\"id\":\"mtdaa\",\"name\":\"gdv\",\"type\":\"vgpiohgwxrt\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); StorageMover response = manager.storageMovers() - .getByResourceGroupWithResponse("dggkzzlvmbmpa", "modfvuefywsbpfvm", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("kallatmel", "uipiccjzk", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("qtmnubexkpzk", response.location()); - Assertions.assertEquals("ndjmquxvyp", response.tags().get("mg")); - Assertions.assertEquals("rfouyftaakcpw", response.description()); + Assertions.assertEquals("ueedndrdvs", response.location()); + Assertions.assertEquals("qqtch", response.tags().get("alm")); + Assertions.assertEquals("gvvcnayrhyr", response.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListByResourceGroupMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListByResourceGroupMockTests.java index d4cd9753f858..f37a40411d46 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListByResourceGroupMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListByResourceGroupMockTests.java @@ -22,7 +22,7 @@ public final class StorageMoversListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"sxsdqrhzoymibm\",\"provisioningState\":\"Succeeded\"},\"location\":\"bahwfl\",\"tags\":{\"piexpbtgiw\":\"dtmhrkwofyyvoqa\",\"nwashrtd\":\"wo\",\"ulpiuj\":\"kcnqxwbpo\"},\"id\":\"aasipqi\",\"name\":\"obyu\",\"type\":\"erpqlpqwcciuqg\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"jhfjxwm\",\"provisioningState\":\"Canceled\"},\"location\":\"foqreyfkzik\",\"tags\":{\"wczelpci\":\"wneaiv\"},\"id\":\"elsfeaen\",\"name\":\"abfatkl\",\"type\":\"dxbjhwuaanozj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.storageMovers().listByResourceGroup("rjxgciqib", com.azure.core.util.Context.NONE); + = manager.storageMovers().listByResourceGroup("wi", com.azure.core.util.Context.NONE); - Assertions.assertEquals("bahwfl", response.iterator().next().location()); - Assertions.assertEquals("dtmhrkwofyyvoqa", response.iterator().next().tags().get("piexpbtgiw")); - Assertions.assertEquals("sxsdqrhzoymibm", response.iterator().next().description()); + Assertions.assertEquals("foqreyfkzik", response.iterator().next().location()); + Assertions.assertEquals("wneaiv", response.iterator().next().tags().get("wczelpci")); + Assertions.assertEquals("jhfjxwm", response.iterator().next().description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListMockTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListMockTests.java index aaa416a201c4..a66444d0a265 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListMockTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/StorageMoversListMockTests.java @@ -22,7 +22,7 @@ public final class StorageMoversListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"utauv\",\"provisioningState\":\"Deleting\"},\"location\":\"uwhhmhykojoxafn\",\"tags\":{\"bpkkpwdre\":\"pichkoymkcdy\",\"suwsyrsnds\":\"novvqfovljxy\"},\"id\":\"tgadgvraeaen\",\"name\":\"qnzarrwl\",\"type\":\"uu\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"hyoulpjr\",\"provisioningState\":\"Succeeded\"},\"location\":\"l\",\"tags\":{\"tcs\":\"mjwosytx\",\"zikhl\":\"fcktqumiekke\"},\"id\":\"fjhdg\",\"name\":\"gge\",\"type\":\"dunyg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,8 +33,8 @@ public void testList() throws Exception { PagedIterable response = manager.storageMovers().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("uwhhmhykojoxafn", response.iterator().next().location()); - Assertions.assertEquals("pichkoymkcdy", response.iterator().next().tags().get("bpkkpwdre")); - Assertions.assertEquals("utauv", response.iterator().next().description()); + Assertions.assertEquals("l", response.iterator().next().location()); + Assertions.assertEquals("mjwosytx", response.iterator().next().tags().get("tcs")); + Assertions.assertEquals("hyoulpjr", response.iterator().next().description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/TargetEndpointPropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/TargetEndpointPropertiesTests.java index bf02e4ce9075..ea3f2cb1e77d 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/TargetEndpointPropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/TargetEndpointPropertiesTests.java @@ -12,11 +12,11 @@ public final class TargetEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetEndpointProperties model = BinaryData.fromString( - "{\"name\":\"gsxnkjzkdeslpv\",\"targetEndpointResourceId\":\"pwiyig\",\"azureStorageAccountResourceId\":\"pkdwzbai\",\"azureStorageBlobContainerName\":\"bbaumnyquped\"}") + "{\"name\":\"dhxujznbmpo\",\"targetEndpointResourceId\":\"wpr\",\"azureStorageAccountResourceId\":\"lve\",\"azureStorageBlobContainerName\":\"lupj\"}") .toObject(TargetEndpointProperties.class); - Assertions.assertEquals("gsxnkjzkdeslpv", model.name()); - Assertions.assertEquals("pwiyig", model.targetEndpointResourceId()); - Assertions.assertEquals("pkdwzbai", model.azureStorageAccountResourceId()); - Assertions.assertEquals("bbaumnyquped", model.azureStorageBlobContainerName()); + Assertions.assertEquals("dhxujznbmpo", model.name()); + Assertions.assertEquals("wpr", model.targetEndpointResourceId()); + Assertions.assertEquals("lve", model.azureStorageAccountResourceId()); + Assertions.assertEquals("lupj", model.azureStorageBlobContainerName()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/TargetEndpointTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/TargetEndpointTests.java index 296165e867b3..15ec23f1427c 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/TargetEndpointTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/TargetEndpointTests.java @@ -12,11 +12,11 @@ public final class TargetEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetEndpoint model = BinaryData.fromString( - "{\"properties\":{\"name\":\"uhxwtctyqiklbbov\",\"targetEndpointResourceId\":\"wzbhvgyugu\",\"azureStorageAccountResourceId\":\"vmkfssxqu\",\"azureStorageBlobContainerName\":\"fpl\"}}") + "{\"properties\":{\"name\":\"gxhnisk\",\"targetEndpointResourceId\":\"bkpyc\",\"azureStorageAccountResourceId\":\"lwn\",\"azureStorageBlobContainerName\":\"hjdauwhvylwz\"}}") .toObject(TargetEndpoint.class); - Assertions.assertEquals("uhxwtctyqiklbbov", model.properties().name()); - Assertions.assertEquals("wzbhvgyugu", model.properties().targetEndpointResourceId()); - Assertions.assertEquals("vmkfssxqu", model.properties().azureStorageAccountResourceId()); - Assertions.assertEquals("fpl", model.properties().azureStorageBlobContainerName()); + Assertions.assertEquals("gxhnisk", model.properties().name()); + Assertions.assertEquals("bkpyc", model.properties().targetEndpointResourceId()); + Assertions.assertEquals("lwn", model.properties().azureStorageAccountResourceId()); + Assertions.assertEquals("hjdauwhvylwz", model.properties().azureStorageBlobContainerName()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/UserAssignedIdentityTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/UserAssignedIdentityTests.java index 19e2c2e4cb58..399d000a4780 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/UserAssignedIdentityTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/UserAssignedIdentityTests.java @@ -10,9 +10,8 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UserAssignedIdentity model - = BinaryData.fromString("{\"principalId\":\"icbtwnpzao\",\"clientId\":\"uhrhcffcyddgl\"}") - .toObject(UserAssignedIdentity.class); + UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"dqmidtt\",\"clientId\":\"rvqdra\"}") + .toObject(UserAssignedIdentity.class); } @org.junit.jupiter.api.Test diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/tsp-location.yaml b/sdk/storagemover/azure-resourcemanager-storagemover/tsp-location.yaml index 4337c5d8b5aa..9cd4f0d0b90f 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/tsp-location.yaml +++ b/sdk/storagemover/azure-resourcemanager-storagemover/tsp-location.yaml @@ -1,4 +1,4 @@ -directory: specification/storagemover/StorageMover.Management -commit: 55fc3e7d12df68485d19b10847f24c95579a06f4 +directory: specification/storagemover/resource-manager/Microsoft.StorageMover/StorageMover +commit: f89d3d95044e14c679785fa9e0d28c7c97af870a repo: Azure/azure-rest-api-specs additionalDirectories: