From 04f986a0883d2420b3ed57fc66421179a932369c Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 17 Mar 2026 05:35:53 +0000 Subject: [PATCH] Configurations: 'specification/storagemover/StorageMover.Management/tspconfig.yaml', API Version: 2025-12-01, SDK Release Type: stable, and CommitSHA: 'b8861b82d3b47a8cf9c2dfae4a29ec9ff41eacbf' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6019527 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 113 ++- .../README.md | 4 +- .../SAMPLE.md | 325 +++++++-- .../pom.xml | 11 +- .../storagemover/StorageMoverManager.java | 16 + .../fluent/ConnectionsClient.java | 171 +++++ .../fluent/StorageMoverManagementClient.java | 7 + .../fluent/models/ConnectionInner.java | 155 ++++ .../fluent/models/JobDefinitionInner.java | 95 +++ .../models/JobDefinitionProperties.java | 119 ++++ .../models/JobDefinitionUpdateProperties.java | 61 ++ .../fluent/models/JobRunInner.java | 30 + .../fluent/models/JobRunProperties.java | 53 ++ .../implementation/ConnectionImpl.java | 135 ++++ .../implementation/ConnectionsClientImpl.java | 663 ++++++++++++++++++ .../implementation/ConnectionsImpl.java | 152 ++++ .../implementation/JobDefinitionImpl.java | 55 ++ .../implementation/JobRunImpl.java | 21 + .../StorageMoverManagementClientImpl.java | 18 +- .../implementation/models/ConnectionList.java | 94 +++ .../AzureKeyVaultS3WithHmacCredentials.java | 135 ++++ ...MultiCloudConnectorEndpointProperties.java | 13 + ...torageBlobContainerEndpointProperties.java | 13 + ...StorageNfsFileShareEndpointProperties.java | 13 + ...StorageSmbFileShareEndpointProperties.java | 13 + .../storagemover/models/Connection.java | 189 +++++ .../models/ConnectionProperties.java | 209 ++++++ .../storagemover/models/ConnectionStatus.java | 66 ++ .../storagemover/models/Connections.java | 148 ++++ .../storagemover/models/CredentialType.java | 5 + .../storagemover/models/Credentials.java | 2 + .../models/DataIntegrityValidation.java | 56 ++ .../models/EndpointBaseProperties.java | 30 + .../models/EndpointBaseUpdateProperties.java | 2 + .../storagemover/models/EndpointKind.java | 51 ++ .../storagemover/models/EndpointType.java | 5 + .../storagemover/models/Frequency.java | 61 ++ .../storagemover/models/JobDefinition.java | 117 +++- .../models/JobDefinitionUpdateParameters.java | 47 ++ .../storagemover/models/JobRun.java | 22 + .../storagemover/models/JobRunWarning.java | 108 +++ .../models/NfsMountEndpointProperties.java | 13 + .../models/S3WithHmacEndpointProperties.java | 219 ++++++ .../S3WithHmacEndpointUpdateProperties.java | 119 ++++ .../models/S3WithHmacSourceType.java | 66 ++ .../storagemover/models/ScheduleInfo.java | 292 ++++++++ .../models/SmbMountEndpointProperties.java | 13 + .../storagemover/models/TriggerType.java | 51 ++ ...resourcemanager-storagemover_metadata.json | 2 +- .../proxy-config.json | 2 +- .../AgentsCreateOrUpdateSamples.java | 6 +- .../generated/AgentsDeleteSamples.java | 2 +- .../generated/AgentsGetSamples.java | 4 +- .../generated/AgentsListSamples.java | 4 +- .../generated/AgentsUpdateSamples.java | 2 +- .../ConnectionsCreateOrUpdateSamples.java | 30 + .../generated/ConnectionsDeleteSamples.java | 23 + .../generated/ConnectionsGetSamples.java | 24 + .../generated/ConnectionsListSamples.java | 22 + .../EndpointsCreateOrUpdateSamples.java | 29 +- .../generated/EndpointsDeleteSamples.java | 2 +- .../generated/EndpointsGetSamples.java | 26 +- .../generated/EndpointsListSamples.java | 2 +- .../generated/EndpointsUpdateSamples.java | 28 +- .../JobDefinitionsCreateOrUpdateSamples.java | 46 +- .../JobDefinitionsDeleteSamples.java | 2 +- .../generated/JobDefinitionsGetSamples.java | 17 +- .../generated/JobDefinitionsListSamples.java | 2 +- .../JobDefinitionsStartJobSamples.java | 2 +- .../JobDefinitionsStopJobSamples.java | 2 +- .../JobDefinitionsUpdateSamples.java | 5 +- .../generated/JobRunsGetSamples.java | 16 +- .../generated/JobRunsListSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- .../ProjectsCreateOrUpdateSamples.java | 2 +- .../generated/ProjectsDeleteSamples.java | 2 +- .../generated/ProjectsGetSamples.java | 2 +- .../generated/ProjectsListSamples.java | 2 +- .../generated/ProjectsUpdateSamples.java | 2 +- .../StorageMoversCreateOrUpdateSamples.java | 2 +- .../generated/StorageMoversDeleteSamples.java | 2 +- ...torageMoversGetByResourceGroupSamples.java | 2 +- ...orageMoversListByResourceGroupSamples.java | 2 +- .../generated/StorageMoversListSamples.java | 2 +- .../generated/StorageMoversUpdateSamples.java | 2 +- .../generated/AgentsDeleteMockTests.java | 2 +- ...CloudConnectorEndpointPropertiesTests.java | 24 +- ...onnectorEndpointUpdatePropertiesTests.java | 12 +- ...eBlobContainerEndpointPropertiesTests.java | 24 +- ...ontainerEndpointUpdatePropertiesTests.java | 8 +- ...geNfsFileShareEndpointPropertiesTests.java | 24 +- ...ileShareEndpointUpdatePropertiesTests.java | 8 +- ...geSmbFileShareEndpointPropertiesTests.java | 24 +- ...ileShareEndpointUpdatePropertiesTests.java | 12 +- .../generated/ConnectionInnerTests.java | 35 + .../generated/ConnectionListTests.java | 19 + .../generated/ConnectionPropertiesTests.java | 33 + ...nsCreateOrUpdateWithResponseMockTests.java | 47 ++ .../ConnectionsGetWithResponseMockTests.java | 41 ++ .../generated/ConnectionsListMockTests.java | 41 ++ .../EndpointBasePropertiesTests.java | 12 +- .../EndpointBaseUpdateParametersTests.java | 18 +- .../EndpointBaseUpdatePropertiesTests.java | 8 +- .../generated/EndpointInnerTests.java | 20 +- .../generated/EndpointListTests.java | 4 +- ...tsCreateOrUpdateWithResponseMockTests.java | 21 +- .../generated/EndpointsDeleteMockTests.java | 2 +- .../EndpointsGetWithResponseMockTests.java | 10 +- .../generated/EndpointsListMockTests.java | 11 +- .../generated/JobDefinitionInnerTests.java | 88 ++- .../generated/JobDefinitionListTests.java | 4 +- ...initionPropertiesSourceTargetMapTests.java | 2 +- .../JobDefinitionPropertiesTests.java | 88 ++- .../JobDefinitionUpdateParametersTests.java | 31 +- .../JobDefinitionUpdatePropertiesTests.java | 26 +- ...nsCreateOrUpdateWithResponseMockTests.java | 59 +- .../JobDefinitionsDeleteMockTests.java | 3 +- ...obDefinitionsGetWithResponseMockTests.java | 31 +- .../JobDefinitionsListMockTests.java | 36 +- ...initionsStartJobWithResponseMockTests.java | 5 +- ...finitionsStopJobWithResponseMockTests.java | 5 +- .../generated/JobRunResourceIdInnerTests.java | 2 +- .../ManagedServiceIdentityTests.java | 6 +- .../NfsMountEndpointPropertiesTests.java | 30 +- ...NfsMountEndpointUpdatePropertiesTests.java | 8 +- .../generated/OperationsListMockTests.java | 2 +- .../generated/ProjectInnerTests.java | 8 +- .../generated/ProjectListTests.java | 4 +- .../generated/ProjectPropertiesTests.java | 8 +- .../ProjectUpdateParametersTests.java | 8 +- .../ProjectUpdatePropertiesTests.java | 8 +- ...tsCreateOrUpdateWithResponseMockTests.java | 11 +- .../generated/ProjectsDeleteMockTests.java | 2 +- .../ProjectsGetWithResponseMockTests.java | 6 +- .../generated/ProjectsListMockTests.java | 6 +- .../generated/ScheduleInfoTests.java | 54 ++ .../SourceEndpointPropertiesTests.java | 11 +- .../generated/SourceEndpointTests.java | 8 +- .../generated/SourceTargetMapTests.java | 17 +- ...rsCreateOrUpdateWithResponseMockTests.java | 18 +- .../StorageMoversDeleteMockTests.java | 2 +- ...tByResourceGroupWithResponseMockTests.java | 10 +- ...ageMoversListByResourceGroupMockTests.java | 10 +- .../generated/StorageMoversListMockTests.java | 8 +- .../TargetEndpointPropertiesTests.java | 10 +- .../generated/TargetEndpointTests.java | 10 +- .../generated/UserAssignedIdentityTests.java | 2 +- .../tsp-location.yaml | 2 +- 149 files changed, 5367 insertions(+), 446 deletions(-) create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/ConnectionsClient.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ConnectionInner.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionImpl.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsClientImpl.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsImpl.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/models/ConnectionList.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureKeyVaultS3WithHmacCredentials.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Connection.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionProperties.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionStatus.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Connections.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/DataIntegrityValidation.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/EndpointKind.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Frequency.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobRunWarning.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointProperties.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointUpdateProperties.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacSourceType.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ScheduleInfo.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/TriggerType.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateSamples.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsDeleteSamples.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetSamples.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListSamples.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionInnerTests.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionListTests.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionPropertiesTests.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateWithResponseMockTests.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetWithResponseMockTests.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListMockTests.java create mode 100644 sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ScheduleInfoTests.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index f653373d8a76..f3ca8821485d 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -435,7 +435,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.3 -com.azure.resourcemanager:azure-resourcemanager-storagemover;1.4.0;1.5.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-storagemover;1.4.0;1.5.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 fb3f9f550541..8ce0a048b92b 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/CHANGELOG.md +++ b/sdk/storagemover/azure-resourcemanager-storagemover/CHANGELOG.md @@ -1,14 +1,119 @@ # Release History -## 1.5.0-beta.1 (Unreleased) +## 1.5.0 (2026-03-17) + +- 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). ### Features Added -### Breaking Changes +* `models.S3WithHmacEndpointProperties` was added + +* `models.Connection$UpdateStages` was added + +* `models.Connection$DefinitionStages` was added + +* `models.Connection$Update` was added + +* `models.TriggerType` was added + +* `models.Connection` was added + +* `models.AzureKeyVaultS3WithHmacCredentials` was added + +* `models.S3WithHmacEndpointUpdateProperties` was added + +* `models.Frequency` was added + +* `models.S3WithHmacSourceType` was added + +* `models.ConnectionProperties` was added + +* `models.EndpointKind` was added + +* `models.ScheduleInfo` was added + +* `models.ConnectionStatus` was added + +* `models.JobRunWarning` was added + +* `models.Connection$Definition` was added + +* `models.Connections` was added + +* `models.DataIntegrityValidation` was added + +#### `StorageMoverManager` was modified + +* `connections()` was added + +#### `models.SmbMountEndpointProperties` was modified + +* `withEndpointKind(models.EndpointKind)` was added + +#### `models.EndpointBaseProperties` was modified + +* `withEndpointKind(models.EndpointKind)` was added +* `endpointKind()` was added -### Bugs Fixed +#### `models.AzureStorageNfsFileShareEndpointProperties` was modified + +* `withEndpointKind(models.EndpointKind)` was added + +#### `models.AzureMultiCloudConnectorEndpointProperties` was modified + +* `withEndpointKind(models.EndpointKind)` was added + +#### `models.AzureStorageSmbFileShareEndpointProperties` was modified + +* `withEndpointKind(models.EndpointKind)` was added + +#### `models.JobDefinitionUpdateParameters` was modified + +* `dataIntegrityValidation()` was added +* `withDataIntegrityValidation(models.DataIntegrityValidation)` was added +* `connections()` was added +* `withConnections(java.util.List)` was added + +#### `models.AzureStorageBlobContainerEndpointProperties` was modified + +* `withEndpointKind(models.EndpointKind)` was added + +#### `models.JobDefinition` was modified + +* `connections()` was added +* `dataIntegrityValidation()` was added +* `schedule()` was added +* `preservePermissions()` was added + +#### `models.JobDefinition$Update` was modified + +* `withDataIntegrityValidation(models.DataIntegrityValidation)` was added +* `withConnections(java.util.List)` was added + +#### `models.JobRun` was modified + +* `warnings()` was added +* `scheduledExecutionTime()` was added +* `triggerType()` was added + +#### `models.JobDefinition$Definition` was modified + +* `withDataIntegrityValidation(models.DataIntegrityValidation)` was added +* `withPreservePermissions(java.lang.Boolean)` was added +* `withConnections(java.util.List)` was added +* `withSchedule(models.ScheduleInfo)` was added + +#### `models.EndpointType` was modified + +* `S3WITH_HMAC` was added + +#### `models.CredentialType` was modified + +* `AZURE_KEY_VAULT_S3WITH_HMAC` was added + +#### `models.NfsMountEndpointProperties` was modified -### Other Changes +* `withEndpointKind(models.EndpointKind)` was added ## 1.4.0 (2025-08-29) diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/README.md b/sdk/storagemover/azure-resourcemanager-storagemover/README.md index 070c5799810d..42552eba92eb 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-07-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 2025-12-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.4.0 + 1.5.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/SAMPLE.md b/sdk/storagemover/azure-resourcemanager-storagemover/SAMPLE.md index dc9dfb2fb8dd..3bb789f064fe 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/SAMPLE.md +++ b/sdk/storagemover/azure-resourcemanager-storagemover/SAMPLE.md @@ -9,6 +9,13 @@ - [List](#agents_list) - [Update](#agents_update) +## Connections + +- [CreateOrUpdate](#connections_createorupdate) +- [Delete](#connections_delete) +- [Get](#connections_get) +- [List](#connections_list) + ## Endpoints - [CreateOrUpdate](#endpoints_createorupdate) @@ -67,7 +74,7 @@ import java.util.Arrays; */ public final class AgentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-07-01/Agents_CreateOrUpdate_MaximumSet.json + * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_MaximumSet.json */ /** * Sample code: Agents_CreateOrUpdate_MaximumSet. @@ -92,7 +99,7 @@ public final class AgentsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Agents_CreateOrUpdate_UploadLimitSchedule_Overnight.json + * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_UploadLimitSchedule_Overnight.json */ /** * Sample code: Agents_CreateOrUpdate_WithOvernightUploadLimitSchedule. @@ -122,7 +129,7 @@ public final class AgentsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Agents_CreateOrUpdate_MinimumSet.json + * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_MinimumSet.json */ /** * Sample code: Agents_CreateOrUpdate_MinimumSet. @@ -150,7 +157,7 @@ public final class AgentsCreateOrUpdateSamples { */ public final class AgentsDeleteSamples { /* - * x-ms-original-file: 2025-07-01/Agents_Delete.json + * x-ms-original-file: 2025-12-01/Agents_Delete.json */ /** * Sample code: Agents_Delete. @@ -172,7 +179,7 @@ public final class AgentsDeleteSamples { */ public final class AgentsGetSamples { /* - * x-ms-original-file: 2025-07-01/Agents_Get_MaximumSet.json + * x-ms-original-file: 2025-12-01/Agents_Get_MaximumSet.json */ /** * Sample code: Agents_Get_MaximumSet. @@ -186,7 +193,7 @@ public final class AgentsGetSamples { } /* - * x-ms-original-file: 2025-07-01/Agents_Get_MinimumSet.json + * x-ms-original-file: 2025-12-01/Agents_Get_MinimumSet.json */ /** * Sample code: Agents_Get_MinimumSet. @@ -209,7 +216,7 @@ public final class AgentsGetSamples { */ public final class AgentsListSamples { /* - * x-ms-original-file: 2025-07-01/Agents_List_MaximumSet.json + * x-ms-original-file: 2025-12-01/Agents_List_MaximumSet.json */ /** * Sample code: Agents_List_MaximumSet. @@ -221,7 +228,7 @@ public final class AgentsListSamples { } /* - * x-ms-original-file: 2025-07-01/Agents_List_MinimumSet.json + * x-ms-original-file: 2025-12-01/Agents_List_MinimumSet.json */ /** * Sample code: Agents_List_MinimumSet. @@ -250,7 +257,7 @@ import java.util.Arrays; */ public final class AgentsUpdateSamples { /* - * x-ms-original-file: 2025-07-01/Agents_Update.json + * x-ms-original-file: 2025-12-01/Agents_Update.json */ /** * Sample code: Agents_Update. @@ -274,6 +281,101 @@ public final class AgentsUpdateSamples { } ``` +### Connections_CreateOrUpdate + +```java +import com.azure.resourcemanager.storagemover.models.ConnectionProperties; + +/** + * Samples for Connections CreateOrUpdate. + */ +public final class ConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-12-01/Connections_CreateOrUpdate.json + */ + /** + * Sample code: Connections_CreateOrUpdate. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void connectionsCreateOrUpdate(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.connections() + .define("example-connection") + .withExistingStorageMover("examples-rg", "examples-storageMoverName") + .withProperties(new ConnectionProperties().withDescription("Example Connection Description") + .withPrivateLinkServiceId( + "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.Network/privateLinkServices/example-pls")) + .create(); + } +} +``` + +### Connections_Delete + +```java +/** + * Samples for Connections Delete. + */ +public final class ConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-12-01/Connections_Delete.json + */ + /** + * Sample code: Connections_Delete. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void connectionsDelete(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.connections() + .delete("examples-rg", "examples-storageMoverName", "example-connection", com.azure.core.util.Context.NONE); + } +} +``` + +### Connections_Get + +```java +/** + * Samples for Connections Get. + */ +public final class ConnectionsGetSamples { + /* + * x-ms-original-file: 2025-12-01/Connections_Get.json + */ + /** + * Sample code: Connections_Get. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void connectionsGet(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.connections() + .getWithResponse("examples-rg", "examples-storageMoverName", "example-connection", + com.azure.core.util.Context.NONE); + } +} +``` + +### Connections_List + +```java +/** + * Samples for Connections List. + */ +public final class ConnectionsListSamples { + /* + * x-ms-original-file: 2025-12-01/Connections_List.json + */ + /** + * Sample code: Connections_List. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void connectionsList(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.connections().list("examples-rg", "examples-storageMoverName", com.azure.core.util.Context.NONE); + } +} +``` + ### Endpoints_CreateOrUpdate ```java @@ -284,7 +386,7 @@ import com.azure.resourcemanager.storagemover.models.EndpointBaseProperties; */ public final class EndpointsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_AzureStorageNfsFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageNfsFileShare. @@ -301,7 +403,24 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_AzureMultiCloudConnector.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_S3WithHMAC.json + */ + /** + * Sample code: Endpoints_CreateOrUpdate_S3WithHmac. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + endpointsCreateOrUpdateS3WithHmac(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.endpoints() + .define("examples-endpointName") + .withExistingStorageMover("examples-rg", "examples-storageMoverName") + .withProperties((EndpointBaseProperties) null) + .create(); + } + + /* + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureMultiCloudConnector. @@ -318,7 +437,7 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageBlobContainer. @@ -335,7 +454,7 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_NfsMount.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_NfsMount.json */ /** * Sample code: Endpoints_CreateOrUpdate_NfsMount. @@ -352,7 +471,7 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageSmbFileShare. @@ -369,7 +488,7 @@ public final class EndpointsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_SmbMount.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_SmbMount.json */ /** * Sample code: Endpoints_CreateOrUpdate_SmbMount. @@ -395,7 +514,7 @@ public final class EndpointsCreateOrUpdateSamples { */ public final class EndpointsDeleteSamples { /* - * x-ms-original-file: 2025-07-01/Endpoints_Delete.json + * x-ms-original-file: 2025-12-01/Endpoints_Delete.json */ /** * Sample code: Endpoints_Delete. @@ -418,7 +537,7 @@ public final class EndpointsDeleteSamples { */ public final class EndpointsGetSamples { /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_AzureStorageNfsFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_Get_AzureStorageNfsFileShare. @@ -433,7 +552,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_SmbMount.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_SmbMount.json */ /** * Sample code: Endpoints_Get_SmbMount. @@ -447,7 +566,21 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_AzureStorageBlobContainer.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_S3WithHMAC.json + */ + /** + * Sample code: Endpoints_Get_S3WithHmac. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsGetS3WithHmac(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: 2025-12-01/Endpoints_Get_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_Get_AzureStorageBlobContainer. @@ -462,7 +595,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_NfsMount.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_NfsMount.json */ /** * Sample code: Endpoints_Get_NfsMount. @@ -476,7 +609,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_AzureStorageSmbFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_Get_AzureStorageSmbFileShare. @@ -491,7 +624,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_AzureMultiCloudConnector.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_Get_AzureMultiCloudConnector. @@ -515,7 +648,7 @@ public final class EndpointsGetSamples { */ public final class EndpointsListSamples { /* - * x-ms-original-file: 2025-07-01/Endpoints_List.json + * x-ms-original-file: 2025-12-01/Endpoints_List.json */ /** * Sample code: Endpoints_List. @@ -538,7 +671,7 @@ import com.azure.resourcemanager.storagemover.models.Endpoint; */ public final class EndpointsUpdateSamples { /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_AzureMultiCloudConnector.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_Update_AzureMultiCloudConnector. @@ -555,7 +688,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_AzureStorageNfsFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_Update_AzureStorageNfsFileShare. @@ -572,7 +705,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_NfsMount.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_NfsMount.json */ /** * Sample code: Endpoints_Update_NfsMount. @@ -588,7 +721,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_AzureStorageSmbFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_Update_AzureStorageSmbFileShare. @@ -605,7 +738,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_AzureStorageBlobContainer.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_Update_AzureStorageBlobContainer. @@ -622,7 +755,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_SmbMount.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_SmbMount.json */ /** * Sample code: Endpoints_Update_SmbMount. @@ -636,6 +769,22 @@ public final class EndpointsUpdateSamples { .getValue(); resource.update().apply(); } + + /* + * x-ms-original-file: 2025-12-01/Endpoints_Update_S3WithHMAC.json + */ + /** + * Sample code: Endpoints_Update_S3WithHmac. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsUpdateS3WithHmac(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(); + } } ``` @@ -643,14 +792,52 @@ public final class EndpointsUpdateSamples { ```java import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.Frequency; import com.azure.resourcemanager.storagemover.models.JobType; +import com.azure.resourcemanager.storagemover.models.Minute; +import com.azure.resourcemanager.storagemover.models.ScheduleInfo; +import com.azure.resourcemanager.storagemover.models.Time; +import java.time.OffsetDateTime; +import java.util.Arrays; /** * Samples for JobDefinitions CreateOrUpdate. */ public final class JobDefinitionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-07-01/JobDefinitions_CreateOrUpdate_CloudToCloud.json + * x-ms-original-file: 2025-12-01/JobDefinitions_CreateOrUpdate_With_Schedule.json + */ + /** + * Sample code: JobDefinitions_CreateOrUpdate_With_Schedule. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + jobDefinitionsCreateOrUpdateWithSchedule(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("examples-targetEndpointName") + .withDescription("Example Job Definition Description") + .withJobType(JobType.CLOUD_TO_CLOUD) + .withSourceSubpath("/") + .withTargetSubpath("/") + .withAgentName("dummy-agent") + .withConnections(Arrays.asList( + "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) + .withSchedule(new ScheduleInfo().withFrequency(Frequency.WEEKLY) + .withIsActive(true) + .withExecutionTime(new Time().withHour(9).withMinute(Minute.ZERO)) + .withStartDate(OffsetDateTime.parse("2025-12-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 */ /** * Sample code: JobDefinitions_CreateOrUpdate_CloudToCloud. @@ -670,11 +857,13 @@ public final class JobDefinitionsCreateOrUpdateSamples { .withSourceSubpath("/") .withTargetSubpath("/") .withAgentName("dummy-agent") + .withConnections(Arrays.asList( + "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) .create(); } /* - * x-ms-original-file: 2025-07-01/JobDefinitions_CreateOrUpdate.json + * x-ms-original-file: 2025-12-01/JobDefinitions_CreateOrUpdate.json */ /** * Sample code: JobDefinitions_CreateOrUpdate. @@ -694,6 +883,8 @@ public final class JobDefinitionsCreateOrUpdateSamples { .withSourceSubpath("/") .withTargetSubpath("/") .withAgentName("migration-agent") + .withConnections(Arrays.asList( + "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) .create(); } } @@ -707,7 +898,7 @@ public final class JobDefinitionsCreateOrUpdateSamples { */ public final class JobDefinitionsDeleteSamples { /* - * x-ms-original-file: 2025-07-01/JobDefinitions_Delete.json + * x-ms-original-file: 2025-12-01/JobDefinitions_Delete.json */ /** * Sample code: Projects_Delete. @@ -730,7 +921,7 @@ public final class JobDefinitionsDeleteSamples { */ public final class JobDefinitionsGetSamples { /* - * x-ms-original-file: 2025-07-01/JobDefinitions_Get.json + * x-ms-original-file: 2025-12-01/JobDefinitions_Get.json */ /** * Sample code: JobDefinitions_Get. @@ -742,6 +933,21 @@ public final class JobDefinitionsGetSamples { .getWithResponse("examples-rg", "examples-storageMoverName", "examples-projectName", "examples-jobDefinitionName", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-12-01/JobDefinitions_Get_With_Schedule.json + */ + /** + * Sample code: JobDefinitions_Get_With_Schedule. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + jobDefinitionsGetWithSchedule(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobDefinitions() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-projectName", + "examples-jobDefinitionName", com.azure.core.util.Context.NONE); + } } ``` @@ -753,7 +959,7 @@ public final class JobDefinitionsGetSamples { */ public final class JobDefinitionsListSamples { /* - * x-ms-original-file: 2025-07-01/JobDefinitions_List.json + * x-ms-original-file: 2025-12-01/JobDefinitions_List.json */ /** * Sample code: JobDefinitions_List. @@ -775,7 +981,7 @@ public final class JobDefinitionsListSamples { */ public final class JobDefinitionsStartJobSamples { /* - * x-ms-original-file: 2025-07-01/JobDefinitions_StartJob.json + * x-ms-original-file: 2025-12-01/JobDefinitions_StartJob.json */ /** * Sample code: JobDefinitions_StartJob. @@ -798,7 +1004,7 @@ public final class JobDefinitionsStartJobSamples { */ public final class JobDefinitionsStopJobSamples { /* - * x-ms-original-file: 2025-07-01/JobDefinitions_StopJob.json + * x-ms-original-file: 2025-12-01/JobDefinitions_StopJob.json */ /** * Sample code: JobDefinitions_StopJob. @@ -817,13 +1023,14 @@ public final class JobDefinitionsStopJobSamples { ```java import com.azure.resourcemanager.storagemover.models.JobDefinition; +import java.util.Arrays; /** * Samples for JobDefinitions Update. */ public final class JobDefinitionsUpdateSamples { /* - * x-ms-original-file: 2025-07-01/JobDefinitions_Update.json + * x-ms-original-file: 2025-12-01/JobDefinitions_Update.json */ /** * Sample code: JobDefinitions_Update. @@ -838,6 +1045,8 @@ public final class JobDefinitionsUpdateSamples { resource.update() .withDescription("Updated Job Definition Description") .withAgentName("updatedAgentName") + .withConnections(Arrays.asList( + "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) .apply(); } } @@ -851,7 +1060,21 @@ public final class JobDefinitionsUpdateSamples { */ public final class JobRunsGetSamples { /* - * x-ms-original-file: 2025-07-01/JobRuns_Get.json + * x-ms-original-file: 2025-12-01/JobRuns_Get_With_Schedule.json + */ + /** + * Sample code: JobRuns_Get_With_Schedule. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void jobRunsGetWithSchedule(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobRuns() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-projectName", + "examples-jobDefinitionName", "examples-jobRunName", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-12-01/JobRuns_Get.json */ /** * Sample code: JobRuns_Get. @@ -874,7 +1097,7 @@ public final class JobRunsGetSamples { */ public final class JobRunsListSamples { /* - * x-ms-original-file: 2025-07-01/JobRuns_List.json + * x-ms-original-file: 2025-12-01/JobRuns_List.json */ /** * Sample code: JobRuns_List. @@ -897,7 +1120,7 @@ public final class JobRunsListSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-07-01/Operations_List.json + * x-ms-original-file: 2025-12-01/Operations_List.json */ /** * Sample code: Operations_List. @@ -918,7 +1141,7 @@ public final class OperationsListSamples { */ public final class ProjectsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-07-01/Projects_CreateOrUpdate.json + * x-ms-original-file: 2025-12-01/Projects_CreateOrUpdate.json */ /** * Sample code: Projects_CreateOrUpdate. @@ -943,7 +1166,7 @@ public final class ProjectsCreateOrUpdateSamples { */ public final class ProjectsDeleteSamples { /* - * x-ms-original-file: 2025-07-01/Projects_Delete.json + * x-ms-original-file: 2025-12-01/Projects_Delete.json */ /** * Sample code: Projects_Delete. @@ -966,7 +1189,7 @@ public final class ProjectsDeleteSamples { */ public final class ProjectsGetSamples { /* - * x-ms-original-file: 2025-07-01/Projects_Get.json + * x-ms-original-file: 2025-12-01/Projects_Get.json */ /** * Sample code: Projects_Get. @@ -989,7 +1212,7 @@ public final class ProjectsGetSamples { */ public final class ProjectsListSamples { /* - * x-ms-original-file: 2025-07-01/Projects_List.json + * x-ms-original-file: 2025-12-01/Projects_List.json */ /** * Sample code: Projects_List. @@ -1012,7 +1235,7 @@ import com.azure.resourcemanager.storagemover.models.Project; */ public final class ProjectsUpdateSamples { /* - * x-ms-original-file: 2025-07-01/Projects_Update.json + * x-ms-original-file: 2025-12-01/Projects_Update.json */ /** * Sample code: Projects_Update. @@ -1040,7 +1263,7 @@ import java.util.Map; */ public final class StorageMoversCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-07-01/StorageMovers_CreateOrUpdate.json + * x-ms-original-file: 2025-12-01/StorageMovers_CreateOrUpdate.json */ /** * Sample code: StorageMovers_CreateOrUpdate. @@ -1079,7 +1302,7 @@ public final class StorageMoversCreateOrUpdateSamples { */ public final class StorageMoversDeleteSamples { /* - * x-ms-original-file: 2025-07-01/StorageMovers_Delete.json + * x-ms-original-file: 2025-12-01/StorageMovers_Delete.json */ /** * Sample code: StorageMovers_Delete. @@ -1100,7 +1323,7 @@ public final class StorageMoversDeleteSamples { */ public final class StorageMoversGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-07-01/StorageMovers_Get.json + * x-ms-original-file: 2025-12-01/StorageMovers_Get.json */ /** * Sample code: StorageMovers_Get. @@ -1123,7 +1346,7 @@ public final class StorageMoversGetByResourceGroupSamples { */ public final class StorageMoversListSamples { /* - * x-ms-original-file: 2025-07-01/StorageMovers_ListBySubscription.json + * x-ms-original-file: 2025-12-01/StorageMovers_ListBySubscription.json */ /** * Sample code: StorageMovers_List. @@ -1144,7 +1367,7 @@ public final class StorageMoversListSamples { */ public final class StorageMoversListByResourceGroupSamples { /* - * x-ms-original-file: 2025-07-01/StorageMovers_List.json + * x-ms-original-file: 2025-12-01/StorageMovers_List.json */ /** * Sample code: StorageMovers_List. @@ -1167,7 +1390,7 @@ import com.azure.resourcemanager.storagemover.models.StorageMover; */ public final class StorageMoversUpdateSamples { /* - * x-ms-original-file: 2025-07-01/StorageMovers_Update.json + * x-ms-original-file: 2025-12-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 10909e7a9dd3..42fe89132a92 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/pom.xml +++ b/sdk/storagemover/azure-resourcemanager-storagemover/pom.xml @@ -1,9 +1,9 @@ - + 4.0.0 com.azure @@ -14,11 +14,11 @@ Code generated by Microsoft (R) TypeSpec Code Generator. com.azure.resourcemanager azure-resourcemanager-storagemover - 1.5.0-beta.1 + 1.5.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-07-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 2025-12-01. https://github.com/Azure/azure-sdk-for-java @@ -45,7 +45,6 @@ Code generated by Microsoft (R) TypeSpec Code Generator. UTF-8 0 0 - true diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/StorageMoverManager.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/StorageMoverManager.java index f755ca9db83d..3ede5934d399 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/StorageMoverManager.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/StorageMoverManager.java @@ -26,6 +26,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.storagemover.fluent.StorageMoverManagementClient; import com.azure.resourcemanager.storagemover.implementation.AgentsImpl; +import com.azure.resourcemanager.storagemover.implementation.ConnectionsImpl; import com.azure.resourcemanager.storagemover.implementation.EndpointsImpl; import com.azure.resourcemanager.storagemover.implementation.JobDefinitionsImpl; import com.azure.resourcemanager.storagemover.implementation.JobRunsImpl; @@ -34,6 +35,7 @@ import com.azure.resourcemanager.storagemover.implementation.StorageMoverManagementClientBuilder; import com.azure.resourcemanager.storagemover.implementation.StorageMoversImpl; import com.azure.resourcemanager.storagemover.models.Agents; +import com.azure.resourcemanager.storagemover.models.Connections; import com.azure.resourcemanager.storagemover.models.Endpoints; import com.azure.resourcemanager.storagemover.models.JobDefinitions; import com.azure.resourcemanager.storagemover.models.JobRuns; @@ -65,6 +67,8 @@ public final class StorageMoverManager { private JobDefinitions jobDefinitions; + private Connections connections; + private JobRuns jobRuns; private final StorageMoverManagementClient clientObject; @@ -354,6 +358,18 @@ public JobDefinitions jobDefinitions() { return jobDefinitions; } + /** + * Gets the resource collection API of Connections. It manages Connection. + * + * @return Resource collection API of Connections. + */ + public Connections connections() { + if (this.connections == null) { + this.connections = new ConnectionsImpl(clientObject.getConnections(), this); + } + return connections; + } + /** * Gets the resource collection API of JobRuns. * diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/ConnectionsClient.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/ConnectionsClient.java new file mode 100644 index 000000000000..a52ae1fb9f5d --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/ConnectionsClient.java @@ -0,0 +1,171 @@ +// 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.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.storagemover.fluent.models.ConnectionInner; + +/** + * An instance of this class provides access to all the operations defined in ConnectionsClient. + */ +public interface ConnectionsClient { + /** + * Creates or updates a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection resource. + * @param connection The connection parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Connection resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, String storageMoverName, + String connectionName, ConnectionInner connection, Context context); + + /** + * Creates or updates a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection resource. + * @param connection The connection parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Connection resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConnectionInner createOrUpdate(String resourceGroupName, String storageMoverName, String connectionName, + ConnectionInner connection); + + /** + * Gets a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 a Connection resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String storageMoverName, String connectionName, + Context context); + + /** + * Gets a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 a Connection resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ConnectionInner get(String resourceGroupName, String storageMoverName, String connectionName); + + /** + * Lists all Connections in a Storage Mover. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover 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 list of Connections as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String storageMoverName); + + /** + * Lists all Connections in a Storage Mover. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover 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 list of Connections as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String storageMoverName, Context context); + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String storageMoverName, + String connectionName); + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String storageMoverName, + String connectionName, Context context); + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String storageMoverName, String connectionName); + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String storageMoverName, String connectionName, Context context); +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/StorageMoverManagementClient.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/StorageMoverManagementClient.java index f24075f1cd05..e181b8d3391e 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/StorageMoverManagementClient.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/StorageMoverManagementClient.java @@ -88,6 +88,13 @@ public interface StorageMoverManagementClient { */ JobDefinitionsClient getJobDefinitions(); + /** + * Gets the ConnectionsClient object to access its operations. + * + * @return the ConnectionsClient object. + */ + ConnectionsClient getConnections(); + /** * Gets the JobRunsClient object to access its operations. * diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ConnectionInner.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ConnectionInner.java new file mode 100644 index 000000000000..1f1d899f365c --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/ConnectionInner.java @@ -0,0 +1,155 @@ +// 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.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.storagemover.models.ConnectionProperties; +import java.io.IOException; + +/** + * The Connection resource. + */ +@Fluent +public final class ConnectionInner extends ProxyResource { + /* + * Connection properties. + */ + private ConnectionProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ConnectionInner class. + */ + public ConnectionInner() { + } + + /** + * Get the properties property: Connection properties. + * + * @return the properties value. + */ + public ConnectionProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Connection properties. + * + * @param properties the properties value to set. + * @return the ConnectionInner object itself. + */ + public ConnectionInner withProperties(ConnectionProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConnectionInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConnectionInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ConnectionInner. + */ + public static ConnectionInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConnectionInner deserializedConnectionInner = new ConnectionInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedConnectionInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedConnectionInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedConnectionInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedConnectionInner.properties = ConnectionProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedConnectionInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedConnectionInner; + }); + } +} 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 b62b8d36c46b..6b0ed042c9fe 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 @@ -11,11 +11,14 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; import com.azure.resourcemanager.storagemover.models.JobDefinitionPropertiesSourceTargetMap; import com.azure.resourcemanager.storagemover.models.JobRunStatus; import com.azure.resourcemanager.storagemover.models.JobType; import com.azure.resourcemanager.storagemover.models.ProvisioningState; +import com.azure.resourcemanager.storagemover.models.ScheduleInfo; import java.io.IOException; +import java.util.List; /** * The Job Definition resource. @@ -375,6 +378,98 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } + /** + * Get the connections property: List of connections associated to this job. + * + * @return the connections value. + */ + public List connections() { + return this.innerProperties() == null ? null : this.innerProperties().connections(); + } + + /** + * Set the connections property: List of connections associated to this job. + * + * @param connections the connections value to set. + * @return the JobDefinitionInner object itself. + */ + public JobDefinitionInner withConnections(List connections) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionProperties(); + } + this.innerProperties().withConnections(connections); + return this; + } + + /** + * Get the schedule property: Schedule information for the Job Definition. + * + * @return the schedule value. + */ + public ScheduleInfo schedule() { + return this.innerProperties() == null ? null : this.innerProperties().schedule(); + } + + /** + * Set the schedule property: Schedule information for the Job Definition. + * + * @param schedule the schedule value to set. + * @return the JobDefinitionInner object itself. + */ + public JobDefinitionInner withSchedule(ScheduleInfo schedule) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionProperties(); + } + this.innerProperties().withSchedule(schedule); + return this; + } + + /** + * Get the dataIntegrityValidation property: The checksum validation mode for the job definition. + * + * @return the dataIntegrityValidation value. + */ + public DataIntegrityValidation dataIntegrityValidation() { + return this.innerProperties() == null ? null : this.innerProperties().dataIntegrityValidation(); + } + + /** + * Set the dataIntegrityValidation property: The checksum validation mode for the job definition. + * + * @param dataIntegrityValidation the dataIntegrityValidation value to set. + * @return the JobDefinitionInner object itself. + */ + public JobDefinitionInner withDataIntegrityValidation(DataIntegrityValidation dataIntegrityValidation) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionProperties(); + } + this.innerProperties().withDataIntegrityValidation(dataIntegrityValidation); + return this; + } + + /** + * Get the preservePermissions property: Boolean to preserve permissions or not. + * + * @return the preservePermissions value. + */ + public Boolean preservePermissions() { + return this.innerProperties() == null ? null : this.innerProperties().preservePermissions(); + } + + /** + * Set the preservePermissions property: Boolean to preserve permissions or not. + * + * @param preservePermissions the preservePermissions value to set. + * @return the JobDefinitionInner object itself. + */ + public JobDefinitionInner withPreservePermissions(Boolean preservePermissions) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionProperties(); + } + this.innerProperties().withPreservePermissions(preservePermissions); + 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 4c20c599c3e0..cca8ced2918c 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 @@ -10,11 +10,14 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; import com.azure.resourcemanager.storagemover.models.JobDefinitionPropertiesSourceTargetMap; import com.azure.resourcemanager.storagemover.models.JobRunStatus; import com.azure.resourcemanager.storagemover.models.JobType; import com.azure.resourcemanager.storagemover.models.ProvisioningState; +import com.azure.resourcemanager.storagemover.models.ScheduleInfo; import java.io.IOException; +import java.util.List; /** * Job definition properties. @@ -102,6 +105,26 @@ public final class JobDefinitionProperties implements JsonSerializable connections; + + /* + * Schedule information for the Job Definition. + */ + private ScheduleInfo schedule; + + /* + * The checksum validation mode for the job definition. + */ + private DataIntegrityValidation dataIntegrityValidation; + + /* + * Boolean to preserve permissions or not. + */ + private Boolean preservePermissions; + /** * Creates an instance of JobDefinitionProperties class. */ @@ -355,6 +378,86 @@ public ProvisioningState provisioningState() { return this.provisioningState; } + /** + * Get the connections property: List of connections associated to this job. + * + * @return the connections value. + */ + public List connections() { + return this.connections; + } + + /** + * Set the connections property: List of connections associated to this job. + * + * @param connections the connections value to set. + * @return the JobDefinitionProperties object itself. + */ + public JobDefinitionProperties withConnections(List connections) { + this.connections = connections; + return this; + } + + /** + * Get the schedule property: Schedule information for the Job Definition. + * + * @return the schedule value. + */ + public ScheduleInfo schedule() { + return this.schedule; + } + + /** + * Set the schedule property: Schedule information for the Job Definition. + * + * @param schedule the schedule value to set. + * @return the JobDefinitionProperties object itself. + */ + public JobDefinitionProperties withSchedule(ScheduleInfo schedule) { + this.schedule = schedule; + return this; + } + + /** + * Get the dataIntegrityValidation property: The checksum validation mode for the job definition. + * + * @return the dataIntegrityValidation value. + */ + public DataIntegrityValidation dataIntegrityValidation() { + return this.dataIntegrityValidation; + } + + /** + * Set the dataIntegrityValidation property: The checksum validation mode for the job definition. + * + * @param dataIntegrityValidation the dataIntegrityValidation value to set. + * @return the JobDefinitionProperties object itself. + */ + public JobDefinitionProperties withDataIntegrityValidation(DataIntegrityValidation dataIntegrityValidation) { + this.dataIntegrityValidation = dataIntegrityValidation; + return this; + } + + /** + * Get the preservePermissions property: Boolean to preserve permissions or not. + * + * @return the preservePermissions value. + */ + public Boolean preservePermissions() { + return this.preservePermissions; + } + + /** + * Set the preservePermissions property: Boolean to preserve permissions or not. + * + * @param preservePermissions the preservePermissions value to set. + * @return the JobDefinitionProperties object itself. + */ + public JobDefinitionProperties withPreservePermissions(Boolean preservePermissions) { + this.preservePermissions = preservePermissions; + return this; + } + /** * {@inheritDoc} */ @@ -370,6 +473,11 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("targetSubpath", this.targetSubpath); jsonWriter.writeStringField("agentName", this.agentName); jsonWriter.writeJsonField("sourceTargetMap", this.sourceTargetMap); + jsonWriter.writeArrayField("connections", this.connections, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("schedule", this.schedule); + jsonWriter.writeStringField("dataIntegrityValidation", + this.dataIntegrityValidation == null ? null : this.dataIntegrityValidation.toString()); + jsonWriter.writeBooleanField("preservePermissions", this.preservePermissions); return jsonWriter.writeEndObject(); } @@ -424,6 +532,17 @@ public static JobDefinitionProperties fromJson(JsonReader jsonReader) throws IOE } else if ("provisioningState".equals(fieldName)) { deserializedJobDefinitionProperties.provisioningState = ProvisioningState.fromString(reader.getString()); + } else if ("connections".equals(fieldName)) { + List connections = reader.readArray(reader1 -> reader1.getString()); + deserializedJobDefinitionProperties.connections = connections; + } else if ("schedule".equals(fieldName)) { + deserializedJobDefinitionProperties.schedule = ScheduleInfo.fromJson(reader); + } else if ("dataIntegrityValidation".equals(fieldName)) { + deserializedJobDefinitionProperties.dataIntegrityValidation + = DataIntegrityValidation.fromString(reader.getString()); + } else if ("preservePermissions".equals(fieldName)) { + deserializedJobDefinitionProperties.preservePermissions + = reader.getNullable(JsonReader::getBoolean); } 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 0d5f5b633dba..4ccfc653a428 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 @@ -10,7 +10,9 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; import java.io.IOException; +import java.util.List; /** * Job definition properties. @@ -32,6 +34,16 @@ public final class JobDefinitionUpdateProperties implements JsonSerializable connections; + + /* + * Data Integrity Validation mode. + */ + private DataIntegrityValidation dataIntegrityValidation; + /** * Creates an instance of JobDefinitionUpdateProperties class. */ @@ -98,6 +110,46 @@ public JobDefinitionUpdateProperties withAgentName(String agentName) { return this; } + /** + * Get the connections property: List of connections associated to this job. + * + * @return the connections value. + */ + public List connections() { + return this.connections; + } + + /** + * Set the connections property: List of connections associated to this job. + * + * @param connections the connections value to set. + * @return the JobDefinitionUpdateProperties object itself. + */ + public JobDefinitionUpdateProperties withConnections(List connections) { + this.connections = connections; + return this; + } + + /** + * Get the dataIntegrityValidation property: Data Integrity Validation mode. + * + * @return the dataIntegrityValidation value. + */ + public DataIntegrityValidation dataIntegrityValidation() { + return this.dataIntegrityValidation; + } + + /** + * Set the dataIntegrityValidation property: Data Integrity Validation mode. + * + * @param dataIntegrityValidation the dataIntegrityValidation value to set. + * @return the JobDefinitionUpdateProperties object itself. + */ + public JobDefinitionUpdateProperties withDataIntegrityValidation(DataIntegrityValidation dataIntegrityValidation) { + this.dataIntegrityValidation = dataIntegrityValidation; + return this; + } + /** * {@inheritDoc} */ @@ -107,6 +159,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("description", this.description); jsonWriter.writeStringField("copyMode", this.copyMode == null ? null : this.copyMode.toString()); jsonWriter.writeStringField("agentName", this.agentName); + jsonWriter.writeArrayField("connections", this.connections, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("dataIntegrityValidation", + this.dataIntegrityValidation == null ? null : this.dataIntegrityValidation.toString()); return jsonWriter.writeEndObject(); } @@ -132,6 +187,12 @@ public static JobDefinitionUpdateProperties fromJson(JsonReader jsonReader) thro deserializedJobDefinitionUpdateProperties.copyMode = CopyMode.fromString(reader.getString()); } else if ("agentName".equals(fieldName)) { deserializedJobDefinitionUpdateProperties.agentName = reader.getString(); + } else if ("connections".equals(fieldName)) { + List connections = reader.readArray(reader1 -> reader1.getString()); + deserializedJobDefinitionUpdateProperties.connections = connections; + } else if ("dataIntegrityValidation".equals(fieldName)) { + deserializedJobDefinitionUpdateProperties.dataIntegrityValidation + = DataIntegrityValidation.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunInner.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunInner.java index 4b70ef4249cc..26a788b1046e 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunInner.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunInner.java @@ -13,9 +13,12 @@ import com.azure.resourcemanager.storagemover.models.JobRunError; import com.azure.resourcemanager.storagemover.models.JobRunScanStatus; import com.azure.resourcemanager.storagemover.models.JobRunStatus; +import com.azure.resourcemanager.storagemover.models.JobRunWarning; import com.azure.resourcemanager.storagemover.models.ProvisioningState; +import com.azure.resourcemanager.storagemover.models.TriggerType; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.List; /** * The Job Run resource. @@ -155,6 +158,24 @@ public OffsetDateTime executionEndTime() { return this.innerProperties() == null ? null : this.innerProperties().executionEndTime(); } + /** + * Get the triggerType property: Trigger type for the job run. Default is manual. + * + * @return the triggerType value. + */ + public TriggerType triggerType() { + return this.innerProperties() == null ? null : this.innerProperties().triggerType(); + } + + /** + * Get the scheduledExecutionTime property: Scheduled execution time. Null if Trigger type is manual. + * + * @return the scheduledExecutionTime value. + */ + public OffsetDateTime scheduledExecutionTime() { + return this.innerProperties() == null ? null : this.innerProperties().scheduledExecutionTime(); + } + /** * Get the lastStatusUpdate property: The last updated time of the Job Run. * @@ -349,6 +370,15 @@ public JobRunError error() { return this.innerProperties() == null ? null : this.innerProperties().error(); } + /** + * Get the warnings property: Warning details. + * + * @return the warnings value. + */ + public List warnings() { + return this.innerProperties() == null ? null : this.innerProperties().warnings(); + } + /** * Get the provisioningState property: The provisioning state of this resource. * diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunProperties.java index 7999ad739071..5a55848b4ce5 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/fluent/models/JobRunProperties.java @@ -13,9 +13,12 @@ import com.azure.resourcemanager.storagemover.models.JobRunError; import com.azure.resourcemanager.storagemover.models.JobRunScanStatus; import com.azure.resourcemanager.storagemover.models.JobRunStatus; +import com.azure.resourcemanager.storagemover.models.JobRunWarning; import com.azure.resourcemanager.storagemover.models.ProvisioningState; +import com.azure.resourcemanager.storagemover.models.TriggerType; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.List; /** * Job run properties. @@ -52,6 +55,16 @@ public final class JobRunProperties implements JsonSerializable warnings; + /* * The provisioning state of this resource. */ @@ -222,6 +240,24 @@ public OffsetDateTime executionEndTime() { return this.executionEndTime; } + /** + * Get the triggerType property: Trigger type for the job run. Default is manual. + * + * @return the triggerType value. + */ + public TriggerType triggerType() { + return this.triggerType; + } + + /** + * Get the scheduledExecutionTime property: Scheduled execution time. Null if Trigger type is manual. + * + * @return the scheduledExecutionTime value. + */ + public OffsetDateTime scheduledExecutionTime() { + return this.scheduledExecutionTime; + } + /** * Get the lastStatusUpdate property: The last updated time of the Job Run. * @@ -416,6 +452,15 @@ public JobRunError error() { return this.error; } + /** + * Get the warnings property: Warning details. + * + * @return the warnings value. + */ + public List warnings() { + return this.warnings; + } + /** * Get the provisioningState property: The provisioning state of this resource. * @@ -463,6 +508,11 @@ public static JobRunProperties fromJson(JsonReader jsonReader) throws IOExceptio } else if ("executionEndTime".equals(fieldName)) { deserializedJobRunProperties.executionEndTime = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("triggerType".equals(fieldName)) { + deserializedJobRunProperties.triggerType = TriggerType.fromString(reader.getString()); + } else if ("scheduledExecutionTime".equals(fieldName)) { + deserializedJobRunProperties.scheduledExecutionTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else if ("lastStatusUpdate".equals(fieldName)) { deserializedJobRunProperties.lastStatusUpdate = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); @@ -506,6 +556,9 @@ public static JobRunProperties fromJson(JsonReader jsonReader) throws IOExceptio deserializedJobRunProperties.jobDefinitionProperties = reader.readUntyped(); } else if ("error".equals(fieldName)) { deserializedJobRunProperties.error = JobRunError.fromJson(reader); + } else if ("warnings".equals(fieldName)) { + List warnings = reader.readArray(reader1 -> JobRunWarning.fromJson(reader1)); + deserializedJobRunProperties.warnings = warnings; } else if ("provisioningState".equals(fieldName)) { deserializedJobRunProperties.provisioningState = ProvisioningState.fromString(reader.getString()); } else { diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionImpl.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionImpl.java new file mode 100644 index 000000000000..13f4f1a94d3f --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionImpl.java @@ -0,0 +1,135 @@ +// 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.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.storagemover.fluent.models.ConnectionInner; +import com.azure.resourcemanager.storagemover.models.Connection; +import com.azure.resourcemanager.storagemover.models.ConnectionProperties; + +public final class ConnectionImpl implements Connection, Connection.Definition, Connection.Update { + private ConnectionInner innerObject; + + private final com.azure.resourcemanager.storagemover.StorageMoverManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ConnectionProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public ConnectionInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.storagemover.StorageMoverManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String storageMoverName; + + private String connectionName; + + public ConnectionImpl withExistingStorageMover(String resourceGroupName, String storageMoverName) { + this.resourceGroupName = resourceGroupName; + this.storageMoverName = storageMoverName; + return this; + } + + public Connection create() { + this.innerObject = serviceManager.serviceClient() + .getConnections() + .createOrUpdateWithResponse(resourceGroupName, storageMoverName, connectionName, this.innerModel(), + Context.NONE) + .getValue(); + return this; + } + + public Connection create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getConnections() + .createOrUpdateWithResponse(resourceGroupName, storageMoverName, connectionName, this.innerModel(), context) + .getValue(); + return this; + } + + ConnectionImpl(String name, com.azure.resourcemanager.storagemover.StorageMoverManager serviceManager) { + this.innerObject = new ConnectionInner(); + this.serviceManager = serviceManager; + this.connectionName = name; + } + + public ConnectionImpl update() { + return this; + } + + public Connection apply() { + this.innerObject = serviceManager.serviceClient() + .getConnections() + .createOrUpdateWithResponse(resourceGroupName, storageMoverName, connectionName, this.innerModel(), + Context.NONE) + .getValue(); + return this; + } + + public Connection apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getConnections() + .createOrUpdateWithResponse(resourceGroupName, storageMoverName, connectionName, this.innerModel(), context) + .getValue(); + return this; + } + + ConnectionImpl(ConnectionInner innerObject, + com.azure.resourcemanager.storagemover.StorageMoverManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.storageMoverName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "storageMovers"); + this.connectionName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "connections"); + } + + public Connection refresh() { + this.innerObject = serviceManager.serviceClient() + .getConnections() + .getWithResponse(resourceGroupName, storageMoverName, connectionName, Context.NONE) + .getValue(); + return this; + } + + public Connection refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getConnections() + .getWithResponse(resourceGroupName, storageMoverName, connectionName, context) + .getValue(); + return this; + } + + public ConnectionImpl withProperties(ConnectionProperties properties) { + this.innerModel().withProperties(properties); + return this; + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsClientImpl.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsClientImpl.java new file mode 100644 index 000000000000..65b9ec636a46 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsClientImpl.java @@ -0,0 +1,663 @@ +// 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.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.storagemover.fluent.ConnectionsClient; +import com.azure.resourcemanager.storagemover.fluent.models.ConnectionInner; +import com.azure.resourcemanager.storagemover.implementation.models.ConnectionList; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ConnectionsClient. + */ +public final class ConnectionsClientImpl implements ConnectionsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ConnectionsService service; + + /** + * The service client containing this operation class. + */ + private final StorageMoverManagementClientImpl client; + + /** + * Initializes an instance of ConnectionsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ConnectionsClientImpl(StorageMoverManagementClientImpl client) { + this.service + = RestProxy.create(ConnectionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for StorageMoverManagementClientConnections to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "StorageMoverManagementClientConnections") + public interface ConnectionsService { + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/connections/{connectionName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("storageMoverName") String storageMoverName, @PathParam("connectionName") String connectionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectionInner connection, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/connections/{connectionName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("storageMoverName") String storageMoverName, @PathParam("connectionName") String connectionName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectionInner connection, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/connections/{connectionName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("storageMoverName") String storageMoverName, @PathParam("connectionName") String connectionName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/connections/{connectionName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("storageMoverName") String storageMoverName, @PathParam("connectionName") String connectionName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/connections") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("storageMoverName") String storageMoverName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/connections") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("storageMoverName") String storageMoverName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/connections/{connectionName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("storageMoverName") String storageMoverName, @PathParam("connectionName") String connectionName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/connections/{connectionName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("storageMoverName") String storageMoverName, @PathParam("connectionName") String connectionName, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Creates or updates a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection resource. + * @param connection The connection parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Connection resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String storageMoverName, String connectionName, ConnectionInner connection) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, connectionName, contentType, + accept, connection, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection resource. + * @param connection The connection parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Connection resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String storageMoverName, + String connectionName, ConnectionInner connection) { + return createOrUpdateWithResponseAsync(resourceGroupName, storageMoverName, connectionName, connection) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Creates or updates a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection resource. + * @param connection The connection parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Connection resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, String storageMoverName, + String connectionName, ConnectionInner connection, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, connectionName, contentType, accept, + connection, context); + } + + /** + * Creates or updates a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection resource. + * @param connection The connection parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Connection resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConnectionInner createOrUpdate(String resourceGroupName, String storageMoverName, String connectionName, + ConnectionInner connection) { + return createOrUpdateWithResponse(resourceGroupName, storageMoverName, connectionName, connection, Context.NONE) + .getValue(); + } + + /** + * Gets a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 a Connection resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String storageMoverName, + String connectionName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, connectionName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 a Connection resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String storageMoverName, String connectionName) { + return getWithResponseAsync(resourceGroupName, storageMoverName, connectionName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 a Connection resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String storageMoverName, + String connectionName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, storageMoverName, connectionName, accept, context); + } + + /** + * Gets a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 a Connection resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ConnectionInner get(String resourceGroupName, String storageMoverName, String connectionName) { + return getWithResponse(resourceGroupName, storageMoverName, connectionName, Context.NONE).getValue(); + } + + /** + * Lists all Connections in a Storage Mover. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover 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 list of Connections along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String storageMoverName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all Connections in a Storage Mover. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover 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 list of Connections as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String storageMoverName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, storageMoverName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all Connections in a Storage Mover. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover 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 list of Connections along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String storageMoverName) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists all Connections in a Storage Mover. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover 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 list of Connections along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String storageMoverName, + Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists all Connections in a Storage Mover. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover 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 list of Connections as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String storageMoverName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, storageMoverName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists all Connections in a Storage Mover. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover 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 list of Connections as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String storageMoverName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, storageMoverName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String storageMoverName, + String connectionName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, connectionName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String storageMoverName, + String connectionName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, connectionName, Context.NONE); + } + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String storageMoverName, + String connectionName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, storageMoverName, connectionName, context); + } + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String storageMoverName, + String connectionName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, storageMoverName, connectionName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String storageMoverName, + String connectionName) { + Response response = deleteWithResponse(resourceGroupName, storageMoverName, connectionName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String storageMoverName, + String connectionName, Context context) { + Response response + = deleteWithResponse(resourceGroupName, storageMoverName, connectionName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String storageMoverName, String connectionName) { + return beginDeleteAsync(resourceGroupName, storageMoverName, connectionName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String storageMoverName, String connectionName) { + beginDelete(resourceGroupName, storageMoverName, connectionName).getFinalResult(); + } + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String storageMoverName, String connectionName, Context context) { + beginDelete(resourceGroupName, storageMoverName, connectionName, context).getFinalResult(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Connections along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of Connections along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of Connections along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsImpl.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsImpl.java new file mode 100644 index 000000000000..d174add3a46f --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/ConnectionsImpl.java @@ -0,0 +1,152 @@ +// 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.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.storagemover.fluent.ConnectionsClient; +import com.azure.resourcemanager.storagemover.fluent.models.ConnectionInner; +import com.azure.resourcemanager.storagemover.models.Connection; +import com.azure.resourcemanager.storagemover.models.Connections; + +public final class ConnectionsImpl implements Connections { + private static final ClientLogger LOGGER = new ClientLogger(ConnectionsImpl.class); + + private final ConnectionsClient innerClient; + + private final com.azure.resourcemanager.storagemover.StorageMoverManager serviceManager; + + public ConnectionsImpl(ConnectionsClient innerClient, + com.azure.resourcemanager.storagemover.StorageMoverManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String storageMoverName, + String connectionName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, storageMoverName, connectionName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ConnectionImpl(inner.getValue(), this.manager())); + } + + public Connection get(String resourceGroupName, String storageMoverName, String connectionName) { + ConnectionInner inner = this.serviceClient().get(resourceGroupName, storageMoverName, connectionName); + if (inner != null) { + return new ConnectionImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String storageMoverName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, storageMoverName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConnectionImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String storageMoverName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, storageMoverName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConnectionImpl(inner1, this.manager())); + } + + public void delete(String resourceGroupName, String storageMoverName, String connectionName) { + this.serviceClient().delete(resourceGroupName, storageMoverName, connectionName); + } + + public void delete(String resourceGroupName, String storageMoverName, String connectionName, Context context) { + this.serviceClient().delete(resourceGroupName, storageMoverName, connectionName, context); + } + + public Connection getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String storageMoverName = ResourceManagerUtils.getValueFromIdByName(id, "storageMovers"); + if (storageMoverName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'storageMovers'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + return this.getWithResponse(resourceGroupName, storageMoverName, connectionName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String storageMoverName = ResourceManagerUtils.getValueFromIdByName(id, "storageMovers"); + if (storageMoverName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'storageMovers'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + return this.getWithResponse(resourceGroupName, storageMoverName, connectionName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String storageMoverName = ResourceManagerUtils.getValueFromIdByName(id, "storageMovers"); + if (storageMoverName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'storageMovers'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + this.delete(resourceGroupName, storageMoverName, connectionName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String storageMoverName = ResourceManagerUtils.getValueFromIdByName(id, "storageMovers"); + if (storageMoverName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'storageMovers'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + this.delete(resourceGroupName, storageMoverName, connectionName, context); + } + + private ConnectionsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.storagemover.StorageMoverManager manager() { + return this.serviceManager; + } + + public ConnectionImpl define(String name) { + return new ConnectionImpl(name, this.manager()); + } +} 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 d9600a84c167..036f9a84717d 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 @@ -9,6 +9,7 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionInner; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; import com.azure.resourcemanager.storagemover.models.JobDefinition; import com.azure.resourcemanager.storagemover.models.JobDefinitionPropertiesSourceTargetMap; import com.azure.resourcemanager.storagemover.models.JobDefinitionUpdateParameters; @@ -16,6 +17,9 @@ import com.azure.resourcemanager.storagemover.models.JobRunStatus; import com.azure.resourcemanager.storagemover.models.JobType; import com.azure.resourcemanager.storagemover.models.ProvisioningState; +import com.azure.resourcemanager.storagemover.models.ScheduleInfo; +import java.util.Collections; +import java.util.List; public final class JobDefinitionImpl implements JobDefinition, JobDefinition.Definition, JobDefinition.Update { private JobDefinitionInner innerObject; @@ -102,6 +106,27 @@ public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } + public List connections() { + List inner = this.innerModel().connections(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public ScheduleInfo schedule() { + return this.innerModel().schedule(); + } + + public DataIntegrityValidation dataIntegrityValidation() { + return this.innerModel().dataIntegrityValidation(); + } + + public Boolean preservePermissions() { + return this.innerModel().preservePermissions(); + } + public String resourceGroupName() { return resourceGroupName; } @@ -285,6 +310,36 @@ public JobDefinitionImpl withSourceTargetMap(JobDefinitionPropertiesSourceTarget return this; } + public JobDefinitionImpl withConnections(List connections) { + if (isInCreateMode()) { + this.innerModel().withConnections(connections); + return this; + } else { + this.updateJobDefinition.withConnections(connections); + return this; + } + } + + public JobDefinitionImpl withSchedule(ScheduleInfo schedule) { + this.innerModel().withSchedule(schedule); + return this; + } + + public JobDefinitionImpl withDataIntegrityValidation(DataIntegrityValidation dataIntegrityValidation) { + if (isInCreateMode()) { + this.innerModel().withDataIntegrityValidation(dataIntegrityValidation); + return this; + } else { + this.updateJobDefinition.withDataIntegrityValidation(dataIntegrityValidation); + return this; + } + } + + public JobDefinitionImpl withPreservePermissions(Boolean preservePermissions) { + this.innerModel().withPreservePermissions(preservePermissions); + 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/JobRunImpl.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunImpl.java index d9e50f675683..e17bdfb37120 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunImpl.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/JobRunImpl.java @@ -10,8 +10,12 @@ import com.azure.resourcemanager.storagemover.models.JobRunError; import com.azure.resourcemanager.storagemover.models.JobRunScanStatus; import com.azure.resourcemanager.storagemover.models.JobRunStatus; +import com.azure.resourcemanager.storagemover.models.JobRunWarning; import com.azure.resourcemanager.storagemover.models.ProvisioningState; +import com.azure.resourcemanager.storagemover.models.TriggerType; import java.time.OffsetDateTime; +import java.util.Collections; +import java.util.List; public final class JobRunImpl implements JobRun { private JobRunInner innerObject; @@ -63,6 +67,14 @@ public OffsetDateTime executionEndTime() { return this.innerModel().executionEndTime(); } + public TriggerType triggerType() { + return this.innerModel().triggerType(); + } + + public OffsetDateTime scheduledExecutionTime() { + return this.innerModel().scheduledExecutionTime(); + } + public OffsetDateTime lastStatusUpdate() { return this.innerModel().lastStatusUpdate(); } @@ -147,6 +159,15 @@ public JobRunError error() { return this.innerModel().error(); } + public List warnings() { + List inner = this.innerModel().warnings(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } 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 affa7601e390..c6674a4ab1d9 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 @@ -27,6 +27,7 @@ import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; import com.azure.resourcemanager.storagemover.fluent.AgentsClient; +import com.azure.resourcemanager.storagemover.fluent.ConnectionsClient; import com.azure.resourcemanager.storagemover.fluent.EndpointsClient; import com.azure.resourcemanager.storagemover.fluent.JobDefinitionsClient; import com.azure.resourcemanager.storagemover.fluent.JobRunsClient; @@ -216,6 +217,20 @@ public JobDefinitionsClient getJobDefinitions() { return this.jobDefinitions; } + /** + * The ConnectionsClient object to access its operations. + */ + private final ConnectionsClient connections; + + /** + * Gets the ConnectionsClient object to access its operations. + * + * @return the ConnectionsClient object. + */ + public ConnectionsClient getConnections() { + return this.connections; + } + /** * The JobRunsClient object to access its operations. */ @@ -247,13 +262,14 @@ public JobRunsClient getJobRuns() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2025-07-01"; + this.apiVersion = "2025-12-01"; this.operations = new OperationsClientImpl(this); this.storageMovers = new StorageMoversClientImpl(this); this.agents = new AgentsClientImpl(this); this.endpoints = new EndpointsClientImpl(this); this.projects = new ProjectsClientImpl(this); this.jobDefinitions = new JobDefinitionsClientImpl(this); + this.connections = new ConnectionsClientImpl(this); this.jobRuns = new JobRunsClientImpl(this); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/models/ConnectionList.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/models/ConnectionList.java new file mode 100644 index 000000000000..efd37064e46b --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/implementation/models/ConnectionList.java @@ -0,0 +1,94 @@ +// 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.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.storagemover.fluent.models.ConnectionInner; +import java.io.IOException; +import java.util.List; + +/** + * List of Connections. + */ +@Immutable +public final class ConnectionList implements JsonSerializable { + /* + * The Connection items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of ConnectionList class. + */ + private ConnectionList() { + } + + /** + * Get the value property: The Connection items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConnectionList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConnectionList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ConnectionList. + */ + public static ConnectionList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConnectionList deserializedConnectionList = new ConnectionList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> ConnectionInner.fromJson(reader1)); + deserializedConnectionList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedConnectionList.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedConnectionList; + }); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureKeyVaultS3WithHmacCredentials.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureKeyVaultS3WithHmacCredentials.java new file mode 100644 index 000000000000..d0134de119c7 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureKeyVaultS3WithHmacCredentials.java @@ -0,0 +1,135 @@ +// 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.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The Azure Key Vault secret URIs which store the credentials. + */ +@Fluent +public final class AzureKeyVaultS3WithHmacCredentials extends Credentials { + /* + * The Credentials type. + */ + private CredentialType type = CredentialType.AZURE_KEY_VAULT_S3WITH_HMAC; + + /* + * The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + */ + private String accessKeyUri; + + /* + * The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + */ + private String secretKeyUri; + + /** + * Creates an instance of AzureKeyVaultS3WithHmacCredentials class. + */ + public AzureKeyVaultS3WithHmacCredentials() { + } + + /** + * Get the type property: The Credentials type. + * + * @return the type value. + */ + @Override + public CredentialType type() { + return this.type; + } + + /** + * Get the accessKeyUri property: The Azure Key Vault secret URI which stores the username. Use empty string to + * clean-up existing value. + * + * @return the accessKeyUri value. + */ + public String accessKeyUri() { + return this.accessKeyUri; + } + + /** + * Set the accessKeyUri property: The Azure Key Vault secret URI which stores the username. Use empty string to + * clean-up existing value. + * + * @param accessKeyUri the accessKeyUri value to set. + * @return the AzureKeyVaultS3WithHmacCredentials object itself. + */ + public AzureKeyVaultS3WithHmacCredentials withAccessKeyUri(String accessKeyUri) { + this.accessKeyUri = accessKeyUri; + return this; + } + + /** + * Get the secretKeyUri property: The Azure Key Vault secret URI which stores the password. Use empty string to + * clean-up existing value. + * + * @return the secretKeyUri value. + */ + public String secretKeyUri() { + return this.secretKeyUri; + } + + /** + * Set the secretKeyUri property: The Azure Key Vault secret URI which stores the password. Use empty string to + * clean-up existing value. + * + * @param secretKeyUri the secretKeyUri value to set. + * @return the AzureKeyVaultS3WithHmacCredentials object itself. + */ + public AzureKeyVaultS3WithHmacCredentials withSecretKeyUri(String secretKeyUri) { + this.secretKeyUri = secretKeyUri; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("accessKeyUri", this.accessKeyUri); + jsonWriter.writeStringField("secretKeyUri", this.secretKeyUri); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AzureKeyVaultS3WithHmacCredentials from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AzureKeyVaultS3WithHmacCredentials if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AzureKeyVaultS3WithHmacCredentials. + */ + public static AzureKeyVaultS3WithHmacCredentials fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AzureKeyVaultS3WithHmacCredentials deserializedAzureKeyVaultS3WithHmacCredentials + = new AzureKeyVaultS3WithHmacCredentials(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedAzureKeyVaultS3WithHmacCredentials.type = CredentialType.fromString(reader.getString()); + } else if ("accessKeyUri".equals(fieldName)) { + deserializedAzureKeyVaultS3WithHmacCredentials.accessKeyUri = reader.getString(); + } else if ("secretKeyUri".equals(fieldName)) { + deserializedAzureKeyVaultS3WithHmacCredentials.secretKeyUri = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAzureKeyVaultS3WithHmacCredentials; + }); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureMultiCloudConnectorEndpointProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureMultiCloudConnectorEndpointProperties.java index 9343b27ce5b4..ea5e919c479e 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureMultiCloudConnectorEndpointProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureMultiCloudConnectorEndpointProperties.java @@ -95,6 +95,15 @@ public AzureMultiCloudConnectorEndpointProperties withDescription(String descrip return this; } + /** + * {@inheritDoc} + */ + @Override + public AzureMultiCloudConnectorEndpointProperties withEndpointKind(EndpointKind endpointKind) { + super.withEndpointKind(endpointKind); + return this; + } + /** * {@inheritDoc} */ @@ -102,6 +111,7 @@ public AzureMultiCloudConnectorEndpointProperties withDescription(String descrip public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("description", description()); + jsonWriter.writeStringField("endpointKind", endpointKind() == null ? null : endpointKind().toString()); jsonWriter.writeStringField("multiCloudConnectorId", this.multiCloudConnectorId); jsonWriter.writeStringField("awsS3BucketId", this.awsS3BucketId); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); @@ -127,6 +137,9 @@ public static AzureMultiCloudConnectorEndpointProperties fromJson(JsonReader jso if ("description".equals(fieldName)) { deserializedAzureMultiCloudConnectorEndpointProperties.withDescription(reader.getString()); + } else if ("endpointKind".equals(fieldName)) { + deserializedAzureMultiCloudConnectorEndpointProperties + .withEndpointKind(EndpointKind.fromString(reader.getString())); } else if ("provisioningState".equals(fieldName)) { deserializedAzureMultiCloudConnectorEndpointProperties .withProvisioningState(ProvisioningState.fromString(reader.getString())); 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 e9f0591d5274..9a43c95c5782 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 @@ -97,6 +97,15 @@ public AzureStorageBlobContainerEndpointProperties withDescription(String descri return this; } + /** + * {@inheritDoc} + */ + @Override + public AzureStorageBlobContainerEndpointProperties withEndpointKind(EndpointKind endpointKind) { + super.withEndpointKind(endpointKind); + return this; + } + /** * {@inheritDoc} */ @@ -104,6 +113,7 @@ public AzureStorageBlobContainerEndpointProperties withDescription(String descri public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("description", description()); + jsonWriter.writeStringField("endpointKind", endpointKind() == null ? null : endpointKind().toString()); jsonWriter.writeStringField("storageAccountResourceId", this.storageAccountResourceId); jsonWriter.writeStringField("blobContainerName", this.blobContainerName); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); @@ -129,6 +139,9 @@ public static AzureStorageBlobContainerEndpointProperties fromJson(JsonReader js if ("description".equals(fieldName)) { deserializedAzureStorageBlobContainerEndpointProperties.withDescription(reader.getString()); + } else if ("endpointKind".equals(fieldName)) { + deserializedAzureStorageBlobContainerEndpointProperties + .withEndpointKind(EndpointKind.fromString(reader.getString())); } else if ("provisioningState".equals(fieldName)) { deserializedAzureStorageBlobContainerEndpointProperties .withProvisioningState(ProvisioningState.fromString(reader.getString())); diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageNfsFileShareEndpointProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageNfsFileShareEndpointProperties.java index 11370541481a..8e2cf356e552 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageNfsFileShareEndpointProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/AzureStorageNfsFileShareEndpointProperties.java @@ -95,6 +95,15 @@ public AzureStorageNfsFileShareEndpointProperties withDescription(String descrip return this; } + /** + * {@inheritDoc} + */ + @Override + public AzureStorageNfsFileShareEndpointProperties withEndpointKind(EndpointKind endpointKind) { + super.withEndpointKind(endpointKind); + return this; + } + /** * {@inheritDoc} */ @@ -102,6 +111,7 @@ public AzureStorageNfsFileShareEndpointProperties withDescription(String descrip public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("description", description()); + jsonWriter.writeStringField("endpointKind", endpointKind() == null ? null : endpointKind().toString()); jsonWriter.writeStringField("storageAccountResourceId", this.storageAccountResourceId); jsonWriter.writeStringField("fileShareName", this.fileShareName); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); @@ -127,6 +137,9 @@ public static AzureStorageNfsFileShareEndpointProperties fromJson(JsonReader jso if ("description".equals(fieldName)) { deserializedAzureStorageNfsFileShareEndpointProperties.withDescription(reader.getString()); + } else if ("endpointKind".equals(fieldName)) { + deserializedAzureStorageNfsFileShareEndpointProperties + .withEndpointKind(EndpointKind.fromString(reader.getString())); } else if ("provisioningState".equals(fieldName)) { deserializedAzureStorageNfsFileShareEndpointProperties .withProvisioningState(ProvisioningState.fromString(reader.getString())); 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 0191851d9d96..4cb6582062d4 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 @@ -95,6 +95,15 @@ public AzureStorageSmbFileShareEndpointProperties withDescription(String descrip return this; } + /** + * {@inheritDoc} + */ + @Override + public AzureStorageSmbFileShareEndpointProperties withEndpointKind(EndpointKind endpointKind) { + super.withEndpointKind(endpointKind); + return this; + } + /** * {@inheritDoc} */ @@ -102,6 +111,7 @@ public AzureStorageSmbFileShareEndpointProperties withDescription(String descrip public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("description", description()); + jsonWriter.writeStringField("endpointKind", endpointKind() == null ? null : endpointKind().toString()); jsonWriter.writeStringField("storageAccountResourceId", this.storageAccountResourceId); jsonWriter.writeStringField("fileShareName", this.fileShareName); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); @@ -127,6 +137,9 @@ public static AzureStorageSmbFileShareEndpointProperties fromJson(JsonReader jso if ("description".equals(fieldName)) { deserializedAzureStorageSmbFileShareEndpointProperties.withDescription(reader.getString()); + } else if ("endpointKind".equals(fieldName)) { + deserializedAzureStorageSmbFileShareEndpointProperties + .withEndpointKind(EndpointKind.fromString(reader.getString())); } else if ("provisioningState".equals(fieldName)) { deserializedAzureStorageSmbFileShareEndpointProperties .withProvisioningState(ProvisioningState.fromString(reader.getString())); diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Connection.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Connection.java new file mode 100644 index 000000000000..1e9b603e9d84 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Connection.java @@ -0,0 +1,189 @@ +// 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.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.storagemover.fluent.models.ConnectionInner; + +/** + * An immutable client-side representation of Connection. + */ +public interface Connection { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: Connection properties. + * + * @return the properties value. + */ + ConnectionProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.storagemover.fluent.models.ConnectionInner object. + * + * @return the inner object. + */ + ConnectionInner innerModel(); + + /** + * The entirety of the Connection definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, + DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * The Connection definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the Connection definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the Connection definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, storageMoverName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @return the next definition stage. + */ + WithProperties withExistingStorageMover(String resourceGroupName, String storageMoverName); + } + + /** + * The stage of the Connection definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Connection properties.. + * + * @param properties Connection properties. + * @return the next definition stage. + */ + WithCreate withProperties(ConnectionProperties properties); + } + + /** + * The stage of the Connection definition which contains all the minimum required properties for the resource to + * be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate { + /** + * Executes the create request. + * + * @return the created resource. + */ + Connection create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + Connection create(Context context); + } + } + + /** + * Begins update for the Connection resource. + * + * @return the stage of resource update. + */ + Connection.Update update(); + + /** + * The template for Connection update. + */ + interface Update extends UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + Connection apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + Connection apply(Context context); + } + + /** + * The Connection update stages. + */ + interface UpdateStages { + /** + * The stage of the Connection update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Connection properties.. + * + * @param properties Connection properties. + * @return the next definition stage. + */ + Update withProperties(ConnectionProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + Connection refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + Connection refresh(Context context); +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionProperties.java new file mode 100644 index 000000000000..1c5944d0105b --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionProperties.java @@ -0,0 +1,209 @@ +// 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.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Properties of the Connection resource. + */ +@Fluent +public final class ConnectionProperties implements JsonSerializable { + /* + * A description for the Connection. + */ + private String description; + + /* + * The connection status. + */ + private ConnectionStatus connectionStatus; + + /* + * The PrivateLinkServiceId for the connection. + */ + private String privateLinkServiceId; + + /* + * The PrivateEndpointName associated with the connection. + */ + private String privateEndpointName; + + /* + * The privateEndpoint resource Id + */ + private String privateEndpointResourceId; + + /* + * List of job definitions associated with this connection. + */ + private List jobList; + + /* + * The provisioning state of this resource. + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of ConnectionProperties class. + */ + public ConnectionProperties() { + } + + /** + * Get the description property: A description for the Connection. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Set the description property: A description for the Connection. + * + * @param description the description value to set. + * @return the ConnectionProperties object itself. + */ + public ConnectionProperties withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the connectionStatus property: The connection status. + * + * @return the connectionStatus value. + */ + public ConnectionStatus connectionStatus() { + return this.connectionStatus; + } + + /** + * Get the privateLinkServiceId property: The PrivateLinkServiceId for the connection. + * + * @return the privateLinkServiceId value. + */ + public String privateLinkServiceId() { + return this.privateLinkServiceId; + } + + /** + * Set the privateLinkServiceId property: The PrivateLinkServiceId for the connection. + * + * @param privateLinkServiceId the privateLinkServiceId value to set. + * @return the ConnectionProperties object itself. + */ + public ConnectionProperties withPrivateLinkServiceId(String privateLinkServiceId) { + this.privateLinkServiceId = privateLinkServiceId; + return this; + } + + /** + * Get the privateEndpointName property: The PrivateEndpointName associated with the connection. + * + * @return the privateEndpointName value. + */ + public String privateEndpointName() { + return this.privateEndpointName; + } + + /** + * Get the privateEndpointResourceId property: The privateEndpoint resource Id. + * + * @return the privateEndpointResourceId value. + */ + public String privateEndpointResourceId() { + return this.privateEndpointResourceId; + } + + /** + * Get the jobList property: List of job definitions associated with this connection. + * + * @return the jobList value. + */ + public List jobList() { + return this.jobList; + } + + /** + * Set the jobList property: List of job definitions associated with this connection. + * + * @param jobList the jobList value to set. + * @return the ConnectionProperties object itself. + */ + public ConnectionProperties withJobList(List jobList) { + this.jobList = jobList; + return this; + } + + /** + * Get the provisioningState property: The provisioning state of this resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("privateLinkServiceId", this.privateLinkServiceId); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeArrayField("jobList", this.jobList, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConnectionProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConnectionProperties if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ConnectionProperties. + */ + public static ConnectionProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConnectionProperties deserializedConnectionProperties = new ConnectionProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("privateLinkServiceId".equals(fieldName)) { + deserializedConnectionProperties.privateLinkServiceId = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedConnectionProperties.description = reader.getString(); + } else if ("connectionStatus".equals(fieldName)) { + deserializedConnectionProperties.connectionStatus = ConnectionStatus.fromString(reader.getString()); + } else if ("privateEndpointName".equals(fieldName)) { + deserializedConnectionProperties.privateEndpointName = reader.getString(); + } else if ("privateEndpointResourceId".equals(fieldName)) { + deserializedConnectionProperties.privateEndpointResourceId = reader.getString(); + } else if ("jobList".equals(fieldName)) { + List jobList = reader.readArray(reader1 -> reader1.getString()); + deserializedConnectionProperties.jobList = jobList; + } else if ("provisioningState".equals(fieldName)) { + deserializedConnectionProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedConnectionProperties; + }); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionStatus.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionStatus.java new file mode 100644 index 000000000000..763090e603c2 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ConnectionStatus.java @@ -0,0 +1,66 @@ +// 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; + +/** + * The connection status. + */ +public final class ConnectionStatus extends ExpandableStringEnum { + /** + * Static value Approved for ConnectionStatus. + */ + public static final ConnectionStatus APPROVED = fromString("Approved"); + + /** + * Static value Rejected for ConnectionStatus. + */ + public static final ConnectionStatus REJECTED = fromString("Rejected"); + + /** + * Static value Disconnected for ConnectionStatus. + */ + public static final ConnectionStatus DISCONNECTED = fromString("Disconnected"); + + /** + * Static value Pending for ConnectionStatus. + */ + public static final ConnectionStatus PENDING = fromString("Pending"); + + /** + * Static value Stale for ConnectionStatus. + */ + public static final ConnectionStatus STALE = fromString("Stale"); + + /** + * Creates a new instance of ConnectionStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ConnectionStatus() { + } + + /** + * Creates or finds a ConnectionStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding ConnectionStatus. + */ + public static ConnectionStatus fromString(String name) { + return fromString(name, ConnectionStatus.class); + } + + /** + * Gets known ConnectionStatus values. + * + * @return known ConnectionStatus values. + */ + public static Collection values() { + return values(ConnectionStatus.class); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Connections.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Connections.java new file mode 100644 index 000000000000..ed9b4e79f391 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Connections.java @@ -0,0 +1,148 @@ +// 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.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of Connections. + */ +public interface Connections { + /** + * Gets a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 a Connection resource along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String storageMoverName, String connectionName, + Context context); + + /** + * Gets a Connection resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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 a Connection resource. + */ + Connection get(String resourceGroupName, String storageMoverName, String connectionName); + + /** + * Lists all Connections in a Storage Mover. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover 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 list of Connections as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String storageMoverName); + + /** + * Lists all Connections in a Storage Mover. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover 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 list of Connections as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String storageMoverName, Context context); + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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. + */ + void delete(String resourceGroupName, String storageMoverName, String connectionName); + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageMoverName The name of the Storage Mover resource. + * @param connectionName The name of the Connection 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. + */ + void delete(String resourceGroupName, String storageMoverName, String connectionName, Context context); + + /** + * Gets a Connection resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Connection resource along with {@link Response}. + */ + Connection getById(String id); + + /** + * Gets a Connection resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Connection resource along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Deletes a Connection resource. + * Returns 409 if there are active jobs using this connection. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new Connection resource. + * + * @param name resource name. + * @return the first stage of the new Connection definition. + */ + Connection.DefinitionStages.Blank define(String name); +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/CredentialType.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/CredentialType.java index 674bb1dfaa90..612acfe4f43a 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/CredentialType.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/CredentialType.java @@ -16,6 +16,11 @@ public final class CredentialType extends ExpandableStringEnum { */ public static final CredentialType AZURE_KEY_VAULT_SMB = fromString("AzureKeyVaultSmb"); + /** + * Static value AzureKeyVaultS3WithHMAC for CredentialType. + */ + public static final CredentialType AZURE_KEY_VAULT_S3WITH_HMAC = fromString("AzureKeyVaultS3WithHMAC"); + /** * Creates a new instance of CredentialType value. * diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Credentials.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Credentials.java index 2aa18423b8ab..a56222495b32 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Credentials.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Credentials.java @@ -72,6 +72,8 @@ public static Credentials fromJson(JsonReader jsonReader) throws IOException { // Use the discriminator value to determine which subtype should be deserialized. if ("AzureKeyVaultSmb".equals(discriminatorValue)) { return AzureKeyVaultSmbCredentials.fromJson(readerToUse.reset()); + } else if ("AzureKeyVaultS3WithHMAC".equals(discriminatorValue)) { + return AzureKeyVaultS3WithHmacCredentials.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/DataIntegrityValidation.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/DataIntegrityValidation.java new file mode 100644 index 000000000000..5ea4afaaba1a --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/DataIntegrityValidation.java @@ -0,0 +1,56 @@ +// 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; + +/** + * The Data integrity validation mode. + */ +public final class DataIntegrityValidation extends ExpandableStringEnum { + /** + * Static value SaveVerifyFileMD5 for DataIntegrityValidation. + */ + public static final DataIntegrityValidation SAVE_VERIFY_FILE_MD5 = fromString("SaveVerifyFileMD5"); + + /** + * Static value SaveFileMD5 for DataIntegrityValidation. + */ + public static final DataIntegrityValidation SAVE_FILE_MD5 = fromString("SaveFileMD5"); + + /** + * Static value None for DataIntegrityValidation. + */ + public static final DataIntegrityValidation NONE = fromString("None"); + + /** + * Creates a new instance of DataIntegrityValidation value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DataIntegrityValidation() { + } + + /** + * Creates or finds a DataIntegrityValidation from its string representation. + * + * @param name a name to look for. + * @return the corresponding DataIntegrityValidation. + */ + public static DataIntegrityValidation fromString(String name) { + return fromString(name, DataIntegrityValidation.class); + } + + /** + * Gets known DataIntegrityValidation values. + * + * @return known DataIntegrityValidation values. + */ + public static Collection values() { + return values(DataIntegrityValidation.class); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/EndpointBaseProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/EndpointBaseProperties.java index c198f41c1eaf..1a11a282c5b2 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/EndpointBaseProperties.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/EndpointBaseProperties.java @@ -26,6 +26,11 @@ public class EndpointBaseProperties implements JsonSerializable { + /** + * Static value Source for EndpointKind. + */ + public static final EndpointKind SOURCE = fromString("Source"); + + /** + * Static value Target for EndpointKind. + */ + public static final EndpointKind TARGET = fromString("Target"); + + /** + * Creates a new instance of EndpointKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public EndpointKind() { + } + + /** + * Creates or finds a EndpointKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding EndpointKind. + */ + public static EndpointKind fromString(String name) { + return fromString(name, EndpointKind.class); + } + + /** + * Gets known EndpointKind values. + * + * @return known EndpointKind values. + */ + public static Collection values() { + return values(EndpointKind.class); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/EndpointType.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/EndpointType.java index 14e72463d2f5..219181682001 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/EndpointType.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/EndpointType.java @@ -41,6 +41,11 @@ public final class EndpointType extends ExpandableStringEnum { */ public static final EndpointType AZURE_STORAGE_NFS_FILE_SHARE = fromString("AzureStorageNfsFileShare"); + /** + * Static value S3WithHMAC for EndpointType. + */ + public static final EndpointType S3WITH_HMAC = fromString("S3WithHMAC"); + /** * Creates a new instance of EndpointType value. * 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 new file mode 100644 index 000000000000..a83ce4c4000f --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/Frequency.java @@ -0,0 +1,61 @@ +// 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; + +/** + * Type of schedule — Monthly, Weekly, or Daily. + */ +public final class Frequency extends ExpandableStringEnum { + /** + * Static value Monthly for Frequency. + */ + public static final Frequency MONTHLY = fromString("Monthly"); + + /** + * Static value Weekly for Frequency. + */ + public static final Frequency WEEKLY = fromString("Weekly"); + + /** + * Static value Daily for Frequency. + */ + public static final Frequency DAILY = fromString("Daily"); + + /** + * Static value Onetime for Frequency. + */ + public static final Frequency ONETIME = fromString("Onetime"); + + /** + * Creates a new instance of Frequency value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Frequency() { + } + + /** + * Creates or finds a Frequency from its string representation. + * + * @param name a name to look for. + * @return the corresponding Frequency. + */ + public static Frequency fromString(String name) { + return fromString(name, Frequency.class); + } + + /** + * Gets known Frequency values. + * + * @return known Frequency values. + */ + public static Collection values() { + return values(Frequency.class); + } +} 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 c7b5ac4b59be..fa48dde58cba 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.util.List; /** * An immutable client-side representation of JobDefinition. @@ -156,6 +157,34 @@ public interface JobDefinition { */ ProvisioningState provisioningState(); + /** + * Gets the connections property: List of connections associated to this job. + * + * @return the connections value. + */ + List connections(); + + /** + * Gets the schedule property: Schedule information for the Job Definition. + * + * @return the schedule value. + */ + ScheduleInfo schedule(); + + /** + * Gets the dataIntegrityValidation property: The checksum validation mode for the job definition. + * + * @return the dataIntegrityValidation value. + */ + DataIntegrityValidation dataIntegrityValidation(); + + /** + * Gets the preservePermissions property: Boolean to preserve permissions or not. + * + * @return the preservePermissions value. + */ + Boolean preservePermissions(); + /** * Gets the name of the resource group. * @@ -246,9 +275,10 @@ interface WithTargetName { * The stage of the JobDefinition definition which contains all the minimum required properties for the resource * to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithDescription, DefinitionStages.WithJobType, DefinitionStages.WithSourceSubpath, - DefinitionStages.WithTargetSubpath, DefinitionStages.WithAgentName, DefinitionStages.WithSourceTargetMap { + interface WithCreate extends DefinitionStages.WithDescription, DefinitionStages.WithJobType, + DefinitionStages.WithSourceSubpath, DefinitionStages.WithTargetSubpath, DefinitionStages.WithAgentName, + DefinitionStages.WithSourceTargetMap, DefinitionStages.WithConnections, DefinitionStages.WithSchedule, + DefinitionStages.WithDataIntegrityValidation, DefinitionStages.WithPreservePermissions { /** * Executes the create request. * @@ -344,6 +374,58 @@ interface WithSourceTargetMap { */ WithCreate withSourceTargetMap(JobDefinitionPropertiesSourceTargetMap sourceTargetMap); } + + /** + * The stage of the JobDefinition definition allowing to specify connections. + */ + interface WithConnections { + /** + * Specifies the connections property: List of connections associated to this job. + * + * @param connections List of connections associated to this job. + * @return the next definition stage. + */ + WithCreate withConnections(List connections); + } + + /** + * The stage of the JobDefinition definition allowing to specify schedule. + */ + interface WithSchedule { + /** + * Specifies the schedule property: Schedule information for the Job Definition.. + * + * @param schedule Schedule information for the Job Definition. + * @return the next definition stage. + */ + WithCreate withSchedule(ScheduleInfo schedule); + } + + /** + * The stage of the JobDefinition definition allowing to specify dataIntegrityValidation. + */ + interface WithDataIntegrityValidation { + /** + * Specifies the dataIntegrityValidation property: The checksum validation mode for the job definition.. + * + * @param dataIntegrityValidation The checksum validation mode for the job definition. + * @return the next definition stage. + */ + WithCreate withDataIntegrityValidation(DataIntegrityValidation dataIntegrityValidation); + } + + /** + * The stage of the JobDefinition definition allowing to specify preservePermissions. + */ + interface WithPreservePermissions { + /** + * Specifies the preservePermissions property: Boolean to preserve permissions or not.. + * + * @param preservePermissions Boolean to preserve permissions or not. + * @return the next definition stage. + */ + WithCreate withPreservePermissions(Boolean preservePermissions); + } } /** @@ -356,7 +438,8 @@ interface WithSourceTargetMap { /** * The template for JobDefinition update. */ - interface Update extends UpdateStages.WithDescription, UpdateStages.WithCopyMode, UpdateStages.WithAgentName { + interface Update extends UpdateStages.WithDescription, UpdateStages.WithCopyMode, UpdateStages.WithAgentName, + UpdateStages.WithConnections, UpdateStages.WithDataIntegrityValidation { /** * Executes the update request. * @@ -415,6 +498,32 @@ interface WithAgentName { */ Update withAgentName(String agentName); } + + /** + * The stage of the JobDefinition update allowing to specify connections. + */ + interface WithConnections { + /** + * Specifies the connections property: List of connections associated to this job. + * + * @param connections List of connections associated to this job. + * @return the next definition stage. + */ + Update withConnections(List connections); + } + + /** + * The stage of the JobDefinition update allowing to specify dataIntegrityValidation. + */ + interface WithDataIntegrityValidation { + /** + * Specifies the dataIntegrityValidation property: Data Integrity Validation mode.. + * + * @param dataIntegrityValidation Data Integrity Validation mode. + * @return the next definition stage. + */ + Update withDataIntegrityValidation(DataIntegrityValidation dataIntegrityValidation); + } } /** 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 3d142a1ad079..7a2a85e025c5 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.util.List; /** * The Job Definition resource. @@ -106,6 +107,52 @@ public JobDefinitionUpdateParameters withAgentName(String agentName) { return this; } + /** + * Get the connections property: List of connections associated to this job. + * + * @return the connections value. + */ + public List connections() { + return this.innerProperties() == null ? null : this.innerProperties().connections(); + } + + /** + * Set the connections property: List of connections associated to this job. + * + * @param connections the connections value to set. + * @return the JobDefinitionUpdateParameters object itself. + */ + public JobDefinitionUpdateParameters withConnections(List connections) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionUpdateProperties(); + } + this.innerProperties().withConnections(connections); + return this; + } + + /** + * Get the dataIntegrityValidation property: Data Integrity Validation mode. + * + * @return the dataIntegrityValidation value. + */ + public DataIntegrityValidation dataIntegrityValidation() { + return this.innerProperties() == null ? null : this.innerProperties().dataIntegrityValidation(); + } + + /** + * Set the dataIntegrityValidation property: Data Integrity Validation mode. + * + * @param dataIntegrityValidation the dataIntegrityValidation value to set. + * @return the JobDefinitionUpdateParameters object itself. + */ + public JobDefinitionUpdateParameters withDataIntegrityValidation(DataIntegrityValidation dataIntegrityValidation) { + if (this.innerProperties() == null) { + this.innerProperties = new JobDefinitionUpdateProperties(); + } + this.innerProperties().withDataIntegrityValidation(dataIntegrityValidation); + return this; + } + /** * {@inheritDoc} */ diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobRun.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobRun.java index b2cb2e1af760..bdc1265039f7 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobRun.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobRun.java @@ -7,6 +7,7 @@ import com.azure.core.management.SystemData; import com.azure.resourcemanager.storagemover.fluent.models.JobRunInner; import java.time.OffsetDateTime; +import java.util.List; /** * An immutable client-side representation of JobRun. @@ -82,6 +83,20 @@ public interface JobRun { */ OffsetDateTime executionEndTime(); + /** + * Gets the triggerType property: Trigger type for the job run. Default is manual. + * + * @return the triggerType value. + */ + TriggerType triggerType(); + + /** + * Gets the scheduledExecutionTime property: Scheduled execution time. Null if Trigger type is manual. + * + * @return the scheduledExecutionTime value. + */ + OffsetDateTime scheduledExecutionTime(); + /** * Gets the lastStatusUpdate property: The last updated time of the Job Run. * @@ -236,6 +251,13 @@ public interface JobRun { */ JobRunError error(); + /** + * Gets the warnings property: Warning details. + * + * @return the warnings value. + */ + List warnings(); + /** * Gets the provisioningState property: The provisioning state of this resource. * diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobRunWarning.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobRunWarning.java new file mode 100644 index 000000000000..224d4e7f8fa6 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/JobRunWarning.java @@ -0,0 +1,108 @@ +// 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.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Warning type. + */ +@Immutable +public final class JobRunWarning implements JsonSerializable { + /* + * Error code of the given entry. + */ + private String code; + + /* + * Warning message of the given entry. + */ + private String message; + + /* + * Target of the given error entry. + */ + private String target; + + /** + * Creates an instance of JobRunWarning class. + */ + private JobRunWarning() { + } + + /** + * Get the code property: Error code of the given entry. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Get the message property: Warning message of the given entry. + * + * @return the message value. + */ + public String message() { + return this.message; + } + + /** + * Get the target property: Target of the given error entry. + * + * @return the target value. + */ + public String target() { + return this.target; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("code", this.code); + jsonWriter.writeStringField("message", this.message); + jsonWriter.writeStringField("target", this.target); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of JobRunWarning from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of JobRunWarning if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the JobRunWarning. + */ + public static JobRunWarning fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JobRunWarning deserializedJobRunWarning = new JobRunWarning(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("code".equals(fieldName)) { + deserializedJobRunWarning.code = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedJobRunWarning.message = reader.getString(); + } else if ("target".equals(fieldName)) { + deserializedJobRunWarning.target = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedJobRunWarning; + }); + } +} 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 34b11977d488..5db0f0525fd1 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 @@ -120,6 +120,15 @@ public NfsMountEndpointProperties withDescription(String description) { return this; } + /** + * {@inheritDoc} + */ + @Override + public NfsMountEndpointProperties withEndpointKind(EndpointKind endpointKind) { + super.withEndpointKind(endpointKind); + return this; + } + /** * {@inheritDoc} */ @@ -127,6 +136,7 @@ public NfsMountEndpointProperties withDescription(String description) { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("description", description()); + jsonWriter.writeStringField("endpointKind", endpointKind() == null ? null : endpointKind().toString()); jsonWriter.writeStringField("host", this.host); jsonWriter.writeStringField("export", this.export); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); @@ -152,6 +162,9 @@ public static NfsMountEndpointProperties fromJson(JsonReader jsonReader) throws if ("description".equals(fieldName)) { deserializedNfsMountEndpointProperties.withDescription(reader.getString()); + } else if ("endpointKind".equals(fieldName)) { + deserializedNfsMountEndpointProperties + .withEndpointKind(EndpointKind.fromString(reader.getString())); } else if ("provisioningState".equals(fieldName)) { deserializedNfsMountEndpointProperties .withProvisioningState(ProvisioningState.fromString(reader.getString())); diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointProperties.java new file mode 100644 index 000000000000..0b189a3c8c0f --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointProperties.java @@ -0,0 +1,219 @@ +// 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.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The properties of S3WithHmac share endpoint. + */ +@Fluent +public final class S3WithHmacEndpointProperties extends EndpointBaseProperties { + /* + * The Endpoint resource type. + */ + private EndpointType endpointType = EndpointType.S3WITH_HMAC; + + /* + * The Azure Key Vault credentials which stores the access key and secret key. Use empty string to clean-up existing + * value. + */ + private AzureKeyVaultS3WithHmacCredentials credentials; + + /* + * The URI which points to the source. + */ + private String sourceUri; + + /* + * The source type of S3WithHmac endpoint. + */ + private S3WithHmacSourceType sourceType; + + /* + * The description for other source type of S3WithHmac endpoint. + */ + private String otherSourceTypeDescription; + + /** + * Creates an instance of S3WithHmacEndpointProperties class. + */ + public S3WithHmacEndpointProperties() { + } + + /** + * Get the endpointType property: The Endpoint resource type. + * + * @return the endpointType value. + */ + @Override + public EndpointType endpointType() { + return this.endpointType; + } + + /** + * Get the credentials property: The Azure Key Vault credentials which stores the access key and secret key. Use + * empty string to clean-up existing value. + * + * @return the credentials value. + */ + public AzureKeyVaultS3WithHmacCredentials credentials() { + return this.credentials; + } + + /** + * Set the credentials property: The Azure Key Vault credentials which stores the access key and secret key. Use + * empty string to clean-up existing value. + * + * @param credentials the credentials value to set. + * @return the S3WithHmacEndpointProperties object itself. + */ + public S3WithHmacEndpointProperties withCredentials(AzureKeyVaultS3WithHmacCredentials credentials) { + this.credentials = credentials; + return this; + } + + /** + * Get the sourceUri property: The URI which points to the source. + * + * @return the sourceUri value. + */ + public String sourceUri() { + return this.sourceUri; + } + + /** + * Set the sourceUri property: The URI which points to the source. + * + * @param sourceUri the sourceUri value to set. + * @return the S3WithHmacEndpointProperties object itself. + */ + public S3WithHmacEndpointProperties withSourceUri(String sourceUri) { + this.sourceUri = sourceUri; + return this; + } + + /** + * Get the sourceType property: The source type of S3WithHmac endpoint. + * + * @return the sourceType value. + */ + public S3WithHmacSourceType sourceType() { + return this.sourceType; + } + + /** + * Set the sourceType property: The source type of S3WithHmac endpoint. + * + * @param sourceType the sourceType value to set. + * @return the S3WithHmacEndpointProperties object itself. + */ + public S3WithHmacEndpointProperties withSourceType(S3WithHmacSourceType sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * Get the otherSourceTypeDescription property: The description for other source type of S3WithHmac endpoint. + * + * @return the otherSourceTypeDescription value. + */ + public String otherSourceTypeDescription() { + return this.otherSourceTypeDescription; + } + + /** + * Set the otherSourceTypeDescription property: The description for other source type of S3WithHmac endpoint. + * + * @param otherSourceTypeDescription the otherSourceTypeDescription value to set. + * @return the S3WithHmacEndpointProperties object itself. + */ + public S3WithHmacEndpointProperties withOtherSourceTypeDescription(String otherSourceTypeDescription) { + this.otherSourceTypeDescription = otherSourceTypeDescription; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public S3WithHmacEndpointProperties withDescription(String description) { + super.withDescription(description); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public S3WithHmacEndpointProperties withEndpointKind(EndpointKind endpointKind) { + super.withEndpointKind(endpointKind); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("description", description()); + jsonWriter.writeStringField("endpointKind", endpointKind() == null ? null : endpointKind().toString()); + jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); + jsonWriter.writeJsonField("credentials", this.credentials); + jsonWriter.writeStringField("sourceUri", this.sourceUri); + jsonWriter.writeStringField("sourceType", this.sourceType == null ? null : this.sourceType.toString()); + jsonWriter.writeStringField("otherSourceTypeDescription", this.otherSourceTypeDescription); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of S3WithHmacEndpointProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of S3WithHmacEndpointProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the S3WithHmacEndpointProperties. + */ + public static S3WithHmacEndpointProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + S3WithHmacEndpointProperties deserializedS3WithHmacEndpointProperties = new S3WithHmacEndpointProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("description".equals(fieldName)) { + deserializedS3WithHmacEndpointProperties.withDescription(reader.getString()); + } else if ("endpointKind".equals(fieldName)) { + deserializedS3WithHmacEndpointProperties + .withEndpointKind(EndpointKind.fromString(reader.getString())); + } else if ("provisioningState".equals(fieldName)) { + deserializedS3WithHmacEndpointProperties + .withProvisioningState(ProvisioningState.fromString(reader.getString())); + } else if ("endpointType".equals(fieldName)) { + deserializedS3WithHmacEndpointProperties.endpointType = EndpointType.fromString(reader.getString()); + } else if ("credentials".equals(fieldName)) { + deserializedS3WithHmacEndpointProperties.credentials + = AzureKeyVaultS3WithHmacCredentials.fromJson(reader); + } else if ("sourceUri".equals(fieldName)) { + deserializedS3WithHmacEndpointProperties.sourceUri = reader.getString(); + } else if ("sourceType".equals(fieldName)) { + deserializedS3WithHmacEndpointProperties.sourceType + = S3WithHmacSourceType.fromString(reader.getString()); + } else if ("otherSourceTypeDescription".equals(fieldName)) { + deserializedS3WithHmacEndpointProperties.otherSourceTypeDescription = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedS3WithHmacEndpointProperties; + }); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointUpdateProperties.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointUpdateProperties.java new file mode 100644 index 000000000000..37881b6429a1 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacEndpointUpdateProperties.java @@ -0,0 +1,119 @@ +// 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.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The S3WithHmacEndpointUpdateProperties model. + */ +@Fluent +public final class S3WithHmacEndpointUpdateProperties extends EndpointBaseUpdateProperties { + /* + * The Endpoint resource type. + */ + private EndpointType endpointType = EndpointType.S3WITH_HMAC; + + /* + * The Azure Key Vault secret URIs which store the required credentials to access the S3. + */ + private AzureKeyVaultS3WithHmacCredentials credentials; + + /** + * Creates an instance of S3WithHmacEndpointUpdateProperties class. + */ + public S3WithHmacEndpointUpdateProperties() { + } + + /** + * Get the endpointType property: The Endpoint resource type. + * + * @return the endpointType value. + */ + @Override + public EndpointType endpointType() { + return this.endpointType; + } + + /** + * Get the credentials property: The Azure Key Vault secret URIs which store the required credentials to access the + * S3. + * + * @return the credentials value. + */ + public AzureKeyVaultS3WithHmacCredentials credentials() { + return this.credentials; + } + + /** + * Set the credentials property: The Azure Key Vault secret URIs which store the required credentials to access the + * S3. + * + * @param credentials the credentials value to set. + * @return the S3WithHmacEndpointUpdateProperties object itself. + */ + public S3WithHmacEndpointUpdateProperties withCredentials(AzureKeyVaultS3WithHmacCredentials credentials) { + this.credentials = credentials; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public S3WithHmacEndpointUpdateProperties withDescription(String description) { + super.withDescription(description); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("description", description()); + jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); + jsonWriter.writeJsonField("credentials", this.credentials); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of S3WithHmacEndpointUpdateProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of S3WithHmacEndpointUpdateProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the S3WithHmacEndpointUpdateProperties. + */ + public static S3WithHmacEndpointUpdateProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + S3WithHmacEndpointUpdateProperties deserializedS3WithHmacEndpointUpdateProperties + = new S3WithHmacEndpointUpdateProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("description".equals(fieldName)) { + deserializedS3WithHmacEndpointUpdateProperties.withDescription(reader.getString()); + } else if ("endpointType".equals(fieldName)) { + deserializedS3WithHmacEndpointUpdateProperties.endpointType + = EndpointType.fromString(reader.getString()); + } else if ("credentials".equals(fieldName)) { + deserializedS3WithHmacEndpointUpdateProperties.credentials + = AzureKeyVaultS3WithHmacCredentials.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedS3WithHmacEndpointUpdateProperties; + }); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacSourceType.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacSourceType.java new file mode 100644 index 000000000000..f908a6c93b5a --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/S3WithHmacSourceType.java @@ -0,0 +1,66 @@ +// 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; + +/** + * The source type of S3WithHmac endpoint. + */ +public final class S3WithHmacSourceType extends ExpandableStringEnum { + /** + * Static value MINIO for S3WithHmacSourceType. + */ + public static final S3WithHmacSourceType MINIO = fromString("MINIO"); + + /** + * Static value BACKBLAZE for S3WithHmacSourceType. + */ + public static final S3WithHmacSourceType BACKBLAZE = fromString("BACKBLAZE"); + + /** + * Static value IBM for S3WithHmacSourceType. + */ + public static final S3WithHmacSourceType IBM = fromString("IBM"); + + /** + * Static value CLOUDFLARE for S3WithHmacSourceType. + */ + public static final S3WithHmacSourceType CLOUDFLARE = fromString("CLOUDFLARE"); + + /** + * Static value GCS for S3WithHmacSourceType. + */ + public static final S3WithHmacSourceType GCS = fromString("GCS"); + + /** + * Creates a new instance of S3WithHmacSourceType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public S3WithHmacSourceType() { + } + + /** + * Creates or finds a S3WithHmacSourceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding S3WithHmacSourceType. + */ + public static S3WithHmacSourceType fromString(String name) { + return fromString(name, S3WithHmacSourceType.class); + } + + /** + * Gets known S3WithHmacSourceType values. + * + * @return known S3WithHmacSourceType values. + */ + public static Collection values() { + return values(S3WithHmacSourceType.class); + } +} 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 new file mode 100644 index 000000000000..0c06a9d107ab --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/ScheduleInfo.java @@ -0,0 +1,292 @@ +// 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.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.List; + +/** + * Schedule information for the Job Definition. + */ +@Fluent +public final class ScheduleInfo implements JsonSerializable { + /* + * Type of schedule — Monthly, Weekly, or Daily + */ + private Frequency frequency; + + /* + * Whether the schedule is currently active + */ + private boolean isActive; + + /* + * Time of day to execute (hours and minutes) + */ + private Time executionTime; + + /* + * Specific one-time execution date and time + */ + private OffsetDateTime startDate; + + /* + * Days of the week for weekly schedules + */ + private List daysOfWeek; + + /* + * Days of the month for monthly schedules + */ + private List daysOfMonth; + + /* + * Optional CRON expression for advanced scheduling + */ + private String cronExpression; + + /* + * End time of the schedule (in UTC) + */ + private OffsetDateTime endDate; + + /** + * Creates an instance of ScheduleInfo class. + */ + public ScheduleInfo() { + } + + /** + * Get the frequency property: Type of schedule — Monthly, Weekly, or Daily. + * + * @return the frequency value. + */ + public Frequency frequency() { + return this.frequency; + } + + /** + * Set the frequency property: Type of schedule — Monthly, Weekly, or Daily. + * + * @param frequency the frequency value to set. + * @return the ScheduleInfo object itself. + */ + public ScheduleInfo withFrequency(Frequency frequency) { + this.frequency = frequency; + return this; + } + + /** + * Get the isActive property: Whether the schedule is currently active. + * + * @return the isActive value. + */ + public boolean isActive() { + return this.isActive; + } + + /** + * Set the isActive property: Whether the schedule is currently active. + * + * @param isActive the isActive value to set. + * @return the ScheduleInfo object itself. + */ + public ScheduleInfo withIsActive(boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Get the executionTime property: Time of day to execute (hours and minutes). + * + * @return the executionTime value. + */ + public Time executionTime() { + return this.executionTime; + } + + /** + * Set the executionTime property: Time of day to execute (hours and minutes). + * + * @param executionTime the executionTime value to set. + * @return the ScheduleInfo object itself. + */ + public ScheduleInfo withExecutionTime(Time executionTime) { + this.executionTime = executionTime; + return this; + } + + /** + * Get the startDate property: Specific one-time execution date and time. + * + * @return the startDate value. + */ + public OffsetDateTime startDate() { + return this.startDate; + } + + /** + * Set the startDate property: Specific one-time execution date and time. + * + * @param startDate the startDate value to set. + * @return the ScheduleInfo object itself. + */ + public ScheduleInfo withStartDate(OffsetDateTime startDate) { + this.startDate = startDate; + return this; + } + + /** + * Get the daysOfWeek property: Days of the week for weekly schedules. + * + * @return the daysOfWeek value. + */ + public List daysOfWeek() { + return this.daysOfWeek; + } + + /** + * Set the daysOfWeek property: Days of the week for weekly schedules. + * + * @param daysOfWeek the daysOfWeek value to set. + * @return the ScheduleInfo object itself. + */ + public ScheduleInfo withDaysOfWeek(List daysOfWeek) { + this.daysOfWeek = daysOfWeek; + return this; + } + + /** + * Get the daysOfMonth property: Days of the month for monthly schedules. + * + * @return the daysOfMonth value. + */ + public List daysOfMonth() { + return this.daysOfMonth; + } + + /** + * Set the daysOfMonth property: Days of the month for monthly schedules. + * + * @param daysOfMonth the daysOfMonth value to set. + * @return the ScheduleInfo object itself. + */ + public ScheduleInfo withDaysOfMonth(List daysOfMonth) { + this.daysOfMonth = daysOfMonth; + return this; + } + + /** + * Get the cronExpression property: Optional CRON expression for advanced scheduling. + * + * @return the cronExpression value. + */ + public String cronExpression() { + return this.cronExpression; + } + + /** + * Set the cronExpression property: Optional CRON expression for advanced scheduling. + * + * @param cronExpression the cronExpression value to set. + * @return the ScheduleInfo object itself. + */ + public ScheduleInfo withCronExpression(String cronExpression) { + this.cronExpression = cronExpression; + return this; + } + + /** + * Get the endDate property: End time of the schedule (in UTC). + * + * @return the endDate value. + */ + public OffsetDateTime endDate() { + return this.endDate; + } + + /** + * Set the endDate property: End time of the schedule (in UTC). + * + * @param endDate the endDate value to set. + * @return the ScheduleInfo object itself. + */ + public ScheduleInfo withEndDate(OffsetDateTime endDate) { + this.endDate = endDate; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("frequency", this.frequency == null ? null : this.frequency.toString()); + jsonWriter.writeBooleanField("isActive", this.isActive); + jsonWriter.writeJsonField("executionTime", this.executionTime); + jsonWriter.writeStringField("startDate", + this.startDate == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.startDate)); + jsonWriter.writeArrayField("daysOfWeek", this.daysOfWeek, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("daysOfMonth", this.daysOfMonth, (writer, element) -> writer.writeInt(element)); + jsonWriter.writeStringField("cronExpression", this.cronExpression); + jsonWriter.writeStringField("endDate", + this.endDate == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endDate)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ScheduleInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ScheduleInfo if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ScheduleInfo. + */ + public static ScheduleInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ScheduleInfo deserializedScheduleInfo = new ScheduleInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("frequency".equals(fieldName)) { + deserializedScheduleInfo.frequency = Frequency.fromString(reader.getString()); + } else if ("isActive".equals(fieldName)) { + deserializedScheduleInfo.isActive = reader.getBoolean(); + } else if ("executionTime".equals(fieldName)) { + deserializedScheduleInfo.executionTime = Time.fromJson(reader); + } else if ("startDate".equals(fieldName)) { + deserializedScheduleInfo.startDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("daysOfWeek".equals(fieldName)) { + List daysOfWeek = reader.readArray(reader1 -> reader1.getString()); + deserializedScheduleInfo.daysOfWeek = daysOfWeek; + } else if ("daysOfMonth".equals(fieldName)) { + List daysOfMonth = reader.readArray(reader1 -> reader1.getInt()); + deserializedScheduleInfo.daysOfMonth = daysOfMonth; + } else if ("cronExpression".equals(fieldName)) { + deserializedScheduleInfo.cronExpression = reader.getString(); + } else if ("endDate".equals(fieldName)) { + deserializedScheduleInfo.endDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedScheduleInfo; + }); + } +} 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 07301aff6224..733b2fa90e38 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 @@ -122,6 +122,15 @@ public SmbMountEndpointProperties withDescription(String description) { return this; } + /** + * {@inheritDoc} + */ + @Override + public SmbMountEndpointProperties withEndpointKind(EndpointKind endpointKind) { + super.withEndpointKind(endpointKind); + return this; + } + /** * {@inheritDoc} */ @@ -129,6 +138,7 @@ public SmbMountEndpointProperties withDescription(String description) { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("description", description()); + jsonWriter.writeStringField("endpointKind", endpointKind() == null ? null : endpointKind().toString()); jsonWriter.writeStringField("host", this.host); jsonWriter.writeStringField("shareName", this.shareName); jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString()); @@ -154,6 +164,9 @@ public static SmbMountEndpointProperties fromJson(JsonReader jsonReader) throws if ("description".equals(fieldName)) { deserializedSmbMountEndpointProperties.withDescription(reader.getString()); + } else if ("endpointKind".equals(fieldName)) { + deserializedSmbMountEndpointProperties + .withEndpointKind(EndpointKind.fromString(reader.getString())); } else if ("provisioningState".equals(fieldName)) { deserializedSmbMountEndpointProperties .withProvisioningState(ProvisioningState.fromString(reader.getString())); diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/TriggerType.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/TriggerType.java new file mode 100644 index 000000000000..7393256b62ad --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/java/com/azure/resourcemanager/storagemover/models/TriggerType.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; + +/** + * The type of Job run trigger Manual or Scheduled. + */ +public final class TriggerType extends ExpandableStringEnum { + /** + * Static value Manual for TriggerType. + */ + public static final TriggerType MANUAL = fromString("Manual"); + + /** + * Static value Scheduled for TriggerType. + */ + public static final TriggerType SCHEDULED = fromString("Scheduled"); + + /** + * Creates a new instance of TriggerType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public TriggerType() { + } + + /** + * Creates or finds a TriggerType from its string representation. + * + * @param name a name to look for. + * @return the corresponding TriggerType. + */ + public static TriggerType fromString(String name) { + return fromString(name, TriggerType.class); + } + + /** + * Gets known TriggerType values. + * + * @return known TriggerType values. + */ + public static Collection values() { + return values(TriggerType.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 20a709356bc1..c9421dfcacce 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-07-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.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.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.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.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.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.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.EndpointType":"Microsoft.StorageMover.EndpointType","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.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.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.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/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/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/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/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/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/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/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/EndpointType.java","src/main/java/com/azure/resourcemanager/storagemover/models/Endpoints.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/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/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/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":"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.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/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 diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-storagemover/proxy-config.json b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-storagemover/proxy-config.json index dc906598804e..77c1038ff80b 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-storagemover/proxy-config.json +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-storagemover/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.storagemover.implementation.AgentsClientImpl$AgentsService"],["com.azure.resourcemanager.storagemover.implementation.EndpointsClientImpl$EndpointsService"],["com.azure.resourcemanager.storagemover.implementation.JobDefinitionsClientImpl$JobDefinitionsService"],["com.azure.resourcemanager.storagemover.implementation.JobRunsClientImpl$JobRunsService"],["com.azure.resourcemanager.storagemover.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.storagemover.implementation.ProjectsClientImpl$ProjectsService"],["com.azure.resourcemanager.storagemover.implementation.StorageMoversClientImpl$StorageMoversService"]] \ No newline at end of file +[["com.azure.resourcemanager.storagemover.implementation.AgentsClientImpl$AgentsService"],["com.azure.resourcemanager.storagemover.implementation.ConnectionsClientImpl$ConnectionsService"],["com.azure.resourcemanager.storagemover.implementation.EndpointsClientImpl$EndpointsService"],["com.azure.resourcemanager.storagemover.implementation.JobDefinitionsClientImpl$JobDefinitionsService"],["com.azure.resourcemanager.storagemover.implementation.JobRunsClientImpl$JobRunsService"],["com.azure.resourcemanager.storagemover.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.storagemover.implementation.ProjectsClientImpl$ProjectsService"],["com.azure.resourcemanager.storagemover.implementation.StorageMoversClientImpl$StorageMoversService"]] \ 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 9c6d010163b1..19c98ad0917b 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-07-01/Agents_CreateOrUpdate_MaximumSet.json + * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_MaximumSet.json */ /** * Sample code: Agents_CreateOrUpdate_MaximumSet. @@ -41,7 +41,7 @@ public final class AgentsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Agents_CreateOrUpdate_UploadLimitSchedule_Overnight.json + * x-ms-original-file: 2025-12-01/Agents_CreateOrUpdate_UploadLimitSchedule_Overnight.json */ /** * Sample code: Agents_CreateOrUpdate_WithOvernightUploadLimitSchedule. @@ -71,7 +71,7 @@ public static void agentsCreateOrUpdateWithOvernightUploadLimitSchedule( } /* - * x-ms-original-file: 2025-07-01/Agents_CreateOrUpdate_MinimumSet.json + * x-ms-original-file: 2025-12-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 6542daca42fd..5d2b138c3a36 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-07-01/Agents_Delete.json + * x-ms-original-file: 2025-12-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 0814847c4d0c..fca56b9b446d 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-07-01/Agents_Get_MaximumSet.json + * x-ms-original-file: 2025-12-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-07-01/Agents_Get_MinimumSet.json + * x-ms-original-file: 2025-12-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 56d3c1e53a66..d37592faebd5 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-07-01/Agents_List_MaximumSet.json + * x-ms-original-file: 2025-12-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-07-01/Agents_List_MinimumSet.json + * x-ms-original-file: 2025-12-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 dbc11253ce3a..4ce283ca4910 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-07-01/Agents_Update.json + * x-ms-original-file: 2025-12-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 new file mode 100644 index 000000000000..80b938aa00a2 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateSamples.java @@ -0,0 +1,30 @@ +// 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.resourcemanager.storagemover.models.ConnectionProperties; + +/** + * Samples for Connections CreateOrUpdate. + */ +public final class ConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-12-01/Connections_CreateOrUpdate.json + */ + /** + * Sample code: Connections_CreateOrUpdate. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void connectionsCreateOrUpdate(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.connections() + .define("example-connection") + .withExistingStorageMover("examples-rg", "examples-storageMoverName") + .withProperties(new ConnectionProperties().withDescription("Example Connection Description") + .withPrivateLinkServiceId( + "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.Network/privateLinkServices/example-pls")) + .create(); + } +} 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 new file mode 100644 index 000000000000..434737023b64 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsDeleteSamples.java @@ -0,0 +1,23 @@ +// 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 Connections Delete. + */ +public final class ConnectionsDeleteSamples { + /* + * x-ms-original-file: 2025-12-01/Connections_Delete.json + */ + /** + * Sample code: Connections_Delete. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void connectionsDelete(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.connections() + .delete("examples-rg", "examples-storageMoverName", "example-connection", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..5c332c64f512 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetSamples.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 Connections Get. + */ +public final class ConnectionsGetSamples { + /* + * x-ms-original-file: 2025-12-01/Connections_Get.json + */ + /** + * Sample code: Connections_Get. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void connectionsGet(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.connections() + .getWithResponse("examples-rg", "examples-storageMoverName", "example-connection", + com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..ad73285e3371 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListSamples.java @@ -0,0 +1,22 @@ +// 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 Connections List. + */ +public final class ConnectionsListSamples { + /* + * x-ms-original-file: 2025-12-01/Connections_List.json + */ + /** + * Sample code: Connections_List. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void connectionsList(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.connections().list("examples-rg", "examples-storageMoverName", com.azure.core.util.Context.NONE); + } +} 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 abc7a31d0af0..a40979f1570b 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,7 @@ */ public final class EndpointsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_AzureStorageNfsFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageNfsFileShare. @@ -28,7 +28,24 @@ public static void endpointsCreateOrUpdateAzureStorageNfsFileShare( } /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_AzureMultiCloudConnector.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_S3WithHMAC.json + */ + /** + * Sample code: Endpoints_CreateOrUpdate_S3WithHmac. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + endpointsCreateOrUpdateS3WithHmac(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.endpoints() + .define("examples-endpointName") + .withExistingStorageMover("examples-rg", "examples-storageMoverName") + .withProperties((EndpointBaseProperties) null) + .create(); + } + + /* + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureMultiCloudConnector. @@ -45,7 +62,7 @@ public static void endpointsCreateOrUpdateAzureMultiCloudConnector( } /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageBlobContainer. @@ -62,7 +79,7 @@ public static void endpointsCreateOrUpdateAzureStorageBlobContainer( } /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_NfsMount.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_NfsMount.json */ /** * Sample code: Endpoints_CreateOrUpdate_NfsMount. @@ -79,7 +96,7 @@ public static void endpointsCreateOrUpdateAzureStorageBlobContainer( } /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_CreateOrUpdate_AzureStorageSmbFileShare. @@ -96,7 +113,7 @@ public static void endpointsCreateOrUpdateAzureStorageSmbFileShare( } /* - * x-ms-original-file: 2025-07-01/Endpoints_CreateOrUpdate_SmbMount.json + * x-ms-original-file: 2025-12-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 5e9560a6459e..18464ca6a958 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-07-01/Endpoints_Delete.json + * x-ms-original-file: 2025-12-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 171bc6dae1fa..efda1f1e72d1 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-07-01/Endpoints_Get_AzureStorageNfsFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_Get_AzureStorageNfsFileShare. @@ -24,7 +24,7 @@ public final class EndpointsGetSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_SmbMount.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_SmbMount.json */ /** * Sample code: Endpoints_Get_SmbMount. @@ -38,7 +38,21 @@ public static void endpointsGetSmbMount(com.azure.resourcemanager.storagemover.S } /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_AzureStorageBlobContainer.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_S3WithHMAC.json + */ + /** + * Sample code: Endpoints_Get_S3WithHmac. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsGetS3WithHmac(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: 2025-12-01/Endpoints_Get_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_Get_AzureStorageBlobContainer. @@ -53,7 +67,7 @@ public static void endpointsGetSmbMount(com.azure.resourcemanager.storagemover.S } /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_NfsMount.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_NfsMount.json */ /** * Sample code: Endpoints_Get_NfsMount. @@ -67,7 +81,7 @@ public static void endpointsGetNfsMount(com.azure.resourcemanager.storagemover.S } /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_AzureStorageSmbFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_Get_AzureStorageSmbFileShare. @@ -82,7 +96,7 @@ public static void endpointsGetNfsMount(com.azure.resourcemanager.storagemover.S } /* - * x-ms-original-file: 2025-07-01/Endpoints_Get_AzureMultiCloudConnector.json + * x-ms-original-file: 2025-12-01/Endpoints_Get_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_Get_AzureMultiCloudConnector. 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 afe4d0c04dca..a85cf20e28a2 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-07-01/Endpoints_List.json + * x-ms-original-file: 2025-12-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 c2da4b808746..344e3b5107f5 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,7 @@ */ public final class EndpointsUpdateSamples { /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_AzureMultiCloudConnector.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureMultiCloudConnector.json */ /** * Sample code: Endpoints_Update_AzureMultiCloudConnector. @@ -28,7 +28,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_AzureStorageNfsFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageNfsFileShare.json */ /** * Sample code: Endpoints_Update_AzureStorageNfsFileShare. @@ -45,7 +45,7 @@ public final class EndpointsUpdateSamples { } /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_NfsMount.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_NfsMount.json */ /** * Sample code: Endpoints_Update_NfsMount. @@ -61,7 +61,7 @@ public static void endpointsUpdateNfsMount(com.azure.resourcemanager.storagemove } /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_AzureStorageSmbFileShare.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageSmbFileShare.json */ /** * Sample code: Endpoints_Update_AzureStorageSmbFileShare. @@ -78,7 +78,7 @@ public static void endpointsUpdateNfsMount(com.azure.resourcemanager.storagemove } /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_AzureStorageBlobContainer.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_AzureStorageBlobContainer.json */ /** * Sample code: Endpoints_Update_AzureStorageBlobContainer. @@ -95,7 +95,7 @@ public static void endpointsUpdateNfsMount(com.azure.resourcemanager.storagemove } /* - * x-ms-original-file: 2025-07-01/Endpoints_Update_SmbMount.json + * x-ms-original-file: 2025-12-01/Endpoints_Update_SmbMount.json */ /** * Sample code: Endpoints_Update_SmbMount. @@ -109,4 +109,20 @@ public static void endpointsUpdateSmbMount(com.azure.resourcemanager.storagemove .getValue(); resource.update().apply(); } + + /* + * x-ms-original-file: 2025-12-01/Endpoints_Update_S3WithHMAC.json + */ + /** + * Sample code: Endpoints_Update_S3WithHmac. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void endpointsUpdateS3WithHmac(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(); + } } 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 6455e93f5316..8d5e4dfc9735 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 @@ -5,14 +5,52 @@ package com.azure.resourcemanager.storagemover.generated; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.Frequency; import com.azure.resourcemanager.storagemover.models.JobType; +import com.azure.resourcemanager.storagemover.models.Minute; +import com.azure.resourcemanager.storagemover.models.ScheduleInfo; +import com.azure.resourcemanager.storagemover.models.Time; +import java.time.OffsetDateTime; +import java.util.Arrays; /** * Samples for JobDefinitions CreateOrUpdate. */ public final class JobDefinitionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-07-01/JobDefinitions_CreateOrUpdate_CloudToCloud.json + * x-ms-original-file: 2025-12-01/JobDefinitions_CreateOrUpdate_With_Schedule.json + */ + /** + * Sample code: JobDefinitions_CreateOrUpdate_With_Schedule. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + jobDefinitionsCreateOrUpdateWithSchedule(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("examples-targetEndpointName") + .withDescription("Example Job Definition Description") + .withJobType(JobType.CLOUD_TO_CLOUD) + .withSourceSubpath("/") + .withTargetSubpath("/") + .withAgentName("dummy-agent") + .withConnections(Arrays.asList( + "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) + .withSchedule(new ScheduleInfo().withFrequency(Frequency.WEEKLY) + .withIsActive(true) + .withExecutionTime(new Time().withHour(9).withMinute(Minute.ZERO)) + .withStartDate(OffsetDateTime.parse("2025-12-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 */ /** * Sample code: JobDefinitions_CreateOrUpdate_CloudToCloud. @@ -32,11 +70,13 @@ public final class JobDefinitionsCreateOrUpdateSamples { .withSourceSubpath("/") .withTargetSubpath("/") .withAgentName("dummy-agent") + .withConnections(Arrays.asList( + "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) .create(); } /* - * x-ms-original-file: 2025-07-01/JobDefinitions_CreateOrUpdate.json + * x-ms-original-file: 2025-12-01/JobDefinitions_CreateOrUpdate.json */ /** * Sample code: JobDefinitions_CreateOrUpdate. @@ -56,6 +96,8 @@ public final class JobDefinitionsCreateOrUpdateSamples { .withSourceSubpath("/") .withTargetSubpath("/") .withAgentName("migration-agent") + .withConnections(Arrays.asList( + "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) .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 692ba09a849a..4fc80258f109 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-07-01/JobDefinitions_Delete.json + * x-ms-original-file: 2025-12-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 53e65e71a42a..4adf1a51d070 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-07-01/JobDefinitions_Get.json + * x-ms-original-file: 2025-12-01/JobDefinitions_Get.json */ /** * Sample code: JobDefinitions_Get. @@ -21,4 +21,19 @@ public static void jobDefinitionsGet(com.azure.resourcemanager.storagemover.Stor .getWithResponse("examples-rg", "examples-storageMoverName", "examples-projectName", "examples-jobDefinitionName", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-12-01/JobDefinitions_Get_With_Schedule.json + */ + /** + * Sample code: JobDefinitions_Get_With_Schedule. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void + jobDefinitionsGetWithSchedule(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobDefinitions() + .getWithResponse("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/JobDefinitionsListSamples.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/samples/java/com/azure/resourcemanager/storagemover/generated/JobDefinitionsListSamples.java index 19ba777aeba2..8b959e7b0d69 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-07-01/JobDefinitions_List.json + * x-ms-original-file: 2025-12-01/JobDefinitions_List.json */ /** * Sample code: JobDefinitions_List. 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 dd929800894a..0f7d85a8104b 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-07-01/JobDefinitions_StartJob.json + * x-ms-original-file: 2025-12-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 fb9dfa8b78d8..f3a3d7848ace 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-07-01/JobDefinitions_StopJob.json + * x-ms-original-file: 2025-12-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 35483a700c51..9d185f5b7d44 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 @@ -5,13 +5,14 @@ package com.azure.resourcemanager.storagemover.generated; import com.azure.resourcemanager.storagemover.models.JobDefinition; +import java.util.Arrays; /** * Samples for JobDefinitions Update. */ public final class JobDefinitionsUpdateSamples { /* - * x-ms-original-file: 2025-07-01/JobDefinitions_Update.json + * x-ms-original-file: 2025-12-01/JobDefinitions_Update.json */ /** * Sample code: JobDefinitions_Update. @@ -26,6 +27,8 @@ public static void jobDefinitionsUpdate(com.azure.resourcemanager.storagemover.S resource.update() .withDescription("Updated Job Definition Description") .withAgentName("updatedAgentName") + .withConnections(Arrays.asList( + "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/connections/example-connection")) .apply(); } } 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 2d55bd2ebece..84d9d4fc6057 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,21 @@ */ public final class JobRunsGetSamples { /* - * x-ms-original-file: 2025-07-01/JobRuns_Get.json + * x-ms-original-file: 2025-12-01/JobRuns_Get_With_Schedule.json + */ + /** + * Sample code: JobRuns_Get_With_Schedule. + * + * @param manager Entry point to StorageMoverManager. + */ + public static void jobRunsGetWithSchedule(com.azure.resourcemanager.storagemover.StorageMoverManager manager) { + manager.jobRuns() + .getWithResponse("examples-rg", "examples-storageMoverName", "examples-projectName", + "examples-jobDefinitionName", "examples-jobRunName", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-12-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 cb6e9e0b0b4b..825c86204f9a 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-07-01/JobRuns_List.json + * x-ms-original-file: 2025-12-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 413fefaa22d6..43a6757b9f54 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-07-01/Operations_List.json + * x-ms-original-file: 2025-12-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 69829f975ef8..4d37940358b1 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-07-01/Projects_CreateOrUpdate.json + * x-ms-original-file: 2025-12-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 7a44f8f47dca..436e2565db4d 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-07-01/Projects_Delete.json + * x-ms-original-file: 2025-12-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 50dddd520705..5466ac3499e1 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-07-01/Projects_Get.json + * x-ms-original-file: 2025-12-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 d3d83bd38834..e2e2e846e8b0 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-07-01/Projects_List.json + * x-ms-original-file: 2025-12-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 914d678c8764..071137ceb3c1 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-07-01/Projects_Update.json + * x-ms-original-file: 2025-12-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 9f30efdad7bf..bbe1d51c11d0 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-07-01/StorageMovers_CreateOrUpdate.json + * x-ms-original-file: 2025-12-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 e24d948d49b6..223674c87c28 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-07-01/StorageMovers_Delete.json + * x-ms-original-file: 2025-12-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 06929af54bac..5be2c84470c0 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-07-01/StorageMovers_Get.json + * x-ms-original-file: 2025-12-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 75b12f7b9daf..9fdf21df77b5 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-07-01/StorageMovers_List.json + * x-ms-original-file: 2025-12-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 ff4b3fd5863c..8b7ecea8f46a 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-07-01/StorageMovers_ListBySubscription.json + * x-ms-original-file: 2025-12-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 54caa2213e03..823383f5be7a 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-07-01/StorageMovers_Update.json + * x-ms-original-file: 2025-12-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 965dd9e36cdc..45efd5deb352 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("rp", "xe", "mnzb", com.azure.core.util.Context.NONE); + manager.agents().delete("lkdmtncvokotllxd", "h", "syocogjltdtbnnha", 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 1da7d402b3d0..43990d80efd0 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 @@ -6,28 +6,32 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.AzureMultiCloudConnectorEndpointProperties; +import com.azure.resourcemanager.storagemover.models.EndpointKind; import org.junit.jupiter.api.Assertions; public final class AzureMultiCloudConnectorEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureMultiCloudConnectorEndpointProperties model = BinaryData.fromString( - "{\"endpointType\":\"AzureMultiCloudConnector\",\"multiCloudConnectorId\":\"inpvswjdkirsoodq\",\"awsS3BucketId\":\"hc\",\"description\":\"nohjt\",\"provisioningState\":\"Failed\"}") + "{\"endpointType\":\"AzureMultiCloudConnector\",\"multiCloudConnectorId\":\"j\",\"awsS3BucketId\":\"odxobnbdxkqpxok\",\"description\":\"ionpimexg\",\"endpointKind\":\"Source\",\"provisioningState\":\"Succeeded\"}") .toObject(AzureMultiCloudConnectorEndpointProperties.class); - Assertions.assertEquals("nohjt", model.description()); - Assertions.assertEquals("inpvswjdkirsoodq", model.multiCloudConnectorId()); - Assertions.assertEquals("hc", model.awsS3BucketId()); + Assertions.assertEquals("ionpimexg", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("j", model.multiCloudConnectorId()); + Assertions.assertEquals("odxobnbdxkqpxok", model.awsS3BucketId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureMultiCloudConnectorEndpointProperties model - = new AzureMultiCloudConnectorEndpointProperties().withDescription("nohjt") - .withMultiCloudConnectorId("inpvswjdkirsoodq") - .withAwsS3BucketId("hc"); + = new AzureMultiCloudConnectorEndpointProperties().withDescription("ionpimexg") + .withEndpointKind(EndpointKind.SOURCE) + .withMultiCloudConnectorId("j") + .withAwsS3BucketId("odxobnbdxkqpxok"); model = BinaryData.fromObject(model).toObject(AzureMultiCloudConnectorEndpointProperties.class); - Assertions.assertEquals("nohjt", model.description()); - Assertions.assertEquals("inpvswjdkirsoodq", model.multiCloudConnectorId()); - Assertions.assertEquals("hc", model.awsS3BucketId()); + Assertions.assertEquals("ionpimexg", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("j", model.multiCloudConnectorId()); + Assertions.assertEquals("odxobnbdxkqpxok", 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 50be8358e764..33869243bc5e 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\":\"deicbtwnpzao\"}") - .toObject(AzureMultiCloudConnectorEndpointUpdateProperties.class); - Assertions.assertEquals("deicbtwnpzao", model.description()); + AzureMultiCloudConnectorEndpointUpdateProperties model = BinaryData + .fromString("{\"endpointType\":\"AzureMultiCloudConnector\",\"description\":\"qdrabhjybigehoqf\"}") + .toObject(AzureMultiCloudConnectorEndpointUpdateProperties.class); + Assertions.assertEquals("qdrabhjybigehoqf", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureMultiCloudConnectorEndpointUpdateProperties model - = new AzureMultiCloudConnectorEndpointUpdateProperties().withDescription("deicbtwnpzao"); + = new AzureMultiCloudConnectorEndpointUpdateProperties().withDescription("qdrabhjybigehoqf"); model = BinaryData.fromObject(model).toObject(AzureMultiCloudConnectorEndpointUpdateProperties.class); - Assertions.assertEquals("deicbtwnpzao", model.description()); + Assertions.assertEquals("qdrabhjybigehoqf", 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 c879b4255818..7817117c1f09 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 @@ -6,28 +6,32 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.AzureStorageBlobContainerEndpointProperties; +import com.azure.resourcemanager.storagemover.models.EndpointKind; 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\":\"tbvpysszdnru\",\"blobContainerName\":\"qguhmuo\",\"description\":\"f\",\"provisioningState\":\"Failed\"}") + "{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"waopvkmijcmmxd\",\"blobContainerName\":\"ufufsrp\",\"description\":\"zidnsezcxtbzsgfy\",\"endpointKind\":\"Source\",\"provisioningState\":\"Canceled\"}") .toObject(AzureStorageBlobContainerEndpointProperties.class); - Assertions.assertEquals("f", model.description()); - Assertions.assertEquals("tbvpysszdnru", model.storageAccountResourceId()); - Assertions.assertEquals("qguhmuo", model.blobContainerName()); + Assertions.assertEquals("zidnsezcxtbzsgfy", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("waopvkmijcmmxd", model.storageAccountResourceId()); + Assertions.assertEquals("ufufsrp", model.blobContainerName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageBlobContainerEndpointProperties model - = new AzureStorageBlobContainerEndpointProperties().withDescription("f") - .withStorageAccountResourceId("tbvpysszdnru") - .withBlobContainerName("qguhmuo"); + = new AzureStorageBlobContainerEndpointProperties().withDescription("zidnsezcxtbzsgfy") + .withEndpointKind(EndpointKind.SOURCE) + .withStorageAccountResourceId("waopvkmijcmmxd") + .withBlobContainerName("ufufsrp"); model = BinaryData.fromObject(model).toObject(AzureStorageBlobContainerEndpointProperties.class); - Assertions.assertEquals("f", model.description()); - Assertions.assertEquals("tbvpysszdnru", model.storageAccountResourceId()); - Assertions.assertEquals("qguhmuo", model.blobContainerName()); + Assertions.assertEquals("zidnsezcxtbzsgfy", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("waopvkmijcmmxd", model.storageAccountResourceId()); + Assertions.assertEquals("ufufsrp", model.blobContainerName()); } } 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 e783e1a2d556..4503c5e0b898 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 @@ -12,16 +12,16 @@ public final class AzureStorageBlobContainerEndpointUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureStorageBlobContainerEndpointUpdateProperties model - = BinaryData.fromString("{\"endpointType\":\"AzureStorageBlobContainer\",\"description\":\"toc\"}") + = BinaryData.fromString("{\"endpointType\":\"AzureStorageBlobContainer\",\"description\":\"utqxlngx\"}") .toObject(AzureStorageBlobContainerEndpointUpdateProperties.class); - Assertions.assertEquals("toc", model.description()); + Assertions.assertEquals("utqxlngx", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageBlobContainerEndpointUpdateProperties model - = new AzureStorageBlobContainerEndpointUpdateProperties().withDescription("toc"); + = new AzureStorageBlobContainerEndpointUpdateProperties().withDescription("utqxlngx"); model = BinaryData.fromObject(model).toObject(AzureStorageBlobContainerEndpointUpdateProperties.class); - Assertions.assertEquals("toc", model.description()); + Assertions.assertEquals("utqxlngx", model.description()); } } 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 47503469ec27..bc6cd842bf4e 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 @@ -6,28 +6,32 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.AzureStorageNfsFileShareEndpointProperties; +import com.azure.resourcemanager.storagemover.models.EndpointKind; import org.junit.jupiter.api.Assertions; public final class AzureStorageNfsFileShareEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureStorageNfsFileShareEndpointProperties model = BinaryData.fromString( - "{\"endpointType\":\"AzureStorageNfsFileShare\",\"storageAccountResourceId\":\"wmdwzjeiachboo\",\"fileShareName\":\"flnrosfqpteehzz\",\"description\":\"pyqr\",\"provisioningState\":\"Succeeded\"}") + "{\"endpointType\":\"AzureStorageNfsFileShare\",\"storageAccountResourceId\":\"c\",\"fileShareName\":\"aierhhb\",\"description\":\"glu\",\"endpointKind\":\"Source\",\"provisioningState\":\"Failed\"}") .toObject(AzureStorageNfsFileShareEndpointProperties.class); - Assertions.assertEquals("pyqr", model.description()); - Assertions.assertEquals("wmdwzjeiachboo", model.storageAccountResourceId()); - Assertions.assertEquals("flnrosfqpteehzz", model.fileShareName()); + Assertions.assertEquals("glu", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("c", model.storageAccountResourceId()); + Assertions.assertEquals("aierhhb", model.fileShareName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageNfsFileShareEndpointProperties model - = new AzureStorageNfsFileShareEndpointProperties().withDescription("pyqr") - .withStorageAccountResourceId("wmdwzjeiachboo") - .withFileShareName("flnrosfqpteehzz"); + = new AzureStorageNfsFileShareEndpointProperties().withDescription("glu") + .withEndpointKind(EndpointKind.SOURCE) + .withStorageAccountResourceId("c") + .withFileShareName("aierhhb"); model = BinaryData.fromObject(model).toObject(AzureStorageNfsFileShareEndpointProperties.class); - Assertions.assertEquals("pyqr", model.description()); - Assertions.assertEquals("wmdwzjeiachboo", model.storageAccountResourceId()); - Assertions.assertEquals("flnrosfqpteehzz", model.fileShareName()); + Assertions.assertEquals("glu", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("c", model.storageAccountResourceId()); + Assertions.assertEquals("aierhhb", 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 a91d857c2452..d59bef5dc7e6 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\":\"t\"}") + = BinaryData.fromString("{\"endpointType\":\"AzureStorageNfsFileShare\",\"description\":\"thz\"}") .toObject(AzureStorageNfsFileShareEndpointUpdateProperties.class); - Assertions.assertEquals("t", model.description()); + Assertions.assertEquals("thz", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageNfsFileShareEndpointUpdateProperties model - = new AzureStorageNfsFileShareEndpointUpdateProperties().withDescription("t"); + = new AzureStorageNfsFileShareEndpointUpdateProperties().withDescription("thz"); model = BinaryData.fromObject(model).toObject(AzureStorageNfsFileShareEndpointUpdateProperties.class); - Assertions.assertEquals("t", model.description()); + Assertions.assertEquals("thz", 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 737bd4f7a8b7..26502650792e 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 @@ -6,28 +6,32 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.AzureStorageSmbFileShareEndpointProperties; +import com.azure.resourcemanager.storagemover.models.EndpointKind; 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\":\"y\",\"fileShareName\":\"i\",\"description\":\"fidfvzw\",\"provisioningState\":\"Succeeded\"}") + "{\"endpointType\":\"AzureStorageSmbFileShare\",\"storageAccountResourceId\":\"mocpc\",\"fileShareName\":\"shurzafbljjgpbto\",\"description\":\"jmkljavbqidtqajz\",\"endpointKind\":\"Source\",\"provisioningState\":\"Failed\"}") .toObject(AzureStorageSmbFileShareEndpointProperties.class); - Assertions.assertEquals("fidfvzw", model.description()); - Assertions.assertEquals("y", model.storageAccountResourceId()); - Assertions.assertEquals("i", model.fileShareName()); + Assertions.assertEquals("jmkljavbqidtqajz", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("mocpc", model.storageAccountResourceId()); + Assertions.assertEquals("shurzafbljjgpbto", model.fileShareName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageSmbFileShareEndpointProperties model - = new AzureStorageSmbFileShareEndpointProperties().withDescription("fidfvzw") - .withStorageAccountResourceId("y") - .withFileShareName("i"); + = new AzureStorageSmbFileShareEndpointProperties().withDescription("jmkljavbqidtqajz") + .withEndpointKind(EndpointKind.SOURCE) + .withStorageAccountResourceId("mocpc") + .withFileShareName("shurzafbljjgpbto"); model = BinaryData.fromObject(model).toObject(AzureStorageSmbFileShareEndpointProperties.class); - Assertions.assertEquals("fidfvzw", model.description()); - Assertions.assertEquals("y", model.storageAccountResourceId()); - Assertions.assertEquals("i", model.fileShareName()); + Assertions.assertEquals("jmkljavbqidtqajz", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("mocpc", model.storageAccountResourceId()); + Assertions.assertEquals("shurzafbljjgpbto", model.fileShareName()); } } 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 ab8c4e6cf179..cf813c36a611 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 @@ -11,17 +11,17 @@ public final class AzureStorageSmbFileShareEndpointUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AzureStorageSmbFileShareEndpointUpdateProperties model = BinaryData - .fromString("{\"endpointType\":\"AzureStorageSmbFileShare\",\"description\":\"dzxibqeojnxqbzvd\"}") - .toObject(AzureStorageSmbFileShareEndpointUpdateProperties.class); - Assertions.assertEquals("dzxibqeojnxqbzvd", model.description()); + AzureStorageSmbFileShareEndpointUpdateProperties model + = BinaryData.fromString("{\"endpointType\":\"AzureStorageSmbFileShare\",\"description\":\"i\"}") + .toObject(AzureStorageSmbFileShareEndpointUpdateProperties.class); + Assertions.assertEquals("i", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureStorageSmbFileShareEndpointUpdateProperties model - = new AzureStorageSmbFileShareEndpointUpdateProperties().withDescription("dzxibqeojnxqbzvd"); + = new AzureStorageSmbFileShareEndpointUpdateProperties().withDescription("i"); model = BinaryData.fromObject(model).toObject(AzureStorageSmbFileShareEndpointUpdateProperties.class); - Assertions.assertEquals("dzxibqeojnxqbzvd", model.description()); + Assertions.assertEquals("i", model.description()); } } 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 new file mode 100644 index 000000000000..420e90e3d2ce --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionInnerTests.java @@ -0,0 +1,35 @@ +// 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.util.BinaryData; +import com.azure.resourcemanager.storagemover.fluent.models.ConnectionInner; +import com.azure.resourcemanager.storagemover.models.ConnectionProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ConnectionInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConnectionInner model = BinaryData.fromString( + "{\"properties\":{\"description\":\"nxipeil\",\"connectionStatus\":\"Stale\",\"privateLinkServiceId\":\"uaejxdultsk\",\"privateEndpointName\":\"btdzumveekg\",\"privateEndpointResourceId\":\"ozuhkfp\",\"jobList\":[\"yofd\",\"luu\",\"dttouwaboekqvkel\",\"smv\"],\"provisioningState\":\"Deleting\"},\"id\":\"jsflhhcaalnjix\",\"name\":\"sxyawjoyaqcs\",\"type\":\"yjpkiidzyexz\"}") + .toObject(ConnectionInner.class); + Assertions.assertEquals("nxipeil", model.properties().description()); + Assertions.assertEquals("uaejxdultsk", model.properties().privateLinkServiceId()); + Assertions.assertEquals("yofd", model.properties().jobList().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ConnectionInner model + = new ConnectionInner().withProperties(new ConnectionProperties().withDescription("nxipeil") + .withPrivateLinkServiceId("uaejxdultsk") + .withJobList(Arrays.asList("yofd", "luu", "dttouwaboekqvkel", "smv"))); + model = BinaryData.fromObject(model).toObject(ConnectionInner.class); + Assertions.assertEquals("nxipeil", model.properties().description()); + Assertions.assertEquals("uaejxdultsk", model.properties().privateLinkServiceId()); + Assertions.assertEquals("yofd", 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 new file mode 100644 index 000000000000..aedfed16bf96 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionListTests.java @@ -0,0 +1,19 @@ +// 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.util.BinaryData; +import com.azure.resourcemanager.storagemover.implementation.models.ConnectionList; +import org.junit.jupiter.api.Assertions; + +public final class ConnectionListTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConnectionList model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"description\":\"ktrmgucnapkt\",\"connectionStatus\":\"Approved\",\"privateLinkServiceId\":\"llwptfdy\",\"privateEndpointName\":\"fqbuaceopzf\",\"privateEndpointResourceId\":\"hhuao\",\"jobList\":[\"cq\",\"qxolzdahzx\"],\"provisioningState\":\"Failed\"},\"id\":\"gbkdmoizpos\",\"name\":\"mgrcfbu\",\"type\":\"rmfqjhhkxbpvj\"}],\"nextLink\":\"jhxxjyn\"}") + .toObject(ConnectionList.class); + Assertions.assertEquals("jhxxjyn", 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 new file mode 100644 index 000000000000..ae036aec4b55 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionPropertiesTests.java @@ -0,0 +1,33 @@ +// 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.util.BinaryData; +import com.azure.resourcemanager.storagemover.models.ConnectionProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ConnectionPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConnectionProperties model = BinaryData.fromString( + "{\"description\":\"lixhnrztfol\",\"connectionStatus\":\"Rejected\",\"privateLinkServiceId\":\"xknalaulppg\",\"privateEndpointName\":\"tpnapnyiropuhpig\",\"privateEndpointResourceId\":\"gylgqgitxmedjvcs\",\"jobList\":[\"qwwncw\"],\"provisioningState\":\"Succeeded\"}") + .toObject(ConnectionProperties.class); + Assertions.assertEquals("lixhnrztfol", model.description()); + Assertions.assertEquals("xknalaulppg", model.privateLinkServiceId()); + Assertions.assertEquals("qwwncw", model.jobList().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ConnectionProperties model = new ConnectionProperties().withDescription("lixhnrztfol") + .withPrivateLinkServiceId("xknalaulppg") + .withJobList(Arrays.asList("qwwncw")); + model = BinaryData.fromObject(model).toObject(ConnectionProperties.class); + Assertions.assertEquals("lixhnrztfol", model.description()); + Assertions.assertEquals("xknalaulppg", model.privateLinkServiceId()); + Assertions.assertEquals("qwwncw", 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 new file mode 100644 index 000000000000..cd7a21f2fb78 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsCreateOrUpdateWithResponseMockTests.java @@ -0,0 +1,47 @@ +// 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.Connection; +import com.azure.resourcemanager.storagemover.models.ConnectionProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ConnectionsCreateOrUpdateWithResponseMockTests { + @Test + public void testCreateOrUpdateWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"description\":\"bycnunvjsrtkf\",\"connectionStatus\":\"Disconnected\",\"privateLinkServiceId\":\"opqgikyzirtxdyux\",\"privateEndpointName\":\"jntpsewgioilqu\",\"privateEndpointResourceId\":\"ydxtqm\",\"jobList\":[\"xorgg\"],\"provisioningState\":\"Deleting\"},\"id\":\"aomtbghhavgrvkff\",\"name\":\"vjzhpjbib\",\"type\":\"jmfxumvf\"}"; + + 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)); + + Connection response = manager.connections() + .define("rxfrddhc") + .withExistingStorageMover("nepttwqmsni", "fcdmqnrojlpijn") + .withProperties(new ConnectionProperties().withDescription("tizzronasxif") + .withPrivateLinkServiceId("qyzhf") + .withJobList(Arrays.asList("xkk", "thrrgh"))) + .create(); + + Assertions.assertEquals("bycnunvjsrtkf", response.properties().description()); + Assertions.assertEquals("opqgikyzirtxdyux", response.properties().privateLinkServiceId()); + Assertions.assertEquals("xorgg", 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 new file mode 100644 index 000000000000..f6175371477a --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsGetWithResponseMockTests.java @@ -0,0 +1,41 @@ +// 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.Connection; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ConnectionsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"description\":\"aysjkixqtnqttez\",\"connectionStatus\":\"Approved\",\"privateLinkServiceId\":\"ffiakp\",\"privateEndpointName\":\"qqmtedltmmji\",\"privateEndpointResourceId\":\"eozphv\",\"jobList\":[\"y\",\"ncyg\",\"p\",\"vipmdscwxqupevzh\"],\"provisioningState\":\"Failed\"},\"id\":\"txhojujb\",\"name\":\"pelmcuvhixbjxyf\",\"type\":\"n\"}"; + + 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)); + + Connection response = manager.connections() + .getWithResponse("uenvrkp", "ou", "ibreb", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("aysjkixqtnqttez", response.properties().description()); + Assertions.assertEquals("ffiakp", response.properties().privateLinkServiceId()); + Assertions.assertEquals("y", 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 new file mode 100644 index 000000000000..127bf7d333f1 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ConnectionsListMockTests.java @@ -0,0 +1,41 @@ +// 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.http.rest.PagedIterable; +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.Connection; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ConnectionsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"description\":\"ywvtylbfpnc\",\"connectionStatus\":\"Rejected\",\"privateLinkServiceId\":\"oiwiithtywub\",\"privateEndpointName\":\"bihwqknfdnt\",\"privateEndpointResourceId\":\"chrdgoihxumwcto\",\"jobList\":[\"jl\"],\"provisioningState\":\"Failed\"},\"id\":\"dlwggytsbwtovv\",\"name\":\"gseinq\",\"type\":\"iufxqknpir\"}]}"; + + 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)); + + PagedIterable response + = manager.connections().list("lrcoolsttpki", "kkbnu", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("ywvtylbfpnc", response.iterator().next().properties().description()); + Assertions.assertEquals("oiwiithtywub", response.iterator().next().properties().privateLinkServiceId()); + Assertions.assertEquals("jl", response.iterator().next().properties().jobList().get(0)); + } +} diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBasePropertiesTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBasePropertiesTests.java index ba8d0e896a8b..f50fdfe79376 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBasePropertiesTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointBasePropertiesTests.java @@ -6,21 +6,25 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.EndpointBaseProperties; +import com.azure.resourcemanager.storagemover.models.EndpointKind; import org.junit.jupiter.api.Assertions; public final class EndpointBasePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EndpointBaseProperties model = BinaryData.fromString( - "{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"lyxwjkcprbnwbx\",\"provisioningState\":\"Succeeded\"}") + "{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"zuhtymwisdkfthwx\",\"endpointKind\":\"Source\",\"provisioningState\":\"Succeeded\"}") .toObject(EndpointBaseProperties.class); - Assertions.assertEquals("lyxwjkcprbnwbx", model.description()); + Assertions.assertEquals("zuhtymwisdkfthwx", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EndpointBaseProperties model = new EndpointBaseProperties().withDescription("lyxwjkcprbnwbx"); + EndpointBaseProperties model + = new EndpointBaseProperties().withDescription("zuhtymwisdkfthwx").withEndpointKind(EndpointKind.SOURCE); model = BinaryData.fromObject(model).toObject(EndpointBaseProperties.class); - Assertions.assertEquals("lyxwjkcprbnwbx", model.description()); + Assertions.assertEquals("zuhtymwisdkfthwx", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); } } 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 318d64089c4a..a2b68cfda0a4 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,23 +18,21 @@ public final class EndpointBaseUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EndpointBaseUpdateParameters model = BinaryData.fromString( - "{\"properties\":{\"endpointType\":\"EndpointBaseUpdateProperties\",\"description\":\"qp\"},\"identity\":{\"principalId\":\"ajionpimexgstxg\",\"tenantId\":\"odgmaajrmvdjwz\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"sycbkbfk\":{\"principalId\":\"clwhijcoejctbz\",\"clientId\":\"s\"},\"c\":{\"principalId\":\"kdkexxp\",\"clientId\":\"fmxa\"}}}}") + "{\"properties\":{\"endpointType\":\"EndpointBaseUpdateProperties\",\"description\":\"hjq\"},\"identity\":{\"principalId\":\"yeicxmqciwqvhk\",\"tenantId\":\"xuigdtopbobj\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"uhrzayvvt\":{\"principalId\":\"w\",\"clientId\":\"m\"}}}}") .toObject(EndpointBaseUpdateParameters.class); - Assertions.assertEquals("qp", model.properties().description()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); + Assertions.assertEquals("hjq", model.properties().description()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EndpointBaseUpdateParameters model = new EndpointBaseUpdateParameters() - .withProperties(new EndpointBaseUpdateProperties().withDescription("qp")) - .withIdentity( - new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf("sycbkbfk", new UserAssignedIdentity(), "c", new UserAssignedIdentity()))); + .withProperties(new EndpointBaseUpdateProperties().withDescription("hjq")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("uhrzayvvt", new UserAssignedIdentity()))); model = BinaryData.fromObject(model).toObject(EndpointBaseUpdateParameters.class); - Assertions.assertEquals("qp", model.properties().description()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); + Assertions.assertEquals("hjq", model.properties().description()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_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 336375a7a9ff..9900aacacb2c 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 @@ -12,15 +12,15 @@ public final class EndpointBaseUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EndpointBaseUpdateProperties model - = BinaryData.fromString("{\"endpointType\":\"EndpointBaseUpdateProperties\",\"description\":\"pg\"}") + = BinaryData.fromString("{\"endpointType\":\"EndpointBaseUpdateProperties\",\"description\":\"vdfgiotk\"}") .toObject(EndpointBaseUpdateProperties.class); - Assertions.assertEquals("pg", model.description()); + Assertions.assertEquals("vdfgiotk", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EndpointBaseUpdateProperties model = new EndpointBaseUpdateProperties().withDescription("pg"); + EndpointBaseUpdateProperties model = new EndpointBaseUpdateProperties().withDescription("vdfgiotk"); model = BinaryData.fromObject(model).toObject(EndpointBaseUpdateProperties.class); - Assertions.assertEquals("pg", model.description()); + Assertions.assertEquals("vdfgiotk", model.description()); } } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointInnerTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointInnerTests.java index f3ca3d4bec66..6010de4b2ab8 100644 --- a/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointInnerTests.java +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointInnerTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.fluent.models.EndpointInner; import com.azure.resourcemanager.storagemover.models.EndpointBaseProperties; +import com.azure.resourcemanager.storagemover.models.EndpointKind; import com.azure.resourcemanager.storagemover.models.ManagedServiceIdentity; import com.azure.resourcemanager.storagemover.models.ManagedServiceIdentityType; import com.azure.resourcemanager.storagemover.models.UserAssignedIdentity; @@ -18,23 +19,26 @@ public final class EndpointInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EndpointInner model = BinaryData.fromString( - "{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"b\",\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"tduqktapspwgcuer\",\"tenantId\":\"mkdo\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"ppbhtqqrolfp\":{\"principalId\":\"bmdg\",\"clientId\":\"jfddgmbmbe\"},\"jgzjaoyfhrtx\":{\"principalId\":\"s\",\"clientId\":\"gbquxigj\"}}},\"id\":\"n\",\"name\":\"rkujy\",\"type\":\"vlejuvfqa\"}") + "{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"b\",\"endpointKind\":\"Source\",\"provisioningState\":\"Deleting\"},\"identity\":{\"principalId\":\"uqktap\",\"tenantId\":\"wgcu\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"mbmbexppbh\":{\"principalId\":\"kdosvqw\",\"clientId\":\"mdgbbjfdd\"},\"jaoyfhrtx\":{\"principalId\":\"qrolfpf\",\"clientId\":\"algbquxigjyjg\"},\"wrlyxwjkcprb\":{\"principalId\":\"n\",\"clientId\":\"kujysvlejuvfq\"},\"dnrujqguhmuouqfp\":{\"principalId\":\"b\",\"clientId\":\"jvtbvpyss\"}}},\"id\":\"zw\",\"name\":\"nguitnwuizgazxu\",\"type\":\"izuckyfihrfidfvz\"}") .toObject(EndpointInner.class); Assertions.assertEquals("b", model.properties().description()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); + Assertions.assertEquals(EndpointKind.SOURCE, model.properties().endpointKind()); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.identity().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EndpointInner model - = new EndpointInner().withProperties(new EndpointBaseProperties().withDescription("b")) - .withIdentity(new ManagedServiceIdentity() - .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf("ppbhtqqrolfp", new UserAssignedIdentity(), "jgzjaoyfhrtx", new UserAssignedIdentity()))); + = new EndpointInner() + .withProperties(new EndpointBaseProperties().withDescription("b").withEndpointKind(EndpointKind.SOURCE)) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("mbmbexppbh", new UserAssignedIdentity(), "jaoyfhrtx", + new UserAssignedIdentity(), "wrlyxwjkcprb", new UserAssignedIdentity(), "dnrujqguhmuouqfp", + new UserAssignedIdentity()))); model = BinaryData.fromObject(model).toObject(EndpointInner.class); Assertions.assertEquals("b", model.properties().description()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.identity().type()); + Assertions.assertEquals(EndpointKind.SOURCE, model.properties().endpointKind()); + Assertions.assertEquals(ManagedServiceIdentityType.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/EndpointListTests.java b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/EndpointListTests.java index 6b7e646042d2..e3d2cc64b98f 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\":\"icxm\",\"provisioningState\":\"Canceled\"},\"identity\":{\"principalId\":\"vhkhixu\",\"tenantId\":\"dtopbob\",\"type\":\"None\",\"userAssignedIdentities\":{\"a\":{\"principalId\":\"e\",\"clientId\":\"a\"}}},\"id\":\"rzayv\",\"name\":\"t\",\"type\":\"gvdfgiotkftutq\"},{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"ngxlefgugnxkrxdq\",\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"hzrvqd\",\"tenantId\":\"bhj\",\"type\":\"None\",\"userAssignedIdentities\":{\"zlcuiywgqywgndrv\":{\"principalId\":\"h\",\"clientId\":\"fbowskanyk\"},\"lzevgbmqjqab\":{\"principalId\":\"hzgpphrcgyncocpe\",\"clientId\":\"vmmcoofs\"},\"wnfnbacf\":{\"principalId\":\"pmivkwlzu\",\"clientId\":\"c\"},\"feallnwsu\":{\"principalId\":\"nlebxetqgtzxd\",\"clientId\":\"qbqqwxr\"}}},\"id\":\"snjampmng\",\"name\":\"zscxaqwo\",\"type\":\"chcbonqvpkvlrxnj\"},{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"seiphe\",\"provisioningState\":\"Canceled\"},\"identity\":{\"principalId\":\"eyy\",\"tenantId\":\"nj\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"e\":{\"principalId\":\"grhpdjpju\",\"clientId\":\"sxazjpq\"},\"jzzvdud\":{\"principalId\":\"alhbx\",\"clientId\":\"e\"},\"xnltyfsoppu\":{\"principalId\":\"dslfhotwmcy\",\"clientId\":\"wlbjnpgacftade\"}}},\"id\":\"esnzwde\",\"name\":\"bavo\",\"type\":\"xzdmohctb\"},{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"udwxdndnvowguj\",\"provisioningState\":\"Failed\"},\"identity\":{\"principalId\":\"kcglhslaz\",\"tenantId\":\"yggdtjixh\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"cibvyvdcsitynn\":{\"principalId\":\"qweykhmenev\",\"clientId\":\"exfwhy\"},\"c\":{\"principalId\":\"mdectehfiqscjey\",\"clientId\":\"hezrkgq\"},\"qjpkcattpngjcrc\":{\"principalId\":\"efovgmk\",\"clientId\":\"leyyvx\"},\"eupfhyhltrpm\":{\"principalId\":\"sqpjhvmdajvn\",\"clientId\":\"ounqecano\"}}},\"id\":\"jmcmatuokthfu\",\"name\":\"uaodsfcpk\",\"type\":\"xodpuozmyzydagfu\"}],\"nextLink\":\"bezy\"}") + "{\"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\"}") .toObject(EndpointList.class); - Assertions.assertEquals("bezy", model.nextLink()); + Assertions.assertEquals("nzscxa", 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 7c88fc79cf2a..da9c507b7fb4 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 @@ -12,6 +12,7 @@ import com.azure.resourcemanager.storagemover.StorageMoverManager; import com.azure.resourcemanager.storagemover.models.Endpoint; import com.azure.resourcemanager.storagemover.models.EndpointBaseProperties; +import com.azure.resourcemanager.storagemover.models.EndpointKind; import com.azure.resourcemanager.storagemover.models.ManagedServiceIdentity; import com.azure.resourcemanager.storagemover.models.ManagedServiceIdentityType; import com.azure.resourcemanager.storagemover.models.UserAssignedIdentity; @@ -27,7 +28,7 @@ public final class EndpointsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"edyatrwyhqmibzyh\",\"provisioningState\":\"Failed\"},\"identity\":{\"principalId\":\"ypyynpcdpumnzg\",\"tenantId\":\"z\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"lwwrl\":{\"principalId\":\"knso\",\"clientId\":\"jhxbld\"},\"y\":{\"principalId\":\"m\",\"clientId\":\"cvokotllxdyhg\"},\"amqgxqquezikyw\":{\"principalId\":\"ogjltdtbnnhad\",\"clientId\":\"crkvcikhnv\"},\"cjzkzivgvvcna\":{\"principalId\":\"xkalla\",\"clientId\":\"elwuipi\"}}},\"id\":\"hyrnxxmu\",\"name\":\"edndr\",\"type\":\"v\"}"; + = "{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"juetaebur\",\"endpointKind\":\"Source\",\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"mz\",\"tenantId\":\"wabm\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ndo\":{\"principalId\":\"ifrvtpu\",\"clientId\":\"jmqlgkfb\"},\"tcje\":{\"principalId\":\"n\",\"clientId\":\"jcntuj\"}}},\"id\":\"twwaezkojvdcpzf\",\"name\":\"qouicybxarzgsz\",\"type\":\"foxciq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,15 +38,19 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Endpoint response = manager.endpoints() - .define("uu") - .withExistingStorageMover("tgadgvraeaen", "qnzarrwl") - .withProperties(new EndpointBaseProperties().withDescription("fqka")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("iyntorzihle", new UserAssignedIdentity()))) + .define("v") + .withExistingStorageMover("xsdszuempsb", "kfzbeyvpnqicvi") + .withProperties( + new EndpointBaseProperties().withDescription("jxdxrbuukz").withEndpointKind(EndpointKind.SOURCE)) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) + .withUserAssignedIdentities( + mapOf("ppriol", new UserAssignedIdentity(), "ucqdpfuvglsb", new UserAssignedIdentity(), + "ncormrlxqtvcof", new UserAssignedIdentity(), "n", new UserAssignedIdentity()))) .create(); - Assertions.assertEquals("edyatrwyhqmibzyh", response.properties().description()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("juetaebur", response.properties().description()); + Assertions.assertEquals(EndpointKind.SOURCE, response.properties().endpointKind()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_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 d0802f758cb8..87e6ee6805e2 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("bahwfl", "szdtmhrkwof", "yvoqa", com.azure.core.util.Context.NONE); + manager.endpoints().delete("wmewzsyy", "euzsoi", "judpfrxt", 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 a0314ad737ad..19f404266cad 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 @@ -11,6 +11,7 @@ import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.storagemover.StorageMoverManager; import com.azure.resourcemanager.storagemover.models.Endpoint; +import com.azure.resourcemanager.storagemover.models.EndpointKind; import com.azure.resourcemanager.storagemover.models.ManagedServiceIdentityType; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; @@ -22,7 +23,7 @@ public final class EndpointsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"ksmond\",\"provisioningState\":\"Failed\"},\"identity\":{\"principalId\":\"vypomgkopkwho\",\"tenantId\":\"pajqgxysm\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"helxprglya\":{\"principalId\":\"fqvm\",\"clientId\":\"xozap\"}}},\"id\":\"dckcbc\",\"name\":\"ejrjxgciqibrho\",\"type\":\"xsdqrhzoymibmrqy\"}"; + = "{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"ly\",\"endpointKind\":\"Source\",\"provisioningState\":\"Deleting\"},\"identity\":{\"principalId\":\"gebdunygaeq\",\"tenantId\":\"bqfatpxllrxcyjmo\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"hhyxxrw\":{\"principalId\":\"arm\",\"clientId\":\"dmjsjqb\"},\"xkgymareqnajxqu\":{\"principalId\":\"co\",\"clientId\":\"hp\"},\"mzqa\":{\"principalId\":\"hky\",\"clientId\":\"beddgssofw\"},\"udfnbyxba\":{\"principalId\":\"rmnjijpx\",\"clientId\":\"q\"}}},\"id\":\"bjyvay\",\"name\":\"fimrzrtuzqogse\",\"type\":\"nevfdnw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +33,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Endpoint response = manager.endpoints() - .getWithResponse("yhrfouyftaakcpw", "yzvqt", "nubexk", com.azure.core.util.Context.NONE) + .getWithResponse("ag", "rvimjwosytxitcsk", "cktqumiekkezzi", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ksmond", response.properties().description()); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("ly", response.properties().description()); + Assertions.assertEquals(EndpointKind.SOURCE, response.properties().endpointKind()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_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 70fd75a4be06..4cdbca29049b 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 @@ -12,6 +12,7 @@ import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.storagemover.StorageMoverManager; import com.azure.resourcemanager.storagemover.models.Endpoint; +import com.azure.resourcemanager.storagemover.models.EndpointKind; import com.azure.resourcemanager.storagemover.models.ManagedServiceIdentityType; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; @@ -23,7 +24,7 @@ public final class EndpointsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"washr\",\"provisioningState\":\"Canceled\"},\"identity\":{\"principalId\":\"nqxwbp\",\"tenantId\":\"ulpiuj\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"bdbutauvf\":{\"principalId\":\"pqiiobyuqe\",\"clientId\":\"qlpqwcciuq\"},\"koymkcd\":{\"principalId\":\"kuwhh\",\"clientId\":\"ykojoxafnndlpic\"}}},\"id\":\"bpkkpwdre\",\"name\":\"novvqfovljxy\",\"type\":\"suwsyrsnds\"}]}"; + = "{\"value\":[{\"properties\":{\"endpointType\":\"EndpointBaseProperties\",\"description\":\"iilivpdtiirqtd\",\"endpointKind\":\"Target\",\"provisioningState\":\"Deleting\"},\"identity\":{\"principalId\":\"zfgs\",\"tenantId\":\"yfxrx\",\"type\":\"None\",\"userAssignedIdentities\":{\"atdooaojkniod\":{\"principalId\":\"ramxjezwlwnw\",\"clientId\":\"qlcvydy\"},\"infwjlfltkacjve\":{\"principalId\":\"oebwnujhemms\",\"clientId\":\"dkcrodt\"}}},\"id\":\"dlfoakggkfp\",\"name\":\"gaowpulpqblylsyx\",\"type\":\"qjnsjervtia\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +34,10 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.endpoints().list("piexpbtgiw", "wo", com.azure.core.util.Context.NONE); + = manager.endpoints().list("thzvaytdwkqbrqu", "paxh", com.azure.core.util.Context.NONE); - Assertions.assertEquals("washr", response.iterator().next().properties().description()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, - response.iterator().next().identity().type()); + Assertions.assertEquals("iilivpdtiirqtd", response.iterator().next().properties().description()); + Assertions.assertEquals(EndpointKind.TARGET, response.iterator().next().properties().endpointKind()); + Assertions.assertEquals(ManagedServiceIdentityType.NONE, 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 46185bea20d3..afd7c38f08f4 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 @@ -7,45 +7,87 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionInner; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; +import com.azure.resourcemanager.storagemover.models.Frequency; import com.azure.resourcemanager.storagemover.models.JobDefinitionPropertiesSourceTargetMap; import com.azure.resourcemanager.storagemover.models.JobType; +import com.azure.resourcemanager.storagemover.models.Minute; +import com.azure.resourcemanager.storagemover.models.ScheduleInfo; +import com.azure.resourcemanager.storagemover.models.Time; +import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class JobDefinitionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobDefinitionInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"vvnchrkcc\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"juqk\",\"sourceResourceId\":\"sa\",\"sourceSubpath\":\"wkuofoskghsauu\",\"targetName\":\"mjmvxieduugidyjr\",\"targetResourceId\":\"byao\",\"targetSubpath\":\"e\",\"latestJobRunName\":\"sonpclhocohs\",\"latestJobRunResourceId\":\"ev\",\"latestJobRunStatus\":\"Queued\",\"agentName\":\"zfbuhf\",\"agentResourceId\":\"faxkffeii\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{\"properties\":{}},\"targetEndpoint\":{\"properties\":{}}},{\"sourceEndpoint\":{\"properties\":{}},\"targetEndpoint\":{\"properties\":{}}}]},\"provisioningState\":\"Deleting\"},\"id\":\"xmzsbbzogg\",\"name\":\"grxwbu\",\"type\":\"vjxxjnsp\"}") + "{\"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\":\"Onetime\",\"isActive\":false,\"executionTime\":{\"hour\":2086943152,\"minute\":30},\"startDate\":\"2021-05-11T11:35:52Z\",\"daysOfWeek\":[\"yifqrvkdvjsllrmv\",\"d\",\"watkpnpulexxb\",\"zwtruwiqzbqjvsov\"],\"daysOfMonth\":[1785940860,1778259828],\"cronExpression\":\"spkwlhzdobpxjm\",\"endDate\":\"2021-08-04T14:43:27Z\"},\"dataIntegrityValidation\":\"SaveFileMD5\",\"preservePermissions\":true},\"id\":\"rkcciwwzjuqk\",\"name\":\"rsa\",\"type\":\"iwkuofos\"}") .toObject(JobDefinitionInner.class); - Assertions.assertEquals("vvnchrkcc", model.description()); + Assertions.assertEquals("f", model.description()); Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, model.jobType()); - Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("juqk", model.sourceName()); - Assertions.assertEquals("wkuofoskghsauu", model.sourceSubpath()); - Assertions.assertEquals("mjmvxieduugidyjr", model.targetName()); - Assertions.assertEquals("e", model.targetSubpath()); - Assertions.assertEquals("zfbuhf", model.agentName()); + 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.ONETIME, model.schedule().frequency()); + Assertions.assertFalse(model.schedule().isActive()); + Assertions.assertEquals(2086943152, model.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.THREE_ZERO, model.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-11T11:35:52Z"), model.schedule().startDate()); + Assertions.assertEquals("yifqrvkdvjsllrmv", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(1785940860, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("spkwlhzdobpxjm", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-04T14:43:27Z"), model.schedule().endDate()); + Assertions.assertEquals(DataIntegrityValidation.SAVE_FILE_MD5, model.dataIntegrityValidation()); + Assertions.assertTrue(model.preservePermissions()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - JobDefinitionInner model = new JobDefinitionInner().withDescription("vvnchrkcc") + JobDefinitionInner model = new JobDefinitionInner().withDescription("f") .withJobType(JobType.ON_PREM_TO_CLOUD) - .withCopyMode(CopyMode.MIRROR) - .withSourceName("juqk") - .withSourceSubpath("wkuofoskghsauu") - .withTargetName("mjmvxieduugidyjr") - .withTargetSubpath("e") - .withAgentName("zfbuhf") - .withSourceTargetMap(new JobDefinitionPropertiesSourceTargetMap()); + .withCopyMode(CopyMode.ADDITIVE) + .withSourceName("jeyp") + .withSourceSubpath("mkqsleyyv") + .withTargetName("yqjpkcatt") + .withTargetSubpath("jvnysounqe") + .withAgentName("thfuiuaodsfcpkvx") + .withSourceTargetMap(new JobDefinitionPropertiesSourceTargetMap()) + .withConnections(Arrays.asList("rdxwzywqsm", "surex", "moryocfsfksym", "dystkiiuxhqyud")) + .withSchedule(new ScheduleInfo().withFrequency(Frequency.ONETIME) + .withIsActive(false) + .withExecutionTime(new Time().withHour(2086943152).withMinute(Minute.THREE_ZERO)) + .withStartDate(OffsetDateTime.parse("2021-05-11T11:35:52Z")) + .withDaysOfWeek(Arrays.asList("yifqrvkdvjsllrmv", "d", "watkpnpulexxb", "zwtruwiqzbqjvsov")) + .withDaysOfMonth(Arrays.asList(1785940860, 1778259828)) + .withCronExpression("spkwlhzdobpxjm") + .withEndDate(OffsetDateTime.parse("2021-08-04T14:43:27Z"))) + .withDataIntegrityValidation(DataIntegrityValidation.SAVE_FILE_MD5) + .withPreservePermissions(true); model = BinaryData.fromObject(model).toObject(JobDefinitionInner.class); - Assertions.assertEquals("vvnchrkcc", model.description()); + Assertions.assertEquals("f", model.description()); Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, model.jobType()); - Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("juqk", model.sourceName()); - Assertions.assertEquals("wkuofoskghsauu", model.sourceSubpath()); - Assertions.assertEquals("mjmvxieduugidyjr", model.targetName()); - Assertions.assertEquals("e", model.targetSubpath()); - Assertions.assertEquals("zfbuhf", model.agentName()); + 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.ONETIME, model.schedule().frequency()); + Assertions.assertFalse(model.schedule().isActive()); + Assertions.assertEquals(2086943152, model.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.THREE_ZERO, model.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-11T11:35:52Z"), model.schedule().startDate()); + Assertions.assertEquals("yifqrvkdvjsllrmv", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(1785940860, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("spkwlhzdobpxjm", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-04T14:43:27Z"), model.schedule().endDate()); + Assertions.assertEquals(DataIntegrityValidation.SAVE_FILE_MD5, model.dataIntegrityValidation()); + Assertions.assertTrue(model.preservePermissions()); } } 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 ca1dc8ec9a68..4cbe98bb211f 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\":\"mkfssxqukkfplgm\",\"jobType\":\"CloudToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"kjz\",\"sourceResourceId\":\"es\",\"sourceSubpath\":\"vlopwiyighx\",\"targetName\":\"kdwzbaiuebbaumny\",\"targetResourceId\":\"ped\",\"targetSubpath\":\"jn\",\"latestJobRunName\":\"ckhsmtxpsieb\",\"latestJobRunResourceId\":\"hvpesapskrdqm\",\"latestJobRunStatus\":\"Canceled\",\"agentName\":\"htldwk\",\"agentResourceId\":\"xuutkncwscwsv\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Succeeded\"},\"id\":\"wrupqsxvnmicykvc\",\"name\":\"o\",\"type\":\"eil\"},{\"properties\":{\"description\":\"notyfjfcnjbkcn\",\"jobType\":\"CloudToCloud\",\"copyMode\":\"Additive\",\"sourceName\":\"ttkphywpnvjtoqne\",\"sourceResourceId\":\"clfp\",\"sourceSubpath\":\"hoxus\",\"targetName\":\"rpabg\",\"targetResourceId\":\"psbjta\",\"targetSubpath\":\"ugxywpmueef\",\"latestJobRunName\":\"wfqkquj\",\"latestJobRunResourceId\":\"suyonobglaocq\",\"latestJobRunStatus\":\"Succeeded\",\"agentName\":\"mgyudxytlmoyrxv\",\"agentResourceId\":\"u\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Canceled\"},\"id\":\"hdzhlrqj\",\"name\":\"hckfrlhrx\",\"type\":\"bkyvp\"},{\"properties\":{\"description\":\"anuzbpzkafkuw\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Additive\",\"sourceName\":\"wbme\",\"sourceResourceId\":\"seyvj\",\"sourceSubpath\":\"rts\",\"targetName\":\"hspkdeemao\",\"targetResourceId\":\"xagkvtmelmqkrh\",\"targetSubpath\":\"vljua\",\"latestJobRunName\":\"quhcdhmduala\",\"latestJobRunResourceId\":\"qpv\",\"latestJobRunStatus\":\"PausedByBandwidthManagement\",\"agentName\":\"ws\",\"agentResourceId\":\"r\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Succeeded\"},\"id\":\"mzlfmisgwb\",\"name\":\"b\",\"type\":\"e\"}],\"nextLink\":\"awkz\"}") + "{\"value\":[{\"properties\":{\"description\":\"fhvpesaps\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"mhjjdhtldwkyzx\",\"sourceResourceId\":\"tkncwsc\",\"sourceSubpath\":\"vlxotogtwrupqsx\",\"targetName\":\"nmic\",\"targetResourceId\":\"vce\",\"targetSubpath\":\"eil\",\"latestJobRunName\":\"notyfjfcnjbkcn\",\"latestJobRunResourceId\":\"hbttkphyw\",\"latestJobRunStatus\":\"Canceled\",\"agentName\":\"t\",\"agentResourceId\":\"nermcl\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Deleting\",\"connections\":[\"scrpabgyepsbjt\",\"zq\",\"gxywpmue\",\"fjz\"],\"schedule\":{\"frequency\":\"Daily\",\"isActive\":true,\"executionTime\":{\"hour\":462613120,\"minute\":0},\"startDate\":\"2021-07-14T16:34:27Z\",\"daysOfWeek\":[\"onobglaocqx\",\"ccm\"],\"daysOfMonth\":[1054992005,435564330,1209996134],\"cronExpression\":\"lmoyrx\",\"endDate\":\"2021-08-04T10:24:08Z\"},\"dataIntegrityValidation\":\"None\",\"preservePermissions\":false},\"id\":\"ntxhdzhlrqjbhck\",\"name\":\"rlhrxs\",\"type\":\"kyv\"},{\"properties\":{\"description\":\"ca\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"p\",\"sourceResourceId\":\"afkuwb\",\"sourceSubpath\":\"nwbmeh\",\"targetName\":\"seyvj\",\"targetResourceId\":\"rts\",\"targetSubpath\":\"spkdee\",\"latestJobRunName\":\"ofmxagkvtmelmqkr\",\"latestJobRunResourceId\":\"hvljuahaquh\",\"latestJobRunStatus\":\"Canceling\",\"agentName\":\"duala\",\"agentResourceId\":\"qpv\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Succeeded\",\"connections\":[\"r\",\"vxpvgomz\",\"fmisg\"],\"schedule\":{\"frequency\":\"Weekly\",\"isActive\":false,\"executionTime\":{\"hour\":85144126,\"minute\":30},\"startDate\":\"2021-03-30T10:55:40Z\",\"daysOfWeek\":[\"baliourqhakauha\",\"hsfwxosowzxcug\",\"cjooxdjebwpucwwf\"],\"daysOfMonth\":[337559995,1748456219],\"cronExpression\":\"euecivyhzceuoj\",\"endDate\":\"2021-08-06T17:35:05Z\"},\"dataIntegrityValidation\":\"SaveFileMD5\",\"preservePermissions\":true},\"id\":\"otwmcdyt\",\"name\":\"x\",\"type\":\"it\"},{\"properties\":{\"description\":\"rjaw\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Additive\",\"sourceName\":\"xhniskxfbkpycgk\",\"sourceResourceId\":\"ndnhj\",\"sourceSubpath\":\"uwhvylwzbtdhxujz\",\"targetName\":\"bm\",\"targetResourceId\":\"wuwprzqlv\",\"targetSubpath\":\"alupjm\",\"latestJobRunName\":\"fxobbcsws\",\"latestJobRunResourceId\":\"jriplrbpbewtghf\",\"latestJobRunStatus\":\"Canceled\",\"agentName\":\"gw\",\"agentResourceId\":\"vlvqhjkbegi\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Deleting\",\"connections\":[\"wwaloayqcgwrt\",\"j\"],\"schedule\":{\"frequency\":\"Weekly\",\"isActive\":true,\"executionTime\":{\"hour\":598094792,\"minute\":30},\"startDate\":\"2021-09-28T00:19:47Z\",\"daysOfWeek\":[\"gmtsavjcbpwxqpsr\",\"nftguvriuhpr\",\"mdyvxqtayriw\"],\"daysOfMonth\":[1692678524],\"cronExpression\":\"bexrmcq\",\"endDate\":\"2021-02-16T05:25:07Z\"},\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"preservePermissions\":false},\"id\":\"knme\",\"name\":\"qsgzvahapj\",\"type\":\"zhpvgqzcjrvxd\"}],\"nextLink\":\"lmwlxkvugfhzo\"}") .toObject(JobDefinitionList.class); - Assertions.assertEquals("awkz", model.nextLink()); + Assertions.assertEquals("lmwlxkvugfhzo", 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 191ecb710dee..1eb03a8cda9a 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\":\"pewr\",\"sourceEndpointResourceId\":\"mwvvjektcxsenhw\",\"awsS3BucketId\":\"s\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"zpwv\",\"targetEndpointResourceId\":\"dqgbiqylihkaetc\",\"azureStorageAccountResourceId\":\"vfcivfsnkymuc\",\"azureStorageBlobContainerName\":\"hjfbebrjcxe\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"wutttxfvjrbi\",\"sourceEndpointResourceId\":\"hxepcyvahfnlj\",\"awsS3BucketId\":\"qxj\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"j\",\"targetEndpointResourceId\":\"idokgjlj\",\"azureStorageAccountResourceId\":\"xgvcl\",\"azureStorageBlobContainerName\":\"gsncghkjeszz\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"jhtxfvgxbfsmxne\",\"sourceEndpointResourceId\":\"pvecxgodeb\",\"awsS3BucketId\":\"kk\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"pukgriwflzlfb\",\"targetEndpointResourceId\":\"puz\",\"azureStorageAccountResourceId\":\"ispnqzahmgkbrp\",\"azureStorageBlobContainerName\":\"dhibnuq\"}}}]}") + "{\"value\":[{\"sourceEndpoint\":{\"properties\":{\"name\":\"oqqnwvlryav\",\"sourceEndpointResourceId\":\"heun\",\"awsS3BucketId\":\"qhgyxzkonocukok\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"xuconu\",\"targetEndpointResourceId\":\"zf\",\"azureStorageAccountResourceId\":\"eyp\",\"azureStorageBlobContainerName\":\"rmjmwvvjektc\"}}},{\"sourceEndpoint\":{\"properties\":{\"name\":\"nhwlrsffrzpwvl\",\"sourceEndpointResourceId\":\"q\",\"awsS3BucketId\":\"iqylihkaetck\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"civfsnkymuctq\",\"targetEndpointResourceId\":\"fbebrjcxer\",\"azureStorageAccountResourceId\":\"wutttxfvjrbi\",\"azureStorageBlobContainerName\":\"hxepcyvahfnlj\"}}}]}") .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 409c5109f74c..d0f3e9d2e1e4 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 @@ -7,45 +7,87 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionProperties; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; +import com.azure.resourcemanager.storagemover.models.Frequency; import com.azure.resourcemanager.storagemover.models.JobDefinitionPropertiesSourceTargetMap; import com.azure.resourcemanager.storagemover.models.JobType; +import com.azure.resourcemanager.storagemover.models.Minute; +import com.azure.resourcemanager.storagemover.models.ScheduleInfo; +import com.azure.resourcemanager.storagemover.models.Time; +import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class JobDefinitionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobDefinitionProperties model = BinaryData.fromString( - "{\"description\":\"ptkoenkoukn\",\"jobType\":\"CloudToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"tiukbldngkpoci\",\"sourceResourceId\":\"z\",\"sourceSubpath\":\"o\",\"targetName\":\"gukgjnpiucgygevq\",\"targetResourceId\":\"typmrbpizcdrqjsd\",\"targetSubpath\":\"dnfyhxdeoejzicwi\",\"latestJobRunName\":\"jttgzf\",\"latestJobRunResourceId\":\"shcbkhajdeyeamdp\",\"latestJobRunStatus\":\"Started\",\"agentName\":\"lpbuxwgipwhonowk\",\"agentResourceId\":\"hwankixzbinjepu\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{\"properties\":{\"name\":\"nuzo\",\"sourceEndpointResourceId\":\"tiyqzrnkcqv\",\"awsS3BucketId\":\"lwh\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"icohoqqnwvl\",\"targetEndpointResourceId\":\"avwhheunm\",\"azureStorageAccountResourceId\":\"hgyxzkonoc\",\"azureStorageBlobContainerName\":\"oklyaxuconuq\"}}}]},\"provisioningState\":\"Canceled\"}") + "{\"description\":\"hsauuimjmvxied\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"dyjrrfbyaosv\",\"sourceResourceId\":\"csonpclhoco\",\"sourceSubpath\":\"lkevle\",\"targetName\":\"gz\",\"targetResourceId\":\"u\",\"targetSubpath\":\"mvfaxkffeiith\",\"latestJobRunName\":\"m\",\"latestJobRunResourceId\":\"yvshxmz\",\"latestJobRunStatus\":\"Succeeded\",\"agentName\":\"oggigrxwburv\",\"agentResourceId\":\"xjnspy\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{\"properties\":{\"name\":\"nkoukn\",\"sourceEndpointResourceId\":\"dwtiukbldngkp\",\"awsS3BucketId\":\"ipazyxoegukgjnpi\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"ygevqzntypmrbpiz\",\"targetEndpointResourceId\":\"r\",\"azureStorageAccountResourceId\":\"sdpydnfyhxdeoejz\",\"azureStorageBlobContainerName\":\"w\"}}}]},\"provisioningState\":\"Failed\",\"connections\":[\"tgzfbishcbkh\",\"jdeyeamdpha\"],\"schedule\":{\"frequency\":\"Onetime\",\"isActive\":true,\"executionTime\":{\"hour\":73243902,\"minute\":30},\"startDate\":\"2021-08-01T09:40:28Z\",\"daysOfWeek\":[\"honowkgshwank\",\"xzbinjeputt\"],\"daysOfMonth\":[2061883120,998969185],\"cronExpression\":\"zoqftiyqzrnkcqvy\",\"endDate\":\"2021-11-01T04:15:41Z\"},\"dataIntegrityValidation\":\"None\",\"preservePermissions\":true}") .toObject(JobDefinitionProperties.class); - Assertions.assertEquals("ptkoenkoukn", model.description()); - Assertions.assertEquals(JobType.CLOUD_TO_CLOUD, model.jobType()); + Assertions.assertEquals("hsauuimjmvxied", model.description()); + Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, model.jobType()); Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("tiukbldngkpoci", model.sourceName()); - Assertions.assertEquals("o", model.sourceSubpath()); - Assertions.assertEquals("gukgjnpiucgygevq", model.targetName()); - Assertions.assertEquals("dnfyhxdeoejzicwi", model.targetSubpath()); - Assertions.assertEquals("lpbuxwgipwhonowk", model.agentName()); + Assertions.assertEquals("dyjrrfbyaosv", model.sourceName()); + Assertions.assertEquals("lkevle", model.sourceSubpath()); + Assertions.assertEquals("gz", model.targetName()); + Assertions.assertEquals("mvfaxkffeiith", model.targetSubpath()); + Assertions.assertEquals("oggigrxwburv", model.agentName()); + Assertions.assertEquals("tgzfbishcbkh", model.connections().get(0)); + Assertions.assertEquals(Frequency.ONETIME, model.schedule().frequency()); + Assertions.assertTrue(model.schedule().isActive()); + Assertions.assertEquals(73243902, model.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.THREE_ZERO, model.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-01T09:40:28Z"), model.schedule().startDate()); + Assertions.assertEquals("honowkgshwank", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(2061883120, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("zoqftiyqzrnkcqvy", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-01T04:15:41Z"), model.schedule().endDate()); + Assertions.assertEquals(DataIntegrityValidation.NONE, model.dataIntegrityValidation()); + Assertions.assertTrue(model.preservePermissions()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - JobDefinitionProperties model = new JobDefinitionProperties().withDescription("ptkoenkoukn") - .withJobType(JobType.CLOUD_TO_CLOUD) + JobDefinitionProperties model = new JobDefinitionProperties().withDescription("hsauuimjmvxied") + .withJobType(JobType.ON_PREM_TO_CLOUD) .withCopyMode(CopyMode.MIRROR) - .withSourceName("tiukbldngkpoci") - .withSourceSubpath("o") - .withTargetName("gukgjnpiucgygevq") - .withTargetSubpath("dnfyhxdeoejzicwi") - .withAgentName("lpbuxwgipwhonowk") - .withSourceTargetMap(new JobDefinitionPropertiesSourceTargetMap()); + .withSourceName("dyjrrfbyaosv") + .withSourceSubpath("lkevle") + .withTargetName("gz") + .withTargetSubpath("mvfaxkffeiith") + .withAgentName("oggigrxwburv") + .withSourceTargetMap(new JobDefinitionPropertiesSourceTargetMap()) + .withConnections(Arrays.asList("tgzfbishcbkh", "jdeyeamdpha")) + .withSchedule(new ScheduleInfo().withFrequency(Frequency.ONETIME) + .withIsActive(true) + .withExecutionTime(new Time().withHour(73243902).withMinute(Minute.THREE_ZERO)) + .withStartDate(OffsetDateTime.parse("2021-08-01T09:40:28Z")) + .withDaysOfWeek(Arrays.asList("honowkgshwank", "xzbinjeputt")) + .withDaysOfMonth(Arrays.asList(2061883120, 998969185)) + .withCronExpression("zoqftiyqzrnkcqvy") + .withEndDate(OffsetDateTime.parse("2021-11-01T04:15:41Z"))) + .withDataIntegrityValidation(DataIntegrityValidation.NONE) + .withPreservePermissions(true); model = BinaryData.fromObject(model).toObject(JobDefinitionProperties.class); - Assertions.assertEquals("ptkoenkoukn", model.description()); - Assertions.assertEquals(JobType.CLOUD_TO_CLOUD, model.jobType()); + Assertions.assertEquals("hsauuimjmvxied", model.description()); + Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, model.jobType()); Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("tiukbldngkpoci", model.sourceName()); - Assertions.assertEquals("o", model.sourceSubpath()); - Assertions.assertEquals("gukgjnpiucgygevq", model.targetName()); - Assertions.assertEquals("dnfyhxdeoejzicwi", model.targetSubpath()); - Assertions.assertEquals("lpbuxwgipwhonowk", model.agentName()); + Assertions.assertEquals("dyjrrfbyaosv", model.sourceName()); + Assertions.assertEquals("lkevle", model.sourceSubpath()); + Assertions.assertEquals("gz", model.targetName()); + Assertions.assertEquals("mvfaxkffeiith", model.targetSubpath()); + Assertions.assertEquals("oggigrxwburv", model.agentName()); + Assertions.assertEquals("tgzfbishcbkh", model.connections().get(0)); + Assertions.assertEquals(Frequency.ONETIME, model.schedule().frequency()); + Assertions.assertTrue(model.schedule().isActive()); + Assertions.assertEquals(73243902, model.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.THREE_ZERO, model.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-01T09:40:28Z"), model.schedule().startDate()); + Assertions.assertEquals("honowkgshwank", model.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(2061883120, model.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("zoqftiyqzrnkcqvy", model.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-01T04:15:41Z"), model.schedule().endDate()); + Assertions.assertEquals(DataIntegrityValidation.NONE, model.dataIntegrityValidation()); + Assertions.assertTrue(model.preservePermissions()); } } 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 3fd0d7d1bb6a..6594e322feb4 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 @@ -6,29 +6,36 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; import com.azure.resourcemanager.storagemover.models.JobDefinitionUpdateParameters; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class JobDefinitionUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - JobDefinitionUpdateParameters model = BinaryData - .fromString( - "{\"properties\":{\"description\":\"zpfzabglc\",\"copyMode\":\"Mirror\",\"agentName\":\"tcty\"}}") + JobDefinitionUpdateParameters model = BinaryData.fromString( + "{\"properties\":{\"description\":\"txhp\",\"copyMode\":\"Additive\",\"agentName\":\"pfza\",\"connections\":[\"cuh\",\"wtctyqi\",\"lbbovplw\",\"bhvgy\"],\"dataIntegrityValidation\":\"SaveVerifyFileMD5\"}}") .toObject(JobDefinitionUpdateParameters.class); - Assertions.assertEquals("zpfzabglc", model.description()); - Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("tcty", model.agentName()); + Assertions.assertEquals("txhp", model.description()); + Assertions.assertEquals(CopyMode.ADDITIVE, model.copyMode()); + Assertions.assertEquals("pfza", model.agentName()); + Assertions.assertEquals("cuh", model.connections().get(0)); + Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, model.dataIntegrityValidation()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - JobDefinitionUpdateParameters model = new JobDefinitionUpdateParameters().withDescription("zpfzabglc") - .withCopyMode(CopyMode.MIRROR) - .withAgentName("tcty"); + JobDefinitionUpdateParameters model = new JobDefinitionUpdateParameters().withDescription("txhp") + .withCopyMode(CopyMode.ADDITIVE) + .withAgentName("pfza") + .withConnections(Arrays.asList("cuh", "wtctyqi", "lbbovplw", "bhvgy")) + .withDataIntegrityValidation(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5); model = BinaryData.fromObject(model).toObject(JobDefinitionUpdateParameters.class); - Assertions.assertEquals("zpfzabglc", model.description()); - Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("tcty", model.agentName()); + Assertions.assertEquals("txhp", model.description()); + Assertions.assertEquals(CopyMode.ADDITIVE, model.copyMode()); + Assertions.assertEquals("pfza", model.agentName()); + Assertions.assertEquals("cuh", model.connections().get(0)); + Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, model.dataIntegrityValidation()); } } 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 a2d03cc3da6a..33f02ca55d1c 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 @@ -7,27 +7,35 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.storagemover.fluent.models.JobDefinitionUpdateProperties; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class JobDefinitionUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - JobDefinitionUpdateProperties model - = BinaryData.fromString("{\"description\":\"klbb\",\"copyMode\":\"Mirror\",\"agentName\":\"wzbhvgyugu\"}") - .toObject(JobDefinitionUpdateProperties.class); - Assertions.assertEquals("klbb", model.description()); + JobDefinitionUpdateProperties model = BinaryData.fromString( + "{\"description\":\"svmkfssxquk\",\"copyMode\":\"Mirror\",\"agentName\":\"gmgsxnkjzkde\",\"connections\":[\"vlopwiyighx\",\"kdwzbaiuebbaumny\",\"upedeojnabckhs\",\"txp\"],\"dataIntegrityValidation\":\"None\"}") + .toObject(JobDefinitionUpdateProperties.class); + Assertions.assertEquals("svmkfssxquk", model.description()); Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("wzbhvgyugu", model.agentName()); + Assertions.assertEquals("gmgsxnkjzkde", model.agentName()); + Assertions.assertEquals("vlopwiyighx", model.connections().get(0)); + Assertions.assertEquals(DataIntegrityValidation.NONE, model.dataIntegrityValidation()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - JobDefinitionUpdateProperties model = new JobDefinitionUpdateProperties().withDescription("klbb") + JobDefinitionUpdateProperties model = new JobDefinitionUpdateProperties().withDescription("svmkfssxquk") .withCopyMode(CopyMode.MIRROR) - .withAgentName("wzbhvgyugu"); + .withAgentName("gmgsxnkjzkde") + .withConnections(Arrays.asList("vlopwiyighx", "kdwzbaiuebbaumny", "upedeojnabckhs", "txp")) + .withDataIntegrityValidation(DataIntegrityValidation.NONE); model = BinaryData.fromObject(model).toObject(JobDefinitionUpdateProperties.class); - Assertions.assertEquals("klbb", model.description()); + Assertions.assertEquals("svmkfssxquk", model.description()); Assertions.assertEquals(CopyMode.MIRROR, model.copyMode()); - Assertions.assertEquals("wzbhvgyugu", model.agentName()); + Assertions.assertEquals("gmgsxnkjzkde", model.agentName()); + Assertions.assertEquals("vlopwiyighx", model.connections().get(0)); + Assertions.assertEquals(DataIntegrityValidation.NONE, model.dataIntegrityValidation()); } } 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 08bec0d1d47c..d5a5aa2cbbdf 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 @@ -11,11 +11,17 @@ import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.storagemover.StorageMoverManager; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; +import com.azure.resourcemanager.storagemover.models.Frequency; import com.azure.resourcemanager.storagemover.models.JobDefinition; import com.azure.resourcemanager.storagemover.models.JobDefinitionPropertiesSourceTargetMap; import com.azure.resourcemanager.storagemover.models.JobType; +import com.azure.resourcemanager.storagemover.models.Minute; +import com.azure.resourcemanager.storagemover.models.ScheduleInfo; +import com.azure.resourcemanager.storagemover.models.Time; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -24,7 +30,7 @@ public final class JobDefinitionsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"uuximerq\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"yznkby\",\"sourceResourceId\":\"t\",\"sourceSubpath\":\"fhpagmhrskdsnf\",\"targetName\":\"sd\",\"targetResourceId\":\"kgtdlmkkze\",\"targetSubpath\":\"l\",\"latestJobRunName\":\"wpusdsttwvogv\",\"latestJobRunResourceId\":\"ejdcngqqmoakuf\",\"latestJobRunStatus\":\"Succeeded\",\"agentName\":\"rwr\",\"agentResourceId\":\"rtwaenuuzko\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Canceled\"},\"id\":\"dwoyuhhziuiefoz\",\"name\":\"hdmsmlmzqhoftrm\",\"type\":\"equi\"}"; + = "{\"properties\":{\"description\":\"s\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"rqufegxuvwz\",\"sourceResourceId\":\"nhlmctlpdng\",\"sourceSubpath\":\"vgbmhr\",\"targetName\":\"xkw\",\"targetResourceId\":\"ijejvegrhbpn\",\"targetSubpath\":\"xexccbdreaxhcexd\",\"latestJobRunName\":\"vqahqkghtpwi\",\"latestJobRunResourceId\":\"hyjsvfycx\",\"latestJobRunStatus\":\"PausedByBandwidthManagement\",\"agentName\":\"oowvrv\",\"agentResourceId\":\"gjqppy\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Succeeded\",\"connections\":[\"yhgfipnsx\",\"mcwaekrrjr\",\"afxtsgum\",\"jglikkxwslolb\"],\"schedule\":{\"frequency\":\"Weekly\",\"isActive\":false,\"executionTime\":{\"hour\":613388775,\"minute\":30},\"startDate\":\"2021-08-06T01:26:51Z\",\"daysOfWeek\":[\"ktgplcr\",\"wjxeznoigbr\"],\"daysOfMonth\":[509080980],\"cronExpression\":\"kpnb\",\"endDate\":\"2021-11-04T15:42:06Z\"},\"dataIntegrityValidation\":\"SaveFileMD5\",\"preservePermissions\":false},\"id\":\"kagfhsxtt\",\"name\":\"ugzxnf\",\"type\":\"azpxdtnkdmkqjjl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,26 +40,49 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobDefinition response = manager.jobDefinitions() - .define("btndo") - .withExistingProject("xwabmqoe", "kif", "vtpuqujmqlgk") + .define("cyajguqf") + .withExistingProject("mtnvyq", "atkzwpcnpw", "cjaesgvvs") .withCopyMode(CopyMode.ADDITIVE) - .withSourceName("ntuji") - .withTargetName("zkoj") - .withDescription("n") + .withSourceName("kfxu") + .withTargetName("celve") + .withDescription("ygz") .withJobType(JobType.ON_PREM_TO_CLOUD) - .withSourceSubpath("wwa") - .withTargetSubpath("foqouicybx") - .withAgentName("idoamciodhkha") + .withSourceSubpath("qvpsvuoymg") + .withTargetSubpath("eokerqwkyhkobopg") + .withAgentName("wccsnjvcdwxlpqek") .withSourceTargetMap(new JobDefinitionPropertiesSourceTargetMap()) + .withConnections(Arrays.asList("tmdvypgikdgs", "ywkbirryuzhlhkjo")) + .withSchedule(new ScheduleInfo().withFrequency(Frequency.ONETIME) + .withIsActive(true) + .withExecutionTime(new Time().withHour(1775495028).withMinute(Minute.ZERO)) + .withStartDate(OffsetDateTime.parse("2021-11-30T04:00:17Z")) + .withDaysOfWeek(Arrays.asList("vgoup")) + .withDaysOfMonth(Arrays.asList(487870725, 781426249)) + .withCronExpression("ggjioolvr") + .withEndDate(OffsetDateTime.parse("2021-01-31T00:57:49Z"))) + .withDataIntegrityValidation(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5) + .withPreservePermissions(false) .create(); - Assertions.assertEquals("uuximerq", response.description()); + Assertions.assertEquals("s", response.description()); Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, response.jobType()); Assertions.assertEquals(CopyMode.MIRROR, response.copyMode()); - Assertions.assertEquals("yznkby", response.sourceName()); - Assertions.assertEquals("fhpagmhrskdsnf", response.sourceSubpath()); - Assertions.assertEquals("sd", response.targetName()); - Assertions.assertEquals("l", response.targetSubpath()); - Assertions.assertEquals("rwr", response.agentName()); + Assertions.assertEquals("rqufegxuvwz", response.sourceName()); + Assertions.assertEquals("vgbmhr", response.sourceSubpath()); + Assertions.assertEquals("xkw", response.targetName()); + Assertions.assertEquals("xexccbdreaxhcexd", response.targetSubpath()); + Assertions.assertEquals("oowvrv", response.agentName()); + Assertions.assertEquals("yhgfipnsx", response.connections().get(0)); + Assertions.assertEquals(Frequency.WEEKLY, response.schedule().frequency()); + Assertions.assertFalse(response.schedule().isActive()); + Assertions.assertEquals(613388775, response.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.THREE_ZERO, response.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-06T01:26:51Z"), response.schedule().startDate()); + Assertions.assertEquals("ktgplcr", response.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(509080980, response.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("kpnb", response.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-04T15:42:06Z"), response.schedule().endDate()); + Assertions.assertEquals(DataIntegrityValidation.SAVE_FILE_MD5, response.dataIntegrityValidation()); + Assertions.assertFalse(response.preservePermissions()); } } 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 e2ff7a80a2c2..6ef0c3460642 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 @@ -28,7 +28,8 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.jobDefinitions() - .delete("nwxuqlcvydyp", "tdooaoj", "niodkooeb", "nuj", com.azure.core.util.Context.NONE); + .delete("ystawfsdjpvkvp", "jxbkzbzkdvn", "jabudurgkakmo", "zhjjklffhmouwq", + 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 834276718303..6b307c696bfb 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 @@ -11,8 +11,11 @@ import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.storagemover.StorageMoverManager; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; +import com.azure.resourcemanager.storagemover.models.Frequency; import com.azure.resourcemanager.storagemover.models.JobDefinition; import com.azure.resourcemanager.storagemover.models.JobType; +import com.azure.resourcemanager.storagemover.models.Minute; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; @@ -23,7 +26,7 @@ public final class JobDefinitionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"gymare\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"xqugjhkycubedd\",\"sourceResourceId\":\"sofwqmzqalkrmnji\",\"sourceSubpath\":\"xacqqudfnbyx\",\"targetName\":\"aaabjyvayff\",\"targetResourceId\":\"rzrtuzqogsex\",\"targetSubpath\":\"vfdnwnwmewzsyyce\",\"latestJobRunName\":\"soibjudpfrx\",\"latestJobRunResourceId\":\"thzvaytdwkqbrqu\",\"latestJobRunStatus\":\"CancelRequested\",\"agentName\":\"h\",\"agentResourceId\":\"iilivpdtiirqtd\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Succeeded\"},\"id\":\"zfgs\",\"name\":\"uyfxrxxleptramxj\",\"type\":\"zwl\"}"; + = "{\"properties\":{\"description\":\"ggicccnxqhue\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"tlstvlzywem\",\"sourceResourceId\":\"rncsdtclu\",\"sourceSubpath\":\"ypbsfgytguslfead\",\"targetName\":\"ygqukyhejh\",\"targetResourceId\":\"sx\",\"targetSubpath\":\"pelol\",\"latestJobRunName\":\"vk\",\"latestJobRunResourceId\":\"pqvujzraehtwdwrf\",\"latestJobRunStatus\":\"Running\",\"agentName\":\"byrcdlbhshfwp\",\"agentResourceId\":\"cstwity\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Succeeded\",\"connections\":[\"dcpnmdyodnw\",\"xltjcvnhltiu\",\"cxnavv\",\"xqi\"],\"schedule\":{\"frequency\":\"Onetime\",\"isActive\":false,\"executionTime\":{\"hour\":88106486,\"minute\":30},\"startDate\":\"2021-06-28T16:16:43Z\",\"daysOfWeek\":[\"djrkvfgbvfvpd\",\"odacizs\",\"q\",\"hkr\"],\"daysOfMonth\":[1873747723,991301746,1915789936],\"cronExpression\":\"qipqkghvxndz\",\"endDate\":\"2021-01-31T16:39:26Z\"},\"dataIntegrityValidation\":\"SaveFileMD5\",\"preservePermissions\":false},\"id\":\"pjorwkqnyhg\",\"name\":\"ij\",\"type\":\"jivfxzsjabib\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +36,28 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobDefinition response = manager.jobDefinitions() - .getWithResponse("wdmjsjqbjhhyx", "rw", "yc", "duhpk", com.azure.core.util.Context.NONE) + .getWithResponse("scywuggwoluhc", "bwemhairs", "rgzdwmsweyp", "w", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("gymare", response.description()); + Assertions.assertEquals("ggicccnxqhue", response.description()); Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, response.jobType()); Assertions.assertEquals(CopyMode.MIRROR, response.copyMode()); - Assertions.assertEquals("xqugjhkycubedd", response.sourceName()); - Assertions.assertEquals("xacqqudfnbyx", response.sourceSubpath()); - Assertions.assertEquals("aaabjyvayff", response.targetName()); - Assertions.assertEquals("vfdnwnwmewzsyyce", response.targetSubpath()); - Assertions.assertEquals("h", response.agentName()); + Assertions.assertEquals("tlstvlzywem", response.sourceName()); + Assertions.assertEquals("ypbsfgytguslfead", response.sourceSubpath()); + Assertions.assertEquals("ygqukyhejh", response.targetName()); + Assertions.assertEquals("pelol", response.targetSubpath()); + Assertions.assertEquals("byrcdlbhshfwp", response.agentName()); + Assertions.assertEquals("dcpnmdyodnw", response.connections().get(0)); + Assertions.assertEquals(Frequency.ONETIME, response.schedule().frequency()); + Assertions.assertFalse(response.schedule().isActive()); + Assertions.assertEquals(88106486, response.schedule().executionTime().hour()); + Assertions.assertEquals(Minute.THREE_ZERO, response.schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T16:16:43Z"), response.schedule().startDate()); + Assertions.assertEquals("djrkvfgbvfvpd", response.schedule().daysOfWeek().get(0)); + Assertions.assertEquals(1873747723, response.schedule().daysOfMonth().get(0)); + Assertions.assertEquals("qipqkghvxndz", response.schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-31T16:39:26Z"), response.schedule().endDate()); + Assertions.assertEquals(DataIntegrityValidation.SAVE_FILE_MD5, response.dataIntegrityValidation()); + Assertions.assertFalse(response.preservePermissions()); } } 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 510efffb4101..a849d72332c9 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 @@ -12,8 +12,11 @@ import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.storagemover.StorageMoverManager; import com.azure.resourcemanager.storagemover.models.CopyMode; +import com.azure.resourcemanager.storagemover.models.DataIntegrityValidation; +import com.azure.resourcemanager.storagemover.models.Frequency; import com.azure.resourcemanager.storagemover.models.JobDefinition; import com.azure.resourcemanager.storagemover.models.JobType; +import com.azure.resourcemanager.storagemover.models.Minute; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; @@ -24,7 +27,7 @@ public final class JobDefinitionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"fltkacjv\",\"jobType\":\"OnPremToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"lfoakg\",\"sourceResourceId\":\"fpagaowpulp\",\"sourceSubpath\":\"lyls\",\"targetName\":\"xkqjnsjervt\",\"targetResourceId\":\"gxsds\",\"targetSubpath\":\"e\",\"latestJobRunName\":\"sbzkf\",\"latestJobRunResourceId\":\"eyvpnqicvinvkj\",\"latestJobRunStatus\":\"Succeeded\",\"agentName\":\"rbuukzclewyhmlwp\",\"agentResourceId\":\"tzpofncckwyfzq\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Deleting\"},\"id\":\"qa\",\"name\":\"zfeqztppri\",\"type\":\"lxorjaltolmncws\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"r\",\"jobType\":\"CloudToCloud\",\"copyMode\":\"Mirror\",\"sourceName\":\"gmfpgvmp\",\"sourceResourceId\":\"as\",\"sourceSubpath\":\"haq\",\"targetName\":\"x\",\"targetResourceId\":\"mwutwbdsre\",\"targetSubpath\":\"drhneuyow\",\"latestJobRunName\":\"d\",\"latestJobRunResourceId\":\"t\",\"latestJobRunStatus\":\"Failed\",\"agentName\":\"ircgpikpz\",\"agentResourceId\":\"ejzanlfz\",\"sourceTargetMap\":{\"value\":[{\"sourceEndpoint\":{},\"targetEndpoint\":{}},{\"sourceEndpoint\":{},\"targetEndpoint\":{}}]},\"provisioningState\":\"Failed\",\"connections\":[\"onok\",\"xrjqcirgzpfrlazs\",\"rnwoiindfp\"],\"schedule\":{\"frequency\":\"Daily\",\"isActive\":true,\"executionTime\":{\"hour\":1007403747,\"minute\":30},\"startDate\":\"2021-05-08T16:18:37Z\",\"daysOfWeek\":[\"sj\"],\"daysOfMonth\":[1421362478,402907816],\"cronExpression\":\"jvfbgofelja\",\"endDate\":\"2021-09-13T20:46:53Z\"},\"dataIntegrityValidation\":\"SaveVerifyFileMD5\",\"preservePermissions\":true},\"id\":\"vriiio\",\"name\":\"nalghfkvtvsexso\",\"type\":\"ueluqhhahhxvrhmz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,15 +37,30 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.jobDefinitions().list("emmsbvdkc", "odtji", "fw", com.azure.core.util.Context.NONE); + = manager.jobDefinitions().list("gzrf", "eeyebi", "ikayuhqlbjbsybb", com.azure.core.util.Context.NONE); - Assertions.assertEquals("fltkacjv", response.iterator().next().description()); - Assertions.assertEquals(JobType.ON_PREM_TO_CLOUD, response.iterator().next().jobType()); + Assertions.assertEquals("r", response.iterator().next().description()); + Assertions.assertEquals(JobType.CLOUD_TO_CLOUD, response.iterator().next().jobType()); Assertions.assertEquals(CopyMode.MIRROR, response.iterator().next().copyMode()); - Assertions.assertEquals("lfoakg", response.iterator().next().sourceName()); - Assertions.assertEquals("lyls", response.iterator().next().sourceSubpath()); - Assertions.assertEquals("xkqjnsjervt", response.iterator().next().targetName()); - Assertions.assertEquals("e", response.iterator().next().targetSubpath()); - Assertions.assertEquals("rbuukzclewyhmlwp", response.iterator().next().agentName()); + Assertions.assertEquals("gmfpgvmp", response.iterator().next().sourceName()); + Assertions.assertEquals("haq", response.iterator().next().sourceSubpath()); + Assertions.assertEquals("x", response.iterator().next().targetName()); + Assertions.assertEquals("drhneuyow", response.iterator().next().targetSubpath()); + Assertions.assertEquals("ircgpikpz", response.iterator().next().agentName()); + Assertions.assertEquals("onok", response.iterator().next().connections().get(0)); + Assertions.assertEquals(Frequency.DAILY, response.iterator().next().schedule().frequency()); + Assertions.assertTrue(response.iterator().next().schedule().isActive()); + Assertions.assertEquals(1007403747, response.iterator().next().schedule().executionTime().hour()); + Assertions.assertEquals(Minute.THREE_ZERO, response.iterator().next().schedule().executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-08T16:18:37Z"), + response.iterator().next().schedule().startDate()); + Assertions.assertEquals("sj", response.iterator().next().schedule().daysOfWeek().get(0)); + Assertions.assertEquals(1421362478, response.iterator().next().schedule().daysOfMonth().get(0)); + Assertions.assertEquals("jvfbgofelja", response.iterator().next().schedule().cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-13T20:46:53Z"), + response.iterator().next().schedule().endDate()); + Assertions.assertEquals(DataIntegrityValidation.SAVE_VERIFY_FILE_MD5, + response.iterator().next().dataIntegrityValidation()); + Assertions.assertTrue(response.iterator().next().preservePermissions()); } } 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 a88b3b59d5e2..0e22cc0e8378 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\":\"qtvcofudflvkgj\"}"; + String responseStr = "{\"jobRunResourceId\":\"yqtfihwh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,7 @@ public void testStartJobWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobRunResourceId response = manager.jobDefinitions() - .startJobWithResponse("bqwcsdbnwdcf", "ucqdpfuvglsb", "jcanvxbvtvudut", "cormr", - com.azure.core.util.Context.NONE) + .startJobWithResponse("wpjgwws", "ughftqsx", "qxujxukndxd", "grjguufzd", 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 fe038ec60372..d7be790d86ee 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\":\"mz\"}"; + String responseStr = "{\"jobRunResourceId\":\"fwynwcvtbvkay\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,7 @@ public void testStopJobWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobRunResourceId response = manager.jobDefinitions() - .stopJobWithResponse("bgdknnqv", "aznqntoru", "sgsahmkycgr", "uwjuetaeburuvdmo", - com.azure.core.util.Context.NONE) + .stopJobWithResponse("otzi", "gamv", "phoszqz", "dphqamv", 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 c8fcd1f7bb13..68b7328ab689 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\":\"liourqhak\"}").toObject(JobRunResourceIdInner.class); + = BinaryData.fromString("{\"jobRunResourceId\":\"wjvzunluthnn\"}").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 1dc5c2d21470..5d910cdfcf6e 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,7 +16,7 @@ public final class ManagedServiceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"dsoifiyipj\",\"tenantId\":\"qwpgrjbzn\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"cyshurzafbljjgp\":{\"principalId\":\"vsnb\",\"clientId\":\"qabnmoc\"},\"idtqajzyu\":{\"principalId\":\"oq\",\"clientId\":\"mkljavb\"},\"xzlocxscp\":{\"principalId\":\"kudjkrlkhb\",\"clientId\":\"fepgzgq\"}}}") + "{\"principalId\":\"odgmaajrmvdjwz\",\"tenantId\":\"ovmclwhijcoejct\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"xaxcfjpgddtocjjx\":{\"principalId\":\"qsycbkbfkgu\",\"clientId\":\"kexxppof\"},\"jnxqbzvddntwn\":{\"principalId\":\"pmouexhdz\",\"clientId\":\"bqe\"}}}") .toObject(ManagedServiceIdentity.class); Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); } @@ -25,8 +25,8 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("cyshurzafbljjgp", new UserAssignedIdentity(), "idtqajzyu", - new UserAssignedIdentity(), "xzlocxscp", new UserAssignedIdentity())); + .withUserAssignedIdentities( + mapOf("xaxcfjpgddtocjjx", new UserAssignedIdentity(), "jnxqbzvddntwn", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); } 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 84f4feff707a..1f87d429268b 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 @@ -5,6 +5,7 @@ package com.azure.resourcemanager.storagemover.generated; 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.NfsVersion; import org.junit.jupiter.api.Assertions; @@ -13,24 +14,27 @@ public final class NfsMountEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NfsMountEndpointProperties model = BinaryData.fromString( - "{\"endpointType\":\"NfsMount\",\"host\":\"zw\",\"nfsVersion\":\"NFSv4\",\"export\":\"uitnwuiz\",\"description\":\"zxufiz\",\"provisioningState\":\"Succeeded\"}") + "{\"endpointType\":\"NfsMount\",\"host\":\"wmdwzjeiachboo\",\"nfsVersion\":\"NFSauto\",\"export\":\"nrosfqpte\",\"description\":\"zzvypyqrimzinp\",\"endpointKind\":\"Source\",\"provisioningState\":\"Deleting\"}") .toObject(NfsMountEndpointProperties.class); - Assertions.assertEquals("zxufiz", model.description()); - Assertions.assertEquals("zw", model.host()); - Assertions.assertEquals(NfsVersion.NFSV4, model.nfsVersion()); - Assertions.assertEquals("uitnwuiz", model.export()); + Assertions.assertEquals("zzvypyqrimzinp", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("wmdwzjeiachboo", model.host()); + Assertions.assertEquals(NfsVersion.NFSAUTO, model.nfsVersion()); + Assertions.assertEquals("nrosfqpte", model.export()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NfsMountEndpointProperties model = new NfsMountEndpointProperties().withDescription("zxufiz") - .withHost("zw") - .withNfsVersion(NfsVersion.NFSV4) - .withExport("uitnwuiz"); + NfsMountEndpointProperties model = new NfsMountEndpointProperties().withDescription("zzvypyqrimzinp") + .withEndpointKind(EndpointKind.SOURCE) + .withHost("wmdwzjeiachboo") + .withNfsVersion(NfsVersion.NFSAUTO) + .withExport("nrosfqpte"); model = BinaryData.fromObject(model).toObject(NfsMountEndpointProperties.class); - Assertions.assertEquals("zxufiz", model.description()); - Assertions.assertEquals("zw", model.host()); - Assertions.assertEquals(NfsVersion.NFSV4, model.nfsVersion()); - Assertions.assertEquals("uitnwuiz", model.export()); + Assertions.assertEquals("zzvypyqrimzinp", model.description()); + Assertions.assertEquals(EndpointKind.SOURCE, model.endpointKind()); + Assertions.assertEquals("wmdwzjeiachboo", model.host()); + Assertions.assertEquals(NfsVersion.NFSAUTO, model.nfsVersion()); + Assertions.assertEquals("nrosfqpte", model.export()); } } 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 aa82db1de155..da0dc6be8ce0 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,15 @@ public final class NfsMountEndpointUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NfsMountEndpointUpdateProperties model - = BinaryData.fromString("{\"endpointType\":\"NfsMount\",\"description\":\"xhvpmoue\"}") + = BinaryData.fromString("{\"endpointType\":\"NfsMount\",\"description\":\"krxd\"}") .toObject(NfsMountEndpointUpdateProperties.class); - Assertions.assertEquals("xhvpmoue", model.description()); + Assertions.assertEquals("krxd", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NfsMountEndpointUpdateProperties model = new NfsMountEndpointUpdateProperties().withDescription("xhvpmoue"); + NfsMountEndpointUpdateProperties model = new NfsMountEndpointUpdateProperties().withDescription("krxd"); model = BinaryData.fromObject(model).toObject(NfsMountEndpointUpdateProperties.class); - Assertions.assertEquals("xhvpmoue", model.description()); + Assertions.assertEquals("krxd", 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 987d4d832fd5..c1c32d019c49 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\":\"napnyiropuhpigv\",\"isDataAction\":true,\"display\":{\"provider\":\"qgitxmed\",\"resource\":\"c\",\"operation\":\"ynqwwncwzzhxgk\",\"description\":\"mgucna\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"ebxmubyynt\",\"isDataAction\":false,\"display\":{\"provider\":\"tkoievseotgq\",\"resource\":\"ltmuwlauwzizx\",\"operation\":\"pgcjefuzmuvp\",\"description\":\"tdum\"},\"origin\":\"user\",\"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 4b3a25cec981..f085b6def379 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\":\"kktwhrdxw\",\"provisioningState\":\"Canceled\"},\"id\":\"sm\",\"name\":\"surex\",\"type\":\"moryocfsfksym\"}") + "{\"properties\":{\"description\":\"ochcbonqvpkvl\",\"provisioningState\":\"Deleting\"},\"id\":\"ea\",\"name\":\"eipheoflokeyy\",\"type\":\"enjbdlwtgrhp\"}") .toObject(ProjectInner.class); - Assertions.assertEquals("kktwhrdxw", model.description()); + Assertions.assertEquals("ochcbonqvpkvl", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectInner model = new ProjectInner().withDescription("kktwhrdxw"); + ProjectInner model = new ProjectInner().withDescription("ochcbonqvpkvl"); model = BinaryData.fromObject(model).toObject(ProjectInner.class); - Assertions.assertEquals("kktwhrdxw", model.description()); + Assertions.assertEquals("ochcbonqvpkvl", 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 878ab0c3a074..0ea4e17c7cfd 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\":\"vjsllrmvvdfw\",\"provisioningState\":\"Deleting\"},\"id\":\"n\",\"name\":\"ulexxbczwtr\",\"type\":\"wiqzbqjvsovmyo\"}],\"nextLink\":\"cspkwlhzdobpxjmf\"}") + "{\"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\"}") .toObject(ProjectList.class); - Assertions.assertEquals("cspkwlhzdobpxjmf", model.nextLink()); + Assertions.assertEquals("aamdect", 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 5da3dcdf5d50..13b27ea34932 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,15 @@ public final class ProjectPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ProjectProperties model = BinaryData.fromString("{\"description\":\"ys\",\"provisioningState\":\"Succeeded\"}") + ProjectProperties model = BinaryData.fromString("{\"description\":\"pj\",\"provisioningState\":\"Deleting\"}") .toObject(ProjectProperties.class); - Assertions.assertEquals("ys", model.description()); + Assertions.assertEquals("pj", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectProperties model = new ProjectProperties().withDescription("ys"); + ProjectProperties model = new ProjectProperties().withDescription("pj"); model = BinaryData.fromObject(model).toObject(ProjectProperties.class); - Assertions.assertEquals("ys", model.description()); + Assertions.assertEquals("pj", 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 8fa77f426987..6e8bf6a85dc3 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\":\"xhqyudxorrqnb\"}}") + ProjectUpdateParameters model = BinaryData.fromString("{\"properties\":{\"description\":\"azjpqyegualhbxxh\"}}") .toObject(ProjectUpdateParameters.class); - Assertions.assertEquals("xhqyudxorrqnb", model.description()); + Assertions.assertEquals("azjpqyegualhbxxh", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectUpdateParameters model = new ProjectUpdateParameters().withDescription("xhqyudxorrqnb"); + ProjectUpdateParameters model = new ProjectUpdateParameters().withDescription("azjpqyegualhbxxh"); model = BinaryData.fromObject(model).toObject(ProjectUpdateParameters.class); - Assertions.assertEquals("xhqyudxorrqnb", model.description()); + Assertions.assertEquals("azjpqyegualhbxxh", 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 3d4fb95fb835..4efe226ae92a 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\":\"czvyifq\"}").toObject(ProjectUpdateProperties.class); - Assertions.assertEquals("czvyifq", model.description()); + = BinaryData.fromString("{\"description\":\"jzzvdud\"}").toObject(ProjectUpdateProperties.class); + Assertions.assertEquals("jzzvdud", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectUpdateProperties model = new ProjectUpdateProperties().withDescription("czvyifq"); + ProjectUpdateProperties model = new ProjectUpdateProperties().withDescription("jzzvdud"); model = BinaryData.fromObject(model).toObject(ProjectUpdateProperties.class); - Assertions.assertEquals("czvyifq", model.description()); + Assertions.assertEquals("jzzvdud", 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 2f6257b5b280..a4e996a7b229 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\":\"db\",\"provisioningState\":\"Canceled\"},\"id\":\"pxllrx\",\"name\":\"yjmoadsu\",\"type\":\"arm\"}"; + = "{\"properties\":{\"description\":\"u\",\"provisioningState\":\"Failed\"},\"id\":\"icslfaoq\",\"name\":\"piyylhalnswhccsp\",\"type\":\"kaivwit\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,12 +30,9 @@ public void testCreateOrUpdateWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - Project response = manager.projects() - .define("tcs") - .withExistingStorageMover("jrvxaglrv", "mjwosytx") - .withDescription("k") - .create(); + Project response + = manager.projects().define("rdgrtw").withExistingStorageMover("gm", "zr").withDescription("u").create(); - Assertions.assertEquals("db", response.description()); + Assertions.assertEquals("u", 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 97a50a71273d..0ef51da079b4 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("dblx", "wi", "fnjhfjxwmszkkfo", com.azure.core.util.Context.NONE); + manager.projects().delete("nguxawqaldsy", "uximerqfobw", "znkbykutwpfhpagm", 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 2e804398782f..38368b720041 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\":\"piohgwxrtfu\",\"provisioningState\":\"Failed\"},\"id\":\"xg\",\"name\":\"qagvrvm\",\"type\":\"pkukghi\"}"; + = "{\"properties\":{\"description\":\"kdwbwhkszz\",\"provisioningState\":\"Canceled\"},\"id\":\"exztvbtq\",\"name\":\"sfraoyzko\",\"type\":\"wtl\"}"; 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("tkwqqtchealm", "mtdaa", "gdv", com.azure.core.util.Context.NONE) + .getWithResponse("p", "doamciodhkha", "xkhnzbonlwnto", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("piohgwxrtfu", response.description()); + Assertions.assertEquals("kdwbwhkszz", 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 e02f5a027079..65eeaa0f4169 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\":\"pcirelsfeaen\",\"provisioningState\":\"Deleting\"},\"id\":\"atklddxbjhwuaa\",\"name\":\"oz\",\"type\":\"osphyoul\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"zev\",\"provisioningState\":\"Failed\"},\"id\":\"wpusdsttwvogv\",\"name\":\"bejdcn\",\"type\":\"qqmoaku\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.projects().list("rey", "kzikfjawneaivxwc", com.azure.core.util.Context.NONE); + = manager.projects().list("r", "kdsnfdsdoakgtdl", com.azure.core.util.Context.NONE); - Assertions.assertEquals("pcirelsfeaen", response.iterator().next().description()); + Assertions.assertEquals("zev", 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 new file mode 100644 index 000000000000..fc615dda05b4 --- /dev/null +++ b/sdk/storagemover/azure-resourcemanager-storagemover/src/test/java/com/azure/resourcemanager/storagemover/generated/ScheduleInfoTests.java @@ -0,0 +1,54 @@ +// 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.util.BinaryData; +import com.azure.resourcemanager.storagemover.models.Frequency; +import com.azure.resourcemanager.storagemover.models.Minute; +import com.azure.resourcemanager.storagemover.models.ScheduleInfo; +import com.azure.resourcemanager.storagemover.models.Time; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ScheduleInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ScheduleInfo model = BinaryData.fromString( + "{\"frequency\":\"Weekly\",\"isActive\":true,\"executionTime\":{\"hour\":1640743814,\"minute\":0},\"startDate\":\"2021-02-12T19:04:46Z\",\"daysOfWeek\":[\"exzfeyue\",\"xibxujwbhqwalm\",\"zyoxaepdkzjan\"],\"daysOfMonth\":[901682674,1487648770,148610242,714190447],\"cronExpression\":\"avxbniwdjswztsdb\",\"endDate\":\"2021-10-19T12:26:50Z\"}") + .toObject(ScheduleInfo.class); + Assertions.assertEquals(Frequency.WEEKLY, model.frequency()); + Assertions.assertTrue(model.isActive()); + Assertions.assertEquals(1640743814, model.executionTime().hour()); + Assertions.assertEquals(Minute.ZERO, model.executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-12T19:04:46Z"), model.startDate()); + Assertions.assertEquals("exzfeyue", model.daysOfWeek().get(0)); + Assertions.assertEquals(901682674, model.daysOfMonth().get(0)); + Assertions.assertEquals("avxbniwdjswztsdb", model.cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-19T12:26:50Z"), model.endDate()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ScheduleInfo model = new ScheduleInfo().withFrequency(Frequency.WEEKLY) + .withIsActive(true) + .withExecutionTime(new Time().withHour(1640743814).withMinute(Minute.ZERO)) + .withStartDate(OffsetDateTime.parse("2021-02-12T19:04:46Z")) + .withDaysOfWeek(Arrays.asList("exzfeyue", "xibxujwbhqwalm", "zyoxaepdkzjan")) + .withDaysOfMonth(Arrays.asList(901682674, 1487648770, 148610242, 714190447)) + .withCronExpression("avxbniwdjswztsdb") + .withEndDate(OffsetDateTime.parse("2021-10-19T12:26:50Z")); + model = BinaryData.fromObject(model).toObject(ScheduleInfo.class); + Assertions.assertEquals(Frequency.WEEKLY, model.frequency()); + Assertions.assertTrue(model.isActive()); + Assertions.assertEquals(1640743814, model.executionTime().hour()); + Assertions.assertEquals(Minute.ZERO, model.executionTime().minute()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-12T19:04:46Z"), model.startDate()); + Assertions.assertEquals("exzfeyue", model.daysOfWeek().get(0)); + Assertions.assertEquals(901682674, model.daysOfMonth().get(0)); + Assertions.assertEquals("avxbniwdjswztsdb", model.cronExpression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-19T12:26:50Z"), model.endDate()); + } +} 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 a5b2bcca3a30..b272bac0335e 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,12 @@ public final class SourceEndpointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SourceEndpointProperties model = BinaryData.fromString( - "{\"name\":\"haaxdbabphl\",\"sourceEndpointResourceId\":\"qlfktsths\",\"awsS3BucketId\":\"ocmnyyazttbtwwrq\"}") + SourceEndpointProperties model = BinaryData + .fromString( + "{\"name\":\"nhijggmebfsi\",\"sourceEndpointResourceId\":\"butr\",\"awsS3BucketId\":\"pnazzm\"}") .toObject(SourceEndpointProperties.class); - Assertions.assertEquals("haaxdbabphl", model.name()); - Assertions.assertEquals("qlfktsths", model.sourceEndpointResourceId()); - Assertions.assertEquals("ocmnyyazttbtwwrq", model.awsS3BucketId()); + Assertions.assertEquals("nhijggmebfsi", model.name()); + Assertions.assertEquals("butr", model.sourceEndpointResourceId()); + Assertions.assertEquals("pnazzm", 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 c6cd3b60a1c1..ad6639c80cf1 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\":\"pbh\",\"sourceEndpointResourceId\":\"btkcxywnytnrsyn\",\"awsS3BucketId\":\"idybyxczf\"}}") + "{\"properties\":{\"name\":\"lfbxzpuzycisp\",\"sourceEndpointResourceId\":\"zahmgkbrpyydhibn\",\"awsS3BucketId\":\"qkpikadrgvtqagnb\"}}") .toObject(SourceEndpoint.class); - Assertions.assertEquals("pbh", model.properties().name()); - Assertions.assertEquals("btkcxywnytnrsyn", model.properties().sourceEndpointResourceId()); - Assertions.assertEquals("idybyxczf", model.properties().awsS3BucketId()); + Assertions.assertEquals("lfbxzpuzycisp", model.properties().name()); + Assertions.assertEquals("zahmgkbrpyydhibn", model.properties().sourceEndpointResourceId()); + Assertions.assertEquals("qkpikadrgvtqagnb", 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 25ccaaacd30e..77ebea2af864 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,15 +12,14 @@ public final class SourceTargetMapTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SourceTargetMap model = BinaryData.fromString( - "{\"sourceEndpoint\":{\"properties\":{\"name\":\"ik\",\"sourceEndpointResourceId\":\"rgvtqag\",\"awsS3BucketId\":\"uynhijg\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"bfs\",\"targetEndpointResourceId\":\"rbu\",\"azureStorageAccountResourceId\":\"cvpnazzmhjrunmpx\",\"azureStorageBlobContainerName\":\"dbhrbnlankxm\"}}}") + "{\"sourceEndpoint\":{\"properties\":{\"name\":\"xjvuujqgidokg\",\"sourceEndpointResourceId\":\"jyoxgvclt\",\"awsS3BucketId\":\"sncghkjeszz\"}},\"targetEndpoint\":{\"properties\":{\"name\":\"jhtxfvgxbfsmxne\",\"targetEndpointResourceId\":\"pvecxgodeb\",\"azureStorageAccountResourceId\":\"kk\",\"azureStorageBlobContainerName\":\"mpukgriw\"}}}") .toObject(SourceTargetMap.class); - Assertions.assertEquals("ik", model.sourceEndpoint().properties().name()); - Assertions.assertEquals("rgvtqag", model.sourceEndpoint().properties().sourceEndpointResourceId()); - Assertions.assertEquals("uynhijg", model.sourceEndpoint().properties().awsS3BucketId()); - Assertions.assertEquals("bfs", model.targetEndpoint().properties().name()); - Assertions.assertEquals("rbu", model.targetEndpoint().properties().targetEndpointResourceId()); - Assertions.assertEquals("cvpnazzmhjrunmpx", - model.targetEndpoint().properties().azureStorageAccountResourceId()); - Assertions.assertEquals("dbhrbnlankxm", model.targetEndpoint().properties().azureStorageBlobContainerName()); + Assertions.assertEquals("xjvuujqgidokg", model.sourceEndpoint().properties().name()); + Assertions.assertEquals("jyoxgvclt", model.sourceEndpoint().properties().sourceEndpointResourceId()); + Assertions.assertEquals("sncghkjeszz", model.sourceEndpoint().properties().awsS3BucketId()); + Assertions.assertEquals("jhtxfvgxbfsmxne", model.targetEndpoint().properties().name()); + Assertions.assertEquals("pvecxgodeb", model.targetEndpoint().properties().targetEndpointResourceId()); + Assertions.assertEquals("kk", model.targetEndpoint().properties().azureStorageAccountResourceId()); + Assertions.assertEquals("mpukgriw", 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 a8faf8a40a14..751058e08eb8 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\":\"wjmy\",\"provisioningState\":\"Canceled\"},\"location\":\"slswtm\",\"tags\":{\"yqsemwa\":\"iofz\",\"tshhszhedp\":\"n\",\"k\":\"vwiwubmwmbesld\"},\"id\":\"wtppjflcxogaoko\",\"name\":\"z\",\"type\":\"nsikvmkqzeqqkdl\"}"; + = "{\"properties\":{\"description\":\"xafnndlpichko\",\"provisioningState\":\"Canceled\"},\"location\":\"dyh\",\"tags\":{\"reqnovvqfov\":\"kpw\",\"rsndsytgadgvra\":\"jxywsuws\",\"uu\":\"aeneqnzarrwl\",\"e\":\"jfqka\"},\"id\":\"iipfpubj\",\"name\":\"bwwift\",\"type\":\"hqkvpuvksgplsak\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,16 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); StorageMover response = manager.storageMovers() - .define("hqlkthumaqo") - .withRegion("y") - .withExistingResourceGroup("ynduha") - .withTags(mapOf("mdnbbglzpswiy", "olpsslqlf", "mnvdfzn", "mcwyhzdxssadb")) - .withDescription("ycduier") + .define("ibahwflus") + .withRegion("btgiwbwoenwas") + .withExistingResourceGroup("sdqrhzoymibmrq") + .withTags(mapOf("ujw", "dtkcnqxwbpokulp", "yuq", "asipqiio")) + .withDescription("mhrkwofyyvoqacp") .create(); - Assertions.assertEquals("slswtm", response.location()); - Assertions.assertEquals("iofz", response.tags().get("yqsemwa")); - Assertions.assertEquals("wjmy", response.description()); + Assertions.assertEquals("dyh", response.location()); + Assertions.assertEquals("kpw", response.tags().get("reqnovvqfov")); + Assertions.assertEquals("xafnndlpichko", 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 8e058ddc7c56..1cec05a4f250 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("vjfdx", "ivetvtcq", com.azure.core.util.Context.NONE); + manager.storageMovers().delete("rwdmhdlxyjrxsa", "afcnih", 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 a7b554851c81..33d91e73d241 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\":\"huaoppp\",\"provisioningState\":\"Succeeded\"},\"location\":\"xolzdahzx\",\"tags\":{\"grcfb\":\"bgbkdmoizpost\",\"bpvjymjhx\":\"nrmfqjhhk\",\"n\":\"j\"},\"id\":\"u\",\"name\":\"ivkrtsw\",\"type\":\"xqzvszjfa\"}"; + = "{\"properties\":{\"description\":\"ozfikdowwq\",\"provisioningState\":\"Succeeded\"},\"location\":\"zx\",\"tags\":{\"sg\":\"ithhqzon\",\"c\":\"b\"},\"id\":\"hfwdsjnkaljutiis\",\"name\":\"acffgdkzzewkfvhq\",\"type\":\"railvpnppfuf\"}"; 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("ellwptfdy", "pfqbuaceopzf", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("ebmnzbtbhjpglk", "gohdneuelfphsd", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xolzdahzx", response.location()); - Assertions.assertEquals("bgbkdmoizpost", response.tags().get("grcfb")); - Assertions.assertEquals("huaoppp", response.description()); + Assertions.assertEquals("zx", response.location()); + Assertions.assertEquals("ithhqzon", response.tags().get("sg")); + Assertions.assertEquals("ozfikdowwq", 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 df1f0bc23b04..e1098a47c433 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\":\"bxvwv\",\"provisioningState\":\"Succeeded\"},\"location\":\"qbhsfxobl\",\"tags\":{\"bkrvrnsvshqj\":\"blmpewww\"},\"id\":\"hxcr\",\"name\":\"bfovasrruvwbhsq\",\"type\":\"sub\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"vpk\",\"provisioningState\":\"Succeeded\"},\"location\":\"vdrhvoo\",\"tags\":{\"opcjwvnhd\":\"tbobz\",\"mgxcxrslpm\":\"d\",\"qsluicp\":\"twuoegrpkhjwni\"},\"id\":\"ggkzzlvmbmpa\",\"name\":\"modfvuefywsbpfvm\",\"type\":\"yhrfouyftaakcpw\"}]}"; 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("qtdo", com.azure.core.util.Context.NONE); + = manager.storageMovers().listByResourceGroup("wqapnedgfbcvk", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qbhsfxobl", response.iterator().next().location()); - Assertions.assertEquals("blmpewww", response.iterator().next().tags().get("bkrvrnsvshqj")); - Assertions.assertEquals("bxvwv", response.iterator().next().description()); + Assertions.assertEquals("vdrhvoo", response.iterator().next().location()); + Assertions.assertEquals("tbobz", response.iterator().next().tags().get("opcjwvnhd")); + Assertions.assertEquals("vpk", 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 559800e52221..5b1b86734616 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\":\"birx\",\"provisioningState\":\"Deleting\"},\"location\":\"srfbjfdtwss\",\"tags\":{\"vwpm\":\"tpvjzbexilzznfqq\",\"wqytjrybnwjewgdr\":\"taruoujmkcj\",\"doy\":\"ervnaenqpehi\"},\"id\":\"mifthnzdnd\",\"name\":\"l\",\"type\":\"nayqi\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"vqtmnub\",\"provisioningState\":\"Failed\"},\"location\":\"zksmondj\",\"tags\":{\"omgkopkwho\":\"xvy\",\"ajqgxy\":\"v\",\"xozap\":\"mocmbqfqvmk\",\"dd\":\"helxprglya\"},\"id\":\"kcbcue\",\"name\":\"rjxgciqib\",\"type\":\"hos\"}]}"; 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("srfbjfdtwss", response.iterator().next().location()); - Assertions.assertEquals("tpvjzbexilzznfqq", response.iterator().next().tags().get("vwpm")); - Assertions.assertEquals("birx", response.iterator().next().description()); + Assertions.assertEquals("zksmondj", response.iterator().next().location()); + Assertions.assertEquals("xvy", response.iterator().next().tags().get("omgkopkwho")); + Assertions.assertEquals("vqtmnub", 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 3cb5181c87e9..7b61e40c4076 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\":\"dkzjancuxrh\",\"targetEndpointResourceId\":\"bavxbniwdjswzt\",\"azureStorageAccountResourceId\":\"bpg\",\"azureStorageBlobContainerName\":\"ytxhp\"}") + "{\"name\":\"idybyxczf\",\"targetEndpointResourceId\":\"haaxdbabphl\",\"azureStorageAccountResourceId\":\"qlfktsths\",\"azureStorageBlobContainerName\":\"ocmnyyazttbtwwrq\"}") .toObject(TargetEndpointProperties.class); - Assertions.assertEquals("dkzjancuxrh", model.name()); - Assertions.assertEquals("bavxbniwdjswzt", model.targetEndpointResourceId()); - Assertions.assertEquals("bpg", model.azureStorageAccountResourceId()); - Assertions.assertEquals("ytxhp", model.azureStorageBlobContainerName()); + Assertions.assertEquals("idybyxczf", model.name()); + Assertions.assertEquals("haaxdbabphl", model.targetEndpointResourceId()); + Assertions.assertEquals("qlfktsths", model.azureStorageAccountResourceId()); + Assertions.assertEquals("ocmnyyazttbtwwrq", 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 92c7385555b0..3e746fe1bb29 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\":\"dckzywbiexz\",\"targetEndpointResourceId\":\"yueaxibxujwb\",\"azureStorageAccountResourceId\":\"walm\",\"azureStorageBlobContainerName\":\"yoxa\"}}") + "{\"properties\":{\"name\":\"unmpxttd\",\"targetEndpointResourceId\":\"rbnlankxmyskp\",\"azureStorageAccountResourceId\":\"enbtkcxywny\",\"azureStorageBlobContainerName\":\"rsyn\"}}") .toObject(TargetEndpoint.class); - Assertions.assertEquals("dckzywbiexz", model.properties().name()); - Assertions.assertEquals("yueaxibxujwb", model.properties().targetEndpointResourceId()); - Assertions.assertEquals("walm", model.properties().azureStorageAccountResourceId()); - Assertions.assertEquals("yoxa", model.properties().azureStorageBlobContainerName()); + Assertions.assertEquals("unmpxttd", model.properties().name()); + Assertions.assertEquals("rbnlankxmyskp", model.properties().targetEndpointResourceId()); + Assertions.assertEquals("enbtkcxywny", model.properties().azureStorageAccountResourceId()); + Assertions.assertEquals("rsyn", 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 67d2e9475736..19e2c2e4cb58 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 @@ -11,7 +11,7 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserAssignedIdentity model - = BinaryData.fromString("{\"principalId\":\"erhhbcsglumm\",\"clientId\":\"tjaodxobnb\"}") + = BinaryData.fromString("{\"principalId\":\"icbtwnpzao\",\"clientId\":\"uhrhcffcyddgl\"}") .toObject(UserAssignedIdentity.class); } diff --git a/sdk/storagemover/azure-resourcemanager-storagemover/tsp-location.yaml b/sdk/storagemover/azure-resourcemanager-storagemover/tsp-location.yaml index 6669690eca9c..ca73b7e1198c 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: 05584a1019e75159b0dc70a6751afaa2c77868e6 +commit: b8861b82d3b47a8cf9c2dfae4a29ec9ff41eacbf repo: Azure/azure-rest-api-specs additionalDirectories: