From 9785189467a03ec63933215223761d7b65dedc66 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 13 Oct 2026 19:11:48 +0000 Subject: [PATCH 1/6] Configurations: 'specification/fileshares/resource-manager/Microsoft.FileShares/FileShares/tspconfig.yaml', API Version: 2026-09-01, SDK Release Type: stable, and CommitSHA: 'cf4aa9847c9ac23bbe7c05c2c89b17ba10de9648' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6952246 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 | 102 ++++++++- .../README.md | 4 +- .../SAMPLE.md | 200 ++++++++++++++--- .../azure-resourcemanager-fileshares/pom.xml | 6 +- .../fileshares/fluent/FileSharesClient.java | 66 ++++++ .../fluent/InformationalOperationsClient.java | 5 +- .../fluent/models/FileShareInner.java | 29 +++ ...dundancyConversionStatusResponseInner.java | 79 +++++++ .../implementation/FileShareImpl.java | 37 ++++ .../implementation/FileSharesClientImpl.java | 202 ++++++++++++++++++ .../implementation/FileSharesImpl.java | 33 +++ .../FileSharesManagementClientImpl.java | 2 +- .../InformationalOperationsClientImpl.java | 25 ++- .../InformationalOperationsImpl.java | 7 +- ...edundancyConversionStatusResponseImpl.java | 33 +++ .../models/CustomerManagedKeyEncryption.java | 124 +++++++++++ .../fileshares/models/FileShare.java | 82 ++++++- .../models/FileShareEncryption.java | 177 +++++++++++++++ .../models/FileShareLimitsRequest.java | 86 ++++++++ .../models/FileShareOfferInput.java | 141 ++++++++++++ .../models/FileShareProperties.java | 72 +++++++ ...eShareProvisioningRecommendationInput.java | 87 ++++++++ .../fileshares/models/FileShareUpdate.java | 30 ++- .../models/FileShareUpdateProperties.java | 28 +++ .../fileshares/models/FileShares.java | 59 +++++ .../models/InformationalOperations.java | 4 +- .../models/InfrastructureEncryption.java | 52 +++++ .../models/KeyEncryptionKeyIdentity.java | 195 +++++++++++++++++ .../models/KeyEncryptionKeyIdentityType.java | 57 +++++ .../models/ManagedServiceIdentity.java | 154 +++++++++++++ .../models/ManagedServiceIdentityType.java | 62 ++++++ .../fileshares/models/MediaTier.java | 5 + .../fileshares/models/MigrationState.java | 75 +++++++ .../models/RedundancyConversionStatus.java | 61 ++++++ .../RedundancyConversionStatusOutput.java | 125 +++++++++++ .../RedundancyConversionStatusResponse.java | 26 +++ .../fileshares/models/ScaleMode.java | 51 +++++ .../StartRedundancyConversionInput.java | 89 ++++++++ .../StartRedundancyConversionRequest.java | 88 ++++++++ .../models/UserAssignedIdentity.java | 89 ++++++++ ...e-resourcemanager-fileshares_metadata.json | 2 +- ...reateOrUpdateFileShareSnapshotSamples.java | 2 +- ...apshotsDeleteFileShareSnapshotSamples.java | 2 +- ...eSnapshotsGetFileShareSnapshotSamples.java | 2 +- ...eShareSnapshotsListByFileShareSamples.java | 4 +- ...apshotsUpdateFileShareSnapshotSamples.java | 2 +- ...ileSharesCheckNameAvailabilitySamples.java | 4 +- .../FileSharesCreateOrUpdateSamples.java | 26 ++- .../generated/FileSharesDeleteSamples.java | 2 +- .../FileSharesGetByResourceGroupSamples.java | 2 +- ...sGetRedundancyConversionStatusSamples.java | 38 ++++ .../FileSharesListByResourceGroupSamples.java | 4 +- .../generated/FileSharesListSamples.java | 4 +- ...haresStartRedundancyConversionSamples.java | 31 +++ .../generated/FileSharesUpdateSamples.java | 24 ++- ...formationalOperationsGetLimitsSamples.java | 21 +- ...sGetProvisioningRecommendationSamples.java | 12 +- ...mationalOperationsGetUsageDataSamples.java | 4 +- .../generated/OperationsListSamples.java | 4 +- ...ivateEndpointConnectionsCreateSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...ointConnectionsListByFileShareSamples.java | 2 +- .../PrivateLinkResourcesGetSamples.java | 2 +- .../PrivateLinkResourcesListSamples.java | 2 +- .../CheckNameAvailabilityRequestTests.java | 14 +- ...eckNameAvailabilityResponseInnerTests.java | 10 +- .../generated/FileShareInnerTests.java | 89 -------- .../generated/FileShareLimitsOutputTests.java | 34 +-- .../FileShareLimitsRequestTests.java | 37 ++++ .../FileShareLimitsResponseInnerTests.java | 34 +-- .../generated/FileShareLimitsTests.java | 22 +- .../generated/FileShareListResultTests.java | 41 ---- .../generated/FileShareOfferInputTests.java | 35 +++ .../generated/FileSharePropertiesTests.java | 68 ------ .../FileShareProvisioningConstantsTests.java | 14 +- ...eProvisioningRecommendationInputTests.java | 21 +- ...ProvisioningRecommendationOutputTests.java | 6 +- ...rovisioningRecommendationRequestTests.java | 24 ++- ...oningRecommendationResponseInnerTests.java | 6 +- .../FileShareSnapshotInnerTests.java | 15 +- .../FileShareSnapshotListResultTests.java | 8 +- .../FileShareSnapshotPropertiesTests.java | 15 +- ...ileShareSnapshotUpdatePropertiesTests.java | 13 +- .../FileShareSnapshotUpdateTests.java | 13 +- ...ileShareSnapshotWithResponseMockTests.java | 8 +- ...hareSnapshotsListByFileShareMockTests.java | 10 +- .../FileShareUpdatePropertiesTests.java | 53 ----- .../generated/FileShareUpdateTests.java | 73 ------- .../FileShareUsageDataOutputTests.java | 4 +- .../FileShareUsageDataResponseInnerTests.java | 4 +- ...NameAvailabilityWithResponseMockTests.java | 10 +- .../FileSharesCreateOrUpdateMockTests.java | 93 -------- ...tByResourceGroupWithResponseMockTests.java | 59 ----- ...ConversionStatusWithResponseMockTests.java | 38 ++++ ...ileSharesListByResourceGroupMockTests.java | 61 ------ .../generated/FileSharesListMockTests.java | 60 ------ ...ndancyConversionWithResponseMockTests.java | 40 ++++ ...rationsGetLimitsWithResponseMockTests.java | 45 ++-- ...ngRecommendationWithResponseMockTests.java | 18 +- ...ionsGetUsageDataWithResponseMockTests.java | 6 +- .../KeyEncryptionKeyIdentityTests.java | 37 ++++ .../generated/LiveSharesUsageDataTests.java | 4 +- .../ManagedServiceIdentityTests.java | 44 ++++ .../generated/MigrationStateTests.java | 16 ++ .../generated/NfsProtocolPropertiesTests.java | 14 +- .../generated/OperationDisplayTests.java | 2 +- .../generated/OperationInnerTests.java | 2 +- .../generated/OperationListResultTests.java | 4 +- .../generated/OperationsListMockTests.java | 2 +- .../PrivateEndpointConnectionInnerTests.java | 16 +- ...vateEndpointConnectionListResultTests.java | 10 +- ...vateEndpointConnectionPropertiesTests.java | 14 +- ...ateEndpointConnectionsCreateMockTests.java | 17 +- ...ateEndpointConnectionsDeleteMockTests.java | 2 +- ...ntConnectionsGetWithResponseMockTests.java | 8 +- ...ntConnectionsListByFileShareMockTests.java | 8 +- .../generated/PrivateEndpointTests.java | 2 +- .../PrivateLinkResourceInnerTests.java | 2 +- .../PrivateLinkResourceListResultTests.java | 4 +- .../PrivateLinkResourcePropertiesTests.java | 2 +- ...LinkResourcesGetWithResponseMockTests.java | 4 +- .../PrivateLinkResourcesListMockTests.java | 4 +- ...rivateLinkServiceConnectionStateTests.java | 14 +- .../PublicAccessPropertiesTests.java | 10 +- ...RedundancyConversionStatusOutputTests.java | 17 ++ ...ncyConversionStatusResponseInnerTests.java | 17 ++ .../StartRedundancyConversionInputTests.java | 27 +++ ...StartRedundancyConversionRequestTests.java | 29 +++ .../generated/UserAssignedIdentityTests.java | 22 ++ .../tsp-location.yaml | 2 +- 132 files changed, 3586 insertions(+), 924 deletions(-) create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/models/RedundancyConversionStatusResponseInner.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/RedundancyConversionStatusResponseImpl.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/CustomerManagedKeyEncryption.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareEncryption.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsRequest.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareOfferInput.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/InfrastructureEncryption.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentity.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentityType.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentity.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentityType.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/MigrationState.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatus.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusOutput.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusResponse.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ScaleMode.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionInput.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionRequest.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/UserAssignedIdentity.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetRedundancyConversionStatusSamples.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesStartRedundancyConversionSamples.java delete mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareInnerTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsRequestTests.java delete mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareListResultTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareOfferInputTests.java delete mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharePropertiesTests.java delete mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUpdatePropertiesTests.java delete mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUpdateTests.java delete mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesCreateOrUpdateMockTests.java delete mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetByResourceGroupWithResponseMockTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetRedundancyConversionStatusWithResponseMockTests.java delete mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesListByResourceGroupMockTests.java delete mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesListMockTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesStartRedundancyConversionWithResponseMockTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/KeyEncryptionKeyIdentityTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/ManagedServiceIdentityTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/MigrationStateTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/RedundancyConversionStatusOutputTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/RedundancyConversionStatusResponseInnerTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/StartRedundancyConversionInputTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/StartRedundancyConversionRequestTests.java create mode 100644 sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/UserAssignedIdentityTests.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 6d7c93457e022..f1109f6a6cdbb 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -528,7 +528,7 @@ com.azure.resourcemanager:azure-resourcemanager-appnetwork;1.0.0-beta.2;1.0.0-be com.azure.resourcemanager:azure-resourcemanager-servicegroups;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-horizondb;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-relationships;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-fileshares;1.0.0-beta.1;1.0.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-fileshares;1.0.0-beta.1;1.0.0 com.azure.resourcemanager:azure-resourcemanager-monitor-slis;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-monitor-workspaces;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-programenrollment;1.0.0-beta.1;1.0.0-beta.2 diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md b/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md index 5c292479a099f..254c9cf7003d2 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md +++ b/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md @@ -1,14 +1,108 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0 (2026-10-13) -### Features Added +- Azure Resource Manager FileShares client library for Java. This package contains Microsoft Azure SDK for FileShares Management SDK. Azure File Shares Resource Provider API. Package api-version 2026-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.InformationalOperations` was modified + +* `getLimitsWithResponse(java.lang.String,com.azure.core.util.Context)` was removed + +### Features Added + +* `models.ManagedServiceIdentityType` was added + +* `models.UserAssignedIdentity` was added + +* `models.StartRedundancyConversionRequest` was added + +* `models.KeyEncryptionKeyIdentityType` was added + +* `models.KeyEncryptionKeyIdentity` was added + +* `models.InfrastructureEncryption` was added + +* `models.StartRedundancyConversionInput` was added + +* `models.MigrationState` was added + +* `models.FileShareLimitsRequest` was added + +* `models.ManagedServiceIdentity` was added + +* `models.ScaleMode` was added + +* `models.RedundancyConversionStatusResponse` was added + +* `models.FileShareEncryption` was added + +* `models.RedundancyConversionStatus` was added + +* `models.CustomerManagedKeyEncryption` was added + +* `models.RedundancyConversionStatusOutput` was added + +* `models.FileShareOfferInput` was added + +#### `models.FileShare$Definition` was modified + +* `withIdentity(models.ManagedServiceIdentity)` was added + +#### `models.FileShareUpdate` was modified + +* `identity()` was added +* `withIdentity(models.ManagedServiceIdentity)` was added + +#### `models.FileShareUpdateProperties` was modified + +* `withEncryption(models.FileShareEncryption)` was added +* `encryption()` was added + +#### `models.FileShare$Update` was modified + +* `withIdentity(models.ManagedServiceIdentity)` was added + +#### `models.InformationalOperations` was modified + +* `getLimitsWithResponse(java.lang.String,models.FileShareLimitsRequest,com.azure.core.util.Context)` was added + +#### `models.FileShares` was modified + +* `startRedundancyConversionWithResponse(java.lang.String,java.lang.String,models.StartRedundancyConversionRequest,com.azure.core.util.Context)` was added +* `startRedundancyConversion(java.lang.String,java.lang.String,models.StartRedundancyConversionRequest)` was added +* `getRedundancyConversionStatus(java.lang.String,java.lang.String)` was added +* `getRedundancyConversionStatusWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added + +#### `models.FileShare` was modified + +* `getRedundancyConversionStatus()` was added +* `startRedundancyConversion(models.StartRedundancyConversionRequest)` was added +* `startRedundancyConversionWithResponse(models.StartRedundancyConversionRequest,com.azure.core.util.Context)` was added +* `identity()` was added +* `getRedundancyConversionStatusWithResponse(com.azure.core.util.Context)` was added + +#### `models.FileShareProperties` was modified + +* `withScaleMode(models.ScaleMode)` was added +* `encryption()` was added +* `scaleMode()` was added +* `migrationState()` was added +* `withEncryption(models.FileShareEncryption)` was added + +#### `models.FileShareProvisioningRecommendationInput` was modified + +* `protocol()` was added +* `withProtocol(models.Protocol)` was added +* `scaleMode()` was added +* `withScaleMode(models.ScaleMode)` was added +* `mediaTier()` was added +* `withMediaTier(models.MediaTier)` was added + +#### `models.MediaTier` was modified -### Other Changes +* `HDD` was added ## 1.0.0-beta.1 (2026-05-06) diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/README.md b/sdk/fileshares/azure-resourcemanager-fileshares/README.md index 391b1ad6b0eae..3710d3879567a 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/README.md +++ b/sdk/fileshares/azure-resourcemanager-fileshares/README.md @@ -2,7 +2,7 @@ Azure Resource Manager FileShares client library for Java. -This package contains Microsoft Azure SDK for FileShares Management SDK. Azure File Shares Resource Provider API. Package api-version 2026-06-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 FileShares Management SDK. Azure File Shares Resource Provider API. Package api-version 2026-09-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-fileshares - 1.0.0-beta.1 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/SAMPLE.md b/sdk/fileshares/azure-resourcemanager-fileshares/SAMPLE.md index d6b45af676a35..280d115fe0fe1 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/SAMPLE.md +++ b/sdk/fileshares/azure-resourcemanager-fileshares/SAMPLE.md @@ -15,8 +15,10 @@ - [CreateOrUpdate](#fileshares_createorupdate) - [Delete](#fileshares_delete) - [GetByResourceGroup](#fileshares_getbyresourcegroup) +- [GetRedundancyConversionStatus](#fileshares_getredundancyconversionstatus) - [List](#fileshares_list) - [ListByResourceGroup](#fileshares_listbyresourcegroup) +- [StartRedundancyConversion](#fileshares_startredundancyconversion) - [Update](#fileshares_update) ## InformationalOperations @@ -52,7 +54,7 @@ import java.util.Map; */ public final class FileShareSnapshotsCreateOrUpdateFileShareSnapshotSamples { /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: FileShareSnapshot_CreateOrUpdate_MaximumSet. @@ -91,7 +93,7 @@ public final class FileShareSnapshotsCreateOrUpdateFileShareSnapshotSamples { */ public final class FileShareSnapshotsDeleteFileShareSnapshotSamples { /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_Delete_MaximumSet_Gen.json */ /** * Sample code: FileShareSnapshot_Delete_MaximumSet. @@ -115,7 +117,7 @@ public final class FileShareSnapshotsDeleteFileShareSnapshotSamples { */ public final class FileShareSnapshotsGetFileShareSnapshotSamples { /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_Get_MaximumSet_Gen.json */ /** * Sample code: FileShareSnapshot_Get_MaximumSet. @@ -138,7 +140,7 @@ public final class FileShareSnapshotsGetFileShareSnapshotSamples { */ public final class FileShareSnapshotsListByFileShareSamples { /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_List_MinimumSet_Gen.json */ /** * Sample code: FileShareSnapshot_List_MinimumSet. @@ -150,7 +152,7 @@ public final class FileShareSnapshotsListByFileShareSamples { } /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_List_MaximumSet_Gen.json */ /** * Sample code: FileShareSnapshot_List_MaximumSet. @@ -176,7 +178,7 @@ import java.util.Map; */ public final class FileShareSnapshotsUpdateFileShareSnapshotSamples { /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_Update_MaximumSet_Gen.json */ /** * Sample code: FileShareSnapshot_Update_MaximumSet. @@ -219,7 +221,7 @@ import com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityRequest; */ public final class FileSharesCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2026-06-01/FileShares_CheckNameAvailability_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_CheckNameAvailability_MaximumSet_Gen.json */ /** * Sample code: FileShares_CheckNameAvailability_MaximumSet. @@ -235,7 +237,7 @@ public final class FileSharesCheckNameAvailabilitySamples { } /* - * x-ms-original-file: 2026-06-01/FileShares_CheckNameAvailability_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_CheckNameAvailability_MinimumSet_Gen.json */ /** * Sample code: FileShares_CheckNameAvailability_MinimumSet. @@ -254,15 +256,24 @@ public final class FileSharesCheckNameAvailabilitySamples { ### FileShares_CreateOrUpdate ```java +import com.azure.resourcemanager.fileshares.models.CustomerManagedKeyEncryption; import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; +import com.azure.resourcemanager.fileshares.models.FileShareEncryption; import com.azure.resourcemanager.fileshares.models.FileShareProperties; +import com.azure.resourcemanager.fileshares.models.InfrastructureEncryption; +import com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentity; +import com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentityType; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentity; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentityType; import com.azure.resourcemanager.fileshares.models.MediaTier; import com.azure.resourcemanager.fileshares.models.NfsProtocolProperties; import com.azure.resourcemanager.fileshares.models.Protocol; import com.azure.resourcemanager.fileshares.models.PublicAccessProperties; import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; import com.azure.resourcemanager.fileshares.models.Redundancy; +import com.azure.resourcemanager.fileshares.models.ScaleMode; import com.azure.resourcemanager.fileshares.models.ShareRootSquash; +import com.azure.resourcemanager.fileshares.models.UserAssignedIdentity; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -272,7 +283,7 @@ import java.util.Map; */ public final class FileSharesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: FileShares_CreateOrUpdate_MaximumSet. @@ -290,6 +301,7 @@ public final class FileSharesCreateOrUpdateSamples { .withMediaTier(MediaTier.SSD) .withRedundancy(Redundancy.LOCAL) .withProtocol(Protocol.NFS) + .withScaleMode(ScaleMode.SCALE) .withProvisionedStorageGiB(8) .withProvisionedIOPerSec(5) .withProvisionedThroughputMiBPerSec(22) @@ -297,7 +309,19 @@ public final class FileSharesCreateOrUpdateSamples { .withEncryptionInTransitRequired(EncryptionInTransitRequired.ENABLED)) .withPublicAccessProperties(new PublicAccessProperties().withAllowedSubnets(Arrays.asList( "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"))) - .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)) + .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) + .withEncryption(new FileShareEncryption().withInfrastructureEncryption(InfrastructureEncryption.ENABLED) + .withCustomerManagedKeyEncryption(new CustomerManagedKeyEncryption() + .withKeyEncryptionKeyIdentity(new KeyEncryptionKeyIdentity() + .withIdentityType(KeyEncryptionKeyIdentityType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")) + .withKeyEncryptionKeyUrl("fakeTokenPlaceholder")))) + .withIdentity(new ManagedServiceIdentity() + .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity", + new UserAssignedIdentity()))) .create(); } @@ -323,7 +347,7 @@ public final class FileSharesCreateOrUpdateSamples { */ public final class FileSharesDeleteSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_Delete_MaximumSet_Gen.json */ /** * Sample code: FileShares_Delete_MaximumSet. @@ -344,7 +368,7 @@ public final class FileSharesDeleteSamples { */ public final class FileSharesGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_Get_MaximumSet_Gen.json */ /** * Sample code: FileShares_Get_MaximumSet. @@ -358,6 +382,43 @@ public final class FileSharesGetByResourceGroupSamples { } ``` +### FileShares_GetRedundancyConversionStatus + +```java +/** + * Samples for FileShares GetRedundancyConversionStatus. + */ +public final class FileSharesGetRedundancyConversionStatusSamples { + /* + * x-ms-original-file: 2026-09-01/FileShares_GetRedundancyConversionStatus_MaximumSet_Gen.json + */ + /** + * Sample code: FileShares_GetRedundancyConversionStatus_MaximumSet. + * + * @param manager Entry point to FileSharesManager. + */ + public static void fileSharesGetRedundancyConversionStatusMaximumSet( + com.azure.resourcemanager.fileshares.FileSharesManager manager) { + manager.fileShares() + .getRedundancyConversionStatusWithResponse("rgfileshares", "fileshare", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-09-01/FileShares_GetRedundancyConversionStatus_MinimumSet_Gen.json + */ + /** + * Sample code: FileShares_GetRedundancyConversionStatus_MinimumSet. + * + * @param manager Entry point to FileSharesManager. + */ + public static void fileSharesGetRedundancyConversionStatusMinimumSet( + com.azure.resourcemanager.fileshares.FileSharesManager manager) { + manager.fileShares() + .getRedundancyConversionStatusWithResponse("rgfileshares", "fileshare", com.azure.core.util.Context.NONE); + } +} +``` + ### FileShares_List ```java @@ -366,7 +427,7 @@ public final class FileSharesGetByResourceGroupSamples { */ public final class FileSharesListSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_ListBySubscription_MinimumSet_Gen.json */ /** * Sample code: FileShares_ListBySubscription_MinimumSet. @@ -379,7 +440,7 @@ public final class FileSharesListSamples { } /* - * x-ms-original-file: 2026-06-01/FileShares_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: FileShares_ListBySubscription_MaximumSet. @@ -401,7 +462,7 @@ public final class FileSharesListSamples { */ public final class FileSharesListByResourceGroupSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_ListByParent_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_ListByParent_MinimumSet_Gen.json */ /** * Sample code: FileShares_ListByParent_MinimumSet. @@ -414,7 +475,7 @@ public final class FileSharesListByResourceGroupSamples { } /* - * x-ms-original-file: 2026-06-01/FileShares_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_ListByParent_MaximumSet_Gen.json */ /** * Sample code: FileShares_ListByParent_MaximumSet. @@ -428,16 +489,54 @@ public final class FileSharesListByResourceGroupSamples { } ``` +### FileShares_StartRedundancyConversion + +```java +import com.azure.resourcemanager.fileshares.models.Redundancy; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionInput; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest; + +/** + * Samples for FileShares StartRedundancyConversion. + */ +public final class FileSharesStartRedundancyConversionSamples { + /* + * x-ms-original-file: 2026-09-01/FileShares_StartRedundancyConversion_MaximumSet_Gen.json + */ + /** + * Sample code: FileShares_StartRedundancyConversion_MaximumSet. + * + * @param manager Entry point to FileSharesManager. + */ + public static void + fileSharesStartRedundancyConversionMaximumSet(com.azure.resourcemanager.fileshares.FileSharesManager manager) { + manager.fileShares() + .startRedundancyConversionWithResponse("rgfileshares", "fileshare", + new StartRedundancyConversionRequest() + .withProperties(new StartRedundancyConversionInput().withTargetRedundancy(Redundancy.ZONE)), + com.azure.core.util.Context.NONE); + } +} +``` + ### FileShares_Update ```java +import com.azure.resourcemanager.fileshares.models.CustomerManagedKeyEncryption; import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; import com.azure.resourcemanager.fileshares.models.FileShare; +import com.azure.resourcemanager.fileshares.models.FileShareEncryption; import com.azure.resourcemanager.fileshares.models.FileShareUpdateProperties; +import com.azure.resourcemanager.fileshares.models.InfrastructureEncryption; +import com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentity; +import com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentityType; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentity; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentityType; import com.azure.resourcemanager.fileshares.models.NfsProtocolProperties; import com.azure.resourcemanager.fileshares.models.PublicAccessProperties; import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; import com.azure.resourcemanager.fileshares.models.ShareRootSquash; +import com.azure.resourcemanager.fileshares.models.UserAssignedIdentity; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -447,7 +546,7 @@ import java.util.Map; */ public final class FileSharesUpdateSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_Update_MaximumSet_Gen.json */ /** * Sample code: FileShares_Update_MaximumSet. @@ -460,6 +559,11 @@ public final class FileSharesUpdateSamples { .getValue(); resource.update() .withTags(mapOf("key173", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity() + .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity", + new UserAssignedIdentity()))) .withProperties(new FileShareUpdateProperties().withProvisionedStorageGiB(7) .withProvisionedIOPerSec(1) .withProvisionedThroughputMiBPerSec(29) @@ -467,7 +571,14 @@ public final class FileSharesUpdateSamples { .withEncryptionInTransitRequired(EncryptionInTransitRequired.ENABLED)) .withPublicAccessProperties(new PublicAccessProperties().withAllowedSubnets(Arrays.asList( "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"))) - .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)) + .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) + .withEncryption(new FileShareEncryption().withInfrastructureEncryption(InfrastructureEncryption.ENABLED) + .withCustomerManagedKeyEncryption(new CustomerManagedKeyEncryption() + .withKeyEncryptionKeyIdentity(new KeyEncryptionKeyIdentity() + .withIdentityType(KeyEncryptionKeyIdentityType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")) + .withKeyEncryptionKeyUrl("fakeTokenPlaceholder")))) .apply(); } @@ -488,12 +599,18 @@ public final class FileSharesUpdateSamples { ### InformationalOperations_GetLimits ```java +import com.azure.resourcemanager.fileshares.models.FileShareLimitsRequest; +import com.azure.resourcemanager.fileshares.models.FileShareOfferInput; +import com.azure.resourcemanager.fileshares.models.MediaTier; +import com.azure.resourcemanager.fileshares.models.Protocol; +import com.azure.resourcemanager.fileshares.models.ScaleMode; + /** * Samples for InformationalOperations GetLimits. */ public final class InformationalOperationsGetLimitsSamples { /* - * x-ms-original-file: 2026-06-01/FileShare_GetLimits_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetLimits_MinimumSet_Gen.json */ /** * Sample code: FileShare_GetLimits_MinimumSet. @@ -501,11 +618,13 @@ public final class InformationalOperationsGetLimitsSamples { * @param manager Entry point to FileSharesManager. */ public static void fileShareGetLimitsMinimumSet(com.azure.resourcemanager.fileshares.FileSharesManager manager) { - manager.informationalOperations().getLimitsWithResponse("westus", com.azure.core.util.Context.NONE); + manager.informationalOperations() + .getLimitsWithResponse("westus", new FileShareLimitsRequest().withProperties(new FileShareOfferInput()), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-06-01/FileShare_GetLimits_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetLimits_MaximumSet_Gen.json */ /** * Sample code: FileShare_GetLimits_MaximumSet. @@ -513,7 +632,12 @@ public final class InformationalOperationsGetLimitsSamples { * @param manager Entry point to FileSharesManager. */ public static void fileShareGetLimitsMaximumSet(com.azure.resourcemanager.fileshares.FileSharesManager manager) { - manager.informationalOperations().getLimitsWithResponse("westus", com.azure.core.util.Context.NONE); + manager.informationalOperations() + .getLimitsWithResponse("westus", + new FileShareLimitsRequest().withProperties(new FileShareOfferInput().withProtocol(Protocol.NFS) + .withMediaTier(MediaTier.HDD) + .withScaleMode(ScaleMode.SCALE)), + com.azure.core.util.Context.NONE); } } ``` @@ -523,13 +647,16 @@ public final class InformationalOperationsGetLimitsSamples { ```java import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationInput; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest; +import com.azure.resourcemanager.fileshares.models.MediaTier; +import com.azure.resourcemanager.fileshares.models.Protocol; +import com.azure.resourcemanager.fileshares.models.ScaleMode; /** * Samples for InformationalOperations GetProvisioningRecommendation. */ public final class InformationalOperationsGetProvisioningRecommendationSamples { /* - * x-ms-original-file: 2026-06-01/FileShare_GetProvisioningRecommendation_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetProvisioningRecommendation_MaximumSet_Gen.json */ /** * Sample code: FileShare_GetProvisioningRecommendation_MaximumSet. @@ -541,12 +668,15 @@ public final class InformationalOperationsGetProvisioningRecommendationSamples { manager.informationalOperations() .getProvisioningRecommendationWithResponse("westus", new FileShareProvisioningRecommendationRequest() - .withProperties(new FileShareProvisioningRecommendationInput().withProvisionedStorageGiB(7)), + .withProperties(new FileShareProvisioningRecommendationInput().withProvisionedStorageGiB(7) + .withProtocol(Protocol.NFS) + .withMediaTier(MediaTier.HDD) + .withScaleMode(ScaleMode.SCALE)), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-06-01/FileShare_GetProvisioningRecommendation_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetProvisioningRecommendation_MinimumSet_Gen.json */ /** * Sample code: FileShare_GetProvisioningRecommendation_MinimumSet. @@ -572,7 +702,7 @@ public final class InformationalOperationsGetProvisioningRecommendationSamples { */ public final class InformationalOperationsGetUsageDataSamples { /* - * x-ms-original-file: 2026-06-01/FileShare_GetUsageData_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetUsageData_MaximumSet_Gen.json */ /** * Sample code: FileShare_GetUsageData_MaximumSet. @@ -584,7 +714,7 @@ public final class InformationalOperationsGetUsageDataSamples { } /* - * x-ms-original-file: 2026-06-01/FileShare_GetUsageData_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetUsageData_MinimumSet_Gen.json */ /** * Sample code: FileShare_GetUsageData_MinimumSet. @@ -605,7 +735,7 @@ public final class InformationalOperationsGetUsageDataSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-06-01/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/Operations_List_MinimumSet_Gen.json */ /** * Sample code: Operations_List_MinimumSet. @@ -617,7 +747,7 @@ public final class OperationsListSamples { } /* - * x-ms-original-file: 2026-06-01/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/Operations_List_MaximumSet_Gen.json */ /** * Sample code: Operations_List_MaximumSet. @@ -642,7 +772,7 @@ import com.azure.resourcemanager.fileshares.models.PrivateLinkServiceConnectionS */ public final class PrivateEndpointConnectionsCreateSamples { /* - * x-ms-original-file: 2026-06-01/PrivateEndpointConnections_Create.json + * x-ms-original-file: 2026-09-01/PrivateEndpointConnections_Create.json */ /** * Sample code: PrivateEndpointConnections_Create. @@ -670,7 +800,7 @@ public final class PrivateEndpointConnectionsCreateSamples { */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-06-01/PrivateEndpointConnections_Delete.json + * x-ms-original-file: 2026-09-01/PrivateEndpointConnections_Delete.json */ /** * Sample code: PrivateEndpointConnections_Delete. @@ -693,7 +823,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2026-06-01/PrivateEndpointConnections_Get.json + * x-ms-original-file: 2026-09-01/PrivateEndpointConnections_Get.json */ /** * Sample code: PrivateEndpointConnections_Get. @@ -716,7 +846,7 @@ public final class PrivateEndpointConnectionsGetSamples { */ public final class PrivateEndpointConnectionsListByFileShareSamples { /* - * x-ms-original-file: 2026-06-01/PrivateEndpointConnections_ListByFileShare.json + * x-ms-original-file: 2026-09-01/PrivateEndpointConnections_ListByFileShare.json */ /** * Sample code: PrivateEndpointConnections_ListByFileShare. @@ -739,7 +869,7 @@ public final class PrivateEndpointConnectionsListByFileShareSamples { */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: 2026-06-01/PrivateLinkResources_Get.json + * x-ms-original-file: 2026-09-01/PrivateLinkResources_Get.json */ /** * Sample code: Get PrivateLinkResource. @@ -761,7 +891,7 @@ public final class PrivateLinkResourcesGetSamples { */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: 2026-06-01/PrivateLinkResources_ListByFileShare.json + * x-ms-original-file: 2026-09-01/PrivateLinkResources_ListByFileShare.json */ /** * Sample code: List PrivateLinkResources. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml index 8870d0ebc7e0a..e05682538dca7 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml +++ b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-fileshares - 1.0.0-beta.2 + 1.0.0 jar Microsoft Azure SDK for FileShares Management - This package contains Microsoft Azure SDK for FileShares Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure File Shares Resource Provider API. Package api-version 2026-06-01. + This package contains Microsoft Azure SDK for FileShares Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure File Shares Resource Provider API. Package api-version 2026-09-01. https://github.com/Azure/azure-sdk-for-java @@ -45,7 +45,7 @@ UTF-8 0 0 - true + false diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesClient.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesClient.java index 476618ffa18f8..ea3e3a9a54cdb 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesClient.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesClient.java @@ -13,8 +13,10 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.fileshares.fluent.models.CheckNameAvailabilityResponseInner; import com.azure.resourcemanager.fileshares.fluent.models.FileShareInner; +import com.azure.resourcemanager.fileshares.fluent.models.RedundancyConversionStatusResponseInner; import com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityRequest; import com.azure.resourcemanager.fileshares.models.FileShareUpdate; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest; /** * An instance of this class provides access to all the operations defined in FileSharesClient. @@ -309,4 +311,68 @@ Response checkNameAvailabilityWithResponse(S */ @ServiceMethod(returns = ReturnType.SINGLE) CheckNameAvailabilityResponseInner checkNameAvailability(String location, CheckNameAvailabilityRequest body); + + /** + * Starts a redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response startRedundancyConversionWithResponse(String resourceGroupName, String resourceName, + StartRedundancyConversionRequest body, Context context); + + /** + * Starts a redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @param body The content of the action request. + * @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 startRedundancyConversion(String resourceGroupName, String resourceName, + StartRedundancyConversionRequest body); + + /** + * Gets the status and details of the current or most recent redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @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 status and details of the current or most recent redundancy conversion for the file share along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response + getRedundancyConversionStatusWithResponse(String resourceGroupName, String resourceName, Context context); + + /** + * Gets the status and details of the current or most recent redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @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 status and details of the current or most recent redundancy conversion for the file share. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RedundancyConversionStatusResponseInner getRedundancyConversionStatus(String resourceGroupName, + String resourceName); } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/InformationalOperationsClient.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/InformationalOperationsClient.java index 03fedf136e273..6951780fe16de 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/InformationalOperationsClient.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/InformationalOperationsClient.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.fileshares.fluent.models.FileShareLimitsResponseInner; import com.azure.resourcemanager.fileshares.fluent.models.FileShareProvisioningRecommendationResponseInner; import com.azure.resourcemanager.fileshares.fluent.models.FileShareUsageDataResponseInner; +import com.azure.resourcemanager.fileshares.models.FileShareLimitsRequest; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest; /** @@ -46,6 +47,7 @@ public interface InformationalOperationsClient { * Get file shares limits. * * @param location The name of the Azure region. + * @param body The request body. * @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. @@ -53,7 +55,8 @@ public interface InformationalOperationsClient { * @return file shares limits along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getLimitsWithResponse(String location, Context context); + Response getLimitsWithResponse(String location, FileShareLimitsRequest body, + Context context); /** * Get file shares limits. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareInner.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareInner.java index e600c75a658fd..37ab6563a5f01 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareInner.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareInner.java @@ -11,6 +11,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.fileshares.models.FileShareProperties; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentity; import java.io.IOException; import java.util.Map; @@ -24,6 +25,11 @@ public final class FileShareInner extends Resource { */ private FileShareProperties properties; + /* + * The managed service identities assigned to this resource. + */ + private ManagedServiceIdentity identity; + /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @@ -70,6 +76,26 @@ public FileShareInner withProperties(FileShareProperties properties) { return this; } + /** + * Get the identity property: The managed service identities assigned to this resource. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The managed service identities assigned to this resource. + * + * @param identity the identity value to set. + * @return the FileShareInner object itself. + */ + public FileShareInner withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -136,6 +162,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeJsonField("identity", this.identity); return jsonWriter.writeEndObject(); } @@ -168,6 +195,8 @@ public static FileShareInner fromJson(JsonReader jsonReader) throws IOException deserializedFileShareInner.withTags(tags); } else if ("properties".equals(fieldName)) { deserializedFileShareInner.properties = FileShareProperties.fromJson(reader); + } else if ("identity".equals(fieldName)) { + deserializedFileShareInner.identity = ManagedServiceIdentity.fromJson(reader); } else if ("systemData".equals(fieldName)) { deserializedFileShareInner.systemData = SystemData.fromJson(reader); } else { diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/models/RedundancyConversionStatusResponseInner.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/models/RedundancyConversionStatusResponseInner.java new file mode 100644 index 0000000000000..60672fd3f80c4 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/fluent/models/RedundancyConversionStatusResponseInner.java @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.fluent.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.fileshares.models.RedundancyConversionStatusOutput; +import java.io.IOException; + +/** + * Response containing the status and details of the current or most recent redundancy conversion. + */ +@Immutable +public final class RedundancyConversionStatusResponseInner + implements JsonSerializable { + /* + * Properties containing the redundancy conversion status output. + */ + private RedundancyConversionStatusOutput properties; + + /** + * Creates an instance of RedundancyConversionStatusResponseInner class. + */ + private RedundancyConversionStatusResponseInner() { + } + + /** + * Get the properties property: Properties containing the redundancy conversion status output. + * + * @return the properties value. + */ + public RedundancyConversionStatusOutput properties() { + return this.properties; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RedundancyConversionStatusResponseInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RedundancyConversionStatusResponseInner 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 RedundancyConversionStatusResponseInner. + */ + public static RedundancyConversionStatusResponseInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RedundancyConversionStatusResponseInner deserializedRedundancyConversionStatusResponseInner + = new RedundancyConversionStatusResponseInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedRedundancyConversionStatusResponseInner.properties + = RedundancyConversionStatusOutput.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedRedundancyConversionStatusResponseInner; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareImpl.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareImpl.java index 66a36f1a88562..2b972dedf9daa 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareImpl.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.fileshares.implementation; +import com.azure.core.http.rest.Response; import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; @@ -12,6 +13,9 @@ import com.azure.resourcemanager.fileshares.models.FileShareProperties; import com.azure.resourcemanager.fileshares.models.FileShareUpdate; import com.azure.resourcemanager.fileshares.models.FileShareUpdateProperties; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentity; +import com.azure.resourcemanager.fileshares.models.RedundancyConversionStatusResponse; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest; import java.util.Collections; import java.util.Map; @@ -49,6 +53,10 @@ public FileShareProperties properties() { return this.innerModel().properties(); } + public ManagedServiceIdentity identity() { + return this.innerModel().identity(); + } + public SystemData systemData() { return this.innerModel().systemData(); } @@ -146,6 +154,25 @@ public FileShare refresh(Context context) { return this; } + public Response startRedundancyConversionWithResponse(StartRedundancyConversionRequest body, + Context context) { + return serviceManager.fileShares() + .startRedundancyConversionWithResponse(resourceGroupName, resourceName, body, context); + } + + public void startRedundancyConversion(StartRedundancyConversionRequest body) { + serviceManager.fileShares().startRedundancyConversion(resourceGroupName, resourceName, body); + } + + public Response getRedundancyConversionStatusWithResponse(Context context) { + return serviceManager.fileShares() + .getRedundancyConversionStatusWithResponse(resourceGroupName, resourceName, context); + } + + public RedundancyConversionStatusResponse getRedundancyConversionStatus() { + return serviceManager.fileShares().getRedundancyConversionStatus(resourceGroupName, resourceName); + } + public FileShareImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; @@ -171,6 +198,16 @@ public FileShareImpl withProperties(FileShareProperties properties) { return this; } + public FileShareImpl withIdentity(ManagedServiceIdentity identity) { + if (isInCreateMode()) { + this.innerModel().withIdentity(identity); + return this; + } else { + this.updateProperties.withIdentity(identity); + return this; + } + } + public FileShareImpl withProperties(FileShareUpdateProperties properties) { this.updateProperties.withProperties(properties); return this; diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesClientImpl.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesClientImpl.java index 26b72473badcd..a53c9bacec459 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesClientImpl.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesClientImpl.java @@ -37,9 +37,11 @@ import com.azure.resourcemanager.fileshares.fluent.FileSharesClient; import com.azure.resourcemanager.fileshares.fluent.models.CheckNameAvailabilityResponseInner; import com.azure.resourcemanager.fileshares.fluent.models.FileShareInner; +import com.azure.resourcemanager.fileshares.fluent.models.RedundancyConversionStatusResponseInner; import com.azure.resourcemanager.fileshares.implementation.models.FileShareListResult; import com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityRequest; import com.azure.resourcemanager.fileshares.models.FileShareUpdate; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -200,6 +202,46 @@ Response checkNameAvailabilitySync(@HostPara @HeaderParam("Accept") String accept, @BodyParam("application/json") CheckNameAvailabilityRequest body, Context context); + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/startRedundancyConversion") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> startRedundancyConversion(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") StartRedundancyConversionRequest body, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/startRedundancyConversion") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response startRedundancyConversionSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") StartRedundancyConversionRequest body, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/getRedundancyConversionStatus") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getRedundancyConversionStatus( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/getRedundancyConversionStatus") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getRedundancyConversionStatusSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -1100,6 +1142,166 @@ public CheckNameAvailabilityResponseInner checkNameAvailability(String location, return checkNameAvailabilityWithResponse(location, body, Context.NONE).getValue(); } + /** + * Starts a redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @param body The content of the action request. + * @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> startRedundancyConversionWithResponseAsync(String resourceGroupName, + String resourceName, StartRedundancyConversionRequest body) { + final String contentType = "application/json"; + return FluxUtil + .withContext( + context -> service.startRedundancyConversion(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, contentType, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Starts a redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @param body The content of the action request. + * @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 startRedundancyConversionAsync(String resourceGroupName, String resourceName, + StartRedundancyConversionRequest body) { + return startRedundancyConversionWithResponseAsync(resourceGroupName, resourceName, body) + .flatMap(ignored -> Mono.empty()); + } + + /** + * Starts a redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response startRedundancyConversionWithResponse(String resourceGroupName, String resourceName, + StartRedundancyConversionRequest body, Context context) { + final String contentType = "application/json"; + return service.startRedundancyConversionSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, contentType, body, context); + } + + /** + * Starts a redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @param body The content of the action request. + * @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 startRedundancyConversion(String resourceGroupName, String resourceName, + StartRedundancyConversionRequest body) { + startRedundancyConversionWithResponse(resourceGroupName, resourceName, body, Context.NONE); + } + + /** + * Gets the status and details of the current or most recent redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @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 status and details of the current or most recent redundancy conversion for the file share along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + getRedundancyConversionStatusWithResponseAsync(String resourceGroupName, String resourceName) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.getRedundancyConversionStatus(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the status and details of the current or most recent redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @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 status and details of the current or most recent redundancy conversion for the file share on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getRedundancyConversionStatusAsync(String resourceGroupName, + String resourceName) { + return getRedundancyConversionStatusWithResponseAsync(resourceGroupName, resourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the status and details of the current or most recent redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @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 status and details of the current or most recent redundancy conversion for the file share along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response + getRedundancyConversionStatusWithResponse(String resourceGroupName, String resourceName, Context context) { + final String accept = "application/json"; + return service.getRedundancyConversionStatusSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); + } + + /** + * Gets the status and details of the current or most recent redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @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 status and details of the current or most recent redundancy conversion for the file share. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RedundancyConversionStatusResponseInner getRedundancyConversionStatus(String resourceGroupName, + String resourceName) { + return getRedundancyConversionStatusWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); + } + /** * Get the next page of items. * diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesImpl.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesImpl.java index f2e05f77e4d16..d7452abb9ff04 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesImpl.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesImpl.java @@ -12,10 +12,13 @@ import com.azure.resourcemanager.fileshares.fluent.FileSharesClient; import com.azure.resourcemanager.fileshares.fluent.models.CheckNameAvailabilityResponseInner; import com.azure.resourcemanager.fileshares.fluent.models.FileShareInner; +import com.azure.resourcemanager.fileshares.fluent.models.RedundancyConversionStatusResponseInner; import com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityRequest; import com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityResponse; import com.azure.resourcemanager.fileshares.models.FileShare; import com.azure.resourcemanager.fileshares.models.FileShares; +import com.azure.resourcemanager.fileshares.models.RedundancyConversionStatusResponse; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest; public final class FileSharesImpl implements FileShares { private static final ClientLogger LOGGER = new ClientLogger(FileSharesImpl.class); @@ -92,6 +95,36 @@ public CheckNameAvailabilityResponse checkNameAvailability(String location, Chec } } + public Response startRedundancyConversionWithResponse(String resourceGroupName, String resourceName, + StartRedundancyConversionRequest body, Context context) { + return this.serviceClient() + .startRedundancyConversionWithResponse(resourceGroupName, resourceName, body, context); + } + + public void startRedundancyConversion(String resourceGroupName, String resourceName, + StartRedundancyConversionRequest body) { + this.serviceClient().startRedundancyConversion(resourceGroupName, resourceName, body); + } + + public Response + getRedundancyConversionStatusWithResponse(String resourceGroupName, String resourceName, Context context) { + Response inner + = this.serviceClient().getRedundancyConversionStatusWithResponse(resourceGroupName, resourceName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new RedundancyConversionStatusResponseImpl(inner.getValue(), this.manager())); + } + + public RedundancyConversionStatusResponse getRedundancyConversionStatus(String resourceGroupName, + String resourceName) { + RedundancyConversionStatusResponseInner inner + = this.serviceClient().getRedundancyConversionStatus(resourceGroupName, resourceName); + if (inner != null) { + return new RedundancyConversionStatusResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public FileShare getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientImpl.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientImpl.java index df3f94846c6c2..7dd597797e834 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientImpl.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientImpl.java @@ -232,7 +232,7 @@ public PrivateLinkResourcesClient getPrivateLinkResources() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-06-01"; + this.apiVersion = "2026-09-01"; this.fileShares = new FileSharesClientImpl(this); this.fileShareSnapshots = new FileShareSnapshotsClientImpl(this); this.operations = new OperationsClientImpl(this); diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsClientImpl.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsClientImpl.java index 4edac236f7bd6..8762672274637 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsClientImpl.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsClientImpl.java @@ -26,6 +26,7 @@ import com.azure.resourcemanager.fileshares.fluent.models.FileShareLimitsResponseInner; import com.azure.resourcemanager.fileshares.fluent.models.FileShareProvisioningRecommendationResponseInner; import com.azure.resourcemanager.fileshares.fluent.models.FileShareUsageDataResponseInner; +import com.azure.resourcemanager.fileshares.models.FileShareLimitsRequest; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest; import reactor.core.publisher.Mono; @@ -83,7 +84,8 @@ Response getUsageDataSync(@HostParam("endpoint" @UnexpectedResponseExceptionType(ManagementException.class) Mono> getLimits(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + @PathParam("location") String location, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FileShareLimitsRequest body, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/locations/{location}/getLimits") @@ -91,7 +93,8 @@ Mono> getLimits(@HostParam("endpoint") St @UnexpectedResponseExceptionType(ManagementException.class) Response getLimitsSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + @PathParam("location") String location, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FileShareLimitsRequest body, Context context); @Post("/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/locations/{location}/getProvisioningRecommendation") @ExpectedResponses({ 200 }) @@ -179,17 +182,19 @@ public FileShareUsageDataResponseInner getUsageData(String location) { * Get file shares limits. * * @param location The name of the Azure region. + * @param body The request body. * @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 file shares limits along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getLimitsWithResponseAsync(String location) { + private Mono> getLimitsWithResponseAsync(String location, + FileShareLimitsRequest body) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.getLimits(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), location, accept, context)) + this.client.getSubscriptionId(), location, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -204,13 +209,15 @@ private Mono> getLimitsWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getLimitsAsync(String location) { - return getLimitsWithResponseAsync(location).flatMap(res -> Mono.justOrEmpty(res.getValue())); + final FileShareLimitsRequest body = null; + return getLimitsWithResponseAsync(location, body).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get file shares limits. * * @param location The name of the Azure region. + * @param body The request body. * @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. @@ -218,10 +225,11 @@ private Mono getLimitsAsync(String location) { * @return file shares limits along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getLimitsWithResponse(String location, Context context) { + public Response getLimitsWithResponse(String location, FileShareLimitsRequest body, + Context context) { final String accept = "application/json"; return service.getLimitsSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), location, accept, context); + this.client.getSubscriptionId(), location, accept, body, context); } /** @@ -235,7 +243,8 @@ public Response getLimitsWithResponse(String locat */ @ServiceMethod(returns = ReturnType.SINGLE) public FileShareLimitsResponseInner getLimits(String location) { - return getLimitsWithResponse(location, Context.NONE).getValue(); + final FileShareLimitsRequest body = null; + return getLimitsWithResponse(location, body, Context.NONE).getValue(); } /** diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsImpl.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsImpl.java index 82d1ee3076ac2..41fe964120c00 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsImpl.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsImpl.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.fileshares.fluent.models.FileShareLimitsResponseInner; import com.azure.resourcemanager.fileshares.fluent.models.FileShareProvisioningRecommendationResponseInner; import com.azure.resourcemanager.fileshares.fluent.models.FileShareUsageDataResponseInner; +import com.azure.resourcemanager.fileshares.models.FileShareLimitsRequest; import com.azure.resourcemanager.fileshares.models.FileShareLimitsResponse; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationResponse; @@ -47,8 +48,10 @@ public FileShareUsageDataResponse getUsageData(String location) { } } - public Response getLimitsWithResponse(String location, Context context) { - Response inner = this.serviceClient().getLimitsWithResponse(location, context); + public Response getLimitsWithResponse(String location, FileShareLimitsRequest body, + Context context) { + Response inner + = this.serviceClient().getLimitsWithResponse(location, body, context); return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new FileShareLimitsResponseImpl(inner.getValue(), this.manager())); } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/RedundancyConversionStatusResponseImpl.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/RedundancyConversionStatusResponseImpl.java new file mode 100644 index 0000000000000..54b6bd20f860b --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/implementation/RedundancyConversionStatusResponseImpl.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.fileshares.implementation; + +import com.azure.resourcemanager.fileshares.fluent.models.RedundancyConversionStatusResponseInner; +import com.azure.resourcemanager.fileshares.models.RedundancyConversionStatusOutput; +import com.azure.resourcemanager.fileshares.models.RedundancyConversionStatusResponse; + +public final class RedundancyConversionStatusResponseImpl implements RedundancyConversionStatusResponse { + private RedundancyConversionStatusResponseInner innerObject; + + private final com.azure.resourcemanager.fileshares.FileSharesManager serviceManager; + + RedundancyConversionStatusResponseImpl(RedundancyConversionStatusResponseInner innerObject, + com.azure.resourcemanager.fileshares.FileSharesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public RedundancyConversionStatusOutput properties() { + return this.innerModel().properties(); + } + + public RedundancyConversionStatusResponseInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.fileshares.FileSharesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/CustomerManagedKeyEncryption.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/CustomerManagedKeyEncryption.java new file mode 100644 index 0000000000000..6c1e8ece58c10 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/CustomerManagedKeyEncryption.java @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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; + +/** + * Customer-managed key encryption properties for the resource. + */ +@Fluent +public final class CustomerManagedKeyEncryption implements JsonSerializable { + /* + * All identity configuration for Customer-managed key settings defining which identity should be used to auth to + * Key Vault. + */ + private KeyEncryptionKeyIdentity keyEncryptionKeyIdentity; + + /* + * key encryption key Url, versioned or non-versioned. Ex: + * https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or + * https://contosovault.vault.azure.net/keys/contosokek. + */ + private String keyEncryptionKeyUrl; + + /** + * Creates an instance of CustomerManagedKeyEncryption class. + */ + public CustomerManagedKeyEncryption() { + } + + /** + * Get the keyEncryptionKeyIdentity property: All identity configuration for Customer-managed key settings defining + * which identity should be used to auth to Key Vault. + * + * @return the keyEncryptionKeyIdentity value. + */ + public KeyEncryptionKeyIdentity keyEncryptionKeyIdentity() { + return this.keyEncryptionKeyIdentity; + } + + /** + * Set the keyEncryptionKeyIdentity property: All identity configuration for Customer-managed key settings defining + * which identity should be used to auth to Key Vault. + * + * @param keyEncryptionKeyIdentity the keyEncryptionKeyIdentity value to set. + * @return the CustomerManagedKeyEncryption object itself. + */ + public CustomerManagedKeyEncryption + withKeyEncryptionKeyIdentity(KeyEncryptionKeyIdentity keyEncryptionKeyIdentity) { + this.keyEncryptionKeyIdentity = keyEncryptionKeyIdentity; + return this; + } + + /** + * Get the keyEncryptionKeyUrl property: key encryption key Url, versioned or non-versioned. Ex: + * https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or + * https://contosovault.vault.azure.net/keys/contosokek. + * + * @return the keyEncryptionKeyUrl value. + */ + public String keyEncryptionKeyUrl() { + return this.keyEncryptionKeyUrl; + } + + /** + * Set the keyEncryptionKeyUrl property: key encryption key Url, versioned or non-versioned. Ex: + * https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or + * https://contosovault.vault.azure.net/keys/contosokek. + * + * @param keyEncryptionKeyUrl the keyEncryptionKeyUrl value to set. + * @return the CustomerManagedKeyEncryption object itself. + */ + public CustomerManagedKeyEncryption withKeyEncryptionKeyUrl(String keyEncryptionKeyUrl) { + this.keyEncryptionKeyUrl = keyEncryptionKeyUrl; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("keyEncryptionKeyIdentity", this.keyEncryptionKeyIdentity); + jsonWriter.writeStringField("keyEncryptionKeyUrl", this.keyEncryptionKeyUrl); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CustomerManagedKeyEncryption from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CustomerManagedKeyEncryption 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 CustomerManagedKeyEncryption. + */ + public static CustomerManagedKeyEncryption fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CustomerManagedKeyEncryption deserializedCustomerManagedKeyEncryption = new CustomerManagedKeyEncryption(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keyEncryptionKeyIdentity".equals(fieldName)) { + deserializedCustomerManagedKeyEncryption.keyEncryptionKeyIdentity + = KeyEncryptionKeyIdentity.fromJson(reader); + } else if ("keyEncryptionKeyUrl".equals(fieldName)) { + deserializedCustomerManagedKeyEncryption.keyEncryptionKeyUrl = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCustomerManagedKeyEncryption; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShare.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShare.java index ec99c5f895312..5181b53cc24bb 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShare.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShare.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.fileshares.models; +import com.azure.core.http.rest.Response; import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; @@ -56,6 +57,13 @@ public interface FileShare { */ FileShareProperties properties(); + /** + * Gets the identity property: The managed service identities assigned to this resource. + * + * @return the identity value. + */ + ManagedServiceIdentity identity(); + /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -146,7 +154,8 @@ interface WithResourceGroup { * The stage of the FileShare definition which contains all the minimum required properties for the resource to * be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + interface WithCreate + extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithIdentity { /** * Executes the create request. * @@ -188,6 +197,19 @@ interface WithProperties { */ WithCreate withProperties(FileShareProperties properties); } + + /** + * The stage of the FileShare definition allowing to specify identity. + */ + interface WithIdentity { + /** + * Specifies the identity property: The managed service identities assigned to this resource.. + * + * @param identity The managed service identities assigned to this resource. + * @return the next definition stage. + */ + WithCreate withIdentity(ManagedServiceIdentity identity); + } } /** @@ -200,7 +222,7 @@ interface WithProperties { /** * The template for FileShare update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { + interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithProperties { /** * Executes the update request. * @@ -234,6 +256,19 @@ interface WithTags { Update withTags(Map tags); } + /** + * The stage of the FileShare update allowing to specify identity. + */ + interface WithIdentity { + /** + * Specifies the identity property: The managed service identities assigned to this resource.. + * + * @param identity The managed service identities assigned to this resource. + * @return the next definition stage. + */ + Update withIdentity(ManagedServiceIdentity identity); + } + /** * The stage of the FileShare update allowing to specify properties. */ @@ -262,4 +297,47 @@ interface WithProperties { * @return the refreshed resource. */ FileShare refresh(Context context); + + /** + * Starts a redundancy conversion for the file share. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response startRedundancyConversionWithResponse(StartRedundancyConversionRequest body, Context context); + + /** + * Starts a redundancy conversion for the file share. + * + * @param body The content of the action request. + * @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 startRedundancyConversion(StartRedundancyConversionRequest body); + + /** + * Gets the status and details of the current or most recent redundancy conversion for the file share. + * + * @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 status and details of the current or most recent redundancy conversion for the file share along with + * {@link Response}. + */ + Response getRedundancyConversionStatusWithResponse(Context context); + + /** + * Gets the status and details of the current or most recent redundancy conversion for the file share. + * + * @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 status and details of the current or most recent redundancy conversion for the file share. + */ + RedundancyConversionStatusResponse getRedundancyConversionStatus(); } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareEncryption.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareEncryption.java new file mode 100644 index 0000000000000..c22f7b332198d --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareEncryption.java @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.exception.ManagementError; +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; + +/** + * Encryption settings for the file share. Composes the standard common encryption type with read-only customer-managed + * key rotation status owned by the file share resource provider. Automatic key rotation follows the Azure Storage + * account model and is derived from the key URL shape: an unversioned customerManagedKeyEncryption.keyEncryptionKeyUrl + * opts into automatic rotation to the latest key version, while a versioned URL pins a specific version. + */ +@Fluent +public final class FileShareEncryption implements JsonSerializable { + /* + * Values are enabled and disabled. + */ + private InfrastructureEncryption infrastructureEncryption; + + /* + * All Customer-managed key encryption properties for the resource. + */ + private CustomerManagedKeyEncryption customerManagedKeyEncryption; + + /* + * The versioned key encryption key URL currently applied to the file share by the service. When an unversioned + * keyEncryptionKeyUrl is supplied, this reflects the resolved latest key version currently in use. + */ + private String currentKeyEncryptionKeyUrl; + + /* + * The UTC timestamp when the service last successfully rotated the active customer-managed key version. + */ + private OffsetDateTime lastKeyRotationTimestamp; + + /* + * The last customer-actionable error encountered while automatically rotating to the latest key version. + */ + private ManagementError autoKeyRotationError; + + /** + * Creates an instance of FileShareEncryption class. + */ + public FileShareEncryption() { + } + + /** + * Get the infrastructureEncryption property: Values are enabled and disabled. + * + * @return the infrastructureEncryption value. + */ + public InfrastructureEncryption infrastructureEncryption() { + return this.infrastructureEncryption; + } + + /** + * Set the infrastructureEncryption property: Values are enabled and disabled. + * + * @param infrastructureEncryption the infrastructureEncryption value to set. + * @return the FileShareEncryption object itself. + */ + public FileShareEncryption withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption) { + this.infrastructureEncryption = infrastructureEncryption; + return this; + } + + /** + * Get the customerManagedKeyEncryption property: All Customer-managed key encryption properties for the resource. + * + * @return the customerManagedKeyEncryption value. + */ + public CustomerManagedKeyEncryption customerManagedKeyEncryption() { + return this.customerManagedKeyEncryption; + } + + /** + * Set the customerManagedKeyEncryption property: All Customer-managed key encryption properties for the resource. + * + * @param customerManagedKeyEncryption the customerManagedKeyEncryption value to set. + * @return the FileShareEncryption object itself. + */ + public FileShareEncryption + withCustomerManagedKeyEncryption(CustomerManagedKeyEncryption customerManagedKeyEncryption) { + this.customerManagedKeyEncryption = customerManagedKeyEncryption; + return this; + } + + /** + * Get the currentKeyEncryptionKeyUrl property: The versioned key encryption key URL currently applied to the file + * share by the service. When an unversioned keyEncryptionKeyUrl is supplied, this reflects the resolved latest key + * version currently in use. + * + * @return the currentKeyEncryptionKeyUrl value. + */ + public String currentKeyEncryptionKeyUrl() { + return this.currentKeyEncryptionKeyUrl; + } + + /** + * Get the lastKeyRotationTimestamp property: The UTC timestamp when the service last successfully rotated the + * active customer-managed key version. + * + * @return the lastKeyRotationTimestamp value. + */ + public OffsetDateTime lastKeyRotationTimestamp() { + return this.lastKeyRotationTimestamp; + } + + /** + * Get the autoKeyRotationError property: The last customer-actionable error encountered while automatically + * rotating to the latest key version. + * + * @return the autoKeyRotationError value. + */ + public ManagementError autoKeyRotationError() { + return this.autoKeyRotationError; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("infrastructureEncryption", + this.infrastructureEncryption == null ? null : this.infrastructureEncryption.toString()); + jsonWriter.writeJsonField("customerManagedKeyEncryption", this.customerManagedKeyEncryption); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FileShareEncryption from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FileShareEncryption 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 FileShareEncryption. + */ + public static FileShareEncryption fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FileShareEncryption deserializedFileShareEncryption = new FileShareEncryption(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("infrastructureEncryption".equals(fieldName)) { + deserializedFileShareEncryption.infrastructureEncryption + = InfrastructureEncryption.fromString(reader.getString()); + } else if ("customerManagedKeyEncryption".equals(fieldName)) { + deserializedFileShareEncryption.customerManagedKeyEncryption + = CustomerManagedKeyEncryption.fromJson(reader); + } else if ("currentKeyEncryptionKeyUrl".equals(fieldName)) { + deserializedFileShareEncryption.currentKeyEncryptionKeyUrl = reader.getString(); + } else if ("lastKeyRotationTimestamp".equals(fieldName)) { + deserializedFileShareEncryption.lastKeyRotationTimestamp = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("autoKeyRotationError".equals(fieldName)) { + deserializedFileShareEncryption.autoKeyRotationError = ManagementError.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedFileShareEncryption; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsRequest.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsRequest.java new file mode 100644 index 0000000000000..8fa552a4da51c --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsRequest.java @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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; + +/** + * Request structure for the file share limits API. + */ +@Fluent +public final class FileShareLimitsRequest implements JsonSerializable { + /* + * Properties used to select the file share offer. + */ + private FileShareOfferInput properties; + + /** + * Creates an instance of FileShareLimitsRequest class. + */ + public FileShareLimitsRequest() { + } + + /** + * Get the properties property: Properties used to select the file share offer. + * + * @return the properties value. + */ + public FileShareOfferInput properties() { + return this.properties; + } + + /** + * Set the properties property: Properties used to select the file share offer. + * + * @param properties the properties value to set. + * @return the FileShareLimitsRequest object itself. + */ + public FileShareLimitsRequest withProperties(FileShareOfferInput properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FileShareLimitsRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FileShareLimitsRequest 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 FileShareLimitsRequest. + */ + public static FileShareLimitsRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FileShareLimitsRequest deserializedFileShareLimitsRequest = new FileShareLimitsRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedFileShareLimitsRequest.properties = FileShareOfferInput.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedFileShareLimitsRequest; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareOfferInput.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareOfferInput.java new file mode 100644 index 0000000000000..29cd31e6f8d14 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareOfferInput.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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; + +/** + * File share offer dimensions. + */ +@Fluent +public final class FileShareOfferInput implements JsonSerializable { + /* + * The file sharing protocol. Defaults to NFS. + */ + private Protocol protocol; + + /* + * The storage media tier. Defaults to SSD. + */ + private MediaTier mediaTier; + + /* + * The scale mode. Defaults to Compatibility. + */ + private ScaleMode scaleMode; + + /** + * Creates an instance of FileShareOfferInput class. + */ + public FileShareOfferInput() { + } + + /** + * Get the protocol property: The file sharing protocol. Defaults to NFS. + * + * @return the protocol value. + */ + public Protocol protocol() { + return this.protocol; + } + + /** + * Set the protocol property: The file sharing protocol. Defaults to NFS. + * + * @param protocol the protocol value to set. + * @return the FileShareOfferInput object itself. + */ + public FileShareOfferInput withProtocol(Protocol protocol) { + this.protocol = protocol; + return this; + } + + /** + * Get the mediaTier property: The storage media tier. Defaults to SSD. + * + * @return the mediaTier value. + */ + public MediaTier mediaTier() { + return this.mediaTier; + } + + /** + * Set the mediaTier property: The storage media tier. Defaults to SSD. + * + * @param mediaTier the mediaTier value to set. + * @return the FileShareOfferInput object itself. + */ + public FileShareOfferInput withMediaTier(MediaTier mediaTier) { + this.mediaTier = mediaTier; + return this; + } + + /** + * Get the scaleMode property: The scale mode. Defaults to Compatibility. + * + * @return the scaleMode value. + */ + public ScaleMode scaleMode() { + return this.scaleMode; + } + + /** + * Set the scaleMode property: The scale mode. Defaults to Compatibility. + * + * @param scaleMode the scaleMode value to set. + * @return the FileShareOfferInput object itself. + */ + public FileShareOfferInput withScaleMode(ScaleMode scaleMode) { + this.scaleMode = scaleMode; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("protocol", this.protocol == null ? null : this.protocol.toString()); + jsonWriter.writeStringField("mediaTier", this.mediaTier == null ? null : this.mediaTier.toString()); + jsonWriter.writeStringField("scaleMode", this.scaleMode == null ? null : this.scaleMode.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FileShareOfferInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FileShareOfferInput 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 FileShareOfferInput. + */ + public static FileShareOfferInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FileShareOfferInput deserializedFileShareOfferInput = new FileShareOfferInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("protocol".equals(fieldName)) { + deserializedFileShareOfferInput.protocol = Protocol.fromString(reader.getString()); + } else if ("mediaTier".equals(fieldName)) { + deserializedFileShareOfferInput.mediaTier = MediaTier.fromString(reader.getString()); + } else if ("scaleMode".equals(fieldName)) { + deserializedFileShareOfferInput.scaleMode = ScaleMode.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedFileShareOfferInput; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProperties.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProperties.java index 10ab3aeeb99de..ef9af3fe42004 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProperties.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProperties.java @@ -46,6 +46,11 @@ public final class FileShareProperties implements JsonSerializable privateEndpointConnections; + /* + * The current migration state of the file share. + */ + private MigrationState migrationState; + + /* + * Encryption settings for the file share. + */ + private FileShareEncryption encryption; + /** * Creates an instance of FileShareProperties class. */ @@ -211,6 +226,26 @@ public FileShareProperties withProtocol(Protocol protocol) { return this; } + /** + * Get the scaleMode property: The scale mode selected when the file share is created. + * + * @return the scaleMode value. + */ + public ScaleMode scaleMode() { + return this.scaleMode; + } + + /** + * Set the scaleMode property: The scale mode selected when the file share is created. + * + * @param scaleMode the scaleMode value to set. + * @return the FileShareProperties object itself. + */ + public FileShareProperties withScaleMode(ScaleMode scaleMode) { + this.scaleMode = scaleMode; + return this; + } + /** * Get the provisionedStorageGiB property: The provisioned storage size of the share in GiB (1 GiB is 1024^3 bytes * or 1073741824 bytes). A component of the file share's bill is the provisioned storage, regardless of the amount @@ -405,6 +440,35 @@ public List privateEndpointConnections() { return this.privateEndpointConnections; } + /** + * Get the migrationState property: The current migration state of the file share. + * + * @return the migrationState value. + */ + public MigrationState migrationState() { + return this.migrationState; + } + + /** + * Get the encryption property: Encryption settings for the file share. + * + * @return the encryption value. + */ + public FileShareEncryption encryption() { + return this.encryption; + } + + /** + * Set the encryption property: Encryption settings for the file share. + * + * @param encryption the encryption value to set. + * @return the FileShareProperties object itself. + */ + public FileShareProperties withEncryption(FileShareEncryption encryption) { + this.encryption = encryption; + return this; + } + /** * {@inheritDoc} */ @@ -415,6 +479,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("mediaTier", this.mediaTier == null ? null : this.mediaTier.toString()); jsonWriter.writeStringField("redundancy", this.redundancy == null ? null : this.redundancy.toString()); jsonWriter.writeStringField("protocol", this.protocol == null ? null : this.protocol.toString()); + jsonWriter.writeStringField("scaleMode", this.scaleMode == null ? null : this.scaleMode.toString()); jsonWriter.writeNumberField("provisionedStorageGiB", this.provisionedStorageGiB); jsonWriter.writeNumberField("provisionedIOPerSec", this.provisionedIOPerSec); jsonWriter.writeNumberField("provisionedThroughputMiBPerSec", this.provisionedThroughputMiBPerSec); @@ -422,6 +487,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("publicAccessProperties", this.publicAccessProperties); jsonWriter.writeStringField("publicNetworkAccess", this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString()); + jsonWriter.writeJsonField("encryption", this.encryption); return jsonWriter.writeEndObject(); } @@ -450,6 +516,8 @@ public static FileShareProperties fromJson(JsonReader jsonReader) throws IOExcep deserializedFileShareProperties.redundancy = Redundancy.fromString(reader.getString()); } else if ("protocol".equals(fieldName)) { deserializedFileShareProperties.protocol = Protocol.fromString(reader.getString()); + } else if ("scaleMode".equals(fieldName)) { + deserializedFileShareProperties.scaleMode = ScaleMode.fromString(reader.getString()); } else if ("provisionedStorageGiB".equals(fieldName)) { deserializedFileShareProperties.provisionedStorageGiB = reader.getNullable(JsonReader::getInt); } else if ("provisionedStorageNextAllowedDowngrade".equals(fieldName)) { @@ -484,6 +552,10 @@ public static FileShareProperties fromJson(JsonReader jsonReader) throws IOExcep List privateEndpointConnections = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1)); deserializedFileShareProperties.privateEndpointConnections = privateEndpointConnections; + } else if ("migrationState".equals(fieldName)) { + deserializedFileShareProperties.migrationState = MigrationState.fromJson(reader); + } else if ("encryption".equals(fieldName)) { + deserializedFileShareProperties.encryption = FileShareEncryption.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationInput.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationInput.java index b92ee7e9f4a58..152e0af629f66 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationInput.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationInput.java @@ -23,6 +23,21 @@ public final class FileShareProvisioningRecommendationInput */ private int provisionedStorageGiB; + /* + * The file sharing protocol. Defaults to NFS. + */ + private Protocol protocol; + + /* + * The storage media tier. Defaults to SSD. + */ + private MediaTier mediaTier; + + /* + * The scale mode. Defaults to Compatibility. + */ + private ScaleMode scaleMode; + /** * Creates an instance of FileShareProvisioningRecommendationInput class. */ @@ -51,6 +66,66 @@ public FileShareProvisioningRecommendationInput withProvisionedStorageGiB(int pr return this; } + /** + * Get the protocol property: The file sharing protocol. Defaults to NFS. + * + * @return the protocol value. + */ + public Protocol protocol() { + return this.protocol; + } + + /** + * Set the protocol property: The file sharing protocol. Defaults to NFS. + * + * @param protocol the protocol value to set. + * @return the FileShareProvisioningRecommendationInput object itself. + */ + public FileShareProvisioningRecommendationInput withProtocol(Protocol protocol) { + this.protocol = protocol; + return this; + } + + /** + * Get the mediaTier property: The storage media tier. Defaults to SSD. + * + * @return the mediaTier value. + */ + public MediaTier mediaTier() { + return this.mediaTier; + } + + /** + * Set the mediaTier property: The storage media tier. Defaults to SSD. + * + * @param mediaTier the mediaTier value to set. + * @return the FileShareProvisioningRecommendationInput object itself. + */ + public FileShareProvisioningRecommendationInput withMediaTier(MediaTier mediaTier) { + this.mediaTier = mediaTier; + return this; + } + + /** + * Get the scaleMode property: The scale mode. Defaults to Compatibility. + * + * @return the scaleMode value. + */ + public ScaleMode scaleMode() { + return this.scaleMode; + } + + /** + * Set the scaleMode property: The scale mode. Defaults to Compatibility. + * + * @param scaleMode the scaleMode value to set. + * @return the FileShareProvisioningRecommendationInput object itself. + */ + public FileShareProvisioningRecommendationInput withScaleMode(ScaleMode scaleMode) { + this.scaleMode = scaleMode; + return this; + } + /** * {@inheritDoc} */ @@ -58,6 +133,9 @@ public FileShareProvisioningRecommendationInput withProvisionedStorageGiB(int pr public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeIntField("provisionedStorageGiB", this.provisionedStorageGiB); + jsonWriter.writeStringField("protocol", this.protocol == null ? null : this.protocol.toString()); + jsonWriter.writeStringField("mediaTier", this.mediaTier == null ? null : this.mediaTier.toString()); + jsonWriter.writeStringField("scaleMode", this.scaleMode == null ? null : this.scaleMode.toString()); return jsonWriter.writeEndObject(); } @@ -80,6 +158,15 @@ public static FileShareProvisioningRecommendationInput fromJson(JsonReader jsonR if ("provisionedStorageGiB".equals(fieldName)) { deserializedFileShareProvisioningRecommendationInput.provisionedStorageGiB = reader.getInt(); + } else if ("protocol".equals(fieldName)) { + deserializedFileShareProvisioningRecommendationInput.protocol + = Protocol.fromString(reader.getString()); + } else if ("mediaTier".equals(fieldName)) { + deserializedFileShareProvisioningRecommendationInput.mediaTier + = MediaTier.fromString(reader.getString()); + } else if ("scaleMode".equals(fieldName)) { + deserializedFileShareProvisioningRecommendationInput.scaleMode + = ScaleMode.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdate.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdate.java index abd67dfa2ca2b..d2f5da57db7a2 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdate.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdate.java @@ -17,6 +17,11 @@ */ @Fluent public final class FileShareUpdate implements JsonSerializable { + /* + * The managed service identities assigned to this resource. + */ + private ManagedServiceIdentity identity; + /* * Resource tags. */ @@ -33,6 +38,26 @@ public final class FileShareUpdate implements JsonSerializable public FileShareUpdate() { } + /** + * Get the identity property: The managed service identities assigned to this resource. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The managed service identities assigned to this resource. + * + * @param identity the identity value to set. + * @return the FileShareUpdate object itself. + */ + public FileShareUpdate withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + /** * Get the tags property: Resource tags. * @@ -79,6 +104,7 @@ public FileShareUpdate withProperties(FileShareUpdateProperties properties) { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("identity", this.identity); jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("properties", this.properties); return jsonWriter.writeEndObject(); @@ -99,7 +125,9 @@ public static FileShareUpdate fromJson(JsonReader jsonReader) throws IOException String fieldName = reader.getFieldName(); reader.nextToken(); - if ("tags".equals(fieldName)) { + if ("identity".equals(fieldName)) { + deserializedFileShareUpdate.identity = ManagedServiceIdentity.fromJson(reader); + } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedFileShareUpdate.tags = tags; } else if ("properties".equals(fieldName)) { diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdateProperties.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdateProperties.java index 54578b4738f3d..3658b0c980e5c 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdateProperties.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdateProperties.java @@ -47,6 +47,11 @@ public final class FileShareUpdateProperties implements JsonSerializable checkNameAvailabilityWithResponse(String */ CheckNameAvailabilityResponse checkNameAvailability(String location, CheckNameAvailabilityRequest body); + /** + * Starts a redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response startRedundancyConversionWithResponse(String resourceGroupName, String resourceName, + StartRedundancyConversionRequest body, Context context); + + /** + * Starts a redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @param body The content of the action request. + * @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 startRedundancyConversion(String resourceGroupName, String resourceName, + StartRedundancyConversionRequest body); + + /** + * Gets the status and details of the current or most recent redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @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 status and details of the current or most recent redundancy conversion for the file share along with + * {@link Response}. + */ + Response getRedundancyConversionStatusWithResponse(String resourceGroupName, + String resourceName, Context context); + + /** + * Gets the status and details of the current or most recent redundancy conversion for the file share. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The resource name of the file share, as seen by the administrator through Azure Resource + * Manager. + * @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 status and details of the current or most recent redundancy conversion for the file share. + */ + RedundancyConversionStatusResponse getRedundancyConversionStatus(String resourceGroupName, String resourceName); + /** * Get a FileShare. * diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/InformationalOperations.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/InformationalOperations.java index 1beae7a4f0c05..f618e3fd791e5 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/InformationalOperations.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/InformationalOperations.java @@ -38,13 +38,15 @@ public interface InformationalOperations { * Get file shares limits. * * @param location The name of the Azure region. + * @param body The request body. * @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 file shares limits along with {@link Response}. */ - Response getLimitsWithResponse(String location, Context context); + Response getLimitsWithResponse(String location, FileShareLimitsRequest body, + Context context); /** * Get file shares limits. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/InfrastructureEncryption.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/InfrastructureEncryption.java new file mode 100644 index 0000000000000..9228838128a51 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/InfrastructureEncryption.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * (Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA + * infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled. + */ +public final class InfrastructureEncryption extends ExpandableStringEnum { + /** + * Encryption is enabled. + */ + public static final InfrastructureEncryption ENABLED = fromString("enabled"); + + /** + * Encryption is disabled. + */ + public static final InfrastructureEncryption DISABLED = fromString("disabled"); + + /** + * Creates a new instance of InfrastructureEncryption value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public InfrastructureEncryption() { + } + + /** + * Creates or finds a InfrastructureEncryption from its string representation. + * + * @param name a name to look for. + * @return the corresponding InfrastructureEncryption. + */ + public static InfrastructureEncryption fromString(String name) { + return fromString(name, InfrastructureEncryption.class); + } + + /** + * Gets known InfrastructureEncryption values. + * + * @return known InfrastructureEncryption values. + */ + public static Collection values() { + return values(InfrastructureEncryption.class); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentity.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentity.java new file mode 100644 index 0000000000000..a27c9987a1240 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentity.java @@ -0,0 +1,195 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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; + +/** + * All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key + * Vault. + */ +@Fluent +public final class KeyEncryptionKeyIdentity implements JsonSerializable { + /* + * The type of identity to use. Values can be systemAssignedIdentity, userAssignedIdentity, or + * delegatedResourceIdentity. + */ + private KeyEncryptionKeyIdentityType identityType; + + /* + * User assigned identity to use for accessing key encryption key Url. Ex: + * /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType + * systemAssignedIdentity. + */ + private String userAssignedIdentityResourceId; + + /* + * application client identity to use for accessing key encryption key Url in a different tenant. Ex: + * f83c6b1b-4d34-47e4-bb34-9d83df58b540 + */ + private String federatedClientId; + + /* + * delegated identity to use for accessing key encryption key Url. Ex: + * /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType + * systemAssignedIdentity and userAssignedIdentity - internal use only. + */ + private String delegatedIdentityClientId; + + /** + * Creates an instance of KeyEncryptionKeyIdentity class. + */ + public KeyEncryptionKeyIdentity() { + } + + /** + * Get the identityType property: The type of identity to use. Values can be systemAssignedIdentity, + * userAssignedIdentity, or delegatedResourceIdentity. + * + * @return the identityType value. + */ + public KeyEncryptionKeyIdentityType identityType() { + return this.identityType; + } + + /** + * Set the identityType property: The type of identity to use. Values can be systemAssignedIdentity, + * userAssignedIdentity, or delegatedResourceIdentity. + * + * @param identityType the identityType value to set. + * @return the KeyEncryptionKeyIdentity object itself. + */ + public KeyEncryptionKeyIdentity withIdentityType(KeyEncryptionKeyIdentityType identityType) { + this.identityType = identityType; + return this; + } + + /** + * Get the userAssignedIdentityResourceId property: User assigned identity to use for accessing key encryption key + * Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource + * group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType + * systemAssignedIdentity. + * + * @return the userAssignedIdentityResourceId value. + */ + public String userAssignedIdentityResourceId() { + return this.userAssignedIdentityResourceId; + } + + /** + * Set the userAssignedIdentityResourceId property: User assigned identity to use for accessing key encryption key + * Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource + * group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType + * systemAssignedIdentity. + * + * @param userAssignedIdentityResourceId the userAssignedIdentityResourceId value to set. + * @return the KeyEncryptionKeyIdentity object itself. + */ + public KeyEncryptionKeyIdentity withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId) { + this.userAssignedIdentityResourceId = userAssignedIdentityResourceId; + return this; + } + + /** + * Get the federatedClientId property: application client identity to use for accessing key encryption key Url in a + * different tenant. Ex: f83c6b1b-4d34-47e4-bb34-9d83df58b540. + * + * @return the federatedClientId value. + */ + public String federatedClientId() { + return this.federatedClientId; + } + + /** + * Set the federatedClientId property: application client identity to use for accessing key encryption key Url in a + * different tenant. Ex: f83c6b1b-4d34-47e4-bb34-9d83df58b540. + * + * @param federatedClientId the federatedClientId value to set. + * @return the KeyEncryptionKeyIdentity object itself. + */ + public KeyEncryptionKeyIdentity withFederatedClientId(String federatedClientId) { + this.federatedClientId = federatedClientId; + return this; + } + + /** + * Get the delegatedIdentityClientId property: delegated identity to use for accessing key encryption key Url. Ex: + * /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource + * group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType + * systemAssignedIdentity and userAssignedIdentity - internal use only. + * + * @return the delegatedIdentityClientId value. + */ + public String delegatedIdentityClientId() { + return this.delegatedIdentityClientId; + } + + /** + * Set the delegatedIdentityClientId property: delegated identity to use for accessing key encryption key Url. Ex: + * /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource + * group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType + * systemAssignedIdentity and userAssignedIdentity - internal use only. + * + * @param delegatedIdentityClientId the delegatedIdentityClientId value to set. + * @return the KeyEncryptionKeyIdentity object itself. + */ + public KeyEncryptionKeyIdentity withDelegatedIdentityClientId(String delegatedIdentityClientId) { + this.delegatedIdentityClientId = delegatedIdentityClientId; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("identityType", this.identityType == null ? null : this.identityType.toString()); + jsonWriter.writeStringField("userAssignedIdentityResourceId", this.userAssignedIdentityResourceId); + jsonWriter.writeStringField("federatedClientId", this.federatedClientId); + jsonWriter.writeStringField("delegatedIdentityClientId", this.delegatedIdentityClientId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KeyEncryptionKeyIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KeyEncryptionKeyIdentity 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 KeyEncryptionKeyIdentity. + */ + public static KeyEncryptionKeyIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KeyEncryptionKeyIdentity deserializedKeyEncryptionKeyIdentity = new KeyEncryptionKeyIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("identityType".equals(fieldName)) { + deserializedKeyEncryptionKeyIdentity.identityType + = KeyEncryptionKeyIdentityType.fromString(reader.getString()); + } else if ("userAssignedIdentityResourceId".equals(fieldName)) { + deserializedKeyEncryptionKeyIdentity.userAssignedIdentityResourceId = reader.getString(); + } else if ("federatedClientId".equals(fieldName)) { + deserializedKeyEncryptionKeyIdentity.federatedClientId = reader.getString(); + } else if ("delegatedIdentityClientId".equals(fieldName)) { + deserializedKeyEncryptionKeyIdentity.delegatedIdentityClientId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKeyEncryptionKeyIdentity; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentityType.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentityType.java new file mode 100644 index 0000000000000..556743b7ce45b --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentityType.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of identity to use. + */ +public final class KeyEncryptionKeyIdentityType extends ExpandableStringEnum { + /** + * System assigned identity. + */ + public static final KeyEncryptionKeyIdentityType SYSTEM_ASSIGNED_IDENTITY = fromString("systemAssignedIdentity"); + + /** + * User assigned identity. + */ + public static final KeyEncryptionKeyIdentityType USER_ASSIGNED_IDENTITY = fromString("userAssignedIdentity"); + + /** + * Delegated identity. + */ + public static final KeyEncryptionKeyIdentityType DELEGATED_RESOURCE_IDENTITY + = fromString("delegatedResourceIdentity"); + + /** + * Creates a new instance of KeyEncryptionKeyIdentityType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public KeyEncryptionKeyIdentityType() { + } + + /** + * Creates or finds a KeyEncryptionKeyIdentityType from its string representation. + * + * @param name a name to look for. + * @return the corresponding KeyEncryptionKeyIdentityType. + */ + public static KeyEncryptionKeyIdentityType fromString(String name) { + return fromString(name, KeyEncryptionKeyIdentityType.class); + } + + /** + * Gets known KeyEncryptionKeyIdentityType values. + * + * @return known KeyEncryptionKeyIdentityType values. + */ + public static Collection values() { + return values(KeyEncryptionKeyIdentityType.class); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentity.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentity.java new file mode 100644 index 0000000000000..45f9eb372283a --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentity.java @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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.Map; + +/** + * Managed service identity (system assigned and/or user assigned identities). + */ +@Fluent +public final class ManagedServiceIdentity implements JsonSerializable { + /* + * The service principal ID of the system assigned identity. This property will only be provided for a system + * assigned identity. + */ + private String principalId; + + /* + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned + * identity. + */ + private String tenantId; + + /* + * The type of managed identity assigned to this resource. + */ + private ManagedServiceIdentityType type; + + /* + * The identities assigned to this resource by the user. + */ + private Map userAssignedIdentities; + + /** + * Creates an instance of ManagedServiceIdentity class. + */ + public ManagedServiceIdentity() { + } + + /** + * Get the principalId property: The service principal ID of the system assigned identity. This property will only + * be provided for a system assigned identity. + * + * @return the principalId value. + */ + public String principalId() { + return this.principalId; + } + + /** + * Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for + * a system assigned identity. + * + * @return the tenantId value. + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Get the type property: The type of managed identity assigned to this resource. + * + * @return the type value. + */ + public ManagedServiceIdentityType type() { + return this.type; + } + + /** + * Set the type property: The type of managed identity assigned to this resource. + * + * @param type the type value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { + this.type = type; + return this; + } + + /** + * Get the userAssignedIdentities property: The identities assigned to this resource by the user. + * + * @return the userAssignedIdentities value. + */ + public Map userAssignedIdentities() { + return this.userAssignedIdentities; + } + + /** + * Set the userAssignedIdentities property: The identities assigned to this resource by the user. + * + * @param userAssignedIdentities the userAssignedIdentities value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withUserAssignedIdentities(Map userAssignedIdentities) { + this.userAssignedIdentities = userAssignedIdentities; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeMapField("userAssignedIdentities", this.userAssignedIdentities, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedServiceIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedServiceIdentity 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 ManagedServiceIdentity. + */ + public static ManagedServiceIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedServiceIdentity deserializedManagedServiceIdentity = new ManagedServiceIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedManagedServiceIdentity.type = ManagedServiceIdentityType.fromString(reader.getString()); + } else if ("principalId".equals(fieldName)) { + deserializedManagedServiceIdentity.principalId = reader.getString(); + } else if ("tenantId".equals(fieldName)) { + deserializedManagedServiceIdentity.tenantId = reader.getString(); + } else if ("userAssignedIdentities".equals(fieldName)) { + Map userAssignedIdentities + = reader.readMap(reader1 -> UserAssignedIdentity.fromJson(reader1)); + deserializedManagedServiceIdentity.userAssignedIdentities = userAssignedIdentities; + } else { + reader.skipChildren(); + } + } + + return deserializedManagedServiceIdentity; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentityType.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentityType.java new file mode 100644 index 0000000000000..3e8c6fe2dca6d --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentityType.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + */ +public final class ManagedServiceIdentityType extends ExpandableStringEnum { + /** + * No managed identity. + */ + public static final ManagedServiceIdentityType NONE = fromString("None"); + + /** + * System assigned managed identity. + */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); + + /** + * User assigned managed identity. + */ + public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); + + /** + * System and user assigned managed identity. + */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED + = fromString("SystemAssigned,UserAssigned"); + + /** + * Creates a new instance of ManagedServiceIdentityType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ManagedServiceIdentityType() { + } + + /** + * Creates or finds a ManagedServiceIdentityType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ManagedServiceIdentityType. + */ + public static ManagedServiceIdentityType fromString(String name) { + return fromString(name, ManagedServiceIdentityType.class); + } + + /** + * Gets known ManagedServiceIdentityType values. + * + * @return known ManagedServiceIdentityType values. + */ + public static Collection values() { + return values(ManagedServiceIdentityType.class); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/MediaTier.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/MediaTier.java index feeb21efc5d8c..e7450d8603634 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/MediaTier.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/MediaTier.java @@ -16,6 +16,11 @@ public final class MediaTier extends ExpandableStringEnum { */ public static final MediaTier SSD = fromString("SSD"); + /** + * HDD media tier. + */ + public static final MediaTier HDD = fromString("HDD"); + /** * Creates a new instance of MediaTier value. * diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/MigrationState.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/MigrationState.java new file mode 100644 index 0000000000000..dcaeb9092d83d --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/MigrationState.java @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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; + +/** + * Summary of the current migration state for the file share. + */ +@Immutable +public final class MigrationState implements JsonSerializable { + /* + * Indicates whether a redundancy conversion is in progress for the file share. + */ + private boolean redundancyConversionInProgress; + + /** + * Creates an instance of MigrationState class. + */ + private MigrationState() { + } + + /** + * Get the redundancyConversionInProgress property: Indicates whether a redundancy conversion is in progress for the + * file share. + * + * @return the redundancyConversionInProgress value. + */ + public boolean redundancyConversionInProgress() { + return this.redundancyConversionInProgress; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MigrationState from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MigrationState 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 MigrationState. + */ + public static MigrationState fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MigrationState deserializedMigrationState = new MigrationState(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("redundancyConversionInProgress".equals(fieldName)) { + deserializedMigrationState.redundancyConversionInProgress = reader.getBoolean(); + } else { + reader.skipChildren(); + } + } + + return deserializedMigrationState; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatus.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatus.java new file mode 100644 index 0000000000000..3b334b6ff23dc --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatus.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.fileshares.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Status of the redundancy conversion. + */ +public final class RedundancyConversionStatus extends ExpandableStringEnum { + /** + * The redundancy conversion has been submitted. + */ + public static final RedundancyConversionStatus SUBMITTED_FOR_CONVERSION = fromString("SubmittedForConversion"); + + /** + * The redundancy conversion is in progress. + */ + public static final RedundancyConversionStatus IN_PROGRESS = fromString("InProgress"); + + /** + * The redundancy conversion has completed. + */ + public static final RedundancyConversionStatus COMPLETE = fromString("Complete"); + + /** + * The redundancy conversion has failed. + */ + public static final RedundancyConversionStatus FAILED = fromString("Failed"); + + /** + * Creates a new instance of RedundancyConversionStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RedundancyConversionStatus() { + } + + /** + * Creates or finds a RedundancyConversionStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding RedundancyConversionStatus. + */ + public static RedundancyConversionStatus fromString(String name) { + return fromString(name, RedundancyConversionStatus.class); + } + + /** + * Gets known RedundancyConversionStatus values. + * + * @return known RedundancyConversionStatus values. + */ + public static Collection values() { + return values(RedundancyConversionStatus.class); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusOutput.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusOutput.java new file mode 100644 index 0000000000000..83ff09eec021d --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusOutput.java @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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; + +/** + * The status and details of the current or most recent redundancy conversion. + */ +@Immutable +public final class RedundancyConversionStatusOutput implements JsonSerializable { + /* + * The target redundancy requested for the redundancy conversion. + */ + private Redundancy targetRedundancy; + + /* + * The current status of the redundancy conversion. + */ + private RedundancyConversionStatus conversionStatus; + + /* + * The reason the redundancy conversion failed. + */ + private String conversionFailedReason; + + /* + * Detailed information about why the redundancy conversion failed. + */ + private String conversionFailedDetailedReason; + + /** + * Creates an instance of RedundancyConversionStatusOutput class. + */ + private RedundancyConversionStatusOutput() { + } + + /** + * Get the targetRedundancy property: The target redundancy requested for the redundancy conversion. + * + * @return the targetRedundancy value. + */ + public Redundancy targetRedundancy() { + return this.targetRedundancy; + } + + /** + * Get the conversionStatus property: The current status of the redundancy conversion. + * + * @return the conversionStatus value. + */ + public RedundancyConversionStatus conversionStatus() { + return this.conversionStatus; + } + + /** + * Get the conversionFailedReason property: The reason the redundancy conversion failed. + * + * @return the conversionFailedReason value. + */ + public String conversionFailedReason() { + return this.conversionFailedReason; + } + + /** + * Get the conversionFailedDetailedReason property: Detailed information about why the redundancy conversion failed. + * + * @return the conversionFailedDetailedReason value. + */ + public String conversionFailedDetailedReason() { + return this.conversionFailedDetailedReason; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RedundancyConversionStatusOutput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RedundancyConversionStatusOutput 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 RedundancyConversionStatusOutput. + */ + public static RedundancyConversionStatusOutput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RedundancyConversionStatusOutput deserializedRedundancyConversionStatusOutput + = new RedundancyConversionStatusOutput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetRedundancy".equals(fieldName)) { + deserializedRedundancyConversionStatusOutput.targetRedundancy + = Redundancy.fromString(reader.getString()); + } else if ("conversionStatus".equals(fieldName)) { + deserializedRedundancyConversionStatusOutput.conversionStatus + = RedundancyConversionStatus.fromString(reader.getString()); + } else if ("conversionFailedReason".equals(fieldName)) { + deserializedRedundancyConversionStatusOutput.conversionFailedReason = reader.getString(); + } else if ("conversionFailedDetailedReason".equals(fieldName)) { + deserializedRedundancyConversionStatusOutput.conversionFailedDetailedReason = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedRedundancyConversionStatusOutput; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusResponse.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusResponse.java new file mode 100644 index 0000000000000..9b78bdd1b9c07 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusResponse.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.models; + +import com.azure.resourcemanager.fileshares.fluent.models.RedundancyConversionStatusResponseInner; + +/** + * An immutable client-side representation of RedundancyConversionStatusResponse. + */ +public interface RedundancyConversionStatusResponse { + /** + * Gets the properties property: Properties containing the redundancy conversion status output. + * + * @return the properties value. + */ + RedundancyConversionStatusOutput properties(); + + /** + * Gets the inner com.azure.resourcemanager.fileshares.fluent.models.RedundancyConversionStatusResponseInner object. + * + * @return the inner object. + */ + RedundancyConversionStatusResponseInner innerModel(); +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ScaleMode.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ScaleMode.java new file mode 100644 index 0000000000000..2ea6337dae232 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/ScaleMode.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.fileshares.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Scale mode for a file share. + */ +public final class ScaleMode extends ExpandableStringEnum { + /** + * Compatibility scale mode. + */ + public static final ScaleMode COMPATIBILITY = fromString("Compatibility"); + + /** + * Scale mode. + */ + public static final ScaleMode SCALE = fromString("Scale"); + + /** + * Creates a new instance of ScaleMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ScaleMode() { + } + + /** + * Creates or finds a ScaleMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding ScaleMode. + */ + public static ScaleMode fromString(String name) { + return fromString(name, ScaleMode.class); + } + + /** + * Gets known ScaleMode values. + * + * @return known ScaleMode values. + */ + public static Collection values() { + return values(ScaleMode.class); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionInput.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionInput.java new file mode 100644 index 0000000000000..eae3d7c17c189 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionInput.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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; + +/** + * Input for starting a redundancy conversion. + */ +@Fluent +public final class StartRedundancyConversionInput implements JsonSerializable { + /* + * The requested target redundancy for the conversion. + */ + private Redundancy targetRedundancy; + + /** + * Creates an instance of StartRedundancyConversionInput class. + */ + public StartRedundancyConversionInput() { + } + + /** + * Get the targetRedundancy property: The requested target redundancy for the conversion. + * + * @return the targetRedundancy value. + */ + public Redundancy targetRedundancy() { + return this.targetRedundancy; + } + + /** + * Set the targetRedundancy property: The requested target redundancy for the conversion. + * + * @param targetRedundancy the targetRedundancy value to set. + * @return the StartRedundancyConversionInput object itself. + */ + public StartRedundancyConversionInput withTargetRedundancy(Redundancy targetRedundancy) { + this.targetRedundancy = targetRedundancy; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetRedundancy", + this.targetRedundancy == null ? null : this.targetRedundancy.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StartRedundancyConversionInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StartRedundancyConversionInput 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 StartRedundancyConversionInput. + */ + public static StartRedundancyConversionInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StartRedundancyConversionInput deserializedStartRedundancyConversionInput + = new StartRedundancyConversionInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetRedundancy".equals(fieldName)) { + deserializedStartRedundancyConversionInput.targetRedundancy + = Redundancy.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedStartRedundancyConversionInput; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionRequest.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionRequest.java new file mode 100644 index 0000000000000..338eaf9139587 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionRequest.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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; + +/** + * Parameters for starting a redundancy conversion. + */ +@Fluent +public final class StartRedundancyConversionRequest implements JsonSerializable { + /* + * Properties containing the redundancy conversion input. + */ + private StartRedundancyConversionInput properties; + + /** + * Creates an instance of StartRedundancyConversionRequest class. + */ + public StartRedundancyConversionRequest() { + } + + /** + * Get the properties property: Properties containing the redundancy conversion input. + * + * @return the properties value. + */ + public StartRedundancyConversionInput properties() { + return this.properties; + } + + /** + * Set the properties property: Properties containing the redundancy conversion input. + * + * @param properties the properties value to set. + * @return the StartRedundancyConversionRequest object itself. + */ + public StartRedundancyConversionRequest withProperties(StartRedundancyConversionInput properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StartRedundancyConversionRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StartRedundancyConversionRequest 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 StartRedundancyConversionRequest. + */ + public static StartRedundancyConversionRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StartRedundancyConversionRequest deserializedStartRedundancyConversionRequest + = new StartRedundancyConversionRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedStartRedundancyConversionRequest.properties + = StartRedundancyConversionInput.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedStartRedundancyConversionRequest; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/UserAssignedIdentity.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/UserAssignedIdentity.java new file mode 100644 index 0000000000000..ead0697215f8f --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/java/com/azure/resourcemanager/fileshares/models/UserAssignedIdentity.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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; + +/** + * User assigned identity properties. + */ +@Immutable +public final class UserAssignedIdentity implements JsonSerializable { + /* + * The principal ID of the assigned identity. + */ + private String principalId; + + /* + * The client ID of the assigned identity. + */ + private String clientId; + + /** + * Creates an instance of UserAssignedIdentity class. + */ + public UserAssignedIdentity() { + } + + /** + * Get the principalId property: The principal ID of the assigned identity. + * + * @return the principalId value. + */ + public String principalId() { + return this.principalId; + } + + /** + * Get the clientId property: The client ID of the assigned identity. + * + * @return the clientId value. + */ + public String clientId() { + return this.clientId; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UserAssignedIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UserAssignedIdentity 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 UserAssignedIdentity. + */ + public static UserAssignedIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UserAssignedIdentity deserializedUserAssignedIdentity = new UserAssignedIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("principalId".equals(fieldName)) { + deserializedUserAssignedIdentity.principalId = reader.getString(); + } else if ("clientId".equals(fieldName)) { + deserializedUserAssignedIdentity.clientId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUserAssignedIdentity; + }); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/resources/META-INF/azure-resourcemanager-fileshares_metadata.json b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/resources/META-INF/azure-resourcemanager-fileshares_metadata.json index 4227646c471d2..49ed59ff44221 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/resources/META-INF/azure-resourcemanager-fileshares_metadata.json +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/resources/META-INF/azure-resourcemanager-fileshares_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.FileShares":"2026-06-01"},"crossLanguageDefinitions":{"com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient":"Microsoft.FileShares.FileShareSnapshots","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginCreateOrUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.createOrUpdateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginDeleteFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.deleteFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.updateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.createOrUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.createOrUpdateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.deleteFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.deleteFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.getFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.getFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.getFileShareSnapshotWithResponse":"Microsoft.FileShares.FileShareSnapshots.getFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.listByFileShare":"Microsoft.FileShares.FileShareSnapshots.listByFileShare","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.updateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.updateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileSharesClient":"Microsoft.FileShares.FileShares","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginCreateOrUpdate":"Microsoft.FileShares.FileShares.createOrUpdate","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginDelete":"Microsoft.FileShares.FileShares.delete","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginUpdate":"Microsoft.FileShares.FileShares.update","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.checkNameAvailability":"Microsoft.FileShares.FileShares.checkNameAvailability","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.checkNameAvailabilityWithResponse":"Microsoft.FileShares.FileShares.checkNameAvailability","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.createOrUpdate":"Microsoft.FileShares.FileShares.createOrUpdate","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.delete":"Microsoft.FileShares.FileShares.delete","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getByResourceGroup":"Microsoft.FileShares.FileShares.get","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getByResourceGroupWithResponse":"Microsoft.FileShares.FileShares.get","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.list":"Microsoft.FileShares.FileShares.listBySubscription","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.listByResourceGroup":"Microsoft.FileShares.FileShares.listByParent","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.update":"Microsoft.FileShares.FileShares.update","com.azure.resourcemanager.fileshares.fluent.FileSharesManagementClient":"Microsoft.FileShares","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient":"Microsoft.FileShares.InformationalOperations","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getLimits":"Microsoft.FileShares.InformationalOperations.getLimits","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getLimitsWithResponse":"Microsoft.FileShares.InformationalOperations.getLimits","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getProvisioningRecommendation":"Microsoft.FileShares.InformationalOperations.getProvisioningRecommendation","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getProvisioningRecommendationWithResponse":"Microsoft.FileShares.InformationalOperations.getProvisioningRecommendation","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getUsageData":"Microsoft.FileShares.InformationalOperations.getUsageData","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getUsageDataWithResponse":"Microsoft.FileShares.InformationalOperations.getUsageData","com.azure.resourcemanager.fileshares.fluent.OperationsClient":"Microsoft.FileShares.Operations","com.azure.resourcemanager.fileshares.fluent.OperationsClient.list":"Microsoft.FileShares.Operations.list","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient":"Microsoft.FileShares.PrivateEndpointConnections","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.beginCreate":"Microsoft.FileShares.PrivateEndpointConnections.create","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.FileShares.PrivateEndpointConnections.delete","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.create":"Microsoft.FileShares.PrivateEndpointConnections.create","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.FileShares.PrivateEndpointConnections.delete","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.FileShares.PrivateEndpointConnections.get","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.FileShares.PrivateEndpointConnections.get","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.listByFileShare":"Microsoft.FileShares.PrivateEndpointConnections.listByFileShare","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient":"Microsoft.FileShares.PrivateLinkResources","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.get":"Microsoft.FileShares.PrivateLinkResources.get","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.getWithResponse":"Microsoft.FileShares.PrivateLinkResources.get","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.list":"Microsoft.FileShares.PrivateLinkResources.list","com.azure.resourcemanager.fileshares.fluent.models.CheckNameAvailabilityResponseInner":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareInner":"Microsoft.FileShares.FileShare","com.azure.resourcemanager.fileshares.fluent.models.FileShareLimitsResponseInner":"Microsoft.FileShares.FileShareLimitsResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareProvisioningRecommendationResponseInner":"Microsoft.FileShares.FileShareProvisioningRecommendationResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareSnapshotInner":"Microsoft.FileShares.FileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.models.FileShareUsageDataResponseInner":"Microsoft.FileShares.FileShareUsageDataResponse","com.azure.resourcemanager.fileshares.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.fileshares.fluent.models.PrivateEndpointConnectionInner":"Microsoft.FileShares.PrivateEndpointConnection","com.azure.resourcemanager.fileshares.fluent.models.PrivateLinkResourceInner":"Microsoft.FileShares.PrivateLinkResource","com.azure.resourcemanager.fileshares.implementation.FileSharesManagementClientBuilder":"Microsoft.FileShares","com.azure.resourcemanager.fileshares.implementation.models.FileShareListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.FileShareSnapshotListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.fileshares.implementation.models.PrivateEndpointConnectionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.PrivateLinkResourceListResult":"Microsoft.FileShares.PrivateLinkResourceListResult","com.azure.resourcemanager.fileshares.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityReason":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason","com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityRequest":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest","com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired":"Microsoft.FileShares.EncryptionInTransitRequired","com.azure.resourcemanager.fileshares.models.FileShareLimits":"Microsoft.FileShares.FileShareLimits","com.azure.resourcemanager.fileshares.models.FileShareLimitsOutput":"Microsoft.FileShares.FileShareLimitsOutput","com.azure.resourcemanager.fileshares.models.FileShareProperties":"Microsoft.FileShares.FileShareProperties","com.azure.resourcemanager.fileshares.models.FileShareProvisioningConstants":"Microsoft.FileShares.FileShareProvisioningConstants","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationInput":"Microsoft.FileShares.FileShareProvisioningRecommendationInput","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationOutput":"Microsoft.FileShares.FileShareProvisioningRecommendationOutput","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest":"Microsoft.FileShares.FileShareProvisioningRecommendationRequest","com.azure.resourcemanager.fileshares.models.FileShareProvisioningState":"Microsoft.FileShares.FileShareProvisioningState","com.azure.resourcemanager.fileshares.models.FileShareSnapshotProperties":"Microsoft.FileShares.FileShareSnapshotProperties","com.azure.resourcemanager.fileshares.models.FileShareSnapshotUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.fileshares.models.FileShareSnapshotUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.fileshares.models.FileShareUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.fileshares.models.FileShareUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.fileshares.models.FileShareUsageDataOutput":"Microsoft.FileShares.FileShareUsageDataOutput","com.azure.resourcemanager.fileshares.models.LiveSharesUsageData":"Microsoft.FileShares.LiveSharesUsageData","com.azure.resourcemanager.fileshares.models.MediaTier":"Microsoft.FileShares.MediaTier","com.azure.resourcemanager.fileshares.models.NfsProtocolProperties":"Microsoft.FileShares.NfsProtocolProperties","com.azure.resourcemanager.fileshares.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.fileshares.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.fileshares.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.fileshares.models.PrivateEndpointConnectionProperties":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties","com.azure.resourcemanager.fileshares.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.fileshares.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.fileshares.models.PrivateLinkResourceProperties":"Microsoft.FileShares.PrivateLinkResourceProperties","com.azure.resourcemanager.fileshares.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.fileshares.models.Protocol":"Microsoft.FileShares.Protocol","com.azure.resourcemanager.fileshares.models.PublicAccessProperties":"Microsoft.FileShares.PublicAccessProperties","com.azure.resourcemanager.fileshares.models.PublicNetworkAccess":"Microsoft.FileShares.PublicNetworkAccess","com.azure.resourcemanager.fileshares.models.Redundancy":"Microsoft.FileShares.Redundancy","com.azure.resourcemanager.fileshares.models.ShareRootSquash":"Microsoft.FileShares.ShareRootSquash"},"generatedFiles":["src/main/java/com/azure/resourcemanager/fileshares/FileSharesManager.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileShareSnapshotsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesManagementClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/InformationalOperationsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/CheckNameAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareLimitsResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareProvisioningRecommendationResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareSnapshotInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareUsageDataResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/PrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/CheckNameAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareLimitsResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareProvisioningRecommendationResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareUsageDataResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourceImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/FileShareListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/FileShareSnapshotListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/PrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/models/ActionType.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityReason.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/EncryptionInTransitRequired.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShare.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimits.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningConstants.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationInput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningState.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshot.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotUpdate.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotUpdateProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshots.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdate.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdateProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUsageDataOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUsageDataResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShares.java","src/main/java/com/azure/resourcemanager/fileshares/models/InformationalOperations.java","src/main/java/com/azure/resourcemanager/fileshares/models/LiveSharesUsageData.java","src/main/java/com/azure/resourcemanager/fileshares/models/MediaTier.java","src/main/java/com/azure/resourcemanager/fileshares/models/NfsProtocolProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/Operation.java","src/main/java/com/azure/resourcemanager/fileshares/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/fileshares/models/Operations.java","src/main/java/com/azure/resourcemanager/fileshares/models/Origin.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResource.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResources.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/fileshares/models/Protocol.java","src/main/java/com/azure/resourcemanager/fileshares/models/PublicAccessProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/fileshares/models/Redundancy.java","src/main/java/com/azure/resourcemanager/fileshares/models/ShareRootSquash.java","src/main/java/com/azure/resourcemanager/fileshares/models/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.FileShares":"2026-09-01"},"crossLanguagePackageId":"Microsoft.FileShares","crossLanguageVersion":"a11dd312c1cb","crossLanguageDefinitions":{"com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient":"Microsoft.FileShares.FileShareSnapshots","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginCreateOrUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.createOrUpdateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginDeleteFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.deleteFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.updateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.createOrUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.createOrUpdateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.deleteFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.deleteFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.getFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.getFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.getFileShareSnapshotWithResponse":"Microsoft.FileShares.FileShareSnapshots.getFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.listByFileShare":"Microsoft.FileShares.FileShareSnapshots.listByFileShare","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.updateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.updateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileSharesClient":"Microsoft.FileShares.FileShares","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginCreateOrUpdate":"Microsoft.FileShares.FileShares.createOrUpdate","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginDelete":"Microsoft.FileShares.FileShares.delete","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginUpdate":"Microsoft.FileShares.FileShares.update","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.checkNameAvailability":"Microsoft.FileShares.FileShares.checkNameAvailability","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.checkNameAvailabilityWithResponse":"Microsoft.FileShares.FileShares.checkNameAvailability","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.createOrUpdate":"Microsoft.FileShares.FileShares.createOrUpdate","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.delete":"Microsoft.FileShares.FileShares.delete","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getByResourceGroup":"Microsoft.FileShares.FileShares.get","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getByResourceGroupWithResponse":"Microsoft.FileShares.FileShares.get","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getRedundancyConversionStatus":"Microsoft.FileShares.FileShares.getRedundancyConversionStatus","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getRedundancyConversionStatusWithResponse":"Microsoft.FileShares.FileShares.getRedundancyConversionStatus","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.list":"Microsoft.FileShares.FileShares.listBySubscription","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.listByResourceGroup":"Microsoft.FileShares.FileShares.listByParent","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.startRedundancyConversion":"Microsoft.FileShares.FileShares.startRedundancyConversion","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.startRedundancyConversionWithResponse":"Microsoft.FileShares.FileShares.startRedundancyConversion","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.update":"Microsoft.FileShares.FileShares.update","com.azure.resourcemanager.fileshares.fluent.FileSharesManagementClient":"Microsoft.FileShares","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient":"Microsoft.FileShares.InformationalOperations","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getLimits":"Microsoft.FileShares.InformationalOperations.getLimits","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getLimitsWithResponse":"Microsoft.FileShares.InformationalOperations.getLimits","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getProvisioningRecommendation":"Microsoft.FileShares.InformationalOperations.getProvisioningRecommendation","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getProvisioningRecommendationWithResponse":"Microsoft.FileShares.InformationalOperations.getProvisioningRecommendation","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getUsageData":"Microsoft.FileShares.InformationalOperations.getUsageData","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getUsageDataWithResponse":"Microsoft.FileShares.InformationalOperations.getUsageData","com.azure.resourcemanager.fileshares.fluent.OperationsClient":"Microsoft.FileShares.Operations","com.azure.resourcemanager.fileshares.fluent.OperationsClient.list":"Microsoft.FileShares.Operations.list","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient":"Microsoft.FileShares.PrivateEndpointConnections","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.beginCreate":"Microsoft.FileShares.PrivateEndpointConnections.create","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.FileShares.PrivateEndpointConnections.delete","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.create":"Microsoft.FileShares.PrivateEndpointConnections.create","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.FileShares.PrivateEndpointConnections.delete","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.FileShares.PrivateEndpointConnections.get","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.FileShares.PrivateEndpointConnections.get","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.listByFileShare":"Microsoft.FileShares.PrivateEndpointConnections.listByFileShare","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient":"Microsoft.FileShares.PrivateLinkResources","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.get":"Microsoft.FileShares.PrivateLinkResources.get","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.getWithResponse":"Microsoft.FileShares.PrivateLinkResources.get","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.list":"Microsoft.FileShares.PrivateLinkResources.list","com.azure.resourcemanager.fileshares.fluent.models.CheckNameAvailabilityResponseInner":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareInner":"Microsoft.FileShares.FileShare","com.azure.resourcemanager.fileshares.fluent.models.FileShareLimitsResponseInner":"Microsoft.FileShares.FileShareLimitsResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareProvisioningRecommendationResponseInner":"Microsoft.FileShares.FileShareProvisioningRecommendationResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareSnapshotInner":"Microsoft.FileShares.FileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.models.FileShareUsageDataResponseInner":"Microsoft.FileShares.FileShareUsageDataResponse","com.azure.resourcemanager.fileshares.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.fileshares.fluent.models.PrivateEndpointConnectionInner":"Microsoft.FileShares.PrivateEndpointConnection","com.azure.resourcemanager.fileshares.fluent.models.PrivateLinkResourceInner":"Microsoft.FileShares.PrivateLinkResource","com.azure.resourcemanager.fileshares.fluent.models.RedundancyConversionStatusResponseInner":"Microsoft.FileShares.RedundancyConversionStatusResponse","com.azure.resourcemanager.fileshares.implementation.FileSharesManagementClientBuilder":"Microsoft.FileShares","com.azure.resourcemanager.fileshares.implementation.models.FileShareListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.FileShareSnapshotListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.fileshares.implementation.models.PrivateEndpointConnectionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.PrivateLinkResourceListResult":"Microsoft.FileShares.PrivateLinkResourceListResult","com.azure.resourcemanager.fileshares.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityReason":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason","com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityRequest":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest","com.azure.resourcemanager.fileshares.models.CustomerManagedKeyEncryption":"Azure.ResourceManager.CommonTypes.CustomerManagedKeyEncryption","com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired":"Microsoft.FileShares.EncryptionInTransitRequired","com.azure.resourcemanager.fileshares.models.FileShareEncryption":"Microsoft.FileShares.FileShareEncryption","com.azure.resourcemanager.fileshares.models.FileShareLimits":"Microsoft.FileShares.FileShareLimits","com.azure.resourcemanager.fileshares.models.FileShareLimitsOutput":"Microsoft.FileShares.FileShareLimitsOutput","com.azure.resourcemanager.fileshares.models.FileShareLimitsRequest":"Microsoft.FileShares.FileShareLimitsRequest","com.azure.resourcemanager.fileshares.models.FileShareOfferInput":"Microsoft.FileShares.FileShareOfferInput","com.azure.resourcemanager.fileshares.models.FileShareProperties":"Microsoft.FileShares.FileShareProperties","com.azure.resourcemanager.fileshares.models.FileShareProvisioningConstants":"Microsoft.FileShares.FileShareProvisioningConstants","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationInput":"Microsoft.FileShares.FileShareProvisioningRecommendationInput","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationOutput":"Microsoft.FileShares.FileShareProvisioningRecommendationOutput","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest":"Microsoft.FileShares.FileShareProvisioningRecommendationRequest","com.azure.resourcemanager.fileshares.models.FileShareProvisioningState":"Microsoft.FileShares.FileShareProvisioningState","com.azure.resourcemanager.fileshares.models.FileShareSnapshotProperties":"Microsoft.FileShares.FileShareSnapshotProperties","com.azure.resourcemanager.fileshares.models.FileShareSnapshotUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.fileshares.models.FileShareSnapshotUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.fileshares.models.FileShareUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.fileshares.models.FileShareUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.fileshares.models.FileShareUsageDataOutput":"Microsoft.FileShares.FileShareUsageDataOutput","com.azure.resourcemanager.fileshares.models.InfrastructureEncryption":"Azure.ResourceManager.CommonTypes.InfrastructureEncryption","com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentity":"Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentity","com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentityType":"Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentityType","com.azure.resourcemanager.fileshares.models.LiveSharesUsageData":"Microsoft.FileShares.LiveSharesUsageData","com.azure.resourcemanager.fileshares.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.fileshares.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.fileshares.models.MediaTier":"Microsoft.FileShares.MediaTier","com.azure.resourcemanager.fileshares.models.MigrationState":"Microsoft.FileShares.MigrationState","com.azure.resourcemanager.fileshares.models.NfsProtocolProperties":"Microsoft.FileShares.NfsProtocolProperties","com.azure.resourcemanager.fileshares.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.fileshares.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.fileshares.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.fileshares.models.PrivateEndpointConnectionProperties":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties","com.azure.resourcemanager.fileshares.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.fileshares.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.fileshares.models.PrivateLinkResourceProperties":"Microsoft.FileShares.PrivateLinkResourceProperties","com.azure.resourcemanager.fileshares.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.fileshares.models.Protocol":"Microsoft.FileShares.Protocol","com.azure.resourcemanager.fileshares.models.PublicAccessProperties":"Microsoft.FileShares.PublicAccessProperties","com.azure.resourcemanager.fileshares.models.PublicNetworkAccess":"Microsoft.FileShares.PublicNetworkAccess","com.azure.resourcemanager.fileshares.models.Redundancy":"Microsoft.FileShares.Redundancy","com.azure.resourcemanager.fileshares.models.RedundancyConversionStatus":"Microsoft.FileShares.RedundancyConversionStatus","com.azure.resourcemanager.fileshares.models.RedundancyConversionStatusOutput":"Microsoft.FileShares.RedundancyConversionStatusOutput","com.azure.resourcemanager.fileshares.models.ScaleMode":"Microsoft.FileShares.ScaleMode","com.azure.resourcemanager.fileshares.models.ShareRootSquash":"Microsoft.FileShares.ShareRootSquash","com.azure.resourcemanager.fileshares.models.StartRedundancyConversionInput":"Microsoft.FileShares.StartRedundancyConversionInput","com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest":"Microsoft.FileShares.StartRedundancyConversionRequest","com.azure.resourcemanager.fileshares.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity"},"generatedFiles":["src/main/java/com/azure/resourcemanager/fileshares/FileSharesManager.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileShareSnapshotsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesManagementClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/InformationalOperationsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/CheckNameAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareLimitsResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareProvisioningRecommendationResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareSnapshotInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareUsageDataResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/PrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/RedundancyConversionStatusResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/CheckNameAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareLimitsResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareProvisioningRecommendationResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareUsageDataResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourceImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/RedundancyConversionStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/FileShareListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/FileShareSnapshotListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/PrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/models/ActionType.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityReason.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/CustomerManagedKeyEncryption.java","src/main/java/com/azure/resourcemanager/fileshares/models/EncryptionInTransitRequired.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShare.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareEncryption.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimits.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareOfferInput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningConstants.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationInput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningState.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshot.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotUpdate.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotUpdateProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshots.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdate.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdateProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUsageDataOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUsageDataResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShares.java","src/main/java/com/azure/resourcemanager/fileshares/models/InformationalOperations.java","src/main/java/com/azure/resourcemanager/fileshares/models/InfrastructureEncryption.java","src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentity.java","src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentityType.java","src/main/java/com/azure/resourcemanager/fileshares/models/LiveSharesUsageData.java","src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/fileshares/models/MediaTier.java","src/main/java/com/azure/resourcemanager/fileshares/models/MigrationState.java","src/main/java/com/azure/resourcemanager/fileshares/models/NfsProtocolProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/Operation.java","src/main/java/com/azure/resourcemanager/fileshares/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/fileshares/models/Operations.java","src/main/java/com/azure/resourcemanager/fileshares/models/Origin.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResource.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResources.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/fileshares/models/Protocol.java","src/main/java/com/azure/resourcemanager/fileshares/models/PublicAccessProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/fileshares/models/Redundancy.java","src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatus.java","src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/ScaleMode.java","src/main/java/com/azure/resourcemanager/fileshares/models/ShareRootSquash.java","src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionInput.java","src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/fileshares/models/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsCreateOrUpdateFileShareSnapshotSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsCreateOrUpdateFileShareSnapshotSamples.java index 9c9f46810a9e4..5df219937b3c3 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsCreateOrUpdateFileShareSnapshotSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsCreateOrUpdateFileShareSnapshotSamples.java @@ -13,7 +13,7 @@ */ public final class FileShareSnapshotsCreateOrUpdateFileShareSnapshotSamples { /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: FileShareSnapshot_CreateOrUpdate_MaximumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsDeleteFileShareSnapshotSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsDeleteFileShareSnapshotSamples.java index bb360723e6d9d..ba98d9f0bbd27 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsDeleteFileShareSnapshotSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsDeleteFileShareSnapshotSamples.java @@ -9,7 +9,7 @@ */ public final class FileShareSnapshotsDeleteFileShareSnapshotSamples { /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_Delete_MaximumSet_Gen.json */ /** * Sample code: FileShareSnapshot_Delete_MaximumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsGetFileShareSnapshotSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsGetFileShareSnapshotSamples.java index d7551369080e1..19f0894ba1678 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsGetFileShareSnapshotSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsGetFileShareSnapshotSamples.java @@ -9,7 +9,7 @@ */ public final class FileShareSnapshotsGetFileShareSnapshotSamples { /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_Get_MaximumSet_Gen.json */ /** * Sample code: FileShareSnapshot_Get_MaximumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsListByFileShareSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsListByFileShareSamples.java index bb3bcf86df05e..cc487cc671232 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsListByFileShareSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsListByFileShareSamples.java @@ -9,7 +9,7 @@ */ public final class FileShareSnapshotsListByFileShareSamples { /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_List_MinimumSet_Gen.json */ /** * Sample code: FileShareSnapshot_List_MinimumSet. @@ -21,7 +21,7 @@ public static void fileShareSnapshotListMinimumSet(com.azure.resourcemanager.fil } /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_List_MaximumSet_Gen.json */ /** * Sample code: FileShareSnapshot_List_MaximumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsUpdateFileShareSnapshotSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsUpdateFileShareSnapshotSamples.java index 8c57a6da53866..1d3d910545714 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsUpdateFileShareSnapshotSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsUpdateFileShareSnapshotSamples.java @@ -14,7 +14,7 @@ */ public final class FileShareSnapshotsUpdateFileShareSnapshotSamples { /* - * x-ms-original-file: 2026-06-01/FileShareSnapshot_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShareSnapshot_Update_MaximumSet_Gen.json */ /** * Sample code: FileShareSnapshot_Update_MaximumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesCheckNameAvailabilitySamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesCheckNameAvailabilitySamples.java index 454e39c2f07fa..62160c8fbb9bc 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesCheckNameAvailabilitySamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesCheckNameAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class FileSharesCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2026-06-01/FileShares_CheckNameAvailability_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_CheckNameAvailability_MaximumSet_Gen.json */ /** * Sample code: FileShares_CheckNameAvailability_MaximumSet. @@ -27,7 +27,7 @@ public final class FileSharesCheckNameAvailabilitySamples { } /* - * x-ms-original-file: 2026-06-01/FileShares_CheckNameAvailability_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_CheckNameAvailability_MinimumSet_Gen.json */ /** * Sample code: FileShares_CheckNameAvailability_MinimumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesCreateOrUpdateSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesCreateOrUpdateSamples.java index ad139247f9333..2d97d4641e992 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesCreateOrUpdateSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesCreateOrUpdateSamples.java @@ -4,15 +4,24 @@ package com.azure.resourcemanager.fileshares.generated; +import com.azure.resourcemanager.fileshares.models.CustomerManagedKeyEncryption; import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; +import com.azure.resourcemanager.fileshares.models.FileShareEncryption; import com.azure.resourcemanager.fileshares.models.FileShareProperties; +import com.azure.resourcemanager.fileshares.models.InfrastructureEncryption; +import com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentity; +import com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentityType; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentity; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentityType; import com.azure.resourcemanager.fileshares.models.MediaTier; import com.azure.resourcemanager.fileshares.models.NfsProtocolProperties; import com.azure.resourcemanager.fileshares.models.Protocol; import com.azure.resourcemanager.fileshares.models.PublicAccessProperties; import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; import com.azure.resourcemanager.fileshares.models.Redundancy; +import com.azure.resourcemanager.fileshares.models.ScaleMode; import com.azure.resourcemanager.fileshares.models.ShareRootSquash; +import com.azure.resourcemanager.fileshares.models.UserAssignedIdentity; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -22,7 +31,7 @@ */ public final class FileSharesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: FileShares_CreateOrUpdate_MaximumSet. @@ -40,6 +49,7 @@ public final class FileSharesCreateOrUpdateSamples { .withMediaTier(MediaTier.SSD) .withRedundancy(Redundancy.LOCAL) .withProtocol(Protocol.NFS) + .withScaleMode(ScaleMode.SCALE) .withProvisionedStorageGiB(8) .withProvisionedIOPerSec(5) .withProvisionedThroughputMiBPerSec(22) @@ -47,7 +57,19 @@ public final class FileSharesCreateOrUpdateSamples { .withEncryptionInTransitRequired(EncryptionInTransitRequired.ENABLED)) .withPublicAccessProperties(new PublicAccessProperties().withAllowedSubnets(Arrays.asList( "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"))) - .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)) + .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) + .withEncryption(new FileShareEncryption().withInfrastructureEncryption(InfrastructureEncryption.ENABLED) + .withCustomerManagedKeyEncryption(new CustomerManagedKeyEncryption() + .withKeyEncryptionKeyIdentity(new KeyEncryptionKeyIdentity() + .withIdentityType(KeyEncryptionKeyIdentityType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")) + .withKeyEncryptionKeyUrl("fakeTokenPlaceholder")))) + .withIdentity(new ManagedServiceIdentity() + .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity", + new UserAssignedIdentity()))) .create(); } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesDeleteSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesDeleteSamples.java index 2c7bee6364773..4395838e6eb78 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesDeleteSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class FileSharesDeleteSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_Delete_MaximumSet_Gen.json */ /** * Sample code: FileShares_Delete_MaximumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetByResourceGroupSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetByResourceGroupSamples.java index 4494ca5b438c5..86d9b0db1d965 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetByResourceGroupSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class FileSharesGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_Get_MaximumSet_Gen.json */ /** * Sample code: FileShares_Get_MaximumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetRedundancyConversionStatusSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetRedundancyConversionStatusSamples.java new file mode 100644 index 0000000000000..4701419d07ba4 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetRedundancyConversionStatusSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.generated; + +/** + * Samples for FileShares GetRedundancyConversionStatus. + */ +public final class FileSharesGetRedundancyConversionStatusSamples { + /* + * x-ms-original-file: 2026-09-01/FileShares_GetRedundancyConversionStatus_MaximumSet_Gen.json + */ + /** + * Sample code: FileShares_GetRedundancyConversionStatus_MaximumSet. + * + * @param manager Entry point to FileSharesManager. + */ + public static void fileSharesGetRedundancyConversionStatusMaximumSet( + com.azure.resourcemanager.fileshares.FileSharesManager manager) { + manager.fileShares() + .getRedundancyConversionStatusWithResponse("rgfileshares", "fileshare", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-09-01/FileShares_GetRedundancyConversionStatus_MinimumSet_Gen.json + */ + /** + * Sample code: FileShares_GetRedundancyConversionStatus_MinimumSet. + * + * @param manager Entry point to FileSharesManager. + */ + public static void fileSharesGetRedundancyConversionStatusMinimumSet( + com.azure.resourcemanager.fileshares.FileSharesManager manager) { + manager.fileShares() + .getRedundancyConversionStatusWithResponse("rgfileshares", "fileshare", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesListByResourceGroupSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesListByResourceGroupSamples.java index f900b47bc9aa2..c84ffa30e7e6e 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesListByResourceGroupSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class FileSharesListByResourceGroupSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_ListByParent_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_ListByParent_MinimumSet_Gen.json */ /** * Sample code: FileShares_ListByParent_MinimumSet. @@ -22,7 +22,7 @@ public final class FileSharesListByResourceGroupSamples { } /* - * x-ms-original-file: 2026-06-01/FileShares_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_ListByParent_MaximumSet_Gen.json */ /** * Sample code: FileShares_ListByParent_MaximumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesListSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesListSamples.java index fad66f8828e4a..b7b1363714aec 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesListSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesListSamples.java @@ -9,7 +9,7 @@ */ public final class FileSharesListSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_ListBySubscription_MinimumSet_Gen.json */ /** * Sample code: FileShares_ListBySubscription_MinimumSet. @@ -22,7 +22,7 @@ public final class FileSharesListSamples { } /* - * x-ms-original-file: 2026-06-01/FileShares_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: FileShares_ListBySubscription_MaximumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesStartRedundancyConversionSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesStartRedundancyConversionSamples.java new file mode 100644 index 0000000000000..0e01be3d168e2 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesStartRedundancyConversionSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.generated; + +import com.azure.resourcemanager.fileshares.models.Redundancy; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionInput; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest; + +/** + * Samples for FileShares StartRedundancyConversion. + */ +public final class FileSharesStartRedundancyConversionSamples { + /* + * x-ms-original-file: 2026-09-01/FileShares_StartRedundancyConversion_MaximumSet_Gen.json + */ + /** + * Sample code: FileShares_StartRedundancyConversion_MaximumSet. + * + * @param manager Entry point to FileSharesManager. + */ + public static void + fileSharesStartRedundancyConversionMaximumSet(com.azure.resourcemanager.fileshares.FileSharesManager manager) { + manager.fileShares() + .startRedundancyConversionWithResponse("rgfileshares", "fileshare", + new StartRedundancyConversionRequest() + .withProperties(new StartRedundancyConversionInput().withTargetRedundancy(Redundancy.ZONE)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesUpdateSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesUpdateSamples.java index 22b8c31850dec..ba1fc0ca7871b 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesUpdateSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/FileSharesUpdateSamples.java @@ -4,13 +4,21 @@ package com.azure.resourcemanager.fileshares.generated; +import com.azure.resourcemanager.fileshares.models.CustomerManagedKeyEncryption; import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; import com.azure.resourcemanager.fileshares.models.FileShare; +import com.azure.resourcemanager.fileshares.models.FileShareEncryption; import com.azure.resourcemanager.fileshares.models.FileShareUpdateProperties; +import com.azure.resourcemanager.fileshares.models.InfrastructureEncryption; +import com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentity; +import com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentityType; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentity; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentityType; import com.azure.resourcemanager.fileshares.models.NfsProtocolProperties; import com.azure.resourcemanager.fileshares.models.PublicAccessProperties; import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; import com.azure.resourcemanager.fileshares.models.ShareRootSquash; +import com.azure.resourcemanager.fileshares.models.UserAssignedIdentity; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -20,7 +28,7 @@ */ public final class FileSharesUpdateSamples { /* - * x-ms-original-file: 2026-06-01/FileShares_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShares_Update_MaximumSet_Gen.json */ /** * Sample code: FileShares_Update_MaximumSet. @@ -33,6 +41,11 @@ public static void fileSharesUpdateMaximumSet(com.azure.resourcemanager.fileshar .getValue(); resource.update() .withTags(mapOf("key173", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity() + .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity", + new UserAssignedIdentity()))) .withProperties(new FileShareUpdateProperties().withProvisionedStorageGiB(7) .withProvisionedIOPerSec(1) .withProvisionedThroughputMiBPerSec(29) @@ -40,7 +53,14 @@ public static void fileSharesUpdateMaximumSet(com.azure.resourcemanager.fileshar .withEncryptionInTransitRequired(EncryptionInTransitRequired.ENABLED)) .withPublicAccessProperties(new PublicAccessProperties().withAllowedSubnets(Arrays.asList( "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"))) - .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)) + .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) + .withEncryption(new FileShareEncryption().withInfrastructureEncryption(InfrastructureEncryption.ENABLED) + .withCustomerManagedKeyEncryption(new CustomerManagedKeyEncryption() + .withKeyEncryptionKeyIdentity(new KeyEncryptionKeyIdentity() + .withIdentityType(KeyEncryptionKeyIdentityType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity")) + .withKeyEncryptionKeyUrl("fakeTokenPlaceholder")))) .apply(); } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetLimitsSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetLimitsSamples.java index 31592ccd41b08..0a55c2707aa30 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetLimitsSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetLimitsSamples.java @@ -4,12 +4,18 @@ package com.azure.resourcemanager.fileshares.generated; +import com.azure.resourcemanager.fileshares.models.FileShareLimitsRequest; +import com.azure.resourcemanager.fileshares.models.FileShareOfferInput; +import com.azure.resourcemanager.fileshares.models.MediaTier; +import com.azure.resourcemanager.fileshares.models.Protocol; +import com.azure.resourcemanager.fileshares.models.ScaleMode; + /** * Samples for InformationalOperations GetLimits. */ public final class InformationalOperationsGetLimitsSamples { /* - * x-ms-original-file: 2026-06-01/FileShare_GetLimits_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetLimits_MinimumSet_Gen.json */ /** * Sample code: FileShare_GetLimits_MinimumSet. @@ -17,11 +23,13 @@ public final class InformationalOperationsGetLimitsSamples { * @param manager Entry point to FileSharesManager. */ public static void fileShareGetLimitsMinimumSet(com.azure.resourcemanager.fileshares.FileSharesManager manager) { - manager.informationalOperations().getLimitsWithResponse("westus", com.azure.core.util.Context.NONE); + manager.informationalOperations() + .getLimitsWithResponse("westus", new FileShareLimitsRequest().withProperties(new FileShareOfferInput()), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-06-01/FileShare_GetLimits_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetLimits_MaximumSet_Gen.json */ /** * Sample code: FileShare_GetLimits_MaximumSet. @@ -29,6 +37,11 @@ public static void fileShareGetLimitsMinimumSet(com.azure.resourcemanager.filesh * @param manager Entry point to FileSharesManager. */ public static void fileShareGetLimitsMaximumSet(com.azure.resourcemanager.fileshares.FileSharesManager manager) { - manager.informationalOperations().getLimitsWithResponse("westus", com.azure.core.util.Context.NONE); + manager.informationalOperations() + .getLimitsWithResponse("westus", + new FileShareLimitsRequest().withProperties(new FileShareOfferInput().withProtocol(Protocol.NFS) + .withMediaTier(MediaTier.HDD) + .withScaleMode(ScaleMode.SCALE)), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetProvisioningRecommendationSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetProvisioningRecommendationSamples.java index aca91ac1c6af7..25d384f9db2c5 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetProvisioningRecommendationSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetProvisioningRecommendationSamples.java @@ -6,13 +6,16 @@ import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationInput; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest; +import com.azure.resourcemanager.fileshares.models.MediaTier; +import com.azure.resourcemanager.fileshares.models.Protocol; +import com.azure.resourcemanager.fileshares.models.ScaleMode; /** * Samples for InformationalOperations GetProvisioningRecommendation. */ public final class InformationalOperationsGetProvisioningRecommendationSamples { /* - * x-ms-original-file: 2026-06-01/FileShare_GetProvisioningRecommendation_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetProvisioningRecommendation_MaximumSet_Gen.json */ /** * Sample code: FileShare_GetProvisioningRecommendation_MaximumSet. @@ -24,12 +27,15 @@ public static void fileShareGetProvisioningRecommendationMaximumSet( manager.informationalOperations() .getProvisioningRecommendationWithResponse("westus", new FileShareProvisioningRecommendationRequest() - .withProperties(new FileShareProvisioningRecommendationInput().withProvisionedStorageGiB(7)), + .withProperties(new FileShareProvisioningRecommendationInput().withProvisionedStorageGiB(7) + .withProtocol(Protocol.NFS) + .withMediaTier(MediaTier.HDD) + .withScaleMode(ScaleMode.SCALE)), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-06-01/FileShare_GetProvisioningRecommendation_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetProvisioningRecommendation_MinimumSet_Gen.json */ /** * Sample code: FileShare_GetProvisioningRecommendation_MinimumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetUsageDataSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetUsageDataSamples.java index 6be532ab51db4..e7348a8d8e30e 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetUsageDataSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetUsageDataSamples.java @@ -9,7 +9,7 @@ */ public final class InformationalOperationsGetUsageDataSamples { /* - * x-ms-original-file: 2026-06-01/FileShare_GetUsageData_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetUsageData_MaximumSet_Gen.json */ /** * Sample code: FileShare_GetUsageData_MaximumSet. @@ -21,7 +21,7 @@ public static void fileShareGetUsageDataMaximumSet(com.azure.resourcemanager.fil } /* - * x-ms-original-file: 2026-06-01/FileShare_GetUsageData_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/FileShare_GetUsageData_MinimumSet_Gen.json */ /** * Sample code: FileShare_GetUsageData_MinimumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/OperationsListSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/OperationsListSamples.java index a767b30d1c9e0..c8bbf376e1ceb 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/OperationsListSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-06-01/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-09-01/Operations_List_MinimumSet_Gen.json */ /** * Sample code: Operations_List_MinimumSet. @@ -21,7 +21,7 @@ public static void operationsListMinimumSet(com.azure.resourcemanager.fileshares } /* - * x-ms-original-file: 2026-06-01/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-09-01/Operations_List_MaximumSet_Gen.json */ /** * Sample code: Operations_List_MaximumSet. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsCreateSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsCreateSamples.java index ec129b61762d7..bd0f34de67c20 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsCreateSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsCreateSamples.java @@ -13,7 +13,7 @@ */ public final class PrivateEndpointConnectionsCreateSamples { /* - * x-ms-original-file: 2026-06-01/PrivateEndpointConnections_Create.json + * x-ms-original-file: 2026-09-01/PrivateEndpointConnections_Create.json */ /** * Sample code: PrivateEndpointConnections_Create. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsDeleteSamples.java index eb962afff1a11..eecafe9a95252 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-06-01/PrivateEndpointConnections_Delete.json + * x-ms-original-file: 2026-09-01/PrivateEndpointConnections_Delete.json */ /** * Sample code: PrivateEndpointConnections_Delete. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsGetSamples.java index 9a3c9a623ca66..72ac33e1f4445 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2026-06-01/PrivateEndpointConnections_Get.json + * x-ms-original-file: 2026-09-01/PrivateEndpointConnections_Get.json */ /** * Sample code: PrivateEndpointConnections_Get. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsListByFileShareSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsListByFileShareSamples.java index 814939779a5da..828add7754d60 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsListByFileShareSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsListByFileShareSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsListByFileShareSamples { /* - * x-ms-original-file: 2026-06-01/PrivateEndpointConnections_ListByFileShare.json + * x-ms-original-file: 2026-09-01/PrivateEndpointConnections_ListByFileShare.json */ /** * Sample code: PrivateEndpointConnections_ListByFileShare. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesGetSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesGetSamples.java index d53bb8268045f..126694ed595c6 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesGetSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesGetSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: 2026-06-01/PrivateLinkResources_Get.json + * x-ms-original-file: 2026-09-01/PrivateLinkResources_Get.json */ /** * Sample code: Get PrivateLinkResource. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesListSamples.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesListSamples.java index ed9f8d6b7d8c9..00131d934e357 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/samples/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: 2026-06-01/PrivateLinkResources_ListByFileShare.json + * x-ms-original-file: 2026-09-01/PrivateLinkResources_ListByFileShare.json */ /** * Sample code: List PrivateLinkResources. diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/CheckNameAvailabilityRequestTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/CheckNameAvailabilityRequestTests.java index 4ea77ec0cf355..5c683bb4997d8 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/CheckNameAvailabilityRequestTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/CheckNameAvailabilityRequestTests.java @@ -11,17 +11,17 @@ public final class CheckNameAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CheckNameAvailabilityRequest model - = BinaryData.fromString("{\"name\":\"w\",\"type\":\"m\"}").toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("w", model.name()); - Assertions.assertEquals("m", model.type()); + CheckNameAvailabilityRequest model = BinaryData.fromString("{\"name\":\"nbdxk\",\"type\":\"xo\"}") + .toObject(CheckNameAvailabilityRequest.class); + Assertions.assertEquals("nbdxk", model.name()); + Assertions.assertEquals("xo", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CheckNameAvailabilityRequest model = new CheckNameAvailabilityRequest().withName("w").withType("m"); + CheckNameAvailabilityRequest model = new CheckNameAvailabilityRequest().withName("nbdxk").withType("xo"); model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("w", model.name()); - Assertions.assertEquals("m", model.type()); + Assertions.assertEquals("nbdxk", model.name()); + Assertions.assertEquals("xo", model.type()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/CheckNameAvailabilityResponseInnerTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/CheckNameAvailabilityResponseInnerTests.java index 62ce390de674b..4f58d0d20d1b6 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/CheckNameAvailabilityResponseInnerTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/CheckNameAvailabilityResponseInnerTests.java @@ -12,11 +12,11 @@ public final class CheckNameAvailabilityResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CheckNameAvailabilityResponseInner model - = BinaryData.fromString("{\"nameAvailable\":true,\"reason\":\"Invalid\",\"message\":\"yvvtpgvdfgio\"}") - .toObject(CheckNameAvailabilityResponseInner.class); + CheckNameAvailabilityResponseInner model = BinaryData + .fromString("{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"pimexgstxgcpodg\"}") + .toObject(CheckNameAvailabilityResponseInner.class); Assertions.assertTrue(model.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, model.reason()); - Assertions.assertEquals("yvvtpgvdfgio", model.message()); + Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, model.reason()); + Assertions.assertEquals("pimexgstxgcpodg", model.message()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareInnerTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareInnerTests.java deleted file mode 100644 index 8aaace04fcae9..0000000000000 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareInnerTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.fileshares.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.fileshares.fluent.models.FileShareInner; -import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; -import com.azure.resourcemanager.fileshares.models.FileShareProperties; -import com.azure.resourcemanager.fileshares.models.MediaTier; -import com.azure.resourcemanager.fileshares.models.NfsProtocolProperties; -import com.azure.resourcemanager.fileshares.models.Protocol; -import com.azure.resourcemanager.fileshares.models.PublicAccessProperties; -import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; -import com.azure.resourcemanager.fileshares.models.Redundancy; -import com.azure.resourcemanager.fileshares.models.ShareRootSquash; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FileShareInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareInner model = BinaryData.fromString( - "{\"properties\":{\"mountName\":\"hq\",\"hostName\":\"gjxpybczmehmt\",\"mediaTier\":\"SSD\",\"redundancy\":\"Zone\",\"protocol\":\"NFS\",\"provisionedStorageGiB\":594038518,\"provisionedStorageNextAllowedDowngrade\":\"2021-05-31T07:59:53Z\",\"provisionedIOPerSec\":182731623,\"provisionedIOPerSecNextAllowedDowngrade\":\"2021-04-26T13:22:48Z\",\"provisionedThroughputMiBPerSec\":1332019186,\"provisionedThroughputNextAllowedDowngrade\":\"2021-04-19T05:48:54Z\",\"includedBurstIOPerSec\":318397575,\"maxBurstIOPerSecCredits\":7862936344800210145,\"nfsProtocolProperties\":{\"rootSquash\":\"RootSquash\",\"encryptionInTransitRequired\":\"Enabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"dxbmtqioq\",\"zehtbmu\",\"p\"]},\"provisioningState\":\"Patching\",\"publicNetworkAccess\":\"Enabled\",\"privateEndpointConnections\":[{\"properties\":{\"groupIds\":[\"xybqsoqij\",\"k\"],\"privateEndpoint\":{\"id\":\"pazlobcufpdz\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"cqqjnqglhqgn\",\"actionsRequired\":\"ooojywifsqe\"},\"provisioningState\":\"Deleting\"},\"id\":\"dfmglzlhjx\",\"name\":\"ifkwmrvktsizntoc\",\"type\":\"pa\"},{\"properties\":{\"groupIds\":[\"psqucmpoyf\"],\"privateEndpoint\":{\"id\":\"ogknygjofjdd\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"deupewnwrei\",\"actionsRequired\":\"zyf\"},\"provisioningState\":\"Creating\"},\"id\":\"rh\",\"name\":\"ofcqhsm\",\"type\":\"urkdtmlx\"}]},\"location\":\"kuksjtxukcdm\",\"tags\":{\"w\":\"cryuan\",\"pmrqobm\":\"xzdxtayrlhmwh\",\"knryrtihfxtij\":\"u\",\"zk\":\"pzvgnwzsymglzufc\"},\"id\":\"hdbihan\",\"name\":\"fhfcb\",\"type\":\"y\"}") - .toObject(FileShareInner.class); - Assertions.assertEquals("kuksjtxukcdm", model.location()); - Assertions.assertEquals("cryuan", model.tags().get("w")); - Assertions.assertEquals("hq", model.properties().mountName()); - Assertions.assertEquals(MediaTier.SSD, model.properties().mediaTier()); - Assertions.assertEquals(Redundancy.ZONE, model.properties().redundancy()); - Assertions.assertEquals(Protocol.NFS, model.properties().protocol()); - Assertions.assertEquals(594038518, model.properties().provisionedStorageGiB()); - Assertions.assertEquals(182731623, model.properties().provisionedIOPerSec()); - Assertions.assertEquals(1332019186, model.properties().provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.ROOT_SQUASH, model.properties().nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, - model.properties().nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("dxbmtqioq", model.properties().publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, model.properties().publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareInner model = new FileShareInner().withLocation("kuksjtxukcdm") - .withTags(mapOf("w", "cryuan", "pmrqobm", "xzdxtayrlhmwh", "knryrtihfxtij", "u", "zk", "pzvgnwzsymglzufc")) - .withProperties(new FileShareProperties().withMountName("hq") - .withMediaTier(MediaTier.SSD) - .withRedundancy(Redundancy.ZONE) - .withProtocol(Protocol.NFS) - .withProvisionedStorageGiB(594038518) - .withProvisionedIOPerSec(182731623) - .withProvisionedThroughputMiBPerSec(1332019186) - .withNfsProtocolProperties(new NfsProtocolProperties().withRootSquash(ShareRootSquash.ROOT_SQUASH) - .withEncryptionInTransitRequired(EncryptionInTransitRequired.ENABLED)) - .withPublicAccessProperties( - new PublicAccessProperties().withAllowedSubnets(Arrays.asList("dxbmtqioq", "zehtbmu", "p"))) - .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)); - model = BinaryData.fromObject(model).toObject(FileShareInner.class); - Assertions.assertEquals("kuksjtxukcdm", model.location()); - Assertions.assertEquals("cryuan", model.tags().get("w")); - Assertions.assertEquals("hq", model.properties().mountName()); - Assertions.assertEquals(MediaTier.SSD, model.properties().mediaTier()); - Assertions.assertEquals(Redundancy.ZONE, model.properties().redundancy()); - Assertions.assertEquals(Protocol.NFS, model.properties().protocol()); - Assertions.assertEquals(594038518, model.properties().provisionedStorageGiB()); - Assertions.assertEquals(182731623, model.properties().provisionedIOPerSec()); - Assertions.assertEquals(1332019186, model.properties().provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.ROOT_SQUASH, model.properties().nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, - model.properties().nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("dxbmtqioq", model.properties().publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, model.properties().publicNetworkAccess()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsOutputTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsOutputTests.java index f119b914a382d..596d7f7c24f48 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsOutputTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsOutputTests.java @@ -12,23 +12,23 @@ public final class FileShareLimitsOutputTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileShareLimitsOutput model = BinaryData.fromString( - "{\"limits\":{\"maxFileShares\":1785940860,\"maxFileShareSnapshots\":1778259828,\"maxFileShareSubnets\":1882721753,\"maxFileSharePrivateEndpointConnections\":1485053733,\"minProvisionedStorageGiB\":1421441668,\"maxProvisionedStorageGiB\":1772662038,\"minProvisionedIOPerSec\":100068665,\"maxProvisionedIOPerSec\":1783138805,\"minProvisionedThroughputMiBPerSec\":1932691851,\"maxProvisionedThroughputMiBPerSec\":2100121858},\"provisioningConstants\":{\"baseIOPerSec\":1196709774,\"scalarIOPerSec\":72.1345356002445,\"baseThroughputMiBPerSec\":1272670546,\"scalarThroughputMiBPerSec\":46.78969770766594,\"guardrailIOPerSecScalar\":29.805304047933355,\"guardrailThroughputScalar\":6.725331731598683}}") + "{\"limits\":{\"maxFileShares\":2000803950,\"maxFileShareSnapshots\":278176639,\"maxFileShareSubnets\":561322525,\"maxFileSharePrivateEndpointConnections\":599264802,\"minProvisionedStorageGiB\":1534766868,\"maxProvisionedStorageGiB\":1785806943,\"minProvisionedIOPerSec\":51531430,\"maxProvisionedIOPerSec\":129742346,\"minProvisionedThroughputMiBPerSec\":2033477361,\"maxProvisionedThroughputMiBPerSec\":173387394},\"provisioningConstants\":{\"baseIOPerSec\":2078386445,\"scalarIOPerSec\":1.670154744934682,\"baseThroughputMiBPerSec\":53365345,\"scalarThroughputMiBPerSec\":95.90219898115492,\"guardrailIOPerSecScalar\":14.028674072023083,\"guardrailThroughputScalar\":98.3329583727786}}") .toObject(FileShareLimitsOutput.class); - Assertions.assertEquals(1785940860, model.limits().maxFileShares()); - Assertions.assertEquals(1778259828, model.limits().maxFileShareSnapshots()); - Assertions.assertEquals(1882721753, model.limits().maxFileShareSubnets()); - Assertions.assertEquals(1485053733, model.limits().maxFileSharePrivateEndpointConnections()); - Assertions.assertEquals(1421441668, model.limits().minProvisionedStorageGiB()); - Assertions.assertEquals(1772662038, model.limits().maxProvisionedStorageGiB()); - Assertions.assertEquals(100068665, model.limits().minProvisionedIOPerSec()); - Assertions.assertEquals(1783138805, model.limits().maxProvisionedIOPerSec()); - Assertions.assertEquals(1932691851, model.limits().minProvisionedThroughputMiBPerSec()); - Assertions.assertEquals(2100121858, model.limits().maxProvisionedThroughputMiBPerSec()); - Assertions.assertEquals(1196709774, model.provisioningConstants().baseIOPerSec()); - Assertions.assertEquals(72.1345356002445, model.provisioningConstants().scalarIOPerSec()); - Assertions.assertEquals(1272670546, model.provisioningConstants().baseThroughputMiBPerSec()); - Assertions.assertEquals(46.78969770766594, model.provisioningConstants().scalarThroughputMiBPerSec()); - Assertions.assertEquals(29.805304047933355, model.provisioningConstants().guardrailIOPerSecScalar()); - Assertions.assertEquals(6.725331731598683, model.provisioningConstants().guardrailThroughputScalar()); + Assertions.assertEquals(2000803950, model.limits().maxFileShares()); + Assertions.assertEquals(278176639, model.limits().maxFileShareSnapshots()); + Assertions.assertEquals(561322525, model.limits().maxFileShareSubnets()); + Assertions.assertEquals(599264802, model.limits().maxFileSharePrivateEndpointConnections()); + Assertions.assertEquals(1534766868, model.limits().minProvisionedStorageGiB()); + Assertions.assertEquals(1785806943, model.limits().maxProvisionedStorageGiB()); + Assertions.assertEquals(51531430, model.limits().minProvisionedIOPerSec()); + Assertions.assertEquals(129742346, model.limits().maxProvisionedIOPerSec()); + Assertions.assertEquals(2033477361, model.limits().minProvisionedThroughputMiBPerSec()); + Assertions.assertEquals(173387394, model.limits().maxProvisionedThroughputMiBPerSec()); + Assertions.assertEquals(2078386445, model.provisioningConstants().baseIOPerSec()); + Assertions.assertEquals(1.670154744934682, model.provisioningConstants().scalarIOPerSec()); + Assertions.assertEquals(53365345, model.provisioningConstants().baseThroughputMiBPerSec()); + Assertions.assertEquals(95.90219898115492, model.provisioningConstants().scalarThroughputMiBPerSec()); + Assertions.assertEquals(14.028674072023083, model.provisioningConstants().guardrailIOPerSecScalar()); + Assertions.assertEquals(98.3329583727786, model.provisioningConstants().guardrailThroughputScalar()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsRequestTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsRequestTests.java new file mode 100644 index 0000000000000..9fc8b62e604ed --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsRequestTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.fileshares.models.FileShareLimitsRequest; +import com.azure.resourcemanager.fileshares.models.FileShareOfferInput; +import com.azure.resourcemanager.fileshares.models.MediaTier; +import com.azure.resourcemanager.fileshares.models.Protocol; +import com.azure.resourcemanager.fileshares.models.ScaleMode; +import org.junit.jupiter.api.Assertions; + +public final class FileShareLimitsRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + FileShareLimitsRequest model = BinaryData + .fromString("{\"properties\":{\"protocol\":\"NFS\",\"mediaTier\":\"HDD\",\"scaleMode\":\"Scale\"}}") + .toObject(FileShareLimitsRequest.class); + Assertions.assertEquals(Protocol.NFS, model.properties().protocol()); + Assertions.assertEquals(MediaTier.HDD, model.properties().mediaTier()); + Assertions.assertEquals(ScaleMode.SCALE, model.properties().scaleMode()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + FileShareLimitsRequest model + = new FileShareLimitsRequest().withProperties(new FileShareOfferInput().withProtocol(Protocol.NFS) + .withMediaTier(MediaTier.HDD) + .withScaleMode(ScaleMode.SCALE)); + model = BinaryData.fromObject(model).toObject(FileShareLimitsRequest.class); + Assertions.assertEquals(Protocol.NFS, model.properties().protocol()); + Assertions.assertEquals(MediaTier.HDD, model.properties().mediaTier()); + Assertions.assertEquals(ScaleMode.SCALE, model.properties().scaleMode()); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsResponseInnerTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsResponseInnerTests.java index 69814cbb5263d..15f68003b475f 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsResponseInnerTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsResponseInnerTests.java @@ -12,26 +12,26 @@ public final class FileShareLimitsResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileShareLimitsResponseInner model = BinaryData.fromString( - "{\"properties\":{\"limits\":{\"maxFileShares\":1493558591,\"maxFileShareSnapshots\":2143826704,\"maxFileShareSubnets\":1890498246,\"maxFileSharePrivateEndpointConnections\":2058649208,\"minProvisionedStorageGiB\":1309614398,\"maxProvisionedStorageGiB\":1414548234,\"minProvisionedIOPerSec\":1520989721,\"maxProvisionedIOPerSec\":1083545989,\"minProvisionedThroughputMiBPerSec\":223654021,\"maxProvisionedThroughputMiBPerSec\":299344741},\"provisioningConstants\":{\"baseIOPerSec\":306734530,\"scalarIOPerSec\":77.41510425361014,\"baseThroughputMiBPerSec\":445329815,\"scalarThroughputMiBPerSec\":82.09638916807184,\"guardrailIOPerSecScalar\":70.10904951109774,\"guardrailThroughputScalar\":51.84957148993339}}}") + "{\"properties\":{\"limits\":{\"maxFileShares\":212177726,\"maxFileShareSnapshots\":829690425,\"maxFileShareSubnets\":2139015356,\"maxFileSharePrivateEndpointConnections\":1792680801,\"minProvisionedStorageGiB\":862594448,\"maxProvisionedStorageGiB\":245724981,\"minProvisionedIOPerSec\":157234884,\"maxProvisionedIOPerSec\":1764023919,\"minProvisionedThroughputMiBPerSec\":642461794,\"maxProvisionedThroughputMiBPerSec\":799434019},\"provisioningConstants\":{\"baseIOPerSec\":244069221,\"scalarIOPerSec\":33.64942709505411,\"baseThroughputMiBPerSec\":2007054909,\"scalarThroughputMiBPerSec\":49.17460485856575,\"guardrailIOPerSecScalar\":96.57760470524683,\"guardrailThroughputScalar\":46.7812536582212}}}") .toObject(FileShareLimitsResponseInner.class); - Assertions.assertEquals(1493558591, model.properties().limits().maxFileShares()); - Assertions.assertEquals(2143826704, model.properties().limits().maxFileShareSnapshots()); - Assertions.assertEquals(1890498246, model.properties().limits().maxFileShareSubnets()); - Assertions.assertEquals(2058649208, model.properties().limits().maxFileSharePrivateEndpointConnections()); - Assertions.assertEquals(1309614398, model.properties().limits().minProvisionedStorageGiB()); - Assertions.assertEquals(1414548234, model.properties().limits().maxProvisionedStorageGiB()); - Assertions.assertEquals(1520989721, model.properties().limits().minProvisionedIOPerSec()); - Assertions.assertEquals(1083545989, model.properties().limits().maxProvisionedIOPerSec()); - Assertions.assertEquals(223654021, model.properties().limits().minProvisionedThroughputMiBPerSec()); - Assertions.assertEquals(299344741, model.properties().limits().maxProvisionedThroughputMiBPerSec()); - Assertions.assertEquals(306734530, model.properties().provisioningConstants().baseIOPerSec()); - Assertions.assertEquals(77.41510425361014, model.properties().provisioningConstants().scalarIOPerSec()); - Assertions.assertEquals(445329815, model.properties().provisioningConstants().baseThroughputMiBPerSec()); - Assertions.assertEquals(82.09638916807184, + Assertions.assertEquals(212177726, model.properties().limits().maxFileShares()); + Assertions.assertEquals(829690425, model.properties().limits().maxFileShareSnapshots()); + Assertions.assertEquals(2139015356, model.properties().limits().maxFileShareSubnets()); + Assertions.assertEquals(1792680801, model.properties().limits().maxFileSharePrivateEndpointConnections()); + Assertions.assertEquals(862594448, model.properties().limits().minProvisionedStorageGiB()); + Assertions.assertEquals(245724981, model.properties().limits().maxProvisionedStorageGiB()); + Assertions.assertEquals(157234884, model.properties().limits().minProvisionedIOPerSec()); + Assertions.assertEquals(1764023919, model.properties().limits().maxProvisionedIOPerSec()); + Assertions.assertEquals(642461794, model.properties().limits().minProvisionedThroughputMiBPerSec()); + Assertions.assertEquals(799434019, model.properties().limits().maxProvisionedThroughputMiBPerSec()); + Assertions.assertEquals(244069221, model.properties().provisioningConstants().baseIOPerSec()); + Assertions.assertEquals(33.64942709505411, model.properties().provisioningConstants().scalarIOPerSec()); + Assertions.assertEquals(2007054909, model.properties().provisioningConstants().baseThroughputMiBPerSec()); + Assertions.assertEquals(49.17460485856575, model.properties().provisioningConstants().scalarThroughputMiBPerSec()); - Assertions.assertEquals(70.10904951109774, + Assertions.assertEquals(96.57760470524683, model.properties().provisioningConstants().guardrailIOPerSecScalar()); - Assertions.assertEquals(51.84957148993339, + Assertions.assertEquals(46.7812536582212, model.properties().provisioningConstants().guardrailThroughputScalar()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsTests.java index 3bf92ad984b4c..770d73f05a88b 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareLimitsTests.java @@ -12,17 +12,17 @@ public final class FileShareLimitsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileShareLimits model = BinaryData.fromString( - "{\"maxFileShares\":206207279,\"maxFileShareSnapshots\":178812834,\"maxFileShareSubnets\":306270503,\"maxFileSharePrivateEndpointConnections\":1423802799,\"minProvisionedStorageGiB\":681133133,\"maxProvisionedStorageGiB\":1044580515,\"minProvisionedIOPerSec\":1201119723,\"maxProvisionedIOPerSec\":812677705,\"minProvisionedThroughputMiBPerSec\":682758161,\"maxProvisionedThroughputMiBPerSec\":1925395217}") + "{\"maxFileShares\":1342514759,\"maxFileShareSnapshots\":1305817330,\"maxFileShareSubnets\":1880549577,\"maxFileSharePrivateEndpointConnections\":229483686,\"minProvisionedStorageGiB\":435987287,\"maxProvisionedStorageGiB\":1665159346,\"minProvisionedIOPerSec\":1268089221,\"maxProvisionedIOPerSec\":856772857,\"minProvisionedThroughputMiBPerSec\":403055260,\"maxProvisionedThroughputMiBPerSec\":382213486}") .toObject(FileShareLimits.class); - Assertions.assertEquals(206207279, model.maxFileShares()); - Assertions.assertEquals(178812834, model.maxFileShareSnapshots()); - Assertions.assertEquals(306270503, model.maxFileShareSubnets()); - Assertions.assertEquals(1423802799, model.maxFileSharePrivateEndpointConnections()); - Assertions.assertEquals(681133133, model.minProvisionedStorageGiB()); - Assertions.assertEquals(1044580515, model.maxProvisionedStorageGiB()); - Assertions.assertEquals(1201119723, model.minProvisionedIOPerSec()); - Assertions.assertEquals(812677705, model.maxProvisionedIOPerSec()); - Assertions.assertEquals(682758161, model.minProvisionedThroughputMiBPerSec()); - Assertions.assertEquals(1925395217, model.maxProvisionedThroughputMiBPerSec()); + Assertions.assertEquals(1342514759, model.maxFileShares()); + Assertions.assertEquals(1305817330, model.maxFileShareSnapshots()); + Assertions.assertEquals(1880549577, model.maxFileShareSubnets()); + Assertions.assertEquals(229483686, model.maxFileSharePrivateEndpointConnections()); + Assertions.assertEquals(435987287, model.minProvisionedStorageGiB()); + Assertions.assertEquals(1665159346, model.maxProvisionedStorageGiB()); + Assertions.assertEquals(1268089221, model.minProvisionedIOPerSec()); + Assertions.assertEquals(856772857, model.maxProvisionedIOPerSec()); + Assertions.assertEquals(403055260, model.minProvisionedThroughputMiBPerSec()); + Assertions.assertEquals(382213486, model.maxProvisionedThroughputMiBPerSec()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareListResultTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareListResultTests.java deleted file mode 100644 index effd80fd29795..0000000000000 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareListResultTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.fileshares.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.fileshares.implementation.models.FileShareListResult; -import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; -import com.azure.resourcemanager.fileshares.models.MediaTier; -import com.azure.resourcemanager.fileshares.models.Protocol; -import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; -import com.azure.resourcemanager.fileshares.models.Redundancy; -import com.azure.resourcemanager.fileshares.models.ShareRootSquash; -import org.junit.jupiter.api.Assertions; - -public final class FileShareListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"mountName\":\"qfou\",\"hostName\":\"mmnkzsmodmgl\",\"mediaTier\":\"SSD\",\"redundancy\":\"Local\",\"protocol\":\"NFS\",\"provisionedStorageGiB\":542784283,\"provisionedStorageNextAllowedDowngrade\":\"2021-03-15T14:00:11Z\",\"provisionedIOPerSec\":1581209984,\"provisionedIOPerSecNextAllowedDowngrade\":\"2021-08-28T07:34:48Z\",\"provisionedThroughputMiBPerSec\":675008389,\"provisionedThroughputNextAllowedDowngrade\":\"2021-01-27T01:22:28Z\",\"includedBurstIOPerSec\":807711520,\"maxBurstIOPerSecCredits\":7210492425439546280,\"nfsProtocolProperties\":{\"rootSquash\":\"AllSquash\",\"encryptionInTransitRequired\":\"Enabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"vqwhbmdgbbjfd\",\"gmbmbexppbh\",\"q\",\"rolfpfp\"]},\"provisioningState\":\"Updating\",\"publicNetworkAccess\":\"Enabled\",\"privateEndpointConnections\":[{\"properties\":{\"privateLinkServiceConnectionState\":{}},\"id\":\"gjyjgzjaoyfhrtxi\",\"name\":\"n\",\"type\":\"rkujy\"}]},\"location\":\"l\",\"tags\":{\"nwbxgjvtbvpyssz\":\"vfqawrlyxwjkcpr\",\"guhmuouqfpr\":\"nruj\",\"nguitnwuizgazxu\":\"zw\"},\"id\":\"izuckyfihrfidfvz\",\"name\":\"dzuhtymwi\",\"type\":\"dkfthwxmnt\"},{\"properties\":{\"mountName\":\"aop\",\"hostName\":\"mijcmmxdcufufs\",\"mediaTier\":\"SSD\",\"redundancy\":\"Zone\",\"protocol\":\"NFS\",\"provisionedStorageGiB\":1823460887,\"provisionedStorageNextAllowedDowngrade\":\"2021-10-23T08:25:02Z\",\"provisionedIOPerSec\":1219718844,\"provisionedIOPerSecNextAllowedDowngrade\":\"2021-01-22T02:13:35Z\",\"provisionedThroughputMiBPerSec\":391919190,\"provisionedThroughputNextAllowedDowngrade\":\"2021-04-17T07:41:34Z\",\"includedBurstIOPerSec\":121296393,\"maxBurstIOPerSecCredits\":2876654491928953392,\"nfsProtocolProperties\":{\"rootSquash\":\"NoRootSquash\",\"encryptionInTransitRequired\":\"Enabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"iachbo\",\"sflnrosfqp\",\"eeh\",\"zvypyqrimzinp\"]},\"provisioningState\":\"TransientFailure\",\"publicNetworkAccess\":\"Disabled\",\"privateEndpointConnections\":[{\"properties\":{\"privateLinkServiceConnectionState\":{}},\"id\":\"oodqxhcrm\",\"name\":\"ohjtckw\",\"type\":\"dsoifiyipj\"},{\"properties\":{\"privateLinkServiceConnectionState\":{}},\"id\":\"wpgrjbzno\",\"name\":\"cjxvsnbyxqab\",\"type\":\"mocpc\"},{\"properties\":{\"privateLinkServiceConnectionState\":{}},\"id\":\"urzafb\",\"name\":\"jjgpb\",\"type\":\"oq\"},{\"properties\":{\"privateLinkServiceConnectionState\":{}},\"id\":\"klj\",\"name\":\"vbqid\",\"type\":\"qajzyulpkudjkr\"}]},\"location\":\"hbzhfepg\",\"tags\":{\"zloc\":\"e\"},\"id\":\"scpai\",\"name\":\"rhhbcs\",\"type\":\"l\"},{\"properties\":{\"mountName\":\"a\",\"hostName\":\"j\",\"mediaTier\":\"SSD\",\"redundancy\":\"Zone\",\"protocol\":\"NFS\",\"provisionedStorageGiB\":1455975978,\"provisionedStorageNextAllowedDowngrade\":\"2021-01-04T07:19:33Z\",\"provisionedIOPerSec\":372100049,\"provisionedIOPerSecNextAllowedDowngrade\":\"2021-05-18T14:10:03Z\",\"provisionedThroughputMiBPerSec\":1684749712,\"provisionedThroughputNextAllowedDowngrade\":\"2021-01-11T15:15:23Z\",\"includedBurstIOPerSec\":1116116329,\"maxBurstIOPerSecCredits\":8132312778385746697,\"nfsProtocolProperties\":{\"rootSquash\":\"AllSquash\",\"encryptionInTransitRequired\":\"Disabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"po\"]},\"provisioningState\":\"TransientFailure\",\"publicNetworkAccess\":\"Disabled\",\"privateEndpointConnections\":[{\"properties\":{\"privateLinkServiceConnectionState\":{}},\"id\":\"djwzrlov\",\"name\":\"clwhijcoejctbz\",\"type\":\"qsqsy\"}]},\"location\":\"kbfkg\",\"tags\":{\"xaxcfjpgddtocjjx\":\"kexxppof\",\"eojnxqbzvddn\":\"vpmouexhdzxib\",\"aoqvuh\":\"wndeicbtwnp\"},\"id\":\"hcffcyddglmjthjq\",\"name\":\"wpyeicxmqciwqvh\",\"type\":\"hix\"}],\"nextLink\":\"gdtopbobjogh\"}") - .toObject(FileShareListResult.class); - Assertions.assertEquals("l", model.value().get(0).location()); - Assertions.assertEquals("vfqawrlyxwjkcpr", model.value().get(0).tags().get("nwbxgjvtbvpyssz")); - Assertions.assertEquals("qfou", model.value().get(0).properties().mountName()); - Assertions.assertEquals(MediaTier.SSD, model.value().get(0).properties().mediaTier()); - Assertions.assertEquals(Redundancy.LOCAL, model.value().get(0).properties().redundancy()); - Assertions.assertEquals(Protocol.NFS, model.value().get(0).properties().protocol()); - Assertions.assertEquals(542784283, model.value().get(0).properties().provisionedStorageGiB()); - Assertions.assertEquals(1581209984, model.value().get(0).properties().provisionedIOPerSec()); - Assertions.assertEquals(675008389, model.value().get(0).properties().provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.ALL_SQUASH, - model.value().get(0).properties().nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, - model.value().get(0).properties().nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("vqwhbmdgbbjfd", - model.value().get(0).properties().publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, model.value().get(0).properties().publicNetworkAccess()); - Assertions.assertEquals("gdtopbobjogh", model.nextLink()); - } -} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareOfferInputTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareOfferInputTests.java new file mode 100644 index 0000000000000..244cec9055ab1 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareOfferInputTests.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.fileshares.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.fileshares.models.FileShareOfferInput; +import com.azure.resourcemanager.fileshares.models.MediaTier; +import com.azure.resourcemanager.fileshares.models.Protocol; +import com.azure.resourcemanager.fileshares.models.ScaleMode; +import org.junit.jupiter.api.Assertions; + +public final class FileShareOfferInputTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + FileShareOfferInput model + = BinaryData.fromString("{\"protocol\":\"NFS\",\"mediaTier\":\"SSD\",\"scaleMode\":\"Scale\"}") + .toObject(FileShareOfferInput.class); + Assertions.assertEquals(Protocol.NFS, model.protocol()); + Assertions.assertEquals(MediaTier.SSD, model.mediaTier()); + Assertions.assertEquals(ScaleMode.SCALE, model.scaleMode()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + FileShareOfferInput model = new FileShareOfferInput().withProtocol(Protocol.NFS) + .withMediaTier(MediaTier.SSD) + .withScaleMode(ScaleMode.SCALE); + model = BinaryData.fromObject(model).toObject(FileShareOfferInput.class); + Assertions.assertEquals(Protocol.NFS, model.protocol()); + Assertions.assertEquals(MediaTier.SSD, model.mediaTier()); + Assertions.assertEquals(ScaleMode.SCALE, model.scaleMode()); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharePropertiesTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharePropertiesTests.java deleted file mode 100644 index 07bb543ebe4e4..0000000000000 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharePropertiesTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.fileshares.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; -import com.azure.resourcemanager.fileshares.models.FileShareProperties; -import com.azure.resourcemanager.fileshares.models.MediaTier; -import com.azure.resourcemanager.fileshares.models.NfsProtocolProperties; -import com.azure.resourcemanager.fileshares.models.Protocol; -import com.azure.resourcemanager.fileshares.models.PublicAccessProperties; -import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; -import com.azure.resourcemanager.fileshares.models.Redundancy; -import com.azure.resourcemanager.fileshares.models.ShareRootSquash; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class FileSharePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareProperties model = BinaryData.fromString( - "{\"mountName\":\"git\",\"hostName\":\"qhabifpikxwcz\",\"mediaTier\":\"SSD\",\"redundancy\":\"Local\",\"protocol\":\"NFS\",\"provisionedStorageGiB\":219984358,\"provisionedStorageNextAllowedDowngrade\":\"2021-08-14T16:42:07Z\",\"provisionedIOPerSec\":222313615,\"provisionedIOPerSecNextAllowedDowngrade\":\"2020-12-30T16:23:36Z\",\"provisionedThroughputMiBPerSec\":649847293,\"provisionedThroughputNextAllowedDowngrade\":\"2021-02-02T22:35:41Z\",\"includedBurstIOPerSec\":1753847734,\"maxBurstIOPerSecCredits\":3301538698074823511,\"nfsProtocolProperties\":{\"rootSquash\":\"RootSquash\",\"encryptionInTransitRequired\":\"Enabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"wvukx\",\"audccsnhs\"]},\"provisioningState\":\"Succeeded\",\"publicNetworkAccess\":\"Enabled\",\"privateEndpointConnections\":[{\"properties\":{\"groupIds\":[\"htnapczwlokjyem\",\"kvnipjoxz\",\"nchgej\",\"podmailzydehojwy\"],\"privateEndpoint\":{\"id\":\"xinpmqnjaq\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"sprozvcput\",\"actionsRequired\":\"jvwmfda\"},\"provisioningState\":\"Succeeded\"},\"id\":\"dvpjhulsuuvmk\",\"name\":\"ozkrwfndiodjpslw\",\"type\":\"jdpvwryo\"},{\"properties\":{\"groupIds\":[\"acctazakljla\",\"bcryffdfd\"],\"privateEndpoint\":{\"id\":\"gexpaojakhmsbz\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"zevdphlx\",\"actionsRequired\":\"lthqtrgqjbp\"},\"provisioningState\":\"Failed\"},\"id\":\"inzgvfcj\",\"name\":\"wzo\",\"type\":\"xjtfelluwfzit\"}]}") - .toObject(FileShareProperties.class); - Assertions.assertEquals("git", model.mountName()); - Assertions.assertEquals(MediaTier.SSD, model.mediaTier()); - Assertions.assertEquals(Redundancy.LOCAL, model.redundancy()); - Assertions.assertEquals(Protocol.NFS, model.protocol()); - Assertions.assertEquals(219984358, model.provisionedStorageGiB()); - Assertions.assertEquals(222313615, model.provisionedIOPerSec()); - Assertions.assertEquals(649847293, model.provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.ROOT_SQUASH, model.nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, - model.nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("wvukx", model.publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, model.publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareProperties model = new FileShareProperties().withMountName("git") - .withMediaTier(MediaTier.SSD) - .withRedundancy(Redundancy.LOCAL) - .withProtocol(Protocol.NFS) - .withProvisionedStorageGiB(219984358) - .withProvisionedIOPerSec(222313615) - .withProvisionedThroughputMiBPerSec(649847293) - .withNfsProtocolProperties(new NfsProtocolProperties().withRootSquash(ShareRootSquash.ROOT_SQUASH) - .withEncryptionInTransitRequired(EncryptionInTransitRequired.ENABLED)) - .withPublicAccessProperties( - new PublicAccessProperties().withAllowedSubnets(Arrays.asList("wvukx", "audccsnhs"))) - .withPublicNetworkAccess(PublicNetworkAccess.ENABLED); - model = BinaryData.fromObject(model).toObject(FileShareProperties.class); - Assertions.assertEquals("git", model.mountName()); - Assertions.assertEquals(MediaTier.SSD, model.mediaTier()); - Assertions.assertEquals(Redundancy.LOCAL, model.redundancy()); - Assertions.assertEquals(Protocol.NFS, model.protocol()); - Assertions.assertEquals(219984358, model.provisionedStorageGiB()); - Assertions.assertEquals(222313615, model.provisionedIOPerSec()); - Assertions.assertEquals(649847293, model.provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.ROOT_SQUASH, model.nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, - model.nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("wvukx", model.publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, model.publicNetworkAccess()); - } -} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningConstantsTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningConstantsTests.java index f0957dff8f376..45368b1fbb886 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningConstantsTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningConstantsTests.java @@ -12,13 +12,13 @@ public final class FileShareProvisioningConstantsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileShareProvisioningConstants model = BinaryData.fromString( - "{\"baseIOPerSec\":1990259381,\"scalarIOPerSec\":33.20230783790736,\"baseThroughputMiBPerSec\":961118443,\"scalarThroughputMiBPerSec\":72.58622829423445,\"guardrailIOPerSecScalar\":22.407160322024012,\"guardrailThroughputScalar\":17.090889926292764}") + "{\"baseIOPerSec\":928435,\"scalarIOPerSec\":22.07190251300957,\"baseThroughputMiBPerSec\":1718564660,\"scalarThroughputMiBPerSec\":17.378484722859245,\"guardrailIOPerSecScalar\":36.28927386504993,\"guardrailThroughputScalar\":74.15893611983897}") .toObject(FileShareProvisioningConstants.class); - Assertions.assertEquals(1990259381, model.baseIOPerSec()); - Assertions.assertEquals(33.20230783790736, model.scalarIOPerSec()); - Assertions.assertEquals(961118443, model.baseThroughputMiBPerSec()); - Assertions.assertEquals(72.58622829423445, model.scalarThroughputMiBPerSec()); - Assertions.assertEquals(22.407160322024012, model.guardrailIOPerSecScalar()); - Assertions.assertEquals(17.090889926292764, model.guardrailThroughputScalar()); + Assertions.assertEquals(928435, model.baseIOPerSec()); + Assertions.assertEquals(22.07190251300957, model.scalarIOPerSec()); + Assertions.assertEquals(1718564660, model.baseThroughputMiBPerSec()); + Assertions.assertEquals(17.378484722859245, model.scalarThroughputMiBPerSec()); + Assertions.assertEquals(36.28927386504993, model.guardrailIOPerSecScalar()); + Assertions.assertEquals(74.15893611983897, model.guardrailThroughputScalar()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationInputTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationInputTests.java index 4b67c283b4baf..272b06dbbcbb5 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationInputTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationInputTests.java @@ -6,21 +6,34 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationInput; +import com.azure.resourcemanager.fileshares.models.MediaTier; +import com.azure.resourcemanager.fileshares.models.Protocol; +import com.azure.resourcemanager.fileshares.models.ScaleMode; import org.junit.jupiter.api.Assertions; public final class FileShareProvisioningRecommendationInputTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - FileShareProvisioningRecommendationInput model = BinaryData.fromString("{\"provisionedStorageGiB\":1877680716}") + FileShareProvisioningRecommendationInput model = BinaryData.fromString( + "{\"provisionedStorageGiB\":643021552,\"protocol\":\"NFS\",\"mediaTier\":\"HDD\",\"scaleMode\":\"Compatibility\"}") .toObject(FileShareProvisioningRecommendationInput.class); - Assertions.assertEquals(1877680716, model.provisionedStorageGiB()); + Assertions.assertEquals(643021552, model.provisionedStorageGiB()); + Assertions.assertEquals(Protocol.NFS, model.protocol()); + Assertions.assertEquals(MediaTier.HDD, model.mediaTier()); + Assertions.assertEquals(ScaleMode.COMPATIBILITY, model.scaleMode()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FileShareProvisioningRecommendationInput model - = new FileShareProvisioningRecommendationInput().withProvisionedStorageGiB(1877680716); + = new FileShareProvisioningRecommendationInput().withProvisionedStorageGiB(643021552) + .withProtocol(Protocol.NFS) + .withMediaTier(MediaTier.HDD) + .withScaleMode(ScaleMode.COMPATIBILITY); model = BinaryData.fromObject(model).toObject(FileShareProvisioningRecommendationInput.class); - Assertions.assertEquals(1877680716, model.provisionedStorageGiB()); + Assertions.assertEquals(643021552, model.provisionedStorageGiB()); + Assertions.assertEquals(Protocol.NFS, model.protocol()); + Assertions.assertEquals(MediaTier.HDD, model.mediaTier()); + Assertions.assertEquals(ScaleMode.COMPATIBILITY, model.scaleMode()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationOutputTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationOutputTests.java index d963c81392402..7ab4b22193f07 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationOutputTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationOutputTests.java @@ -13,10 +13,10 @@ public final class FileShareProvisioningRecommendationOutputTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileShareProvisioningRecommendationOutput model = BinaryData.fromString( - "{\"provisionedIOPerSec\":1916962672,\"provisionedThroughputMiBPerSec\":1163138760,\"availableRedundancyOptions\":[\"Zone\"]}") + "{\"provisionedIOPerSec\":1859867828,\"provisionedThroughputMiBPerSec\":128550194,\"availableRedundancyOptions\":[\"Zone\",\"Local\",\"Zone\",\"Zone\"]}") .toObject(FileShareProvisioningRecommendationOutput.class); - Assertions.assertEquals(1916962672, model.provisionedIOPerSec()); - Assertions.assertEquals(1163138760, model.provisionedThroughputMiBPerSec()); + Assertions.assertEquals(1859867828, model.provisionedIOPerSec()); + Assertions.assertEquals(128550194, model.provisionedThroughputMiBPerSec()); Assertions.assertEquals(Redundancy.ZONE, model.availableRedundancyOptions().get(0)); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationRequestTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationRequestTests.java index b5f349bdfc408..5cbdadfbce6dd 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationRequestTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationRequestTests.java @@ -7,22 +7,34 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationInput; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest; +import com.azure.resourcemanager.fileshares.models.MediaTier; +import com.azure.resourcemanager.fileshares.models.Protocol; +import com.azure.resourcemanager.fileshares.models.ScaleMode; import org.junit.jupiter.api.Assertions; public final class FileShareProvisioningRecommendationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - FileShareProvisioningRecommendationRequest model - = BinaryData.fromString("{\"properties\":{\"provisionedStorageGiB\":1786560396}}") - .toObject(FileShareProvisioningRecommendationRequest.class); - Assertions.assertEquals(1786560396, model.properties().provisionedStorageGiB()); + FileShareProvisioningRecommendationRequest model = BinaryData.fromString( + "{\"properties\":{\"provisionedStorageGiB\":1015141024,\"protocol\":\"NFS\",\"mediaTier\":\"HDD\",\"scaleMode\":\"Scale\"}}") + .toObject(FileShareProvisioningRecommendationRequest.class); + Assertions.assertEquals(1015141024, model.properties().provisionedStorageGiB()); + Assertions.assertEquals(Protocol.NFS, model.properties().protocol()); + Assertions.assertEquals(MediaTier.HDD, model.properties().mediaTier()); + Assertions.assertEquals(ScaleMode.SCALE, model.properties().scaleMode()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FileShareProvisioningRecommendationRequest model = new FileShareProvisioningRecommendationRequest() - .withProperties(new FileShareProvisioningRecommendationInput().withProvisionedStorageGiB(1786560396)); + .withProperties(new FileShareProvisioningRecommendationInput().withProvisionedStorageGiB(1015141024) + .withProtocol(Protocol.NFS) + .withMediaTier(MediaTier.HDD) + .withScaleMode(ScaleMode.SCALE)); model = BinaryData.fromObject(model).toObject(FileShareProvisioningRecommendationRequest.class); - Assertions.assertEquals(1786560396, model.properties().provisionedStorageGiB()); + Assertions.assertEquals(1015141024, model.properties().provisionedStorageGiB()); + Assertions.assertEquals(Protocol.NFS, model.properties().protocol()); + Assertions.assertEquals(MediaTier.HDD, model.properties().mediaTier()); + Assertions.assertEquals(ScaleMode.SCALE, model.properties().scaleMode()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationResponseInnerTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationResponseInnerTests.java index 515ba8ed6b678..37410dcf4ab21 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationResponseInnerTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareProvisioningRecommendationResponseInnerTests.java @@ -13,10 +13,10 @@ public final class FileShareProvisioningRecommendationResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileShareProvisioningRecommendationResponseInner model = BinaryData.fromString( - "{\"properties\":{\"provisionedIOPerSec\":2114864042,\"provisionedThroughputMiBPerSec\":1410521625,\"availableRedundancyOptions\":[\"Local\"]}}") + "{\"properties\":{\"provisionedIOPerSec\":1288949880,\"provisionedThroughputMiBPerSec\":1232407744,\"availableRedundancyOptions\":[\"Local\"]}}") .toObject(FileShareProvisioningRecommendationResponseInner.class); - Assertions.assertEquals(2114864042, model.properties().provisionedIOPerSec()); - Assertions.assertEquals(1410521625, model.properties().provisionedThroughputMiBPerSec()); + Assertions.assertEquals(1288949880, model.properties().provisionedIOPerSec()); + Assertions.assertEquals(1232407744, model.properties().provisionedThroughputMiBPerSec()); Assertions.assertEquals(Redundancy.LOCAL, model.properties().availableRedundancyOptions().get(0)); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotInnerTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotInnerTests.java index ed142605fbebc..9728fee1ddd8e 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotInnerTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotInnerTests.java @@ -15,19 +15,20 @@ public final class FileShareSnapshotInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileShareSnapshotInner model = BinaryData.fromString( - "{\"properties\":{\"snapshotTime\":\"tutqxlngxlefgug\",\"initiatorId\":\"krxd\",\"metadata\":{\"hzrvqd\":\"dt\"}},\"id\":\"bhj\",\"name\":\"big\",\"type\":\"h\"}") + "{\"properties\":{\"snapshotTime\":\"kexxppof\",\"initiatorId\":\"axcfjpgddtocjjx\",\"metadata\":{\"bqe\":\"mouexhdzx\",\"eic\":\"jnxqbzvddntwn\",\"cyddglmjthjqk\":\"twnpzaoqvuhrhcf\"}},\"id\":\"yeicxmqciwqvhk\",\"name\":\"ixuigdtopbobj\",\"type\":\"ghmewuam\"}") .toObject(FileShareSnapshotInner.class); - Assertions.assertEquals("krxd", model.properties().initiatorId()); - Assertions.assertEquals("dt", model.properties().metadata().get("hzrvqd")); + Assertions.assertEquals("axcfjpgddtocjjx", model.properties().initiatorId()); + Assertions.assertEquals("mouexhdzx", model.properties().metadata().get("bqe")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FileShareSnapshotInner model = new FileShareSnapshotInner().withProperties( - new FileShareSnapshotProperties().withInitiatorId("krxd").withMetadata(mapOf("hzrvqd", "dt"))); + FileShareSnapshotInner model = new FileShareSnapshotInner() + .withProperties(new FileShareSnapshotProperties().withInitiatorId("axcfjpgddtocjjx") + .withMetadata(mapOf("bqe", "mouexhdzx", "eic", "jnxqbzvddntwn", "cyddglmjthjqk", "twnpzaoqvuhrhcf"))); model = BinaryData.fromObject(model).toObject(FileShareSnapshotInner.class); - Assertions.assertEquals("krxd", model.properties().initiatorId()); - Assertions.assertEquals("dt", model.properties().metadata().get("hzrvqd")); + Assertions.assertEquals("axcfjpgddtocjjx", model.properties().initiatorId()); + Assertions.assertEquals("mouexhdzx", model.properties().metadata().get("bqe")); } // Use "Map.of" if available diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotListResultTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotListResultTests.java index e6e9c15767509..60e1e63dbc1ce 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotListResultTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotListResultTests.java @@ -12,10 +12,10 @@ public final class FileShareSnapshotListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileShareSnapshotListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"snapshotTime\":\"ea\",\"initiatorId\":\"ipheoflokeyyien\",\"metadata\":{\"jumasx\":\"lwtgrhpdj\",\"qyeg\":\"zj\",\"hejjz\":\"alhbx\"}},\"id\":\"dudgwdslfhot\",\"name\":\"mcy\",\"type\":\"pwlbjnpg\"}],\"nextLink\":\"ftadehxnltyfs\"}") + "{\"value\":[{\"properties\":{\"snapshotTime\":\"onq\",\"initiatorId\":\"kvlrxnj\",\"metadata\":{\"enjbdlwtgrhp\":\"eipheoflokeyy\",\"umasxazjpq\":\"jp\"}},\"id\":\"gual\",\"name\":\"b\",\"type\":\"xhejjzzvdud\"},{\"properties\":{\"snapshotTime\":\"slfhotwm\",\"initiatorId\":\"npwlbjnpg\",\"metadata\":{\"suesnzw\":\"tadehxnltyfsopp\",\"avo\":\"ej\",\"vudwx\":\"xzdmohctb\",\"gujjugwdkcglh\":\"ndnvo\"}},\"id\":\"azjdyggd\",\"name\":\"jixhbk\",\"type\":\"ofqweykhmenevfye\"},{\"properties\":{\"snapshotTime\":\"hybcibv\",\"initiatorId\":\"dcsi\",\"metadata\":{\"tehfiqscjeypvh\":\"naamde\",\"kqsleyyvxy\":\"zrkgqhcjrefovg\",\"cr\":\"jpkcattpng\",\"ajvnysounqe\":\"czsqpjhvm\"}},\"id\":\"noae\",\"name\":\"pfhyhl\",\"type\":\"rpmopjmc\"}],\"nextLink\":\"tuo\"}") .toObject(FileShareSnapshotListResult.class); - Assertions.assertEquals("ipheoflokeyyien", model.value().get(0).properties().initiatorId()); - Assertions.assertEquals("lwtgrhpdj", model.value().get(0).properties().metadata().get("jumasx")); - Assertions.assertEquals("ftadehxnltyfs", model.nextLink()); + Assertions.assertEquals("kvlrxnj", model.value().get(0).properties().initiatorId()); + Assertions.assertEquals("eipheoflokeyy", model.value().get(0).properties().metadata().get("enjbdlwtgrhp")); + Assertions.assertEquals("tuo", model.nextLink()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotPropertiesTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotPropertiesTests.java index 4b4efde5ea2fb..be01ab104135c 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotPropertiesTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotPropertiesTests.java @@ -14,19 +14,20 @@ public final class FileShareSnapshotPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileShareSnapshotProperties model = BinaryData.fromString( - "{\"snapshotTime\":\"fbowskanyk\",\"initiatorId\":\"lcuiywgqywgndr\",\"metadata\":{\"fvm\":\"hzgpphrcgyncocpe\",\"bmqj\":\"coofsxlzev\",\"lzu\":\"abcypmivk\"}}") + "{\"snapshotTime\":\"hrzayvvtpgvdf\",\"initiatorId\":\"otkftutqxlngx\",\"metadata\":{\"xkrxdqmi\":\"gug\",\"abhjybi\":\"tthzrvqd\",\"ktzlcuiywg\":\"ehoqfbowskan\",\"nhzgpphrcgyn\":\"ywgndrv\"}}") .toObject(FileShareSnapshotProperties.class); - Assertions.assertEquals("lcuiywgqywgndr", model.initiatorId()); - Assertions.assertEquals("hzgpphrcgyncocpe", model.metadata().get("fvm")); + Assertions.assertEquals("otkftutqxlngx", model.initiatorId()); + Assertions.assertEquals("gug", model.metadata().get("xkrxdqmi")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FileShareSnapshotProperties model = new FileShareSnapshotProperties().withInitiatorId("lcuiywgqywgndr") - .withMetadata(mapOf("fvm", "hzgpphrcgyncocpe", "bmqj", "coofsxlzev", "lzu", "abcypmivk")); + FileShareSnapshotProperties model = new FileShareSnapshotProperties().withInitiatorId("otkftutqxlngx") + .withMetadata(mapOf("xkrxdqmi", "gug", "abhjybi", "tthzrvqd", "ktzlcuiywg", "ehoqfbowskan", "nhzgpphrcgyn", + "ywgndrv")); model = BinaryData.fromObject(model).toObject(FileShareSnapshotProperties.class); - Assertions.assertEquals("lcuiywgqywgndr", model.initiatorId()); - Assertions.assertEquals("hzgpphrcgyncocpe", model.metadata().get("fvm")); + Assertions.assertEquals("otkftutqxlngx", model.initiatorId()); + Assertions.assertEquals("gug", model.metadata().get("xkrxdqmi")); } // Use "Map.of" if available diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotUpdatePropertiesTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotUpdatePropertiesTests.java index 71e8a0bbba276..52a1047147b91 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotUpdatePropertiesTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotUpdatePropertiesTests.java @@ -13,18 +13,19 @@ public final class FileShareSnapshotUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - FileShareSnapshotUpdateProperties model - = BinaryData.fromString("{\"metadata\":{\"ochcbonqvpkvl\":\"mngnzscxaqw\"}}") - .toObject(FileShareSnapshotUpdateProperties.class); - Assertions.assertEquals("mngnzscxaqw", model.metadata().get("ochcbonqvpkvl")); + FileShareSnapshotUpdateProperties model = BinaryData.fromString( + "{\"metadata\":{\"y\":\"lzevgbmqjqab\",\"wnfnbacf\":\"mivkwlzuvcc\",\"bqqwxrj\":\"onlebxetqgtzxdpn\",\"mpmngnzscxaqwoo\":\"eallnwsubisnj\"}}") + .toObject(FileShareSnapshotUpdateProperties.class); + Assertions.assertEquals("lzevgbmqjqab", model.metadata().get("y")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FileShareSnapshotUpdateProperties model - = new FileShareSnapshotUpdateProperties().withMetadata(mapOf("ochcbonqvpkvl", "mngnzscxaqw")); + = new FileShareSnapshotUpdateProperties().withMetadata(mapOf("y", "lzevgbmqjqab", "wnfnbacf", "mivkwlzuvcc", + "bqqwxrj", "onlebxetqgtzxdpn", "mpmngnzscxaqwoo", "eallnwsubisnj")); model = BinaryData.fromObject(model).toObject(FileShareSnapshotUpdateProperties.class); - Assertions.assertEquals("mngnzscxaqw", model.metadata().get("ochcbonqvpkvl")); + Assertions.assertEquals("lzevgbmqjqab", model.metadata().get("y")); } // Use "Map.of" if available diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotUpdateTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotUpdateTests.java index c377c1c09eb08..1eceef097e6b6 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotUpdateTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotUpdateTests.java @@ -14,20 +14,17 @@ public final class FileShareSnapshotUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - FileShareSnapshotUpdate model = BinaryData - .fromString( - "{\"properties\":{\"metadata\":{\"onlebxetqgtzxdpn\":\"wnfnbacf\",\"eallnwsubisnj\":\"bqqwxrj\"}}}") + FileShareSnapshotUpdate model = BinaryData.fromString("{\"properties\":{\"metadata\":{\"oo\":\"ecfvmm\"}}}") .toObject(FileShareSnapshotUpdate.class); - Assertions.assertEquals("wnfnbacf", model.properties().metadata().get("onlebxetqgtzxdpn")); + Assertions.assertEquals("ecfvmm", model.properties().metadata().get("oo")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FileShareSnapshotUpdate model - = new FileShareSnapshotUpdate().withProperties(new FileShareSnapshotUpdateProperties() - .withMetadata(mapOf("onlebxetqgtzxdpn", "wnfnbacf", "eallnwsubisnj", "bqqwxrj"))); + FileShareSnapshotUpdate model = new FileShareSnapshotUpdate() + .withProperties(new FileShareSnapshotUpdateProperties().withMetadata(mapOf("oo", "ecfvmm"))); model = BinaryData.fromObject(model).toObject(FileShareSnapshotUpdate.class); - Assertions.assertEquals("wnfnbacf", model.properties().metadata().get("onlebxetqgtzxdpn")); + Assertions.assertEquals("ecfvmm", model.properties().metadata().get("oo")); } // Use "Map.of" if available diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsGetFileShareSnapshotWithResponseMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsGetFileShareSnapshotWithResponseMockTests.java index af9be563726d5..0d646ce1c2bc5 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsGetFileShareSnapshotWithResponseMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsGetFileShareSnapshotWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class FileShareSnapshotsGetFileShareSnapshotWithResponseMockTests { @Test public void testGetFileShareSnapshotWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"snapshotTime\":\"wiwubm\",\"initiatorId\":\"besldnkwwtppjflc\",\"metadata\":{\"mkqzeqqkdltfzxmh\":\"aokonzmnsik\",\"gureodkwobdag\":\"v\",\"gqxndlkzgxhuripl\":\"tibqdxbxwakb\",\"bxmubyynt\":\"podxunkb\"}},\"id\":\"rbqtkoie\",\"name\":\"seotgqrllt\",\"type\":\"u\"}"; + = "{\"properties\":{\"snapshotTime\":\"uhavhql\",\"initiatorId\":\"humaqolbgyc\",\"metadata\":{\"l\":\"ertgccymva\",\"lfmmdnbbglzpswi\":\"ssl\",\"cwyhzdxssa\":\"d\",\"od\":\"bzmnvdfznud\"}},\"id\":\"zbn\",\"name\":\"blylpstdbh\",\"type\":\"xsrz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetFileShareSnapshotWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FileShareSnapshot response = manager.fileShareSnapshots() - .getFileShareSnapshotWithResponse("emwabnet", "hhszh", "d", com.azure.core.util.Context.NONE) + .getFileShareSnapshotWithResponse("oygmift", "nzdndslgna", "qig", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("besldnkwwtppjflc", response.properties().initiatorId()); - Assertions.assertEquals("aokonzmnsik", response.properties().metadata().get("mkqzeqqkdltfzxmh")); + Assertions.assertEquals("humaqolbgyc", response.properties().initiatorId()); + Assertions.assertEquals("ertgccymva", response.properties().metadata().get("l")); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsListByFileShareMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsListByFileShareMockTests.java index fb5a63071a98a..8a133a5a48ce3 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsListByFileShareMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareSnapshotsListByFileShareMockTests.java @@ -22,7 +22,7 @@ public final class FileShareSnapshotsListByFileShareMockTests { @Test public void testListByFileShare() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"snapshotTime\":\"nzbtbhj\",\"initiatorId\":\"lkfg\",\"metadata\":{\"ikdowwquuvx\":\"neuelfphsdyhtoz\"}},\"id\":\"clvit\",\"name\":\"hqzonosggbhcoh\",\"type\":\"wdsjnkalju\"}]}"; + = "{\"value\":[{\"properties\":{\"snapshotTime\":\"weriofzpyqsem\",\"initiatorId\":\"bnetshh\",\"metadata\":{\"besldnkwwtppjflc\":\"edplvwiwubmw\"}},\"id\":\"gaokonzmnsikv\",\"name\":\"kqze\",\"type\":\"qkdltfz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testListByFileShare() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.fileShareSnapshots() - .listByFileShare("lauwzizxbmpgcjef", "zmuvpbttdumorppx", com.azure.core.util.Context.NONE); + .listByFileShare("zucerscdntnev", "iwjmygtdssls", com.azure.core.util.Context.NONE); - Assertions.assertEquals("lkfg", response.iterator().next().properties().initiatorId()); - Assertions.assertEquals("neuelfphsdyhtoz", - response.iterator().next().properties().metadata().get("ikdowwquuvx")); + Assertions.assertEquals("bnetshh", response.iterator().next().properties().initiatorId()); + Assertions.assertEquals("edplvwiwubmw", + response.iterator().next().properties().metadata().get("besldnkwwtppjflc")); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUpdatePropertiesTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUpdatePropertiesTests.java deleted file mode 100644 index bd7ccc5c01d65..0000000000000 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUpdatePropertiesTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.fileshares.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; -import com.azure.resourcemanager.fileshares.models.FileShareUpdateProperties; -import com.azure.resourcemanager.fileshares.models.NfsProtocolProperties; -import com.azure.resourcemanager.fileshares.models.PublicAccessProperties; -import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; -import com.azure.resourcemanager.fileshares.models.ShareRootSquash; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class FileShareUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareUpdateProperties model = BinaryData.fromString( - "{\"provisionedStorageGiB\":1048772360,\"provisionedIOPerSec\":248766473,\"provisionedThroughputMiBPerSec\":754447097,\"nfsProtocolProperties\":{\"rootSquash\":\"AllSquash\",\"encryptionInTransitRequired\":\"Enabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"nqgoulzndli\",\"wyqkgfgibm\",\"dgak\",\"qsrxybzqqed\"]},\"publicNetworkAccess\":\"Disabled\"}") - .toObject(FileShareUpdateProperties.class); - Assertions.assertEquals(1048772360, model.provisionedStorageGiB()); - Assertions.assertEquals(248766473, model.provisionedIOPerSec()); - Assertions.assertEquals(754447097, model.provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.ALL_SQUASH, model.nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, - model.nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("nqgoulzndli", model.publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareUpdateProperties model = new FileShareUpdateProperties().withProvisionedStorageGiB(1048772360) - .withProvisionedIOPerSec(248766473) - .withProvisionedThroughputMiBPerSec(754447097) - .withNfsProtocolProperties(new NfsProtocolProperties().withRootSquash(ShareRootSquash.ALL_SQUASH) - .withEncryptionInTransitRequired(EncryptionInTransitRequired.ENABLED)) - .withPublicAccessProperties(new PublicAccessProperties() - .withAllowedSubnets(Arrays.asList("nqgoulzndli", "wyqkgfgibm", "dgak", "qsrxybzqqed"))) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED); - model = BinaryData.fromObject(model).toObject(FileShareUpdateProperties.class); - Assertions.assertEquals(1048772360, model.provisionedStorageGiB()); - Assertions.assertEquals(248766473, model.provisionedIOPerSec()); - Assertions.assertEquals(754447097, model.provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.ALL_SQUASH, model.nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, - model.nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("nqgoulzndli", model.publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - } -} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUpdateTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUpdateTests.java deleted file mode 100644 index cd2bbb108d2d9..0000000000000 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUpdateTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.fileshares.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; -import com.azure.resourcemanager.fileshares.models.FileShareUpdate; -import com.azure.resourcemanager.fileshares.models.FileShareUpdateProperties; -import com.azure.resourcemanager.fileshares.models.NfsProtocolProperties; -import com.azure.resourcemanager.fileshares.models.PublicAccessProperties; -import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; -import com.azure.resourcemanager.fileshares.models.ShareRootSquash; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class FileShareUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FileShareUpdate model = BinaryData.fromString( - "{\"tags\":{\"zdatqxhocdg\":\"nhutjeltmrldhugj\"},\"properties\":{\"provisionedStorageGiB\":1293628182,\"provisionedIOPerSec\":950218840,\"provisionedThroughputMiBPerSec\":1780121294,\"nfsProtocolProperties\":{\"rootSquash\":\"NoRootSquash\",\"encryptionInTransitRequired\":\"Enabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"ozwyiftyhxhuro\",\"ftyxolniw\",\"wcukjfkgiawxk\",\"ryplwckbasyypn\"]},\"publicNetworkAccess\":\"Disabled\"}}") - .toObject(FileShareUpdate.class); - Assertions.assertEquals("nhutjeltmrldhugj", model.tags().get("zdatqxhocdg")); - Assertions.assertEquals(1293628182, model.properties().provisionedStorageGiB()); - Assertions.assertEquals(950218840, model.properties().provisionedIOPerSec()); - Assertions.assertEquals(1780121294, model.properties().provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.NO_ROOT_SQUASH, - model.properties().nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, - model.properties().nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("ozwyiftyhxhuro", model.properties().publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.properties().publicNetworkAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FileShareUpdate model = new FileShareUpdate().withTags(mapOf("zdatqxhocdg", "nhutjeltmrldhugj")) - .withProperties(new FileShareUpdateProperties().withProvisionedStorageGiB(1293628182) - .withProvisionedIOPerSec(950218840) - .withProvisionedThroughputMiBPerSec(1780121294) - .withNfsProtocolProperties(new NfsProtocolProperties().withRootSquash(ShareRootSquash.NO_ROOT_SQUASH) - .withEncryptionInTransitRequired(EncryptionInTransitRequired.ENABLED)) - .withPublicAccessProperties(new PublicAccessProperties().withAllowedSubnets( - Arrays.asList("ozwyiftyhxhuro", "ftyxolniw", "wcukjfkgiawxk", "ryplwckbasyypn"))) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED)); - model = BinaryData.fromObject(model).toObject(FileShareUpdate.class); - Assertions.assertEquals("nhutjeltmrldhugj", model.tags().get("zdatqxhocdg")); - Assertions.assertEquals(1293628182, model.properties().provisionedStorageGiB()); - Assertions.assertEquals(950218840, model.properties().provisionedIOPerSec()); - Assertions.assertEquals(1780121294, model.properties().provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.NO_ROOT_SQUASH, - model.properties().nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, - model.properties().nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("ozwyiftyhxhuro", model.properties().publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.properties().publicNetworkAccess()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUsageDataOutputTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUsageDataOutputTests.java index 95e9fcbde814e..25083e9e17b26 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUsageDataOutputTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUsageDataOutputTests.java @@ -11,8 +11,8 @@ public final class FileShareUsageDataOutputTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - FileShareUsageDataOutput model = BinaryData.fromString("{\"liveShares\":{\"fileShareCount\":891101767}}") + FileShareUsageDataOutput model = BinaryData.fromString("{\"liveShares\":{\"fileShareCount\":45967354}}") .toObject(FileShareUsageDataOutput.class); - Assertions.assertEquals(891101767, model.liveShares().fileShareCount()); + Assertions.assertEquals(45967354, model.liveShares().fileShareCount()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUsageDataResponseInnerTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUsageDataResponseInnerTests.java index 9e53e9072f975..16c2130131306 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUsageDataResponseInnerTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileShareUsageDataResponseInnerTests.java @@ -12,8 +12,8 @@ public final class FileShareUsageDataResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileShareUsageDataResponseInner model - = BinaryData.fromString("{\"properties\":{\"liveShares\":{\"fileShareCount\":1948903121}}}") + = BinaryData.fromString("{\"properties\":{\"liveShares\":{\"fileShareCount\":133898645}}}") .toObject(FileShareUsageDataResponseInner.class); - Assertions.assertEquals(1948903121, model.properties().liveShares().fileShareCount()); + Assertions.assertEquals(133898645, model.properties().liveShares().fileShareCount()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesCheckNameAvailabilityWithResponseMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesCheckNameAvailabilityWithResponseMockTests.java index e31ff4aaed199..da5b572fe76cf 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesCheckNameAvailabilityWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class FileSharesCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"lhbnxkna\"}"; + String responseStr = "{\"nameAvailable\":false,\"reason\":\"AlreadyExists\",\"message\":\"cwzzhxgktr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CheckNameAvailabilityResponse response = manager.fileShares() - .checkNameAvailabilityWithResponse("ixisxyawjoy", - new CheckNameAvailabilityRequest().withName("cslyjpk").withType("dzyexznelixh"), + .checkNameAvailabilityWithResponse("alaulppggdtpnapn", + new CheckNameAvailabilityRequest().withName("ropuhpigv").withType("ylgqgitxmedjvcsl"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertTrue(response.nameAvailable()); + Assertions.assertFalse(response.nameAvailable()); Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("lhbnxkna", response.message()); + Assertions.assertEquals("cwzzhxgktr", response.message()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesCreateOrUpdateMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesCreateOrUpdateMockTests.java deleted file mode 100644 index 5a43e963a8443..0000000000000 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.fileshares.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.fileshares.FileSharesManager; -import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; -import com.azure.resourcemanager.fileshares.models.FileShare; -import com.azure.resourcemanager.fileshares.models.FileShareProperties; -import com.azure.resourcemanager.fileshares.models.MediaTier; -import com.azure.resourcemanager.fileshares.models.NfsProtocolProperties; -import com.azure.resourcemanager.fileshares.models.Protocol; -import com.azure.resourcemanager.fileshares.models.PublicAccessProperties; -import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; -import com.azure.resourcemanager.fileshares.models.Redundancy; -import com.azure.resourcemanager.fileshares.models.ShareRootSquash; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class FileSharesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"mountName\":\"birx\",\"hostName\":\"ybsrfbjfdtwss\",\"mediaTier\":\"SSD\",\"redundancy\":\"Local\",\"protocol\":\"NFS\",\"provisionedStorageGiB\":1235013026,\"provisionedStorageNextAllowedDowngrade\":\"2021-06-16T07:23:52Z\",\"provisionedIOPerSec\":151747977,\"provisionedIOPerSecNextAllowedDowngrade\":\"2021-06-27T17:15:27Z\",\"provisionedThroughputMiBPerSec\":1551412306,\"provisionedThroughputNextAllowedDowngrade\":\"2021-04-20T20:21:02Z\",\"includedBurstIOPerSec\":956114198,\"maxBurstIOPerSecCredits\":7849718302372812487,\"nfsProtocolProperties\":{\"rootSquash\":\"NoRootSquash\",\"encryptionInTransitRequired\":\"Disabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"mkcjhwqytjrybn\",\"jewgdrjerv\",\"aen\"]},\"provisioningState\":\"Succeeded\",\"publicNetworkAccess\":\"Disabled\",\"privateEndpointConnections\":[{\"properties\":{\"groupIds\":[\"mifthnzdnd\",\"l\",\"nayqi\"],\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"Deleting\"},\"id\":\"havhqlkthumaqolb\",\"name\":\"ycduier\",\"type\":\"gccymvaolpssl\"}]},\"location\":\"fmmdnbbg\",\"tags\":{\"sadbz\":\"swiydmcwyhzdx\",\"dvxzbncblylpst\":\"nvdfznuda\",\"rsc\":\"bhhxsrzdzuc\"},\"id\":\"ntnev\",\"name\":\"iwjmygtdssls\",\"type\":\"tmweriofzpyq\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - FileSharesManager manager = FileSharesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - FileShare response = manager.fileShares() - .define("pnapnyiropuh") - .withRegion("qbhsfxobl") - .withExistingResourceGroup("aulppggd") - .withTags(mapOf("bkrvrnsvshqj", "blmpewww")) - .withProperties(new FileShareProperties().withMountName("vpgylgqgitxmed") - .withMediaTier(MediaTier.SSD) - .withRedundancy(Redundancy.LOCAL) - .withProtocol(Protocol.NFS) - .withProvisionedStorageGiB(282783230) - .withProvisionedIOPerSec(538641166) - .withProvisionedThroughputMiBPerSec(808952037) - .withNfsProtocolProperties(new NfsProtocolProperties().withRootSquash(ShareRootSquash.ALL_SQUASH) - .withEncryptionInTransitRequired(EncryptionInTransitRequired.ENABLED)) - .withPublicAccessProperties( - new PublicAccessProperties().withAllowedSubnets(Arrays.asList("wptfdy", "pfqbuaceopzf"))) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED)) - .create(); - - Assertions.assertEquals("fmmdnbbg", response.location()); - Assertions.assertEquals("swiydmcwyhzdx", response.tags().get("sadbz")); - Assertions.assertEquals("birx", response.properties().mountName()); - Assertions.assertEquals(MediaTier.SSD, response.properties().mediaTier()); - Assertions.assertEquals(Redundancy.LOCAL, response.properties().redundancy()); - Assertions.assertEquals(Protocol.NFS, response.properties().protocol()); - Assertions.assertEquals(1235013026, response.properties().provisionedStorageGiB()); - Assertions.assertEquals(151747977, response.properties().provisionedIOPerSec()); - Assertions.assertEquals(1551412306, response.properties().provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.NO_ROOT_SQUASH, - response.properties().nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.DISABLED, - response.properties().nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("mkcjhwqytjrybn", - response.properties().publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, response.properties().publicNetworkAccess()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetByResourceGroupWithResponseMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 305cfe8a7954d..0000000000000 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.fileshares.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.fileshares.FileSharesManager; -import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; -import com.azure.resourcemanager.fileshares.models.FileShare; -import com.azure.resourcemanager.fileshares.models.MediaTier; -import com.azure.resourcemanager.fileshares.models.Protocol; -import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; -import com.azure.resourcemanager.fileshares.models.Redundancy; -import com.azure.resourcemanager.fileshares.models.ShareRootSquash; -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 FileSharesGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"mountName\":\"xdbabphlwr\",\"hostName\":\"fkts\",\"mediaTier\":\"SSD\",\"redundancy\":\"Zone\",\"protocol\":\"NFS\",\"provisionedStorageGiB\":2095135848,\"provisionedStorageNextAllowedDowngrade\":\"2021-06-06T00:56:44Z\",\"provisionedIOPerSec\":533461500,\"provisionedIOPerSecNextAllowedDowngrade\":\"2021-08-27T13:10:53Z\",\"provisionedThroughputMiBPerSec\":1372436938,\"provisionedThroughputNextAllowedDowngrade\":\"2021-08-28T10:19:16Z\",\"includedBurstIOPerSec\":1529613290,\"maxBurstIOPerSecCredits\":5267298804319679372,\"nfsProtocolProperties\":{\"rootSquash\":\"NoRootSquash\",\"encryptionInTransitRequired\":\"Disabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"exzfeyue\",\"xibxujwbhqwalm\",\"zyoxaepdkzjan\"]},\"provisioningState\":\"TransientFailure\",\"publicNetworkAccess\":\"Disabled\",\"privateEndpointConnections\":[{\"properties\":{\"groupIds\":[\"xbniwdjs\"],\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"Succeeded\"},\"id\":\"bpg\",\"name\":\"xytxhpzxbz\",\"type\":\"fzab\"},{\"properties\":{\"groupIds\":[\"hxw\",\"ctyqik\",\"bbovplwzbhvgyugu\",\"svmkfssxquk\"],\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"Succeeded\"},\"id\":\"mg\",\"name\":\"xnkjzkdesl\",\"type\":\"vlopwiyighx\"},{\"properties\":{\"groupIds\":[\"zb\",\"iuebbaumny\"],\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"Deleting\"},\"id\":\"eojnabc\",\"name\":\"hsmtxpsiebtfhvp\",\"type\":\"sapskr\"}]},\"location\":\"mhjjdhtldwkyzx\",\"tags\":{\"ws\":\"kn\",\"vnm\":\"wsvlxotogtwrupqs\"},\"id\":\"cykvceo\",\"name\":\"eil\",\"type\":\"vnotyfjfcnj\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - FileSharesManager manager = FileSharesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - FileShare response = manager.fileShares() - .getByResourceGroupWithResponse("qidybyx", "zfcl", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("mhjjdhtldwkyzx", response.location()); - Assertions.assertEquals("kn", response.tags().get("ws")); - Assertions.assertEquals("xdbabphlwr", response.properties().mountName()); - Assertions.assertEquals(MediaTier.SSD, response.properties().mediaTier()); - Assertions.assertEquals(Redundancy.ZONE, response.properties().redundancy()); - Assertions.assertEquals(Protocol.NFS, response.properties().protocol()); - Assertions.assertEquals(2095135848, response.properties().provisionedStorageGiB()); - Assertions.assertEquals(533461500, response.properties().provisionedIOPerSec()); - Assertions.assertEquals(1372436938, response.properties().provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.NO_ROOT_SQUASH, - response.properties().nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.DISABLED, - response.properties().nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("exzfeyue", response.properties().publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, response.properties().publicNetworkAccess()); - } -} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetRedundancyConversionStatusWithResponseMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetRedundancyConversionStatusWithResponseMockTests.java new file mode 100644 index 0000000000000..3c266a5f31928 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesGetRedundancyConversionStatusWithResponseMockTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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.fileshares.FileSharesManager; +import com.azure.resourcemanager.fileshares.models.RedundancyConversionStatusResponse; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class FileSharesGetRedundancyConversionStatusWithResponseMockTests { + @Test + public void testGetRedundancyConversionStatusWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"targetRedundancy\":\"Zone\",\"conversionStatus\":\"SubmittedForConversion\",\"conversionFailedReason\":\"ahzxctobgbk\",\"conversionFailedDetailedReason\":\"oizpostmgrcfbun\"}}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + FileSharesManager manager = FileSharesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + RedundancyConversionStatusResponse response = manager.fileShares() + .getRedundancyConversionStatusWithResponse("fqbuaceopzf", "rhhuaopppcqeqx", + com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesListByResourceGroupMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesListByResourceGroupMockTests.java deleted file mode 100644 index 21d30458fc419..0000000000000 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesListByResourceGroupMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.fileshares.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.fileshares.FileSharesManager; -import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; -import com.azure.resourcemanager.fileshares.models.FileShare; -import com.azure.resourcemanager.fileshares.models.MediaTier; -import com.azure.resourcemanager.fileshares.models.Protocol; -import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; -import com.azure.resourcemanager.fileshares.models.Redundancy; -import com.azure.resourcemanager.fileshares.models.ShareRootSquash; -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 FileSharesListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"mountName\":\"wndnhj\",\"hostName\":\"uwhvylwzbtdhxujz\",\"mediaTier\":\"SSD\",\"redundancy\":\"Local\",\"protocol\":\"NFS\",\"provisionedStorageGiB\":2070148801,\"provisionedStorageNextAllowedDowngrade\":\"2021-06-11T09:32:45Z\",\"provisionedIOPerSec\":741975656,\"provisionedIOPerSecNextAllowedDowngrade\":\"2021-05-11T15:12:41Z\",\"provisionedThroughputMiBPerSec\":1484000584,\"provisionedThroughputNextAllowedDowngrade\":\"2021-02-19T06:27:55Z\",\"includedBurstIOPerSec\":194224762,\"maxBurstIOPerSecCredits\":4993789432354588709,\"nfsProtocolProperties\":{\"rootSquash\":\"RootSquash\",\"encryptionInTransitRequired\":\"Enabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"s\",\"tjrip\",\"rbpbewtghfgblcg\",\"xzvlvqhjkbegib\"]},\"provisioningState\":\"Created\",\"publicNetworkAccess\":\"Disabled\",\"privateEndpointConnections\":[{\"properties\":{\"groupIds\":[\"loayqcgw\",\"tzjuzgwyzmhtxo\",\"gmtsavjcbpwxqpsr\",\"nftguvriuhpr\"],\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"Failed\"},\"id\":\"xqtayriwwro\",\"name\":\"qbex\",\"type\":\"mcqibycnojv\"},{\"properties\":{\"groupIds\":[\"fqsgzvahapjy\"],\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"Deleting\"},\"id\":\"qzcjrvxdj\",\"name\":\"lmwlxkvugfhzo\",\"type\":\"awjvzunluthnnp\"}]},\"location\":\"xipeilpjzuaejx\",\"tags\":{\"pwo\":\"tskzbbtdzumveek\",\"fpbsjyofdxl\":\"uh\",\"ttouwaboekqvkel\":\"us\"},\"id\":\"smv\",\"name\":\"xwyjsflhhc\",\"type\":\"aln\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - FileSharesManager manager = FileSharesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.fileShares().listByResourceGroup("hniskxfbkpyc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xipeilpjzuaejx", response.iterator().next().location()); - Assertions.assertEquals("tskzbbtdzumveek", response.iterator().next().tags().get("pwo")); - Assertions.assertEquals("wndnhj", response.iterator().next().properties().mountName()); - Assertions.assertEquals(MediaTier.SSD, response.iterator().next().properties().mediaTier()); - Assertions.assertEquals(Redundancy.LOCAL, response.iterator().next().properties().redundancy()); - Assertions.assertEquals(Protocol.NFS, response.iterator().next().properties().protocol()); - Assertions.assertEquals(2070148801, response.iterator().next().properties().provisionedStorageGiB()); - Assertions.assertEquals(741975656, response.iterator().next().properties().provisionedIOPerSec()); - Assertions.assertEquals(1484000584, response.iterator().next().properties().provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.ROOT_SQUASH, - response.iterator().next().properties().nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, - response.iterator().next().properties().nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("s", - response.iterator().next().properties().publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, - response.iterator().next().properties().publicNetworkAccess()); - } -} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesListMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesListMockTests.java deleted file mode 100644 index 9e907d85af372..0000000000000 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesListMockTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.fileshares.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.fileshares.FileSharesManager; -import com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired; -import com.azure.resourcemanager.fileshares.models.FileShare; -import com.azure.resourcemanager.fileshares.models.MediaTier; -import com.azure.resourcemanager.fileshares.models.Protocol; -import com.azure.resourcemanager.fileshares.models.PublicNetworkAccess; -import com.azure.resourcemanager.fileshares.models.Redundancy; -import com.azure.resourcemanager.fileshares.models.ShareRootSquash; -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 FileSharesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"mountName\":\"nxdhbt\",\"hostName\":\"phywpnvj\",\"mediaTier\":\"SSD\",\"redundancy\":\"Zone\",\"protocol\":\"NFS\",\"provisionedStorageGiB\":1158367240,\"provisionedStorageNextAllowedDowngrade\":\"2021-08-01T15:40:57Z\",\"provisionedIOPerSec\":1456485650,\"provisionedIOPerSecNextAllowedDowngrade\":\"2021-09-07T09:24:33Z\",\"provisionedThroughputMiBPerSec\":1113646218,\"provisionedThroughputNextAllowedDowngrade\":\"2021-10-09T14:43:40Z\",\"includedBurstIOPerSec\":2041952882,\"maxBurstIOPerSecCredits\":8751195016646991326,\"nfsProtocolProperties\":{\"rootSquash\":\"NoRootSquash\",\"encryptionInTransitRequired\":\"Disabled\"},\"publicAccessProperties\":{\"allowedSubnets\":[\"zq\",\"gxywpmue\",\"fjz\",\"fqkquj\"]},\"provisioningState\":\"Provisioning\",\"publicNetworkAccess\":\"Enabled\",\"privateEndpointConnections\":[{\"properties\":{\"groupIds\":[\"laocqxtccmg\",\"udxytlmoyrx\"],\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"Succeeded\"},\"id\":\"wpzntxhdzh\",\"name\":\"rqjbhckfrl\",\"type\":\"rxsbkyvp\"},{\"properties\":{\"groupIds\":[\"uzbpzkafku\"],\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"Succeeded\"},\"id\":\"wbme\",\"name\":\"hseyvju\",\"type\":\"rts\"},{\"properties\":{\"groupIds\":[\"kdeemaofmxagkvtm\",\"lmqkrhahvlj\",\"ahaquh\",\"dhmdua\"],\"privateEndpoint\":{},\"privateLinkServiceConnectionState\":{},\"provisioningState\":\"Deleting\"},\"id\":\"pvfadmwsrcr\",\"name\":\"vxpvgomz\",\"type\":\"fmisg\"}]},\"location\":\"nbbelda\",\"tags\":{\"hsfwxosowzxcug\":\"baliourqhakauha\",\"ovbvmeueciv\":\"cjooxdjebwpucwwf\",\"otwmcdyt\":\"hzceuojgjrwjue\"},\"id\":\"x\",\"name\":\"it\",\"type\":\"nrjawgqwg\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - FileSharesManager manager = FileSharesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.fileShares().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("nbbelda", response.iterator().next().location()); - Assertions.assertEquals("baliourqhakauha", response.iterator().next().tags().get("hsfwxosowzxcug")); - Assertions.assertEquals("nxdhbt", response.iterator().next().properties().mountName()); - Assertions.assertEquals(MediaTier.SSD, response.iterator().next().properties().mediaTier()); - Assertions.assertEquals(Redundancy.ZONE, response.iterator().next().properties().redundancy()); - Assertions.assertEquals(Protocol.NFS, response.iterator().next().properties().protocol()); - Assertions.assertEquals(1158367240, response.iterator().next().properties().provisionedStorageGiB()); - Assertions.assertEquals(1456485650, response.iterator().next().properties().provisionedIOPerSec()); - Assertions.assertEquals(1113646218, response.iterator().next().properties().provisionedThroughputMiBPerSec()); - Assertions.assertEquals(ShareRootSquash.NO_ROOT_SQUASH, - response.iterator().next().properties().nfsProtocolProperties().rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.DISABLED, - response.iterator().next().properties().nfsProtocolProperties().encryptionInTransitRequired()); - Assertions.assertEquals("zq", - response.iterator().next().properties().publicAccessProperties().allowedSubnets().get(0)); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, - response.iterator().next().properties().publicNetworkAccess()); - } -} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesStartRedundancyConversionWithResponseMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesStartRedundancyConversionWithResponseMockTests.java new file mode 100644 index 0000000000000..c5a1129c5252b --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/FileSharesStartRedundancyConversionWithResponseMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.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.fileshares.FileSharesManager; +import com.azure.resourcemanager.fileshares.models.Redundancy; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionInput; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class FileSharesStartRedundancyConversionWithResponseMockTests { + @Test + public void testStartRedundancyConversionWithResponse() throws Exception { + String responseStr = "{}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 204, responseStr.getBytes(StandardCharsets.UTF_8))); + FileSharesManager manager = FileSharesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + manager.fileShares() + .startRedundancyConversionWithResponse("gucnapkte", "ellwptfdy", + new StartRedundancyConversionRequest() + .withProperties(new StartRedundancyConversionInput().withTargetRedundancy(Redundancy.ZONE)), + com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetLimitsWithResponseMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetLimitsWithResponseMockTests.java index 246bd8010bca1..0e8e59623ab57 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetLimitsWithResponseMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetLimitsWithResponseMockTests.java @@ -10,7 +10,12 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.fileshares.FileSharesManager; +import com.azure.resourcemanager.fileshares.models.FileShareLimitsRequest; import com.azure.resourcemanager.fileshares.models.FileShareLimitsResponse; +import com.azure.resourcemanager.fileshares.models.FileShareOfferInput; +import com.azure.resourcemanager.fileshares.models.MediaTier; +import com.azure.resourcemanager.fileshares.models.Protocol; +import com.azure.resourcemanager.fileshares.models.ScaleMode; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; @@ -21,7 +26,7 @@ public final class InformationalOperationsGetLimitsWithResponseMockTests { @Test public void testGetLimitsWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"limits\":{\"maxFileShares\":1701061135,\"maxFileShareSnapshots\":1258366887,\"maxFileShareSubnets\":393734239,\"maxFileSharePrivateEndpointConnections\":649477703,\"minProvisionedStorageGiB\":943919605,\"maxProvisionedStorageGiB\":60814629,\"minProvisionedIOPerSec\":1383619855,\"maxProvisionedIOPerSec\":800082776,\"minProvisionedThroughputMiBPerSec\":1193557953,\"maxProvisionedThroughputMiBPerSec\":1475281926},\"provisioningConstants\":{\"baseIOPerSec\":1582782062,\"scalarIOPerSec\":43.367403188188604,\"baseThroughputMiBPerSec\":138973043,\"scalarThroughputMiBPerSec\":51.562118966524096,\"guardrailIOPerSecScalar\":26.700803678719577,\"guardrailThroughputScalar\":62.63083190962946}}}"; + = "{\"properties\":{\"limits\":{\"maxFileShares\":372192429,\"maxFileShareSnapshots\":921402224,\"maxFileShareSubnets\":670592534,\"maxFileSharePrivateEndpointConnections\":143823433,\"minProvisionedStorageGiB\":1813369281,\"maxProvisionedStorageGiB\":209864806,\"minProvisionedIOPerSec\":1291535699,\"maxProvisionedIOPerSec\":407342571,\"minProvisionedThroughputMiBPerSec\":1147743130,\"maxProvisionedThroughputMiBPerSec\":98779693},\"provisioningConstants\":{\"baseIOPerSec\":1136277704,\"scalarIOPerSec\":93.94025609740328,\"baseThroughputMiBPerSec\":738915892,\"scalarThroughputMiBPerSec\":94.56387544596132,\"guardrailIOPerSecScalar\":68.14707388261593,\"guardrailThroughputScalar\":24.10503643156865}}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,27 +36,31 @@ public void testGetLimitsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FileShareLimitsResponse response = manager.informationalOperations() - .getLimitsWithResponse("cvqvpkeqdcv", com.azure.core.util.Context.NONE) + .getLimitsWithResponse("byyntwlrbqt", + new FileShareLimitsRequest().withProperties(new FileShareOfferInput().withProtocol(Protocol.NFS) + .withMediaTier(MediaTier.HDD) + .withScaleMode(ScaleMode.COMPATIBILITY)), + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(1701061135, response.properties().limits().maxFileShares()); - Assertions.assertEquals(1258366887, response.properties().limits().maxFileShareSnapshots()); - Assertions.assertEquals(393734239, response.properties().limits().maxFileShareSubnets()); - Assertions.assertEquals(649477703, response.properties().limits().maxFileSharePrivateEndpointConnections()); - Assertions.assertEquals(943919605, response.properties().limits().minProvisionedStorageGiB()); - Assertions.assertEquals(60814629, response.properties().limits().maxProvisionedStorageGiB()); - Assertions.assertEquals(1383619855, response.properties().limits().minProvisionedIOPerSec()); - Assertions.assertEquals(800082776, response.properties().limits().maxProvisionedIOPerSec()); - Assertions.assertEquals(1193557953, response.properties().limits().minProvisionedThroughputMiBPerSec()); - Assertions.assertEquals(1475281926, response.properties().limits().maxProvisionedThroughputMiBPerSec()); - Assertions.assertEquals(1582782062, response.properties().provisioningConstants().baseIOPerSec()); - Assertions.assertEquals(43.367403188188604, response.properties().provisioningConstants().scalarIOPerSec()); - Assertions.assertEquals(138973043, response.properties().provisioningConstants().baseThroughputMiBPerSec()); - Assertions.assertEquals(51.562118966524096, + Assertions.assertEquals(372192429, response.properties().limits().maxFileShares()); + Assertions.assertEquals(921402224, response.properties().limits().maxFileShareSnapshots()); + Assertions.assertEquals(670592534, response.properties().limits().maxFileShareSubnets()); + Assertions.assertEquals(143823433, response.properties().limits().maxFileSharePrivateEndpointConnections()); + Assertions.assertEquals(1813369281, response.properties().limits().minProvisionedStorageGiB()); + Assertions.assertEquals(209864806, response.properties().limits().maxProvisionedStorageGiB()); + Assertions.assertEquals(1291535699, response.properties().limits().minProvisionedIOPerSec()); + Assertions.assertEquals(407342571, response.properties().limits().maxProvisionedIOPerSec()); + Assertions.assertEquals(1147743130, response.properties().limits().minProvisionedThroughputMiBPerSec()); + Assertions.assertEquals(98779693, response.properties().limits().maxProvisionedThroughputMiBPerSec()); + Assertions.assertEquals(1136277704, response.properties().provisioningConstants().baseIOPerSec()); + Assertions.assertEquals(93.94025609740328, response.properties().provisioningConstants().scalarIOPerSec()); + Assertions.assertEquals(738915892, response.properties().provisioningConstants().baseThroughputMiBPerSec()); + Assertions.assertEquals(94.56387544596132, response.properties().provisioningConstants().scalarThroughputMiBPerSec()); - Assertions.assertEquals(26.700803678719577, + Assertions.assertEquals(68.14707388261593, response.properties().provisioningConstants().guardrailIOPerSecScalar()); - Assertions.assertEquals(62.63083190962946, + Assertions.assertEquals(24.10503643156865, response.properties().provisioningConstants().guardrailThroughputScalar()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetProvisioningRecommendationWithResponseMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetProvisioningRecommendationWithResponseMockTests.java index 30fe02744b88f..65024a505f952 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetProvisioningRecommendationWithResponseMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetProvisioningRecommendationWithResponseMockTests.java @@ -13,7 +13,10 @@ import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationInput; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest; import com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationResponse; +import com.azure.resourcemanager.fileshares.models.MediaTier; +import com.azure.resourcemanager.fileshares.models.Protocol; import com.azure.resourcemanager.fileshares.models.Redundancy; +import com.azure.resourcemanager.fileshares.models.ScaleMode; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; @@ -24,7 +27,7 @@ public final class InformationalOperationsGetProvisioningRecommendationWithRespo @Test public void testGetProvisioningRecommendationWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisionedIOPerSec\":1819120953,\"provisionedThroughputMiBPerSec\":1757688267,\"availableRedundancyOptions\":[\"Local\",\"Zone\"]}}"; + = "{\"properties\":{\"provisionedIOPerSec\":360418478,\"provisionedThroughputMiBPerSec\":1550349603,\"availableRedundancyOptions\":[\"Local\",\"Local\",\"Local\"]}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,14 +37,17 @@ public void testGetProvisioningRecommendationWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FileShareProvisioningRecommendationResponse response = manager.informationalOperations() - .getProvisioningRecommendationWithResponse("nhdldwmgxcx", - new FileShareProvisioningRecommendationRequest().withProperties( - new FileShareProvisioningRecommendationInput().withProvisionedStorageGiB(121454695)), + .getProvisioningRecommendationWithResponse("mpgcjefuzmuvpbt", + new FileShareProvisioningRecommendationRequest() + .withProperties(new FileShareProvisioningRecommendationInput().withProvisionedStorageGiB(131214083) + .withProtocol(Protocol.NFS) + .withMediaTier(MediaTier.SSD) + .withScaleMode(ScaleMode.SCALE)), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(1819120953, response.properties().provisionedIOPerSec()); - Assertions.assertEquals(1757688267, response.properties().provisionedThroughputMiBPerSec()); + Assertions.assertEquals(360418478, response.properties().provisionedIOPerSec()); + Assertions.assertEquals(1550349603, response.properties().provisionedThroughputMiBPerSec()); Assertions.assertEquals(Redundancy.LOCAL, response.properties().availableRedundancyOptions().get(0)); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetUsageDataWithResponseMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetUsageDataWithResponseMockTests.java index 6c42b7efa446e..8e36d309dee0f 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetUsageDataWithResponseMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/InformationalOperationsGetUsageDataWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class InformationalOperationsGetUsageDataWithResponseMockTests { @Test public void testGetUsageDataWithResponse() throws Exception { - String responseStr = "{\"properties\":{\"liveShares\":{\"fileShareCount\":2005026599}}}"; + String responseStr = "{\"properties\":{\"liveShares\":{\"fileShareCount\":1819295736}}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,9 +30,9 @@ public void testGetUsageDataWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FileShareUsageDataResponse response = manager.informationalOperations() - .getUsageDataWithResponse("nedgfbc", com.azure.core.util.Context.NONE) + .getUsageDataWithResponse("unkbebx", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(2005026599, response.properties().liveShares().fileShareCount()); + Assertions.assertEquals(1819295736, response.properties().liveShares().fileShareCount()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/KeyEncryptionKeyIdentityTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/KeyEncryptionKeyIdentityTests.java new file mode 100644 index 0000000000000..e050996edd025 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/KeyEncryptionKeyIdentityTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentity; +import com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentityType; +import org.junit.jupiter.api.Assertions; + +public final class KeyEncryptionKeyIdentityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + KeyEncryptionKeyIdentity model = BinaryData.fromString( + "{\"identityType\":\"systemAssignedIdentity\",\"userAssignedIdentityResourceId\":\"xolniwpwcukjfk\",\"federatedClientId\":\"awxklr\",\"delegatedIdentityClientId\":\"lwckbasyypnddhs\"}") + .toObject(KeyEncryptionKeyIdentity.class); + Assertions.assertEquals(KeyEncryptionKeyIdentityType.SYSTEM_ASSIGNED_IDENTITY, model.identityType()); + Assertions.assertEquals("xolniwpwcukjfk", model.userAssignedIdentityResourceId()); + Assertions.assertEquals("awxklr", model.federatedClientId()); + Assertions.assertEquals("lwckbasyypnddhs", model.delegatedIdentityClientId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + KeyEncryptionKeyIdentity model + = new KeyEncryptionKeyIdentity().withIdentityType(KeyEncryptionKeyIdentityType.SYSTEM_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId("xolniwpwcukjfk") + .withFederatedClientId("awxklr") + .withDelegatedIdentityClientId("lwckbasyypnddhs"); + model = BinaryData.fromObject(model).toObject(KeyEncryptionKeyIdentity.class); + Assertions.assertEquals(KeyEncryptionKeyIdentityType.SYSTEM_ASSIGNED_IDENTITY, model.identityType()); + Assertions.assertEquals("xolniwpwcukjfk", model.userAssignedIdentityResourceId()); + Assertions.assertEquals("awxklr", model.federatedClientId()); + Assertions.assertEquals("lwckbasyypnddhs", model.delegatedIdentityClientId()); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/LiveSharesUsageDataTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/LiveSharesUsageDataTests.java index 8c8d051395c47..fde271d600a63 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/LiveSharesUsageDataTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/LiveSharesUsageDataTests.java @@ -12,7 +12,7 @@ public final class LiveSharesUsageDataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LiveSharesUsageData model - = BinaryData.fromString("{\"fileShareCount\":825397815}").toObject(LiveSharesUsageData.class); - Assertions.assertEquals(825397815, model.fileShareCount()); + = BinaryData.fromString("{\"fileShareCount\":580602799}").toObject(LiveSharesUsageData.class); + Assertions.assertEquals(580602799, model.fileShareCount()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/ManagedServiceIdentityTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/ManagedServiceIdentityTests.java new file mode 100644 index 0000000000000..04447a2644018 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/ManagedServiceIdentityTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentity; +import com.azure.resourcemanager.fileshares.models.ManagedServiceIdentityType; +import com.azure.resourcemanager.fileshares.models.UserAssignedIdentity; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ManagedServiceIdentityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedServiceIdentity model = BinaryData.fromString( + "{\"principalId\":\"bacphejko\",\"tenantId\":\"nqgoulzndli\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"yb\":{\"principalId\":\"gfgibm\",\"clientId\":\"gakeqsr\"},\"pbkwtmu\":{\"principalId\":\"qedqytbciqfoufl\",\"clientId\":\"nkzsmodmglou\"},\"rtumkdosvq\":{\"principalId\":\"uqktap\",\"clientId\":\"wgcu\"}}}") + .toObject(ManagedServiceIdentity.class); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("yb", new UserAssignedIdentity(), "pbkwtmu", new UserAssignedIdentity(), + "rtumkdosvq", new UserAssignedIdentity())); + model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/MigrationStateTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/MigrationStateTests.java new file mode 100644 index 0000000000000..bc75c5bf6e863 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/MigrationStateTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.fileshares.models.MigrationState; + +public final class MigrationStateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MigrationState model + = BinaryData.fromString("{\"redundancyConversionInProgress\":true}").toObject(MigrationState.class); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/NfsProtocolPropertiesTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/NfsProtocolPropertiesTests.java index b8253b2b31228..aec882c78decc 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/NfsProtocolPropertiesTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/NfsProtocolPropertiesTests.java @@ -14,18 +14,18 @@ public final class NfsProtocolPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NfsProtocolProperties model - = BinaryData.fromString("{\"rootSquash\":\"NoRootSquash\",\"encryptionInTransitRequired\":\"Enabled\"}") + = BinaryData.fromString("{\"rootSquash\":\"RootSquash\",\"encryptionInTransitRequired\":\"Disabled\"}") .toObject(NfsProtocolProperties.class); - Assertions.assertEquals(ShareRootSquash.NO_ROOT_SQUASH, model.rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, model.encryptionInTransitRequired()); + Assertions.assertEquals(ShareRootSquash.ROOT_SQUASH, model.rootSquash()); + Assertions.assertEquals(EncryptionInTransitRequired.DISABLED, model.encryptionInTransitRequired()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NfsProtocolProperties model = new NfsProtocolProperties().withRootSquash(ShareRootSquash.NO_ROOT_SQUASH) - .withEncryptionInTransitRequired(EncryptionInTransitRequired.ENABLED); + NfsProtocolProperties model = new NfsProtocolProperties().withRootSquash(ShareRootSquash.ROOT_SQUASH) + .withEncryptionInTransitRequired(EncryptionInTransitRequired.DISABLED); model = BinaryData.fromObject(model).toObject(NfsProtocolProperties.class); - Assertions.assertEquals(ShareRootSquash.NO_ROOT_SQUASH, model.rootSquash()); - Assertions.assertEquals(EncryptionInTransitRequired.ENABLED, model.encryptionInTransitRequired()); + Assertions.assertEquals(ShareRootSquash.ROOT_SQUASH, model.rootSquash()); + Assertions.assertEquals(EncryptionInTransitRequired.DISABLED, model.encryptionInTransitRequired()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationDisplayTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationDisplayTests.java index abe242e8a07ee..1666792895953 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationDisplayTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationDisplayTests.java @@ -11,7 +11,7 @@ public final class OperationDisplayTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"b\",\"resource\":\"czvyifq\",\"operation\":\"kdvjsll\",\"description\":\"vvdfwatkpnpul\"}") + "{\"provider\":\"gigr\",\"resource\":\"burvjxxjnspy\",\"operation\":\"tko\",\"description\":\"kouknvudwtiu\"}") .toObject(OperationDisplay.class); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationInnerTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationInnerTests.java index 8a487e135c8a7..e98667f94ccf1 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationInnerTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationInnerTests.java @@ -11,7 +11,7 @@ public final class OperationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationInner model = BinaryData.fromString( - "{\"name\":\"xbezyiuokktwh\",\"isDataAction\":false,\"display\":{\"provider\":\"ywqsmbsurexim\",\"resource\":\"yocf\",\"operation\":\"ksymd\",\"description\":\"stkiiuxhqyud\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") + "{\"name\":\"ocohslkevleg\",\"isDataAction\":true,\"display\":{\"provider\":\"hfmvfaxkffe\",\"resource\":\"th\",\"operation\":\"m\",\"description\":\"yvshxmz\"},\"origin\":\"system\",\"actionType\":\"Internal\"}") .toObject(OperationInner.class); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationListResultTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationListResultTests.java index 6ec25c7009b20..3c71a72c0829e 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationListResultTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationListResultTests.java @@ -12,8 +12,8 @@ public final class OperationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"usue\",\"isDataAction\":true,\"display\":{\"provider\":\"ej\",\"resource\":\"vorxzdmohct\",\"operation\":\"vudwx\",\"description\":\"dnvowg\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"dkcglhsl\",\"isDataAction\":true,\"display\":{\"provider\":\"ggd\",\"resource\":\"ixhbkuofqweykhm\",\"operation\":\"evfyexfwhybcib\",\"description\":\"vdcsitynn\"},\"origin\":\"user\",\"actionType\":\"Internal\"},{\"name\":\"tehfiqscjeypvh\",\"isDataAction\":true,\"display\":{\"provider\":\"q\",\"resource\":\"jrefovgmkqsle\",\"operation\":\"vxyqjpkcattpngjc\",\"description\":\"czsqpjhvm\"},\"origin\":\"user\",\"actionType\":\"Internal\"},{\"name\":\"sounqecanoaeu\",\"isDataAction\":false,\"display\":{\"provider\":\"ltrpmopj\",\"resource\":\"matuok\",\"operation\":\"fu\",\"description\":\"aodsfcpkv\"},\"origin\":\"user\",\"actionType\":\"Internal\"}],\"nextLink\":\"zmyzydagf\"}") + "{\"value\":[{\"name\":\"fu\",\"isDataAction\":true,\"display\":{\"provider\":\"sfcpkvxodpuozm\",\"resource\":\"ydagfuaxbe\",\"operation\":\"iu\",\"description\":\"ktwh\"},\"origin\":\"user\",\"actionType\":\"Internal\"},{\"name\":\"wqsmbsur\",\"isDataAction\":true,\"display\":{\"provider\":\"ryocfsfksymdd\",\"resource\":\"tki\",\"operation\":\"xhqyudxorrqnb\",\"description\":\"czvyifq\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"sllr\",\"isDataAction\":true,\"display\":{\"provider\":\"watkpnpulexxb\",\"resource\":\"wtruwiqzbqjvsovm\",\"operation\":\"kacspkw\",\"description\":\"zdobpxjmflbvvnch\"},\"origin\":\"user\",\"actionType\":\"Internal\"},{\"name\":\"wzjuqk\",\"isDataAction\":false,\"display\":{\"provider\":\"iwkuofos\",\"resource\":\"hsauuimjmvxied\",\"operation\":\"gidyjrrf\",\"description\":\"aos\"},\"origin\":\"user\",\"actionType\":\"Internal\"}],\"nextLink\":\"npc\"}") .toObject(OperationListResult.class); - Assertions.assertEquals("zmyzydagf", model.nextLink()); + Assertions.assertEquals("npc", model.nextLink()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationsListMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationsListMockTests.java index 132e3d1dd3694..fb0f955008021 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationsListMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"iswac\",\"isDataAction\":false,\"display\":{\"provider\":\"zzewkfvhqcrai\",\"resource\":\"pnppfuf\",\"operation\":\"wdmhdlxyjrxs\",\"description\":\"afcnih\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"hhvh\",\"isDataAction\":false,\"display\":{\"provider\":\"dkwobdagx\",\"resource\":\"bqdxbx\",\"operation\":\"kbogqxndlkzgx\",\"description\":\"ripl\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionInnerTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionInnerTests.java index 4c1a3350b983d..cd636235a5b74 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionInnerTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionInnerTests.java @@ -16,12 +16,13 @@ public final class PrivateEndpointConnectionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionInner model = BinaryData.fromString( - "{\"properties\":{\"groupIds\":[\"ginuvamih\",\"ognarxzxtheotus\",\"vyevcciqi\",\"nhungbw\"],\"privateEndpoint\":{\"id\":\"nfygxgispemvtz\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"ubljofxqe\",\"actionsRequired\":\"jaeq\"},\"provisioningState\":\"Creating\"},\"id\":\"b\",\"name\":\"s\",\"type\":\"msmjqulngsntn\"}") + "{\"properties\":{\"groupIds\":[\"epoo\",\"inuvamiheogn\"],\"privateEndpoint\":{\"id\":\"zxtheotusivyevcc\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"nhungbw\",\"actionsRequired\":\"rnfygxgispem\"},\"provisioningState\":\"Deleting\"},\"id\":\"kufubljo\",\"name\":\"xqeofjaeqjhqjba\",\"type\":\"v\"}") .toObject(PrivateEndpointConnectionInner.class); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ubljofxqe", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jaeq", model.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("nhungbw", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("rnfygxgispem", + model.properties().privateLinkServiceConnectionState().actionsRequired()); } @org.junit.jupiter.api.Test @@ -31,12 +32,13 @@ public void testSerialize() throws Exception { .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() .withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("ubljofxqe") - .withActionsRequired("jaeq"))); + .withDescription("nhungbw") + .withActionsRequired("rnfygxgispem"))); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ubljofxqe", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jaeq", model.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("nhungbw", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("rnfygxgispem", + model.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionListResultTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionListResultTests.java index a637ee27ed5f0..0e679bf9529ba 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionListResultTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionListResultTests.java @@ -13,14 +13,14 @@ public final class PrivateEndpointConnectionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupIds\":[\"auu\",\"mjmvxieduugidyjr\"],\"privateEndpoint\":{\"id\":\"y\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"e\",\"actionsRequired\":\"sonpclhocohs\"},\"provisioningState\":\"Succeeded\"},\"id\":\"leggzfbu\",\"name\":\"fmvfaxkffeiit\",\"type\":\"lvmezyvshxmzsbbz\"}],\"nextLink\":\"gigr\"}") + "{\"value\":[{\"properties\":{\"groupIds\":[\"wgipwhono\"],\"privateEndpoint\":{\"id\":\"shwankixzbinje\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"mryw\",\"actionsRequired\":\"zoqftiyqzrnkcqvy\"},\"provisioningState\":\"Deleting\"},\"id\":\"zlsico\",\"name\":\"oqqnwvlryav\",\"type\":\"hheunmmqhgyx\"},{\"properties\":{\"groupIds\":[\"ocukoklyax\"],\"privateEndpoint\":{\"id\":\"nuqszfkbey\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"mjmwvvjektcx\",\"actionsRequired\":\"nhwlrsffrzpwvl\"},\"provisioningState\":\"Succeeded\"},\"id\":\"biqylihkaet\",\"name\":\"kt\",\"type\":\"fcivfsnkym\"},{\"properties\":{\"groupIds\":[\"hjfbebrjcxe\",\"fuwutttxf\"],\"privateEndpoint\":{\"id\":\"birphxepcyva\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"jky\",\"actionsRequired\":\"j\"},\"provisioningState\":\"Creating\"},\"id\":\"qgidokgjljyo\",\"name\":\"gvcl\",\"type\":\"bgsncghkjeszzhb\"}],\"nextLink\":\"htxfvgxbfsmxnehm\"}") .toObject(PrivateEndpointConnectionListResult.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("e", + Assertions.assertEquals("mryw", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("sonpclhocohs", + Assertions.assertEquals("zoqftiyqzrnkcqvy", model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("gigr", model.nextLink()); + Assertions.assertEquals("htxfvgxbfsmxnehm", model.nextLink()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionPropertiesTests.java index 8b262ce3092f9..9feed87c29dda 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionPropertiesTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionPropertiesTests.java @@ -15,12 +15,12 @@ public final class PrivateEndpointConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionProperties model = BinaryData.fromString( - "{\"groupIds\":[\"kzgcwrwcl\",\"xwrljdouskcqvkoc\",\"cjdkwtnhxbnjbi\"],\"privateEndpoint\":{\"id\":\"rglssainqpj\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"ljfmppee\",\"actionsRequired\":\"mgxsab\"},\"provisioningState\":\"Failed\"}") + "{\"groupIds\":[\"jqul\",\"gsntnbybkzgcwr\",\"clxxwrljdo\"],\"privateEndpoint\":{\"id\":\"cqvkocrcjdkwtn\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"jbiksqrglssai\",\"actionsRequired\":\"p\"},\"provisioningState\":\"Succeeded\"}") .toObject(PrivateEndpointConnectionProperties.class); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ljfmppee", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("mgxsab", model.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("jbiksqrglssai", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("p", model.privateLinkServiceConnectionState().actionsRequired()); } @org.junit.jupiter.api.Test @@ -29,12 +29,12 @@ public void testSerialize() throws Exception { = new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("ljfmppee") - .withActionsRequired("mgxsab")); + .withDescription("jbiksqrglssai") + .withActionsRequired("p")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ljfmppee", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("mgxsab", model.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("jbiksqrglssai", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("p", model.privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsCreateMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsCreateMockTests.java index 360246d68d8ee..b506dd372ed8e 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsCreateMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsCreateMockTests.java @@ -25,7 +25,7 @@ public final class PrivateEndpointConnectionsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"groupIds\":[\"novvqfovljxy\"],\"privateEndpoint\":{\"id\":\"w\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"ndsytgadg\",\"actionsRequired\":\"aeaeneqnzarrw\"},\"provisioningState\":\"Succeeded\"},\"id\":\"ijfqkacewiipfp\",\"name\":\"bjibwwiftohq\",\"type\":\"vpuvks\"}"; + = "{\"properties\":{\"groupIds\":[\"wfluszdt\",\"hrkwo\"],\"privateEndpoint\":{\"id\":\"voqacpiexpbt\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"wo\",\"actionsRequired\":\"washr\"},\"provisioningState\":\"Succeeded\"},\"id\":\"cnqxwbpokulpi\",\"name\":\"jwaa\",\"type\":\"ipqiiobyuqerpq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,19 +36,18 @@ public void testCreate() throws Exception { PrivateEndpointConnection response = manager.privateEndpointConnections() - .define("kcnqxwbpo") - .withExistingFileShare("wo", "nwashrtd") + .define("yhrfouyftaakcpw") + .withExistingFileShare("axmodfvuef", "wsbpfvm") .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() .withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("pqwcciuqgbdbutau") - .withActionsRequired("btkuwhh"))) + .withDescription("ajqgxy") + .withActionsRequired("ocmbqfqvmkcxoza"))) .create(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ndsytgadg", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("aeaeneqnzarrw", - response.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("wo", response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("washr", response.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsDeleteMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsDeleteMockTests.java index 1902b62ca3ce0..3405637161add 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsDeleteMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsDeleteMockTests.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.privateEndpointConnections().delete("v", "ajqgxy", "mocmbqfqvmk", com.azure.core.util.Context.NONE); + manager.privateEndpointConnections().delete("lxyjr", "sag", "fcnihgwq", com.azure.core.util.Context.NONE); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index fdedd969bd712..c746fff3715a9 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"groupIds\":[\"cpdggkzzlvmbmp\"],\"privateEndpoint\":{\"id\":\"odfvuefywsbp\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"yhrfouyftaakcpw\",\"actionsRequired\":\"zvqtmnubexkp\"},\"provisioningState\":\"Creating\"},\"id\":\"ondjmq\",\"name\":\"xvy\",\"type\":\"omgkopkwho\"}"; + = "{\"properties\":{\"groupIds\":[\"dowwquuvxzxclvit\"],\"privateEndpoint\":{\"id\":\"zonosgg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"hfwdsjnkaljutiis\",\"actionsRequired\":\"cffgdkzzewk\"},\"provisioningState\":\"Deleting\"},\"id\":\"crailvpn\",\"name\":\"pfuflrw\",\"type\":\"mh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .getWithResponse("wuoegrpk", "jw", "iyq", com.azure.core.util.Context.NONE) + .getWithResponse("btbhjpglkfgohd", "euel", "phsdyhto", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("yhrfouyftaakcpw", + Assertions.assertEquals("hfwdsjnkaljutiis", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("zvqtmnubexkp", + Assertions.assertEquals("cffgdkzzewk", response.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsListByFileShareMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsListByFileShareMockTests.java index 8fb8fb5eca93b..b64b24a989409 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsListByFileShareMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointConnectionsListByFileShareMockTests.java @@ -23,7 +23,7 @@ public final class PrivateEndpointConnectionsListByFileShareMockTests { @Test public void testListByFileShare() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupIds\":[\"kcbcue\"],\"privateEndpoint\":{\"id\":\"xgc\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"rhos\",\"actionsRequired\":\"dqrhzoymib\"},\"provisioningState\":\"Succeeded\"},\"id\":\"ibahwflus\",\"name\":\"dtmhrkwofyyvoqa\",\"type\":\"piexpbtgiw\"}]}"; + = "{\"value\":[{\"properties\":{\"groupIds\":[\"ood\"],\"privateEndpoint\":{\"id\":\"bobzdopcjwvnhd\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"gx\",\"actionsRequired\":\"rslpmutwuoeg\"},\"provisioningState\":\"Creating\"},\"id\":\"jw\",\"name\":\"iyq\",\"type\":\"luicpdggkzzlvmbm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,13 @@ public void testListByFileShare() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.privateEndpointConnections() - .listByFileShare("xozap", "helxprglya", com.azure.core.util.Context.NONE); + .listByFileShare("pnedgf", "cvkcvqvpkeqdcv", com.azure.core.util.Context.NONE); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, response.iterator().next().properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("rhos", + Assertions.assertEquals("gx", response.iterator().next().properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("dqrhzoymib", + Assertions.assertEquals("rslpmutwuoeg", response.iterator().next().properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointTests.java index d2b8ca6a3b09a..7102fde72a6fc 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateEndpointTests.java @@ -10,7 +10,7 @@ public final class PrivateEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"uujitcjc\"}").toObject(PrivateEndpoint.class); + PrivateEndpoint model = BinaryData.fromString("{\"id\":\"lljfmppeeb\"}").toObject(PrivateEndpoint.class); } @org.junit.jupiter.api.Test diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourceInnerTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourceInnerTests.java index a8be5430cf391..d6e460c04566c 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourceInnerTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourceInnerTests.java @@ -11,7 +11,7 @@ public final class PrivateLinkResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceInner model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"ur\",\"requiredMembers\":[\"xjnspy\",\"ptkoenkoukn\",\"udwtiukbl\"],\"requiredZoneNames\":[\"kpoc\",\"pazyxoegukg\",\"npiucgygevqznty\",\"mrbpizcdrqj\"]},\"id\":\"pyd\",\"name\":\"fyhxde\",\"type\":\"ejzicwifsjtt\"}") + "{\"properties\":{\"groupId\":\"cxgod\",\"requiredMembers\":[\"qkkrb\",\"pukgriwflzlfb\"],\"requiredZoneNames\":[\"uzycispnqza\"]},\"id\":\"gkbrpyyd\",\"name\":\"ibnuqqkpik\",\"type\":\"drgvtqagn\"}") .toObject(PrivateLinkResourceInner.class); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourceListResultTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourceListResultTests.java index 2e0f47b3017f8..b71f8befb24ea 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourceListResultTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourceListResultTests.java @@ -12,8 +12,8 @@ public final class PrivateLinkResourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"rnkcqvyxlw\",\"requiredMembers\":[\"sicohoqqnwvlry\",\"vwhheunmmqhgyx\",\"konocu\"],\"requiredZoneNames\":[\"lyaxuc\",\"nuqszfkbey\",\"ewrmjmwvvjektc\"]},\"id\":\"enhwlrs\",\"name\":\"frzpwvlqdqgb\",\"type\":\"qylihkaetckt\"},{\"properties\":{\"groupId\":\"ivfsnk\",\"requiredMembers\":[\"ctq\",\"jf\",\"ebrjcxe\"],\"requiredZoneNames\":[\"wutttxfvjrbi\",\"phxepcyvahf\",\"ljkyqxjvuuj\",\"gidokgjljyoxgvcl\"]},\"id\":\"gsncghkjeszz\",\"name\":\"bijhtxfvgxbf\",\"type\":\"mxnehmp\"},{\"properties\":{\"groupId\":\"xgodebfqkkrbmp\",\"requiredMembers\":[\"riwflzlfb\"],\"requiredZoneNames\":[\"uzycispnqza\"]},\"id\":\"gkbrpyyd\",\"name\":\"ibnuqqkpik\",\"type\":\"drgvtqagn\"},{\"properties\":{\"groupId\":\"nhijggmebfsi\",\"requiredMembers\":[\"utrc\"],\"requiredZoneNames\":[\"azzmhjrunmpxt\"]},\"id\":\"bh\",\"name\":\"bnlankxmyskpb\",\"type\":\"enbtkcxywny\"}],\"nextLink\":\"rsyn\"}") + "{\"value\":[{\"properties\":{\"groupId\":\"btkcxywnytnrsyn\",\"requiredMembers\":[\"dybyxczfclhaa\",\"dbabp\",\"lwrq\"],\"requiredZoneNames\":[\"tsthsucocm\",\"yyazttbt\",\"wrqpue\",\"ckzywbiexzfeyue\"]},\"id\":\"ibx\",\"name\":\"jwbhqwalmuz\",\"type\":\"oxaepd\"},{\"properties\":{\"groupId\":\"ancuxrhd\",\"requiredMembers\":[\"v\",\"bniwdj\",\"wz\",\"s\"],\"requiredZoneNames\":[\"gnxytxhpzxbz\"]},\"id\":\"zabglcuhxwt\",\"name\":\"tyq\",\"type\":\"klbb\"},{\"properties\":{\"groupId\":\"lwzbhvgyugu\",\"requiredMembers\":[\"mkfssxqukkfplgm\",\"sxnkjzkdeslpvlo\",\"wiyighxpkdw\"],\"requiredZoneNames\":[\"iuebbaumny\",\"upedeojnabckhs\",\"txp\",\"ie\"]},\"id\":\"fhvpesaps\",\"name\":\"rdqmhjjdhtldwkyz\",\"type\":\"uutkncw\"},{\"properties\":{\"groupId\":\"svlxotogtwrup\",\"requiredMembers\":[\"vnm\",\"cykvceo\",\"eil\",\"vnotyfjfcnj\"],\"requiredZoneNames\":[\"nxdhbt\"]},\"id\":\"phywpnvj\",\"name\":\"oqnermclfpl\",\"type\":\"hoxus\"}],\"nextLink\":\"pabgyeps\"}") .toObject(PrivateLinkResourceListResult.class); - Assertions.assertEquals("rsyn", model.nextLink()); + Assertions.assertEquals("pabgyeps", model.nextLink()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcePropertiesTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcePropertiesTests.java index 5251b36169d17..aa8f688a2d9a1 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcePropertiesTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcePropertiesTests.java @@ -11,7 +11,7 @@ public final class PrivateLinkResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceProperties model = BinaryData.fromString( - "{\"groupId\":\"fbishcbkha\",\"requiredMembers\":[\"yeamdphagalpb\",\"xw\"],\"requiredZoneNames\":[\"whonowk\",\"shwankixzbinje\",\"uttmrywnuzoqft\"]}") + "{\"groupId\":\"ynhijggme\",\"requiredMembers\":[\"iarbutrcvpna\",\"zmhjrunmp\",\"ttdbhrbnl\"],\"requiredZoneNames\":[\"xmyskp\"]}") .toObject(PrivateLinkResourceProperties.class); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesGetWithResponseMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesGetWithResponseMockTests.java index ea01d0f5a4c68..9ef25c72edb23 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesGetWithResponseMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class PrivateLinkResourcesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"groupId\":\"leosjswsrms\",\"requiredMembers\":[\"rpzbchckqqzqi\",\"xiy\"],\"requiredZoneNames\":[\"i\",\"ynkedyatrwyhqmib\",\"yhwitsmypyynpcdp\",\"mnzgmwznmabi\"]},\"id\":\"sorgj\",\"name\":\"xbldtlwwrlkdmtn\",\"type\":\"vokotllxdyh\"}"; + = "{\"properties\":{\"groupId\":\"o\",\"requiredMembers\":[\"cdyhbpkkpwdreqn\",\"vvqfovljxyws\"],\"requiredZoneNames\":[\"yrs\",\"dsytgadgvr\",\"ea\",\"neqn\"]},\"id\":\"rrwlquuijfqkace\",\"name\":\"iipfpubj\",\"type\":\"bwwift\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateLinkResource response = manager.privateLinkResources() - .getWithResponse("plsaknynfsynljph", "op", "odlqiyntor", com.azure.core.util.Context.NONE) + .getWithResponse("pqwcciuqgbdbutau", "fbtkuwhhmhyk", "joxafnndlpi", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesListMockTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesListMockTests.java index 5ac331c6bc393..c67042dbcd110 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesListMockTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkResourcesListMockTests.java @@ -21,7 +21,7 @@ public final class PrivateLinkResourcesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"qgxqquezikyw\",\"requiredMembers\":[\"kallatmel\",\"uipiccjzk\"],\"requiredZoneNames\":[\"gvvcnayrhyr\"]},\"id\":\"xmueed\",\"name\":\"drd\",\"type\":\"stkwqqtch\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"jphuopxodlqi\",\"requiredMembers\":[\"orzihle\",\"sjswsrms\"],\"requiredZoneNames\":[\"rpzbchckqqzqi\",\"xiy\"]},\"id\":\"iizynkedyatrwyh\",\"name\":\"mibzyhwitsmypyyn\",\"type\":\"cdpu\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.privateLinkResources().list("syocogjltdtbnnha", "oocrkvcikhnv", com.azure.core.util.Context.NONE); + = manager.privateLinkResources().list("hqkvpuvksgplsak", "ynfs", com.azure.core.util.Context.NONE); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkServiceConnectionStateTests.java index 1bad2dc148984..e9bdba9274726 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkServiceConnectionStateTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PrivateLinkServiceConnectionStateTests.java @@ -13,22 +13,22 @@ public final class PrivateLinkServiceConnectionStateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkServiceConnectionState model = BinaryData - .fromString("{\"status\":\"Pending\",\"description\":\"vndhkrwpdapp\",\"actionsRequired\":\"bdkvwrwjf\"}") + .fromString("{\"status\":\"Pending\",\"description\":\"sabkyqduujitcjcz\",\"actionsRequired\":\"evndh\"}") .toObject(PrivateLinkServiceConnectionState.class); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status()); - Assertions.assertEquals("vndhkrwpdapp", model.description()); - Assertions.assertEquals("bdkvwrwjf", model.actionsRequired()); + Assertions.assertEquals("sabkyqduujitcjcz", model.description()); + Assertions.assertEquals("evndh", model.actionsRequired()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateLinkServiceConnectionState model = new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("vndhkrwpdapp") - .withActionsRequired("bdkvwrwjf"); + .withDescription("sabkyqduujitcjcz") + .withActionsRequired("evndh"); model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status()); - Assertions.assertEquals("vndhkrwpdapp", model.description()); - Assertions.assertEquals("bdkvwrwjf", model.actionsRequired()); + Assertions.assertEquals("sabkyqduujitcjcz", model.description()); + Assertions.assertEquals("evndh", model.actionsRequired()); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PublicAccessPropertiesTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PublicAccessPropertiesTests.java index a3a01a7b5464b..1f91d246b8cef 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PublicAccessPropertiesTests.java +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/PublicAccessPropertiesTests.java @@ -13,16 +13,16 @@ public final class PublicAccessPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PublicAccessProperties model - = BinaryData.fromString("{\"allowedSubnets\":[\"jkjlxofpdvhpfx\",\"ypininm\",\"yhuybbkpod\"]}") + = BinaryData.fromString("{\"allowedSubnets\":[\"wfzitonpeqfpjk\",\"lxofpdvhpfxxypin\",\"nmayhuybb\"]}") .toObject(PublicAccessProperties.class); - Assertions.assertEquals("jkjlxofpdvhpfx", model.allowedSubnets().get(0)); + Assertions.assertEquals("wfzitonpeqfpjk", model.allowedSubnets().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PublicAccessProperties model - = new PublicAccessProperties().withAllowedSubnets(Arrays.asList("jkjlxofpdvhpfx", "ypininm", "yhuybbkpod")); + PublicAccessProperties model = new PublicAccessProperties() + .withAllowedSubnets(Arrays.asList("wfzitonpeqfpjk", "lxofpdvhpfxxypin", "nmayhuybb")); model = BinaryData.fromObject(model).toObject(PublicAccessProperties.class); - Assertions.assertEquals("jkjlxofpdvhpfx", model.allowedSubnets().get(0)); + Assertions.assertEquals("wfzitonpeqfpjk", model.allowedSubnets().get(0)); } } diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/RedundancyConversionStatusOutputTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/RedundancyConversionStatusOutputTests.java new file mode 100644 index 0000000000000..ffc4e7afad140 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/RedundancyConversionStatusOutputTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.fileshares.models.RedundancyConversionStatusOutput; + +public final class RedundancyConversionStatusOutputTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RedundancyConversionStatusOutput model = BinaryData.fromString( + "{\"targetRedundancy\":\"Local\",\"conversionStatus\":\"Complete\",\"conversionFailedReason\":\"y\",\"conversionFailedDetailedReason\":\"kbfkg\"}") + .toObject(RedundancyConversionStatusOutput.class); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/RedundancyConversionStatusResponseInnerTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/RedundancyConversionStatusResponseInnerTests.java new file mode 100644 index 0000000000000..9e386290096dc --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/RedundancyConversionStatusResponseInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.fileshares.fluent.models.RedundancyConversionStatusResponseInner; + +public final class RedundancyConversionStatusResponseInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RedundancyConversionStatusResponseInner model = BinaryData.fromString( + "{\"properties\":{\"targetRedundancy\":\"Zone\",\"conversionStatus\":\"SubmittedForConversion\",\"conversionFailedReason\":\"vdjwzrlovm\",\"conversionFailedDetailedReason\":\"whijcoejctbza\"}}") + .toObject(RedundancyConversionStatusResponseInner.class); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/StartRedundancyConversionInputTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/StartRedundancyConversionInputTests.java new file mode 100644 index 0000000000000..ccbb433990181 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/StartRedundancyConversionInputTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.fileshares.models.Redundancy; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionInput; +import org.junit.jupiter.api.Assertions; + +public final class StartRedundancyConversionInputTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + StartRedundancyConversionInput model + = BinaryData.fromString("{\"targetRedundancy\":\"Zone\"}").toObject(StartRedundancyConversionInput.class); + Assertions.assertEquals(Redundancy.ZONE, model.targetRedundancy()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + StartRedundancyConversionInput model + = new StartRedundancyConversionInput().withTargetRedundancy(Redundancy.ZONE); + model = BinaryData.fromObject(model).toObject(StartRedundancyConversionInput.class); + Assertions.assertEquals(Redundancy.ZONE, model.targetRedundancy()); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/StartRedundancyConversionRequestTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/StartRedundancyConversionRequestTests.java new file mode 100644 index 0000000000000..d02af6c3e6df4 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/StartRedundancyConversionRequestTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.fileshares.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.fileshares.models.Redundancy; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionInput; +import com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest; +import org.junit.jupiter.api.Assertions; + +public final class StartRedundancyConversionRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + StartRedundancyConversionRequest model + = BinaryData.fromString("{\"properties\":{\"targetRedundancy\":\"Local\"}}") + .toObject(StartRedundancyConversionRequest.class); + Assertions.assertEquals(Redundancy.LOCAL, model.properties().targetRedundancy()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + StartRedundancyConversionRequest model = new StartRedundancyConversionRequest() + .withProperties(new StartRedundancyConversionInput().withTargetRedundancy(Redundancy.LOCAL)); + model = BinaryData.fromObject(model).toObject(StartRedundancyConversionRequest.class); + Assertions.assertEquals(Redundancy.LOCAL, model.properties().targetRedundancy()); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/UserAssignedIdentityTests.java b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/UserAssignedIdentityTests.java new file mode 100644 index 0000000000000..e362713cba8a6 --- /dev/null +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/test/java/com/azure/resourcemanager/fileshares/generated/UserAssignedIdentityTests.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.fileshares.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.fileshares.models.UserAssignedIdentity; + +public final class UserAssignedIdentityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"bmdg\",\"clientId\":\"jfddgmbmbe\"}") + .toObject(UserAssignedIdentity.class); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + UserAssignedIdentity model = new UserAssignedIdentity(); + model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class); + } +} diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml b/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml index 18efe34403358..d4606d631f716 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml +++ b/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/fileshares/resource-manager/Microsoft.FileShares/FileShares -commit: 75ca22c5387184fb1f0c3b115ed22a006813800d +commit: cf4aa9847c9ac23bbe7c05c2c89b17ba10de9648 repo: Azure/azure-rest-api-specs additionalDirectories: From e463a99e04401af62f3e3cdd6deab1b23b408c47 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 29 Oct 2026 18:34:44 +0000 Subject: [PATCH 2/6] Configurations: 'specification/fileshares/resource-manager/Microsoft.FileShares/FileShares/tspconfig.yaml', and CommitSHA: '4f84812320680da54d6dd0d0472ad8981618a922' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=7016571 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 16 ++++++++-------- .../azure-resourcemanager-fileshares/pom.xml | 1 - .../tsp-location.yaml | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md b/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md index 254c9cf7003d2..f4ce35a32ce97 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md +++ b/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.0 (2026-10-13) +## 1.0.0 (2026-10-29) - Azure Resource Manager FileShares client library for Java. This package contains Microsoft Azure SDK for FileShares Management SDK. Azure File Shares Resource Provider API. Package api-version 2026-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). @@ -71,9 +71,9 @@ #### `models.FileShares` was modified * `startRedundancyConversionWithResponse(java.lang.String,java.lang.String,models.StartRedundancyConversionRequest,com.azure.core.util.Context)` was added -* `startRedundancyConversion(java.lang.String,java.lang.String,models.StartRedundancyConversionRequest)` was added -* `getRedundancyConversionStatus(java.lang.String,java.lang.String)` was added * `getRedundancyConversionStatusWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `getRedundancyConversionStatus(java.lang.String,java.lang.String)` was added +* `startRedundancyConversion(java.lang.String,java.lang.String,models.StartRedundancyConversionRequest)` was added #### `models.FileShare` was modified @@ -85,20 +85,20 @@ #### `models.FileShareProperties` was modified -* `withScaleMode(models.ScaleMode)` was added -* `encryption()` was added -* `scaleMode()` was added * `migrationState()` was added +* `withScaleMode(models.ScaleMode)` was added * `withEncryption(models.FileShareEncryption)` was added +* `scaleMode()` was added +* `encryption()` was added #### `models.FileShareProvisioningRecommendationInput` was modified * `protocol()` was added -* `withProtocol(models.Protocol)` was added * `scaleMode()` was added -* `withScaleMode(models.ScaleMode)` was added * `mediaTier()` was added +* `withScaleMode(models.ScaleMode)` was added * `withMediaTier(models.MediaTier)` was added +* `withProtocol(models.Protocol)` was added #### `models.MediaTier` was modified diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml index e05682538dca7..f04d8bdd071c4 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml +++ b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml @@ -45,7 +45,6 @@ UTF-8 0 0 - false diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml b/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml index d4606d631f716..6029a884b33e3 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml +++ b/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/fileshares/resource-manager/Microsoft.FileShares/FileShares -commit: cf4aa9847c9ac23bbe7c05c2c89b17ba10de9648 +commit: 4f84812320680da54d6dd0d0472ad8981618a922 repo: Azure/azure-rest-api-specs additionalDirectories: From 13786aafeeb1e1db85c537e7ac149fb21ce9e712 Mon Sep 17 00:00:00 2001 From: James Lindamood <8120747+jlindamood@users.noreply.github.com> Date: Fri, 30 Oct 2026 15:18:19 -0700 Subject: [PATCH 3/6] [fileshares] Release 2026-09-01 support as 1.0.0-beta.2 API version 2026-09-01 is not yet available in the public ARM manifest, so release this as a beta instead of the first stable release. Updates the pom, README snippet, CHANGELOG and version_client.txt to 1.0.0-beta.2. A stable 1.0.0 follows once 2026-09-01 is publicly available. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/versioning/version_client.txt | 2 +- sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md | 2 +- sdk/fileshares/azure-resourcemanager-fileshares/README.md | 2 +- sdk/fileshares/azure-resourcemanager-fileshares/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index f1109f6a6cdbb..6d7c93457e022 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -528,7 +528,7 @@ com.azure.resourcemanager:azure-resourcemanager-appnetwork;1.0.0-beta.2;1.0.0-be com.azure.resourcemanager:azure-resourcemanager-servicegroups;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-horizondb;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-relationships;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-fileshares;1.0.0-beta.1;1.0.0 +com.azure.resourcemanager:azure-resourcemanager-fileshares;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-monitor-slis;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-monitor-workspaces;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-programenrollment;1.0.0-beta.1;1.0.0-beta.2 diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md b/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md index f4ce35a32ce97..e0ad45d274900 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md +++ b/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.0 (2026-10-29) +## 1.0.0-beta.2 (2026-10-29) - Azure Resource Manager FileShares client library for Java. This package contains Microsoft Azure SDK for FileShares Management SDK. Azure File Shares Resource Provider API. Package api-version 2026-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/README.md b/sdk/fileshares/azure-resourcemanager-fileshares/README.md index 3710d3879567a..d30ef8921756f 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/README.md +++ b/sdk/fileshares/azure-resourcemanager-fileshares/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-fileshares - 1.0.0 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml index f04d8bdd071c4..8d220d9b3a803 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml +++ b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-fileshares - 1.0.0 + 1.0.0-beta.2 jar Microsoft Azure SDK for FileShares Management From 96aa98ecf7c3ccc7a6389b2827bc87cc09cbbf7f Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Sun, 1 Nov 2026 17:06:31 +0000 Subject: [PATCH 4/6] Configurations: 'specification/fileshares/resource-manager/Microsoft.FileShares/FileShares/tspconfig.yaml', and CommitSHA: 'cec8aac5df80e978dc33d830a61398da2102813e' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=7024672 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 | 26 +++++++++---------- .../README.md | 2 +- .../azure-resourcemanager-fileshares/pom.xml | 3 ++- ...e-resourcemanager-fileshares_metadata.json | 2 +- .../tsp-location.yaml | 2 +- 6 files changed, 19 insertions(+), 18 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 6d7c93457e022..f1109f6a6cdbb 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -528,7 +528,7 @@ com.azure.resourcemanager:azure-resourcemanager-appnetwork;1.0.0-beta.2;1.0.0-be com.azure.resourcemanager:azure-resourcemanager-servicegroups;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-horizondb;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-relationships;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-fileshares;1.0.0-beta.1;1.0.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-fileshares;1.0.0-beta.1;1.0.0 com.azure.resourcemanager:azure-resourcemanager-monitor-slis;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-monitor-workspaces;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-programenrollment;1.0.0-beta.1;1.0.0-beta.2 diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md b/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md index e0ad45d274900..f6e5f4811c8c8 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md +++ b/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.0-beta.2 (2026-10-29) +## 1.0.0 (2026-11-01) - Azure Resource Manager FileShares client library for Java. This package contains Microsoft Azure SDK for FileShares Management SDK. Azure File Shares Resource Provider API. Package api-version 2026-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). @@ -52,13 +52,13 @@ #### `models.FileShareUpdate` was modified -* `identity()` was added * `withIdentity(models.ManagedServiceIdentity)` was added +* `identity()` was added #### `models.FileShareUpdateProperties` was modified -* `withEncryption(models.FileShareEncryption)` was added * `encryption()` was added +* `withEncryption(models.FileShareEncryption)` was added #### `models.FileShare$Update` was modified @@ -70,35 +70,35 @@ #### `models.FileShares` was modified -* `startRedundancyConversionWithResponse(java.lang.String,java.lang.String,models.StartRedundancyConversionRequest,com.azure.core.util.Context)` was added * `getRedundancyConversionStatusWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added * `getRedundancyConversionStatus(java.lang.String,java.lang.String)` was added +* `startRedundancyConversionWithResponse(java.lang.String,java.lang.String,models.StartRedundancyConversionRequest,com.azure.core.util.Context)` was added * `startRedundancyConversion(java.lang.String,java.lang.String,models.StartRedundancyConversionRequest)` was added #### `models.FileShare` was modified -* `getRedundancyConversionStatus()` was added -* `startRedundancyConversion(models.StartRedundancyConversionRequest)` was added * `startRedundancyConversionWithResponse(models.StartRedundancyConversionRequest,com.azure.core.util.Context)` was added -* `identity()` was added * `getRedundancyConversionStatusWithResponse(com.azure.core.util.Context)` was added +* `getRedundancyConversionStatus()` was added +* `identity()` was added +* `startRedundancyConversion(models.StartRedundancyConversionRequest)` was added #### `models.FileShareProperties` was modified -* `migrationState()` was added -* `withScaleMode(models.ScaleMode)` was added -* `withEncryption(models.FileShareEncryption)` was added * `scaleMode()` was added +* `withEncryption(models.FileShareEncryption)` was added +* `withScaleMode(models.ScaleMode)` was added * `encryption()` was added +* `migrationState()` was added #### `models.FileShareProvisioningRecommendationInput` was modified * `protocol()` was added -* `scaleMode()` was added +* `withProtocol(models.Protocol)` was added * `mediaTier()` was added -* `withScaleMode(models.ScaleMode)` was added +* `scaleMode()` was added * `withMediaTier(models.MediaTier)` was added -* `withProtocol(models.Protocol)` was added +* `withScaleMode(models.ScaleMode)` was added #### `models.MediaTier` was modified diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/README.md b/sdk/fileshares/azure-resourcemanager-fileshares/README.md index d30ef8921756f..3710d3879567a 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/README.md +++ b/sdk/fileshares/azure-resourcemanager-fileshares/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-fileshares - 1.0.0-beta.2 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml index 8d220d9b3a803..e05682538dca7 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml +++ b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-fileshares - 1.0.0-beta.2 + 1.0.0 jar Microsoft Azure SDK for FileShares Management @@ -45,6 +45,7 @@ UTF-8 0 0 + false diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/resources/META-INF/azure-resourcemanager-fileshares_metadata.json b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/resources/META-INF/azure-resourcemanager-fileshares_metadata.json index 49ed59ff44221..92fa3c092521c 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/src/main/resources/META-INF/azure-resourcemanager-fileshares_metadata.json +++ b/sdk/fileshares/azure-resourcemanager-fileshares/src/main/resources/META-INF/azure-resourcemanager-fileshares_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.FileShares":"2026-09-01"},"crossLanguagePackageId":"Microsoft.FileShares","crossLanguageVersion":"a11dd312c1cb","crossLanguageDefinitions":{"com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient":"Microsoft.FileShares.FileShareSnapshots","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginCreateOrUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.createOrUpdateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginDeleteFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.deleteFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.updateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.createOrUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.createOrUpdateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.deleteFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.deleteFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.getFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.getFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.getFileShareSnapshotWithResponse":"Microsoft.FileShares.FileShareSnapshots.getFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.listByFileShare":"Microsoft.FileShares.FileShareSnapshots.listByFileShare","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.updateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.updateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileSharesClient":"Microsoft.FileShares.FileShares","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginCreateOrUpdate":"Microsoft.FileShares.FileShares.createOrUpdate","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginDelete":"Microsoft.FileShares.FileShares.delete","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginUpdate":"Microsoft.FileShares.FileShares.update","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.checkNameAvailability":"Microsoft.FileShares.FileShares.checkNameAvailability","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.checkNameAvailabilityWithResponse":"Microsoft.FileShares.FileShares.checkNameAvailability","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.createOrUpdate":"Microsoft.FileShares.FileShares.createOrUpdate","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.delete":"Microsoft.FileShares.FileShares.delete","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getByResourceGroup":"Microsoft.FileShares.FileShares.get","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getByResourceGroupWithResponse":"Microsoft.FileShares.FileShares.get","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getRedundancyConversionStatus":"Microsoft.FileShares.FileShares.getRedundancyConversionStatus","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getRedundancyConversionStatusWithResponse":"Microsoft.FileShares.FileShares.getRedundancyConversionStatus","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.list":"Microsoft.FileShares.FileShares.listBySubscription","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.listByResourceGroup":"Microsoft.FileShares.FileShares.listByParent","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.startRedundancyConversion":"Microsoft.FileShares.FileShares.startRedundancyConversion","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.startRedundancyConversionWithResponse":"Microsoft.FileShares.FileShares.startRedundancyConversion","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.update":"Microsoft.FileShares.FileShares.update","com.azure.resourcemanager.fileshares.fluent.FileSharesManagementClient":"Microsoft.FileShares","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient":"Microsoft.FileShares.InformationalOperations","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getLimits":"Microsoft.FileShares.InformationalOperations.getLimits","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getLimitsWithResponse":"Microsoft.FileShares.InformationalOperations.getLimits","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getProvisioningRecommendation":"Microsoft.FileShares.InformationalOperations.getProvisioningRecommendation","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getProvisioningRecommendationWithResponse":"Microsoft.FileShares.InformationalOperations.getProvisioningRecommendation","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getUsageData":"Microsoft.FileShares.InformationalOperations.getUsageData","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getUsageDataWithResponse":"Microsoft.FileShares.InformationalOperations.getUsageData","com.azure.resourcemanager.fileshares.fluent.OperationsClient":"Microsoft.FileShares.Operations","com.azure.resourcemanager.fileshares.fluent.OperationsClient.list":"Microsoft.FileShares.Operations.list","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient":"Microsoft.FileShares.PrivateEndpointConnections","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.beginCreate":"Microsoft.FileShares.PrivateEndpointConnections.create","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.FileShares.PrivateEndpointConnections.delete","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.create":"Microsoft.FileShares.PrivateEndpointConnections.create","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.FileShares.PrivateEndpointConnections.delete","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.FileShares.PrivateEndpointConnections.get","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.FileShares.PrivateEndpointConnections.get","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.listByFileShare":"Microsoft.FileShares.PrivateEndpointConnections.listByFileShare","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient":"Microsoft.FileShares.PrivateLinkResources","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.get":"Microsoft.FileShares.PrivateLinkResources.get","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.getWithResponse":"Microsoft.FileShares.PrivateLinkResources.get","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.list":"Microsoft.FileShares.PrivateLinkResources.list","com.azure.resourcemanager.fileshares.fluent.models.CheckNameAvailabilityResponseInner":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareInner":"Microsoft.FileShares.FileShare","com.azure.resourcemanager.fileshares.fluent.models.FileShareLimitsResponseInner":"Microsoft.FileShares.FileShareLimitsResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareProvisioningRecommendationResponseInner":"Microsoft.FileShares.FileShareProvisioningRecommendationResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareSnapshotInner":"Microsoft.FileShares.FileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.models.FileShareUsageDataResponseInner":"Microsoft.FileShares.FileShareUsageDataResponse","com.azure.resourcemanager.fileshares.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.fileshares.fluent.models.PrivateEndpointConnectionInner":"Microsoft.FileShares.PrivateEndpointConnection","com.azure.resourcemanager.fileshares.fluent.models.PrivateLinkResourceInner":"Microsoft.FileShares.PrivateLinkResource","com.azure.resourcemanager.fileshares.fluent.models.RedundancyConversionStatusResponseInner":"Microsoft.FileShares.RedundancyConversionStatusResponse","com.azure.resourcemanager.fileshares.implementation.FileSharesManagementClientBuilder":"Microsoft.FileShares","com.azure.resourcemanager.fileshares.implementation.models.FileShareListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.FileShareSnapshotListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.fileshares.implementation.models.PrivateEndpointConnectionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.PrivateLinkResourceListResult":"Microsoft.FileShares.PrivateLinkResourceListResult","com.azure.resourcemanager.fileshares.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityReason":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason","com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityRequest":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest","com.azure.resourcemanager.fileshares.models.CustomerManagedKeyEncryption":"Azure.ResourceManager.CommonTypes.CustomerManagedKeyEncryption","com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired":"Microsoft.FileShares.EncryptionInTransitRequired","com.azure.resourcemanager.fileshares.models.FileShareEncryption":"Microsoft.FileShares.FileShareEncryption","com.azure.resourcemanager.fileshares.models.FileShareLimits":"Microsoft.FileShares.FileShareLimits","com.azure.resourcemanager.fileshares.models.FileShareLimitsOutput":"Microsoft.FileShares.FileShareLimitsOutput","com.azure.resourcemanager.fileshares.models.FileShareLimitsRequest":"Microsoft.FileShares.FileShareLimitsRequest","com.azure.resourcemanager.fileshares.models.FileShareOfferInput":"Microsoft.FileShares.FileShareOfferInput","com.azure.resourcemanager.fileshares.models.FileShareProperties":"Microsoft.FileShares.FileShareProperties","com.azure.resourcemanager.fileshares.models.FileShareProvisioningConstants":"Microsoft.FileShares.FileShareProvisioningConstants","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationInput":"Microsoft.FileShares.FileShareProvisioningRecommendationInput","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationOutput":"Microsoft.FileShares.FileShareProvisioningRecommendationOutput","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest":"Microsoft.FileShares.FileShareProvisioningRecommendationRequest","com.azure.resourcemanager.fileshares.models.FileShareProvisioningState":"Microsoft.FileShares.FileShareProvisioningState","com.azure.resourcemanager.fileshares.models.FileShareSnapshotProperties":"Microsoft.FileShares.FileShareSnapshotProperties","com.azure.resourcemanager.fileshares.models.FileShareSnapshotUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.fileshares.models.FileShareSnapshotUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.fileshares.models.FileShareUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.fileshares.models.FileShareUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.fileshares.models.FileShareUsageDataOutput":"Microsoft.FileShares.FileShareUsageDataOutput","com.azure.resourcemanager.fileshares.models.InfrastructureEncryption":"Azure.ResourceManager.CommonTypes.InfrastructureEncryption","com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentity":"Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentity","com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentityType":"Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentityType","com.azure.resourcemanager.fileshares.models.LiveSharesUsageData":"Microsoft.FileShares.LiveSharesUsageData","com.azure.resourcemanager.fileshares.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.fileshares.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.fileshares.models.MediaTier":"Microsoft.FileShares.MediaTier","com.azure.resourcemanager.fileshares.models.MigrationState":"Microsoft.FileShares.MigrationState","com.azure.resourcemanager.fileshares.models.NfsProtocolProperties":"Microsoft.FileShares.NfsProtocolProperties","com.azure.resourcemanager.fileshares.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.fileshares.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.fileshares.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.fileshares.models.PrivateEndpointConnectionProperties":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties","com.azure.resourcemanager.fileshares.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.fileshares.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.fileshares.models.PrivateLinkResourceProperties":"Microsoft.FileShares.PrivateLinkResourceProperties","com.azure.resourcemanager.fileshares.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.fileshares.models.Protocol":"Microsoft.FileShares.Protocol","com.azure.resourcemanager.fileshares.models.PublicAccessProperties":"Microsoft.FileShares.PublicAccessProperties","com.azure.resourcemanager.fileshares.models.PublicNetworkAccess":"Microsoft.FileShares.PublicNetworkAccess","com.azure.resourcemanager.fileshares.models.Redundancy":"Microsoft.FileShares.Redundancy","com.azure.resourcemanager.fileshares.models.RedundancyConversionStatus":"Microsoft.FileShares.RedundancyConversionStatus","com.azure.resourcemanager.fileshares.models.RedundancyConversionStatusOutput":"Microsoft.FileShares.RedundancyConversionStatusOutput","com.azure.resourcemanager.fileshares.models.ScaleMode":"Microsoft.FileShares.ScaleMode","com.azure.resourcemanager.fileshares.models.ShareRootSquash":"Microsoft.FileShares.ShareRootSquash","com.azure.resourcemanager.fileshares.models.StartRedundancyConversionInput":"Microsoft.FileShares.StartRedundancyConversionInput","com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest":"Microsoft.FileShares.StartRedundancyConversionRequest","com.azure.resourcemanager.fileshares.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity"},"generatedFiles":["src/main/java/com/azure/resourcemanager/fileshares/FileSharesManager.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileShareSnapshotsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesManagementClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/InformationalOperationsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/CheckNameAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareLimitsResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareProvisioningRecommendationResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareSnapshotInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareUsageDataResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/PrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/RedundancyConversionStatusResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/CheckNameAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareLimitsResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareProvisioningRecommendationResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareUsageDataResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourceImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/RedundancyConversionStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/FileShareListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/FileShareSnapshotListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/PrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/models/ActionType.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityReason.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/CustomerManagedKeyEncryption.java","src/main/java/com/azure/resourcemanager/fileshares/models/EncryptionInTransitRequired.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShare.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareEncryption.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimits.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareOfferInput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningConstants.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationInput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningState.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshot.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotUpdate.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotUpdateProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshots.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdate.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdateProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUsageDataOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUsageDataResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShares.java","src/main/java/com/azure/resourcemanager/fileshares/models/InformationalOperations.java","src/main/java/com/azure/resourcemanager/fileshares/models/InfrastructureEncryption.java","src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentity.java","src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentityType.java","src/main/java/com/azure/resourcemanager/fileshares/models/LiveSharesUsageData.java","src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/fileshares/models/MediaTier.java","src/main/java/com/azure/resourcemanager/fileshares/models/MigrationState.java","src/main/java/com/azure/resourcemanager/fileshares/models/NfsProtocolProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/Operation.java","src/main/java/com/azure/resourcemanager/fileshares/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/fileshares/models/Operations.java","src/main/java/com/azure/resourcemanager/fileshares/models/Origin.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResource.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResources.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/fileshares/models/Protocol.java","src/main/java/com/azure/resourcemanager/fileshares/models/PublicAccessProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/fileshares/models/Redundancy.java","src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatus.java","src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/ScaleMode.java","src/main/java/com/azure/resourcemanager/fileshares/models/ShareRootSquash.java","src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionInput.java","src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/fileshares/models/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.FileShares":"2026-09-01"},"crossLanguagePackageId":"Microsoft.FileShares","crossLanguageVersion":"ab4a0e128e61","crossLanguageDefinitions":{"com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient":"Microsoft.FileShares.FileShareSnapshots","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginCreateOrUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.createOrUpdateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginDeleteFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.deleteFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.beginUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.updateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.createOrUpdateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.createOrUpdateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.deleteFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.deleteFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.getFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.getFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.getFileShareSnapshotWithResponse":"Microsoft.FileShares.FileShareSnapshots.getFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.listByFileShare":"Microsoft.FileShares.FileShareSnapshots.listByFileShare","com.azure.resourcemanager.fileshares.fluent.FileShareSnapshotsClient.updateFileShareSnapshot":"Microsoft.FileShares.FileShareSnapshots.updateFileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.FileSharesClient":"Microsoft.FileShares.FileShares","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginCreateOrUpdate":"Microsoft.FileShares.FileShares.createOrUpdate","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginDelete":"Microsoft.FileShares.FileShares.delete","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.beginUpdate":"Microsoft.FileShares.FileShares.update","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.checkNameAvailability":"Microsoft.FileShares.FileShares.checkNameAvailability","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.checkNameAvailabilityWithResponse":"Microsoft.FileShares.FileShares.checkNameAvailability","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.createOrUpdate":"Microsoft.FileShares.FileShares.createOrUpdate","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.delete":"Microsoft.FileShares.FileShares.delete","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getByResourceGroup":"Microsoft.FileShares.FileShares.get","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getByResourceGroupWithResponse":"Microsoft.FileShares.FileShares.get","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getRedundancyConversionStatus":"Microsoft.FileShares.FileShares.getRedundancyConversionStatus","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.getRedundancyConversionStatusWithResponse":"Microsoft.FileShares.FileShares.getRedundancyConversionStatus","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.list":"Microsoft.FileShares.FileShares.listBySubscription","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.listByResourceGroup":"Microsoft.FileShares.FileShares.listByParent","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.startRedundancyConversion":"Microsoft.FileShares.FileShares.startRedundancyConversion","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.startRedundancyConversionWithResponse":"Microsoft.FileShares.FileShares.startRedundancyConversion","com.azure.resourcemanager.fileshares.fluent.FileSharesClient.update":"Microsoft.FileShares.FileShares.update","com.azure.resourcemanager.fileshares.fluent.FileSharesManagementClient":"Microsoft.FileShares","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient":"Microsoft.FileShares.InformationalOperations","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getLimits":"Microsoft.FileShares.InformationalOperations.getLimits","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getLimitsWithResponse":"Microsoft.FileShares.InformationalOperations.getLimits","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getProvisioningRecommendation":"Microsoft.FileShares.InformationalOperations.getProvisioningRecommendation","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getProvisioningRecommendationWithResponse":"Microsoft.FileShares.InformationalOperations.getProvisioningRecommendation","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getUsageData":"Microsoft.FileShares.InformationalOperations.getUsageData","com.azure.resourcemanager.fileshares.fluent.InformationalOperationsClient.getUsageDataWithResponse":"Microsoft.FileShares.InformationalOperations.getUsageData","com.azure.resourcemanager.fileshares.fluent.OperationsClient":"Microsoft.FileShares.Operations","com.azure.resourcemanager.fileshares.fluent.OperationsClient.list":"Microsoft.FileShares.Operations.list","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient":"Microsoft.FileShares.PrivateEndpointConnections","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.beginCreate":"Microsoft.FileShares.PrivateEndpointConnections.create","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.FileShares.PrivateEndpointConnections.delete","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.create":"Microsoft.FileShares.PrivateEndpointConnections.create","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.FileShares.PrivateEndpointConnections.delete","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.FileShares.PrivateEndpointConnections.get","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.FileShares.PrivateEndpointConnections.get","com.azure.resourcemanager.fileshares.fluent.PrivateEndpointConnectionsClient.listByFileShare":"Microsoft.FileShares.PrivateEndpointConnections.listByFileShare","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient":"Microsoft.FileShares.PrivateLinkResources","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.get":"Microsoft.FileShares.PrivateLinkResources.get","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.getWithResponse":"Microsoft.FileShares.PrivateLinkResources.get","com.azure.resourcemanager.fileshares.fluent.PrivateLinkResourcesClient.list":"Microsoft.FileShares.PrivateLinkResources.list","com.azure.resourcemanager.fileshares.fluent.models.CheckNameAvailabilityResponseInner":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareInner":"Microsoft.FileShares.FileShare","com.azure.resourcemanager.fileshares.fluent.models.FileShareLimitsResponseInner":"Microsoft.FileShares.FileShareLimitsResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareProvisioningRecommendationResponseInner":"Microsoft.FileShares.FileShareProvisioningRecommendationResponse","com.azure.resourcemanager.fileshares.fluent.models.FileShareSnapshotInner":"Microsoft.FileShares.FileShareSnapshot","com.azure.resourcemanager.fileshares.fluent.models.FileShareUsageDataResponseInner":"Microsoft.FileShares.FileShareUsageDataResponse","com.azure.resourcemanager.fileshares.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.fileshares.fluent.models.PrivateEndpointConnectionInner":"Microsoft.FileShares.PrivateEndpointConnection","com.azure.resourcemanager.fileshares.fluent.models.PrivateLinkResourceInner":"Microsoft.FileShares.PrivateLinkResource","com.azure.resourcemanager.fileshares.fluent.models.RedundancyConversionStatusResponseInner":"Microsoft.FileShares.RedundancyConversionStatusResponse","com.azure.resourcemanager.fileshares.implementation.FileSharesManagementClientBuilder":"Microsoft.FileShares","com.azure.resourcemanager.fileshares.implementation.models.FileShareListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.FileShareSnapshotListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.fileshares.implementation.models.PrivateEndpointConnectionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.fileshares.implementation.models.PrivateLinkResourceListResult":"Microsoft.FileShares.PrivateLinkResourceListResult","com.azure.resourcemanager.fileshares.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityReason":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason","com.azure.resourcemanager.fileshares.models.CheckNameAvailabilityRequest":"Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest","com.azure.resourcemanager.fileshares.models.CustomerManagedKeyEncryption":"Azure.ResourceManager.CommonTypes.CustomerManagedKeyEncryption","com.azure.resourcemanager.fileshares.models.EncryptionInTransitRequired":"Microsoft.FileShares.EncryptionInTransitRequired","com.azure.resourcemanager.fileshares.models.FileShareEncryption":"Microsoft.FileShares.FileShareEncryption","com.azure.resourcemanager.fileshares.models.FileShareLimits":"Microsoft.FileShares.FileShareLimits","com.azure.resourcemanager.fileshares.models.FileShareLimitsOutput":"Microsoft.FileShares.FileShareLimitsOutput","com.azure.resourcemanager.fileshares.models.FileShareLimitsRequest":"Microsoft.FileShares.FileShareLimitsRequest","com.azure.resourcemanager.fileshares.models.FileShareOfferInput":"Microsoft.FileShares.FileShareOfferInput","com.azure.resourcemanager.fileshares.models.FileShareProperties":"Microsoft.FileShares.FileShareProperties","com.azure.resourcemanager.fileshares.models.FileShareProvisioningConstants":"Microsoft.FileShares.FileShareProvisioningConstants","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationInput":"Microsoft.FileShares.FileShareProvisioningRecommendationInput","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationOutput":"Microsoft.FileShares.FileShareProvisioningRecommendationOutput","com.azure.resourcemanager.fileshares.models.FileShareProvisioningRecommendationRequest":"Microsoft.FileShares.FileShareProvisioningRecommendationRequest","com.azure.resourcemanager.fileshares.models.FileShareProvisioningState":"Microsoft.FileShares.FileShareProvisioningState","com.azure.resourcemanager.fileshares.models.FileShareSnapshotProperties":"Microsoft.FileShares.FileShareSnapshotProperties","com.azure.resourcemanager.fileshares.models.FileShareSnapshotUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.fileshares.models.FileShareSnapshotUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.fileshares.models.FileShareUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.fileshares.models.FileShareUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.fileshares.models.FileShareUsageDataOutput":"Microsoft.FileShares.FileShareUsageDataOutput","com.azure.resourcemanager.fileshares.models.InfrastructureEncryption":"Azure.ResourceManager.CommonTypes.InfrastructureEncryption","com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentity":"Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentity","com.azure.resourcemanager.fileshares.models.KeyEncryptionKeyIdentityType":"Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentityType","com.azure.resourcemanager.fileshares.models.LiveSharesUsageData":"Microsoft.FileShares.LiveSharesUsageData","com.azure.resourcemanager.fileshares.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.fileshares.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.fileshares.models.MediaTier":"Microsoft.FileShares.MediaTier","com.azure.resourcemanager.fileshares.models.MigrationState":"Microsoft.FileShares.MigrationState","com.azure.resourcemanager.fileshares.models.NfsProtocolProperties":"Microsoft.FileShares.NfsProtocolProperties","com.azure.resourcemanager.fileshares.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.fileshares.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.fileshares.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.fileshares.models.PrivateEndpointConnectionProperties":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties","com.azure.resourcemanager.fileshares.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.fileshares.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.fileshares.models.PrivateLinkResourceProperties":"Microsoft.FileShares.PrivateLinkResourceProperties","com.azure.resourcemanager.fileshares.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.fileshares.models.Protocol":"Microsoft.FileShares.Protocol","com.azure.resourcemanager.fileshares.models.PublicAccessProperties":"Microsoft.FileShares.PublicAccessProperties","com.azure.resourcemanager.fileshares.models.PublicNetworkAccess":"Microsoft.FileShares.PublicNetworkAccess","com.azure.resourcemanager.fileshares.models.Redundancy":"Microsoft.FileShares.Redundancy","com.azure.resourcemanager.fileshares.models.RedundancyConversionStatus":"Microsoft.FileShares.RedundancyConversionStatus","com.azure.resourcemanager.fileshares.models.RedundancyConversionStatusOutput":"Microsoft.FileShares.RedundancyConversionStatusOutput","com.azure.resourcemanager.fileshares.models.ScaleMode":"Microsoft.FileShares.ScaleMode","com.azure.resourcemanager.fileshares.models.ShareRootSquash":"Microsoft.FileShares.ShareRootSquash","com.azure.resourcemanager.fileshares.models.StartRedundancyConversionInput":"Microsoft.FileShares.StartRedundancyConversionInput","com.azure.resourcemanager.fileshares.models.StartRedundancyConversionRequest":"Microsoft.FileShares.StartRedundancyConversionRequest","com.azure.resourcemanager.fileshares.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity"},"generatedFiles":["src/main/java/com/azure/resourcemanager/fileshares/FileSharesManager.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileShareSnapshotsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/FileSharesManagementClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/InformationalOperationsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/CheckNameAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareLimitsResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareProvisioningRecommendationResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareSnapshotInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/FileShareUsageDataResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/PrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/RedundancyConversionStatusResponseInner.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/fluent/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/CheckNameAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareLimitsResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareProvisioningRecommendationResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareSnapshotsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileShareUsageDataResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/FileSharesManagementClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/InformationalOperationsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourceImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/PrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/RedundancyConversionStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/FileShareListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/FileShareSnapshotListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/models/PrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/fileshares/implementation/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/models/ActionType.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityReason.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/CheckNameAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/CustomerManagedKeyEncryption.java","src/main/java/com/azure/resourcemanager/fileshares/models/EncryptionInTransitRequired.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShare.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareEncryption.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimits.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareLimitsResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareOfferInput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningConstants.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationInput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningRecommendationResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareProvisioningState.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshot.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotUpdate.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshotUpdateProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareSnapshots.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdate.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUpdateProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUsageDataOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShareUsageDataResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/FileShares.java","src/main/java/com/azure/resourcemanager/fileshares/models/InformationalOperations.java","src/main/java/com/azure/resourcemanager/fileshares/models/InfrastructureEncryption.java","src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentity.java","src/main/java/com/azure/resourcemanager/fileshares/models/KeyEncryptionKeyIdentityType.java","src/main/java/com/azure/resourcemanager/fileshares/models/LiveSharesUsageData.java","src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/fileshares/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/fileshares/models/MediaTier.java","src/main/java/com/azure/resourcemanager/fileshares/models/MigrationState.java","src/main/java/com/azure/resourcemanager/fileshares/models/NfsProtocolProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/Operation.java","src/main/java/com/azure/resourcemanager/fileshares/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/fileshares/models/Operations.java","src/main/java/com/azure/resourcemanager/fileshares/models/Origin.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResource.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkResources.java","src/main/java/com/azure/resourcemanager/fileshares/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/fileshares/models/Protocol.java","src/main/java/com/azure/resourcemanager/fileshares/models/PublicAccessProperties.java","src/main/java/com/azure/resourcemanager/fileshares/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/fileshares/models/Redundancy.java","src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatus.java","src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusOutput.java","src/main/java/com/azure/resourcemanager/fileshares/models/RedundancyConversionStatusResponse.java","src/main/java/com/azure/resourcemanager/fileshares/models/ScaleMode.java","src/main/java/com/azure/resourcemanager/fileshares/models/ShareRootSquash.java","src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionInput.java","src/main/java/com/azure/resourcemanager/fileshares/models/StartRedundancyConversionRequest.java","src/main/java/com/azure/resourcemanager/fileshares/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/fileshares/models/package-info.java","src/main/java/com/azure/resourcemanager/fileshares/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml b/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml index 6029a884b33e3..2147821d46c39 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml +++ b/sdk/fileshares/azure-resourcemanager-fileshares/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/fileshares/resource-manager/Microsoft.FileShares/FileShares -commit: 4f84812320680da54d6dd0d0472ad8981618a922 +commit: cec8aac5df80e978dc33d830a61398da2102813e repo: Azure/azure-rest-api-specs additionalDirectories: From 6808aaed071f597364500b5abd62e2748858ee6f Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Mon, 2 Nov 2026 11:40:50 +0800 Subject: [PATCH 5/6] Skip RevAPI for FileShares API update Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ed3006c4-bf47-44c9-889e-42bd62fd3c29 --- sdk/fileshares/azure-resourcemanager-fileshares/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml index e05682538dca7..8fff2f27137d6 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml +++ b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml @@ -45,7 +45,7 @@ UTF-8 0 0 - false + true From 35c390449178099223f8b1e154aca01f00983e7a Mon Sep 17 00:00:00 2001 From: James Lindamood <8120747+jlindamood@users.noreply.github.com> Date: Mon, 2 Nov 2026 09:28:09 -0800 Subject: [PATCH 6/6] [fileshares] Restore 1.0.0-beta.2 beta version after regeneration Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/versioning/version_client.txt | 2 +- sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md | 2 +- sdk/fileshares/azure-resourcemanager-fileshares/README.md | 2 +- sdk/fileshares/azure-resourcemanager-fileshares/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index f1109f6a6cdbb..6d7c93457e022 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -528,7 +528,7 @@ com.azure.resourcemanager:azure-resourcemanager-appnetwork;1.0.0-beta.2;1.0.0-be com.azure.resourcemanager:azure-resourcemanager-servicegroups;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-horizondb;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-relationships;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-fileshares;1.0.0-beta.1;1.0.0 +com.azure.resourcemanager:azure-resourcemanager-fileshares;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-monitor-slis;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-monitor-workspaces;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-programenrollment;1.0.0-beta.1;1.0.0-beta.2 diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md b/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md index f6e5f4811c8c8..2dc984c2fee3c 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md +++ b/sdk/fileshares/azure-resourcemanager-fileshares/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.0 (2026-11-01) +## 1.0.0-beta.2 (2026-11-01) - Azure Resource Manager FileShares client library for Java. This package contains Microsoft Azure SDK for FileShares Management SDK. Azure File Shares Resource Provider API. Package api-version 2026-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/README.md b/sdk/fileshares/azure-resourcemanager-fileshares/README.md index 3710d3879567a..d30ef8921756f 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/README.md +++ b/sdk/fileshares/azure-resourcemanager-fileshares/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-fileshares - 1.0.0 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml index 8fff2f27137d6..027549ab1c8dd 100644 --- a/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml +++ b/sdk/fileshares/azure-resourcemanager-fileshares/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-fileshares - 1.0.0 + 1.0.0-beta.2 jar Microsoft Azure SDK for FileShares Management