From 99ef1cb4c508c1c8606cf6021fbb2085fa3775c8 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 19 Jun 2026 07:06:38 +0000 Subject: [PATCH 1/5] Configurations: 'specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml', SDK Release Type: stable, and CommitSHA: '31221e37affcbc82e521758d6d3dde7c97526ecd' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6457556 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 +- .../azure-resourcemanager-qumulo/CHANGELOG.md | 85 +- .../azure-resourcemanager-qumulo/README.md | 10 +- .../azure-resourcemanager-qumulo/SAMPLE.md | 201 ++-- .../azure-resourcemanager-qumulo/pom.xml | 20 +- .../resourcemanager/qumulo/QumuloManager.java | 31 +- .../qumulo/fluent/FileSystemsClient.java | 96 +- .../qumulo/fluent/OperationsClient.java | 2 +- ...orage.java => QumuloManagementClient.java} | 24 +- .../models/FileSystemResourceInner.java | 247 +--- .../qumulo/fluent/models/OperationInner.java | 42 +- .../qumulo/fluent/models/package-info.java | 5 +- .../qumulo/fluent/package-info.java | 5 +- .../FileSystemResourceImpl.java | 99 +- .../implementation/FileSystemsClientImpl.java | 1005 +++++++---------- .../implementation/FileSystemsImpl.java | 52 +- .../qumulo/implementation/OperationImpl.java | 2 +- .../implementation/OperationsClientImpl.java | 133 +-- .../qumulo/implementation/OperationsImpl.java | 2 +- ...ava => QumuloManagementClientBuilder.java} | 62 +- ...l.java => QumuloManagementClientImpl.java} | 86 +- .../implementation/ResourceManagerUtils.java | 2 +- .../models/FileSystemResourceListResult.java | 50 +- .../models/OperationListResult.java | 28 +- .../qumulo/implementation/package-info.java | 5 +- .../qumulo/models/ActionType.java | 6 +- .../qumulo/models/FileSystemResource.java | 190 +--- .../models/FileSystemResourceProperties.java | 75 +- .../models/FileSystemResourceUpdate.java | 16 +- .../FileSystemResourceUpdateProperties.java | 34 +- .../qumulo/models/FileSystems.java | 66 +- .../qumulo/models/ManagedServiceIdentity.java | 62 +- .../models/ManagedServiceIdentityType.java | 10 +- .../qumulo/models/MarketplaceDetails.java | 21 +- .../models/MarketplaceSubscriptionStatus.java | 10 +- .../qumulo/models/Operation.java | 8 +- .../qumulo/models/OperationDisplay.java | 14 +- .../qumulo/models/Operations.java | 2 +- .../resourcemanager/qumulo/models/Origin.java | 8 +- .../qumulo/models/ProvisioningState.java | 18 +- .../qumulo/models/UserAssignedIdentity.java | 25 +- .../qumulo/models/UserDetails.java | 17 +- .../qumulo/models/package-info.java | 5 +- .../resourcemanager/qumulo/package-info.java | 5 +- .../src/main/java/module-info.java | 3 +- ...azure-resourcemanager-qumulo_metadata.json | 1 + .../azure-resourcemanager-qumulo.properties | 1 + .../FileSystemsCreateOrUpdateSamples.java | 68 +- .../generated/FileSystemsDeleteSamples.java | 21 +- .../FileSystemsGetByResourceGroupSamples.java | 21 +- ...FileSystemsListByResourceGroupSamples.java | 19 +- .../generated/FileSystemsListSamples.java | 18 +- .../generated/FileSystemsUpdateSamples.java | 51 +- .../generated/OperationsListSamples.java | 17 +- ...leSystemResourceUpdatePropertiesTests.java | 49 +- .../FileSystemResourceUpdateTests.java | 68 +- .../ManagedServiceIdentityTests.java | 14 +- .../generated/MarketplaceDetailsTests.java | 34 +- .../generated/OperationDisplayTests.java | 10 +- .../qumulo/generated/OperationInnerTests.java | 11 +- .../generated/OperationListResultTests.java | 14 +- .../generated/OperationsListMockTests.java | 8 +- .../generated/UserAssignedIdentityTests.java | 7 +- .../qumulo/generated/UserDetailsTests.java | 10 +- .../tsp-location.yaml | 4 + 65 files changed, 1314 insertions(+), 2023 deletions(-) rename sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/{QumuloStorage.java => QumuloManagementClient.java} (80%) rename sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/{QumuloStorageBuilder.java => QumuloManagementClientBuilder.java} (64%) rename sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/{QumuloStorageImpl.java => QumuloManagementClientImpl.java} (81%) rename sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/{ => implementation}/models/FileSystemResourceListResult.java (67%) rename sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/{ => implementation}/models/OperationListResult.java (78%) rename sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/{fluent => }/models/FileSystemResourceProperties.java (84%) create mode 100644 sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/META-INF/azure-resourcemanager-qumulo_metadata.json create mode 100644 sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/azure-resourcemanager-qumulo.properties create mode 100644 sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 95da7386eed6..58ada88522df 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -443,7 +443,7 @@ com.azure.resourcemanager:azure-resourcemanager-graphservices;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-voiceservices;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-paloaltonetworks-ngfw;1.3.0;1.4.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-newrelicobservability;1.2.0;1.3.0-beta.3 -com.azure.resourcemanager:azure-resourcemanager-qumulo;1.1.0;1.2.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-qumulo;1.1.0;1.2.0 com.azure.resourcemanager:azure-resourcemanager-selfhelp;1.0.0;1.1.0-beta.7 com.azure.resourcemanager:azure-resourcemanager-networkcloud;2.1.0;2.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-cosmosdbforpostgresql;1.0.0;1.1.0-beta.4 diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md b/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md index 42d79e335a32..bbbb39969b7e 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md +++ b/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md @@ -1,14 +1,91 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.2.0 (2026-06-19) -### Features Added +- Azure Resource Manager Qumulo client library for Java. This package contains Microsoft Azure SDK for Qumulo Management SDK. Package api-version 2026-04-16. 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.OperationListResult` was removed + +#### `models.FileSystemResourceListResult` was removed + +#### `models.FileSystemResourceUpdate` was modified + +* `validate()` was removed + +#### `models.FileSystemResource` was modified + +* `availabilityZone()` was removed +* `storageSku()` was removed +* `privateIPs()` was removed +* `provisioningState()` was removed +* `adminPassword()` was removed +* `userDetails()` was removed +* `marketplaceDetails()` was removed +* `clusterLoginUrl()` was removed +* `delegatedSubnetId()` was removed + +#### `models.ManagedServiceIdentity` was modified + +* `java.util.UUID principalId()` -> `java.lang.String principalId()` +* `validate()` was removed +* `java.util.UUID tenantId()` -> `java.lang.String tenantId()` + +#### `models.UserAssignedIdentity` was modified + +* `validate()` was removed +* `java.util.UUID clientId()` -> `java.lang.String clientId()` +* `java.util.UUID principalId()` -> `java.lang.String principalId()` + +#### `models.FileSystemResourceUpdateProperties` was modified + +* `validate()` was removed + +#### `models.OperationDisplay` was modified + +* `OperationDisplay()` was changed to private access +* `validate()` was removed + +#### `models.UserDetails` was modified + +* `validate()` was removed + +#### `models.MarketplaceDetails` was modified + +* `validate()` was removed + +#### `QumuloManager` was modified + +* `fluent.QumuloStorage serviceClient()` -> `fluent.QumuloManagementClient serviceClient()` + +#### `models.FileSystemResource$Definition` was modified + +* `withAvailabilityZone(java.lang.String)` was removed +* `withAdminPassword(java.lang.String)` was removed +* `withStorageSku(java.lang.String)` was removed +* `withUserDetails(models.UserDetails)` was removed +* `withMarketplaceDetails(models.MarketplaceDetails)` was removed +* `withDelegatedSubnetId(java.lang.String)` was removed +* `withClusterLoginUrl(java.lang.String)` was removed +* `withPrivateIPs(java.util.List)` was removed + +### Features Added + +* `models.FileSystemResourceProperties` was added + +#### `models.FileSystemResource` was modified + +* `properties()` was added + +#### `models.FileSystemResourceUpdateProperties` was modified + +* `performanceTier()` was added +* `withPerformanceTier(java.lang.String)` was added + +#### `models.FileSystemResource$Definition` was modified -### Other Changes +* `withProperties(models.FileSystemResourceProperties)` was added ## 1.1.0 (2024-09-10) diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/README.md b/sdk/qumulo/azure-resourcemanager-qumulo/README.md index a7d61f09178f..b4697faf36bd 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/README.md +++ b/sdk/qumulo/azure-resourcemanager-qumulo/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Qumulo client library for Java. -This package contains Microsoft Azure SDK for Qumulo Management SDK. Package tag package-2024-06-19. 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 Qumulo Management SDK. Package api-version 2026-04-16. 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-qumulo - 1.2.0-beta.1 + 1.2.0 ``` [//]: # ({x-version-update-end}) @@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java -AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); +AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD); TokenCredential credential = new DefaultAzureCredentialBuilder() .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) .build(); @@ -60,7 +60,7 @@ QumuloManager manager = QumuloManager .authenticate(credential, profile); ``` -The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. +The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise. See [Authentication][authenticate] for more options. @@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ - - diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/SAMPLE.md b/sdk/qumulo/azure-resourcemanager-qumulo/SAMPLE.md index d5433aa1ca98..00d560a01c7f 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/SAMPLE.md +++ b/sdk/qumulo/azure-resourcemanager-qumulo/SAMPLE.md @@ -16,6 +16,7 @@ ### FileSystems_CreateOrUpdate ```java +import com.azure.resourcemanager.qumulo.models.FileSystemResourceProperties; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentityType; import com.azure.resourcemanager.qumulo.models.MarketplaceDetails; @@ -30,58 +31,53 @@ import java.util.Map; */ public final class FileSystemsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_CreateOrUpdate_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_CreateOrUpdate. + * Sample code: FileSystems_CreateOrUpdate_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsCreateOrUpdate(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsCreateOrUpdateMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems() - .define("hfcmtgaes") - .withRegion("pnb") + .define("qumulo-fs-01") + .withRegion("ninyfyhmsedp") .withExistingResourceGroup("rgQumulo") - .withTags(mapOf("key7090", "fakeTokenPlaceholder")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) - .withUserAssignedIdentities(mapOf("key7679", new UserAssignedIdentity()))) - .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("xaqtkloiyovmexqhn") - .withPlanId("fwtpz") - .withOfferId("s") - .withPublisherId("czxcfrwodazyaft") - .withTermUnit("cfwwczmygsimcyvoclcw")) - .withStorageSku("yhyzby") - .withUserDetails(new UserDetails().withEmail("aqsnzyroo")) - .withDelegatedSubnetId("jykmxrf") - .withClusterLoginUrl("ykaynsjvhihdthkkvvodjrgc") - .withPrivateIPs(Arrays.asList("gzken")) - .withAdminPassword("fakeTestSecretPlaceholder") - .withAvailabilityZone("eqdvbdiuwmhhzqzmksmwllpddqquwt") .create(); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_CreateOrUpdate_MinimumSet_Gen. + * Sample code: FileSystems_CreateOrUpdate_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsCreateOrUpdateMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems() - .define("aaaaaaaa") - .withRegion("aaaaaaaaaaaaaaaaaaaaaaaaa") - .withExistingResourceGroup("rgopenapi") - .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("aaaaaaaaaaaaa") - .withPlanId("aaaaaa") - .withOfferId("aaaaaaaaaaaaaaaaaaaaaaaaa")) - .withStorageSku("Standard") - .withUserDetails(new UserDetails().withEmail("viptslwulnpaupfljvnjeq")) - .withDelegatedSubnetId("aaaaaaaaaa") - .withAdminPassword("fakeTestSecretPlaceholder") + .define("qumulo-fs-01") + .withRegion("uiuztlexlmxsqcnsdpvzzygmi") + .withExistingResourceGroup("rgQumulo") + .withTags(mapOf("key7800", "fakeTokenPlaceholder")) + .withProperties(new FileSystemResourceProperties() + .withMarketplaceDetails( + new MarketplaceDetails().withMarketplaceSubscriptionId("vwjzkiurjihwxrhoicenkbxacokvep") + .withPlanId("vxnyxa") + .withOfferId("itiocfnteqyuavgmdtnvwvbpectyr") + .withPublisherId("zfevjvhjiifwxbazta") + .withTermUnit("lkbiqoqdyqbua")) + .withStorageSku("myzqnfqelxo") + .withUserDetails(new UserDetails().withEmail("rlqqzevfgtqpynvifqp")) + .withDelegatedSubnetId("kmjaqsfflkjpke") + .withPerformanceTier("fjgqmkcvjtygcavpbo") + .withClusterLoginUrl("uzpvkgxrbgtthyxgavsjr") + .withPrivateIPs(Arrays.asList("qrhvbdfbfdgqqe")) + .withAdminPassword("fakeTokenPlaceholder") + .withAvailabilityZone("luklrtwmngwnaerygykcbwljeso")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) + .withUserAssignedIdentities(mapOf("key8111", new UserAssignedIdentity()))) .create(); } @@ -107,29 +103,28 @@ public final class FileSystemsCreateOrUpdateSamples { */ public final class FileSystemsDeleteSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Delete_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_Delete. + * Sample code: FileSystems_Delete_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsDelete(com.azure.resourcemanager.qumulo.QumuloManager manager) { - manager.fileSystems().delete("rgQumulo", "xoschzkccroahrykedlvbbnsddq", com.azure.core.util.Context.NONE); + public static void fileSystemsDeleteMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.qumulo.QumuloManager manager) { + manager.fileSystems().delete("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Delete_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_Delete_MinimumSet_Gen. + * Sample code: FileSystems_Delete_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsDeleteMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { - manager.fileSystems().delete("rgQumulo", "jgtskkiplquyrlkaxvhdg", com.azure.core.util.Context.NONE); + public static void fileSystemsDeleteMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { + manager.fileSystems().delete("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE); } } ``` @@ -142,31 +137,30 @@ public final class FileSystemsDeleteSamples { */ public final class FileSystemsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Get_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_Get. + * Sample code: FileSystems_Get_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsGet(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void + fileSystemsGetMaximumSetGenGeneratedByMinimumSetRule(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems() - .getByResourceGroupWithResponse("rgQumulo", "sihbehcisdqtqqyfiewiiaphgh", com.azure.core.util.Context.NONE); + .getByResourceGroupWithResponse("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Get_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Get_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_Get_MinimumSet_Gen. + * Sample code: FileSystems_Get_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsGetMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsGetMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems() - .getByResourceGroupWithResponse("rgQumulo", "aaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); + .getByResourceGroupWithResponse("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE); } } ``` @@ -179,29 +173,27 @@ public final class FileSystemsGetByResourceGroupSamples { */ public final class FileSystemsListSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_ListBySubscription_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_ListBySubscription. + * Sample code: FileSystems_ListBySubscription_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsListBySubscription(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems().list(com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_ListBySubscription_MinimumSet_Gen. + * Sample code: FileSystems_ListBySubscription_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void - fileSystemsListBySubscriptionMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsListBySubscriptionMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems().list(com.azure.core.util.Context.NONE); } } @@ -215,29 +207,28 @@ public final class FileSystemsListSamples { */ public final class FileSystemsListByResourceGroupSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_ListByResourceGroup. + * Sample code: FileSystems_ListByResourceGroup_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsListByResourceGroup(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void + fileSystemsListByResourceGroupMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems().listByResourceGroup("rgQumulo", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_ListByResourceGroup_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_ListByResourceGroup_MinimumSet_Gen. + * Sample code: FileSystems_ListByResourceGroup_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void - fileSystemsListByResourceGroupMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems().listByResourceGroup("rgQumulo", com.azure.core.util.Context.NONE); } } @@ -261,47 +252,48 @@ import java.util.Map; */ public final class FileSystemsUpdateSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Update_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_Update_MinimumSet_Gen. + * Sample code: FileSystems_Update_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsUpdateMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsUpdateMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { FileSystemResource resource = manager.fileSystems() - .getByResourceGroupWithResponse("rgQumulo", "aaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE) .getValue(); - resource.update().apply(); + resource.update() + .withTags(mapOf("key5846", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) + .withUserAssignedIdentities(mapOf("key8111", new UserAssignedIdentity()))) + .withProperties(new FileSystemResourceUpdateProperties() + .withMarketplaceDetails( + new MarketplaceDetails().withMarketplaceSubscriptionId("vwjzkiurjihwxrhoicenkbxacokvep") + .withPlanId("vxnyxa") + .withOfferId("itiocfnteqyuavgmdtnvwvbpectyr") + .withPublisherId("zfevjvhjiifwxbazta") + .withTermUnit("lkbiqoqdyqbua")) + .withUserDetails(new UserDetails().withEmail("rlqqzevfgtqpynvifqp")) + .withDelegatedSubnetId("osinzkhurmzdaw") + .withPerformanceTier("Premium")) + .apply(); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Update_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_Update. + * Sample code: FileSystems_Update_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsUpdate(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsUpdateMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.qumulo.QumuloManager manager) { FileSystemResource resource = manager.fileSystems() - .getByResourceGroupWithResponse("rgQumulo", "ahpixnvykleksjlr", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE) .getValue(); - resource.update() - .withTags(mapOf("key357", "fakeTokenPlaceholder")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) - .withUserAssignedIdentities(mapOf("key7679", new UserAssignedIdentity()))) - .withProperties(new FileSystemResourceUpdateProperties() - .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("xaqtkloiyovmexqhn") - .withPlanId("fwtpz") - .withOfferId("s") - .withPublisherId("czxcfrwodazyaft") - .withTermUnit("cfwwczmygsimcyvoclcw")) - .withUserDetails(new UserDetails().withEmail("aqsnzyroo")) - .withDelegatedSubnetId("bqaryqsjlackxphpmzffgoqsvm")) - .apply(); + resource.update().apply(); } // Use "Map.of" if available @@ -326,28 +318,27 @@ public final class FileSystemsUpdateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/Operations_List_MaximumSet_Gen.json */ /** - * Sample code: Operations_List_MinimumSet_Gen. + * Sample code: Operations_List_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void operationsListMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void operationsListMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/Operations_List_MinimumSet_Gen.json */ /** - * Sample code: Operations_List. + * Sample code: Operations_List_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void operationsList(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void + operationsListMaximumSetGenGeneratedByMinimumSetRule(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml b/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml index 2fa8a7bb2d26..5707f040f1a1 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml +++ b/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml @@ -1,9 +1,9 @@ - + 4.0.0 com.azure @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-qumulo - 1.2.0-beta.1 + 1.2.0 jar Microsoft Azure SDK for Qumulo Management - This package contains Microsoft Azure SDK for Qumulo Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-06-19. + This package contains Microsoft Azure SDK for Qumulo Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2026-04-16. https://github.com/Azure/azure-sdk-for-java @@ -45,14 +45,9 @@ UTF-8 0 0 - true + false - - com.azure - azure-json - 1.5.1 - com.azure azure-core @@ -75,5 +70,10 @@ 1.18.4 test + + com.azure + azure-json + 1.5.1 + diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/QumuloManager.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/QumuloManager.java index c7d22f3f923a..1766dcc1930f 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/QumuloManager.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/QumuloManager.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo; @@ -11,28 +11,30 @@ import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.AddHeadersFromContextPolicy; -import com.azure.core.http.policy.HttpLoggingPolicy; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.qumulo.fluent.QumuloStorage; +import com.azure.resourcemanager.qumulo.fluent.QumuloManagementClient; import com.azure.resourcemanager.qumulo.implementation.FileSystemsImpl; import com.azure.resourcemanager.qumulo.implementation.OperationsImpl; -import com.azure.resourcemanager.qumulo.implementation.QumuloStorageBuilder; +import com.azure.resourcemanager.qumulo.implementation.QumuloManagementClientBuilder; import com.azure.resourcemanager.qumulo.models.FileSystems; import com.azure.resourcemanager.qumulo.models.Operations; import java.time.Duration; import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; @@ -44,12 +46,12 @@ public final class QumuloManager { private FileSystems fileSystems; - private final QumuloStorage clientObject; + private final QumuloManagementClient clientObject; private QumuloManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); - this.clientObject = new QumuloStorageBuilder().pipeline(httpPipeline) + this.clientObject = new QumuloManagementClientBuilder().pipeline(httpPipeline) .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) .subscriptionId(profile.getSubscriptionId()) .defaultPollInterval(defaultPollInterval) @@ -96,6 +98,9 @@ public static Configurable configure() { */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); + private static final String SDK_VERSION = "version"; + private static final Map PROPERTIES + = CoreUtils.getProperties("azure-resourcemanager-qumulo.properties"); private HttpClient httpClient; private HttpLogOptions httpLogOptions; @@ -203,12 +208,14 @@ public QumuloManager authenticate(TokenCredential credential, AzureProfile profi Objects.requireNonNull(credential, "'credential' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); + String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion"); + StringBuilder userAgentBuilder = new StringBuilder(); userAgentBuilder.append("azsdk-java") .append("-") .append("com.azure.resourcemanager.qumulo") .append("/") - .append("1.1.0"); + .append(clientVersion); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -241,7 +248,7 @@ public QumuloManager authenticate(TokenCredential credential, AzureProfile profi HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); - policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); + policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0]))); policies.addAll(this.policies.stream() .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .collect(Collectors.toList())); @@ -279,12 +286,12 @@ public FileSystems fileSystems() { } /** - * Gets wrapped service client QumuloStorage providing direct access to the underlying auto-generated API + * Gets wrapped service client QumuloManagementClient providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. * - * @return Wrapped service client QumuloStorage. + * @return Wrapped service client QumuloManagementClient. */ - public QumuloStorage serviceClient() { + public QumuloManagementClient serviceClient() { return this.clientObject; } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/FileSystemsClient.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/FileSystemsClient.java index 8d720470961a..238a9f9df504 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/FileSystemsClient.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/FileSystemsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.fluent; @@ -18,53 +18,6 @@ * An instance of this class provides access to all the operations defined in FileSystemsClient. */ public interface FileSystemsClient { - /** - * List FileSystemResource resources by subscription ID. - * - * @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 response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * List FileSystemResource resources by subscription ID. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - - /** - * List FileSystemResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * List FileSystemResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - /** * Get a FileSystemResource. * @@ -240,4 +193,51 @@ FileSystemResourceInner update(String resourceGroupName, String fileSystemName, */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String fileSystemName, Context context); + + /** + * List FileSystemResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List FileSystemResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * List FileSystemResource resources by subscription ID. + * + * @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 response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List FileSystemResource resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/OperationsClient.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/OperationsClient.java index 19248b4ac1da..d1043192bc49 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/OperationsClient.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/OperationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.fluent; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/QumuloStorage.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/QumuloManagementClient.java similarity index 80% rename from sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/QumuloStorage.java rename to sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/QumuloManagementClient.java index 8fe6977c75c4..4c6eeb68078c 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/QumuloStorage.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/QumuloManagementClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.fluent; @@ -8,30 +8,30 @@ import java.time.Duration; /** - * The interface for QumuloStorage class. + * The interface for QumuloManagementClient class. */ -public interface QumuloStorage { +public interface QumuloManagementClient { /** - * Gets The ID of the target subscription. - * - * @return the subscriptionId value. - */ - String getSubscriptionId(); - - /** - * Gets server parameter. + * Gets Service host. * * @return the endpoint value. */ String getEndpoint(); /** - * Gets Api Version. + * Gets Version parameter. * * @return the apiVersion value. */ String getApiVersion(); + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + String getSubscriptionId(); + /** * Gets The HTTP pipeline to send requests through. * diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java index 41de85e0b7d8..6003bb4983e2 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java @@ -1,22 +1,18 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.qumulo.models.FileSystemResourceProperties; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity; -import com.azure.resourcemanager.qumulo.models.MarketplaceDetails; -import com.azure.resourcemanager.qumulo.models.ProvisioningState; -import com.azure.resourcemanager.qumulo.models.UserDetails; import java.io.IOException; -import java.util.List; import java.util.Map; /** @@ -27,7 +23,7 @@ public final class FileSystemResourceInner extends Resource { /* * The resource-specific properties for this resource. */ - private FileSystemResourceProperties innerProperties; + private FileSystemResourceProperties properties; /* * The managed service identities assigned to this resource. @@ -61,12 +57,23 @@ public FileSystemResourceInner() { } /** - * Get the innerProperties property: The resource-specific properties for this resource. + * Get the properties property: The resource-specific properties for this resource. * - * @return the innerProperties value. + * @return the properties value. */ - private FileSystemResourceProperties innerProperties() { - return this.innerProperties; + public FileSystemResourceProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the FileSystemResourceInner object itself. + */ + public FileSystemResourceInner withProperties(FileSystemResourceProperties properties) { + this.properties = properties; + return this; } /** @@ -146,220 +153,6 @@ public FileSystemResourceInner withTags(Map tags) { return this; } - /** - * Get the marketplaceDetails property: Marketplace details. - * - * @return the marketplaceDetails value. - */ - public MarketplaceDetails marketplaceDetails() { - return this.innerProperties() == null ? null : this.innerProperties().marketplaceDetails(); - } - - /** - * Set the marketplaceDetails property: Marketplace details. - * - * @param marketplaceDetails the marketplaceDetails value to set. - * @return the FileSystemResourceInner object itself. - */ - public FileSystemResourceInner withMarketplaceDetails(MarketplaceDetails marketplaceDetails) { - if (this.innerProperties() == null) { - this.innerProperties = new FileSystemResourceProperties(); - } - this.innerProperties().withMarketplaceDetails(marketplaceDetails); - return this; - } - - /** - * Get the provisioningState property: Provisioning State of the resource. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the storageSku property: Storage Sku. - * - * @return the storageSku value. - */ - public String storageSku() { - return this.innerProperties() == null ? null : this.innerProperties().storageSku(); - } - - /** - * Set the storageSku property: Storage Sku. - * - * @param storageSku the storageSku value to set. - * @return the FileSystemResourceInner object itself. - */ - public FileSystemResourceInner withStorageSku(String storageSku) { - if (this.innerProperties() == null) { - this.innerProperties = new FileSystemResourceProperties(); - } - this.innerProperties().withStorageSku(storageSku); - return this; - } - - /** - * Get the userDetails property: User Details. - * - * @return the userDetails value. - */ - public UserDetails userDetails() { - return this.innerProperties() == null ? null : this.innerProperties().userDetails(); - } - - /** - * Set the userDetails property: User Details. - * - * @param userDetails the userDetails value to set. - * @return the FileSystemResourceInner object itself. - */ - public FileSystemResourceInner withUserDetails(UserDetails userDetails) { - if (this.innerProperties() == null) { - this.innerProperties = new FileSystemResourceProperties(); - } - this.innerProperties().withUserDetails(userDetails); - return this; - } - - /** - * Get the delegatedSubnetId property: Delegated subnet id for Vnet injection. - * - * @return the delegatedSubnetId value. - */ - public String delegatedSubnetId() { - return this.innerProperties() == null ? null : this.innerProperties().delegatedSubnetId(); - } - - /** - * Set the delegatedSubnetId property: Delegated subnet id for Vnet injection. - * - * @param delegatedSubnetId the delegatedSubnetId value to set. - * @return the FileSystemResourceInner object itself. - */ - public FileSystemResourceInner withDelegatedSubnetId(String delegatedSubnetId) { - if (this.innerProperties() == null) { - this.innerProperties = new FileSystemResourceProperties(); - } - this.innerProperties().withDelegatedSubnetId(delegatedSubnetId); - return this; - } - - /** - * Get the clusterLoginUrl property: File system Id of the resource. - * - * @return the clusterLoginUrl value. - */ - public String clusterLoginUrl() { - return this.innerProperties() == null ? null : this.innerProperties().clusterLoginUrl(); - } - - /** - * Set the clusterLoginUrl property: File system Id of the resource. - * - * @param clusterLoginUrl the clusterLoginUrl value to set. - * @return the FileSystemResourceInner object itself. - */ - public FileSystemResourceInner withClusterLoginUrl(String clusterLoginUrl) { - if (this.innerProperties() == null) { - this.innerProperties = new FileSystemResourceProperties(); - } - this.innerProperties().withClusterLoginUrl(clusterLoginUrl); - return this; - } - - /** - * Get the privateIPs property: Private IPs of the resource. - * - * @return the privateIPs value. - */ - public List privateIPs() { - return this.innerProperties() == null ? null : this.innerProperties().privateIPs(); - } - - /** - * Set the privateIPs property: Private IPs of the resource. - * - * @param privateIPs the privateIPs value to set. - * @return the FileSystemResourceInner object itself. - */ - public FileSystemResourceInner withPrivateIPs(List privateIPs) { - if (this.innerProperties() == null) { - this.innerProperties = new FileSystemResourceProperties(); - } - this.innerProperties().withPrivateIPs(privateIPs); - return this; - } - - /** - * Get the adminPassword property: Initial administrator password of the resource. - * - * @return the adminPassword value. - */ - public String adminPassword() { - return this.innerProperties() == null ? null : this.innerProperties().adminPassword(); - } - - /** - * Set the adminPassword property: Initial administrator password of the resource. - * - * @param adminPassword the adminPassword value to set. - * @return the FileSystemResourceInner object itself. - */ - public FileSystemResourceInner withAdminPassword(String adminPassword) { - if (this.innerProperties() == null) { - this.innerProperties = new FileSystemResourceProperties(); - } - this.innerProperties().withAdminPassword(adminPassword); - return this; - } - - /** - * Get the availabilityZone property: Availability zone. - * - * @return the availabilityZone value. - */ - public String availabilityZone() { - return this.innerProperties() == null ? null : this.innerProperties().availabilityZone(); - } - - /** - * Set the availabilityZone property: Availability zone. - * - * @param availabilityZone the availabilityZone value to set. - * @return the FileSystemResourceInner object itself. - */ - public FileSystemResourceInner withAvailabilityZone(String availabilityZone) { - if (this.innerProperties() == null) { - this.innerProperties = new FileSystemResourceProperties(); - } - this.innerProperties().withAvailabilityZone(availabilityZone); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - if (identity() != null) { - identity().validate(); - } - if (location() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property location in model FileSystemResourceInner")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FileSystemResourceInner.class); - /** * {@inheritDoc} */ @@ -368,7 +161,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("properties", this.properties); jsonWriter.writeJsonField("identity", this.identity); return jsonWriter.writeEndObject(); } @@ -401,7 +194,7 @@ public static FileSystemResourceInner fromJson(JsonReader jsonReader) throws IOE Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedFileSystemResourceInner.withTags(tags); } else if ("properties".equals(fieldName)) { - deserializedFileSystemResourceInner.innerProperties = FileSystemResourceProperties.fromJson(reader); + deserializedFileSystemResourceInner.properties = FileSystemResourceProperties.fromJson(reader); } else if ("identity".equals(fieldName)) { deserializedFileSystemResourceInner.identity = ManagedServiceIdentity.fromJson(reader); } else if ("systemData".equals(fieldName)) { diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/OperationInner.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/OperationInner.java index 0c7a767e6d39..f8972f242adb 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/OperationInner.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/OperationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -19,7 +19,7 @@ * * Details of a REST API operation, returned from the Resource Provider Operations API. */ -@Fluent +@Immutable public final class OperationInner implements JsonSerializable { /* * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: @@ -28,8 +28,8 @@ public final class OperationInner implements JsonSerializable { private String name; /* - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for - * ARM/control-plane operations. + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure + * Resource Manager/control-plane operations. */ private Boolean isDataAction; @@ -45,14 +45,14 @@ public final class OperationInner implements JsonSerializable { private Origin origin; /* - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ private ActionType actionType; /** * Creates an instance of OperationInner class. */ - public OperationInner() { + private OperationInner() { } /** @@ -67,7 +67,7 @@ public String name() { /** * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane - * operations and "false" for ARM/control-plane operations. + * operations and "false" for Azure Resource Manager/control-plane operations. * * @return the isDataAction value. */ @@ -84,17 +84,6 @@ public OperationDisplay display() { return this.display; } - /** - * Set the display property: Localized display information for this particular operation. - * - * @param display the display value to set. - * @return the OperationInner object itself. - */ - public OperationInner withDisplay(OperationDisplay display) { - this.display = display; - return this; - } - /** * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and * audit logs UX. Default value is "user,system". @@ -106,8 +95,8 @@ public Origin origin() { } /** - * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal - * only APIs. + * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. * * @return the actionType value. */ @@ -115,17 +104,6 @@ public ActionType actionType() { return this.actionType; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (display() != null) { - display().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/package-info.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/package-info.java index 9440885baaa3..4d6e28ca0d3c 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/package-info.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the inner data models for QumuloStorage. - * null. + * Package containing the inner data models for Qumulo. */ package com.azure.resourcemanager.qumulo.fluent.models; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/package-info.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/package-info.java index a5e60066f224..bb25ae5a5467 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/package-info.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the service clients for QumuloStorage. - * null. + * Package containing the service clients for Qumulo. */ package com.azure.resourcemanager.qumulo.fluent; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java index a432271f0cb2..c621a771b4f3 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.implementation; @@ -9,14 +9,11 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.qumulo.fluent.models.FileSystemResourceInner; import com.azure.resourcemanager.qumulo.models.FileSystemResource; +import com.azure.resourcemanager.qumulo.models.FileSystemResourceProperties; import com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdate; import com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdateProperties; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity; -import com.azure.resourcemanager.qumulo.models.MarketplaceDetails; -import com.azure.resourcemanager.qumulo.models.ProvisioningState; -import com.azure.resourcemanager.qumulo.models.UserDetails; import java.util.Collections; -import java.util.List; import java.util.Map; public final class FileSystemResourceImpl @@ -50,6 +47,10 @@ public Map tags() { } } + public FileSystemResourceProperties properties() { + return this.innerModel().properties(); + } + public ManagedServiceIdentity identity() { return this.innerModel().identity(); } @@ -58,47 +59,6 @@ public SystemData systemData() { return this.innerModel().systemData(); } - public MarketplaceDetails marketplaceDetails() { - return this.innerModel().marketplaceDetails(); - } - - public ProvisioningState provisioningState() { - return this.innerModel().provisioningState(); - } - - public String storageSku() { - return this.innerModel().storageSku(); - } - - public UserDetails userDetails() { - return this.innerModel().userDetails(); - } - - public String delegatedSubnetId() { - return this.innerModel().delegatedSubnetId(); - } - - public String clusterLoginUrl() { - return this.innerModel().clusterLoginUrl(); - } - - public List privateIPs() { - List inner = this.innerModel().privateIPs(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public String adminPassword() { - return this.innerModel().adminPassword(); - } - - public String availabilityZone() { - return this.innerModel().availabilityZone(); - } - public Region region() { return Region.fromName(this.regionName()); } @@ -215,6 +175,11 @@ public FileSystemResourceImpl withTags(Map tags) { } } + public FileSystemResourceImpl withProperties(FileSystemResourceProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + public FileSystemResourceImpl withIdentity(ManagedServiceIdentity identity) { if (isInCreateMode()) { this.innerModel().withIdentity(identity); @@ -225,52 +190,12 @@ public FileSystemResourceImpl withIdentity(ManagedServiceIdentity identity) { } } - public FileSystemResourceImpl withMarketplaceDetails(MarketplaceDetails marketplaceDetails) { - this.innerModel().withMarketplaceDetails(marketplaceDetails); - return this; - } - - public FileSystemResourceImpl withStorageSku(String storageSku) { - this.innerModel().withStorageSku(storageSku); - return this; - } - - public FileSystemResourceImpl withUserDetails(UserDetails userDetails) { - this.innerModel().withUserDetails(userDetails); - return this; - } - - public FileSystemResourceImpl withDelegatedSubnetId(String delegatedSubnetId) { - this.innerModel().withDelegatedSubnetId(delegatedSubnetId); - return this; - } - - public FileSystemResourceImpl withClusterLoginUrl(String clusterLoginUrl) { - this.innerModel().withClusterLoginUrl(clusterLoginUrl); - return this; - } - - public FileSystemResourceImpl withPrivateIPs(List privateIPs) { - this.innerModel().withPrivateIPs(privateIPs); - return this; - } - - public FileSystemResourceImpl withAdminPassword(String adminPassword) { - this.innerModel().withAdminPassword(adminPassword); - return this; - } - - public FileSystemResourceImpl withAvailabilityZone(String availabilityZone) { - this.innerModel().withAvailabilityZone(availabilityZone); - return this; - } - public FileSystemResourceImpl withProperties(FileSystemResourceUpdateProperties properties) { this.updateProperties.withProperties(properties); return this; } private boolean isInCreateMode() { - return this.innerModel().id() == null; + return this.innerModel() == null || this.innerModel().id() == null; } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsClientImpl.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsClientImpl.java index 2925133d415a..ac9e122ee319 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsClientImpl.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.implementation; @@ -28,13 +28,14 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.qumulo.fluent.FileSystemsClient; import com.azure.resourcemanager.qumulo.fluent.models.FileSystemResourceInner; -import com.azure.resourcemanager.qumulo.models.FileSystemResourceListResult; +import com.azure.resourcemanager.qumulo.implementation.models.FileSystemResourceListResult; import com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -52,89 +53,134 @@ public final class FileSystemsClientImpl implements FileSystemsClient { /** * The service client containing this operation class. */ - private final QumuloStorageImpl client; + private final QumuloManagementClientImpl client; /** * Initializes an instance of FileSystemsClientImpl. * * @param client the instance of the service client containing this operation class. */ - FileSystemsClientImpl(QumuloStorageImpl client) { + FileSystemsClientImpl(QumuloManagementClientImpl client) { this.service = RestProxy.create(FileSystemsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for QumuloStorageFileSystems to be used by the proxy service to perform - * REST calls. + * The interface defining all the services for QumuloManagementClientFileSystems to be used by the proxy service to + * perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "QumuloStorageFileSys") + @Host("{endpoint}") + @ServiceInterface(name = "QumuloManagementClientFileSystems") public interface FileSystemsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Qumulo.Storage/fileSystems") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("fileSystemName") String fileSystemName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("fileSystemName") String fileSystemName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("fileSystemName") String fileSystemName, @HeaderParam("Accept") String accept, Context context); + @PathParam("fileSystemName") String fileSystemName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") FileSystemResourceInner resource, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("fileSystemName") String fileSystemName, - @BodyParam("application/json") FileSystemResourceInner resource, @HeaderParam("Accept") String accept, + @PathParam("fileSystemName") String fileSystemName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") FileSystemResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("$host") String endpoint, + Mono> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("fileSystemName") String fileSystemName, - @BodyParam("application/json") FileSystemResourceUpdate properties, @HeaderParam("Accept") String accept, + @PathParam("fileSystemName") String fileSystemName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") FileSystemResourceUpdate properties, Context context); - @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("fileSystemName") String fileSystemName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") FileSystemResourceUpdate properties, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("fileSystemName") String fileSystemName, @HeaderParam("Accept") String accept, Context context); + @PathParam("fileSystemName") String fileSystemName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("fileSystemName") String fileSystemName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Qumulo.Storage/fileSystems") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Qumulo.Storage/fileSystems") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -142,246 +188,32 @@ Mono> listBySubscriptionNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); - } - - /** - * List FileSystemResource resources by subscription ID. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List FileSystemResource resources by subscription ID. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, - context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List FileSystemResource resources by subscription ID. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); - } - - /** - * List FileSystemResource resources by subscription ID. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); - } - - /** - * List FileSystemResource resources by subscription ID. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * List FileSystemResource resources by subscription ID. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * List FileSystemResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List FileSystemResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List FileSystemResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - /** - * List FileSystemResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List FileSystemResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); - /** - * List FileSystemResource resources by resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listBySubscriptionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -397,21 +229,6 @@ public PagedIterable listByResourceGroup(String resourc @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String fileSystemName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (fileSystemName == null) { - return Mono.error(new IllegalArgumentException("Parameter fileSystemName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), @@ -419,41 +236,6 @@ private Mono> getByResourceGroupWithResponseAs .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Get a FileSystemResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param fileSystemName Name of the File System resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FileSystemResource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String fileSystemName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (fileSystemName == null) { - return Mono.error(new IllegalArgumentException("Parameter fileSystemName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, fileSystemName, accept, context); - } - /** * Get a FileSystemResource. * @@ -484,7 +266,9 @@ private Mono getByResourceGroupAsync(String resourceGro @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse(String resourceGroupName, String fileSystemName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, fileSystemName, context).block(); + final String accept = "application/json"; + return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, fileSystemName, accept, context); } /** @@ -517,30 +301,12 @@ public FileSystemResourceInner getByResourceGroup(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String fileSystemName, FileSystemResourceInner resource) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (fileSystemName == null) { - return Mono.error(new IllegalArgumentException("Parameter fileSystemName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, fileSystemName, resource, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, fileSystemName, contentType, accept, resource, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -550,40 +316,20 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param fileSystemName Name of the File System resource. * @param resource Resource create parameters. - * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response} on successful completion of {@link Mono}. + * with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String fileSystemName, FileSystemResourceInner resource, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (fileSystemName == null) { - return Mono.error(new IllegalArgumentException("Parameter fileSystemName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } + private Response createOrUpdateWithResponse(String resourceGroupName, String fileSystemName, + FileSystemResourceInner resource) { + final String contentType = "application/json"; final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, fileSystemName, resource, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, fileSystemName, contentType, accept, resource, + Context.NONE); } /** @@ -592,20 +338,20 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param fileSystemName Name of the File System resource. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this - * type using a specific property type. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FileSystemResourceInner> - beginCreateOrUpdateAsync(String resourceGroupName, String fileSystemName, FileSystemResourceInner resource) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, fileSystemName, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), FileSystemResourceInner.class, FileSystemResourceInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String fileSystemName, + FileSystemResourceInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, fileSystemName, contentType, accept, resource, context); } /** @@ -614,7 +360,6 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param fileSystemName Name of the File System resource. * @param resource Resource create parameters. - * @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. @@ -622,13 +367,13 @@ private Mono>> createOrUpdateWithResponseAsync(String * type using a specific property type. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, FileSystemResourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String fileSystemName, FileSystemResourceInner resource, Context context) { - context = this.client.mergeContext(context); + private PollerFlux, FileSystemResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String fileSystemName, FileSystemResourceInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, fileSystemName, resource, context); + = createOrUpdateWithResponseAsync(resourceGroupName, fileSystemName, resource); return this.client.getLroResult(mono, - this.client.getHttpPipeline(), FileSystemResourceInner.class, FileSystemResourceInner.class, context); + this.client.getHttpPipeline(), FileSystemResourceInner.class, FileSystemResourceInner.class, + this.client.getContext()); } /** @@ -646,7 +391,9 @@ private PollerFlux, FileSystemResourceInner> @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, FileSystemResourceInner> beginCreateOrUpdate(String resourceGroupName, String fileSystemName, FileSystemResourceInner resource) { - return this.beginCreateOrUpdateAsync(resourceGroupName, fileSystemName, resource).getSyncPoller(); + Response response = createOrUpdateWithResponse(resourceGroupName, fileSystemName, resource); + return this.client.getLroResult(response, + FileSystemResourceInner.class, FileSystemResourceInner.class, Context.NONE); } /** @@ -662,29 +409,13 @@ private PollerFlux, FileSystemResourceInner> * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this * type using a specific property type. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, FileSystemResourceInner> beginCreateOrUpdate( - String resourceGroupName, String fileSystemName, FileSystemResourceInner resource, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, fileSystemName, resource, context).getSyncPoller(); - } - - /** - * Create a FileSystemResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param fileSystemName Name of the File System resource. - * @param resource Resource create parameters. - * @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 concrete tracked resource types can be created by aliasing this type using a specific property type on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String fileSystemName, - FileSystemResourceInner resource) { - return beginCreateOrUpdateAsync(resourceGroupName, fileSystemName, resource).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, FileSystemResourceInner> beginCreateOrUpdate( + String resourceGroupName, String fileSystemName, FileSystemResourceInner resource, Context context) { + Response response + = createOrUpdateWithResponse(resourceGroupName, fileSystemName, resource, context); + return this.client.getLroResult(response, + FileSystemResourceInner.class, FileSystemResourceInner.class, context); } /** @@ -693,7 +424,6 @@ private Mono createOrUpdateAsync(String resourceGroupNa * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param fileSystemName Name of the File System resource. * @param resource Resource create parameters. - * @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. @@ -702,8 +432,8 @@ private Mono createOrUpdateAsync(String resourceGroupNa */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String fileSystemName, - FileSystemResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, fileSystemName, resource, context).last() + FileSystemResourceInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, fileSystemName, resource).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -721,7 +451,7 @@ private Mono createOrUpdateAsync(String resourceGroupNa @ServiceMethod(returns = ReturnType.SINGLE) public FileSystemResourceInner createOrUpdate(String resourceGroupName, String fileSystemName, FileSystemResourceInner resource) { - return createOrUpdateAsync(resourceGroupName, fileSystemName, resource).block(); + return beginCreateOrUpdate(resourceGroupName, fileSystemName, resource).getFinalResult(); } /** @@ -739,7 +469,7 @@ public FileSystemResourceInner createOrUpdate(String resourceGroupName, String f @ServiceMethod(returns = ReturnType.SINGLE) public FileSystemResourceInner createOrUpdate(String resourceGroupName, String fileSystemName, FileSystemResourceInner resource, Context context) { - return createOrUpdateAsync(resourceGroupName, fileSystemName, resource, context).block(); + return beginCreateOrUpdate(resourceGroupName, fileSystemName, resource, context).getFinalResult(); } /** @@ -757,75 +487,15 @@ public FileSystemResourceInner createOrUpdate(String resourceGroupName, String f @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String fileSystemName, FileSystemResourceUpdate properties) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (fileSystemName == null) { - return Mono.error(new IllegalArgumentException("Parameter fileSystemName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, fileSystemName, properties, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, fileSystemName, contentType, accept, properties, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - /** - * Update a FileSystemResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param fileSystemName Name of the File System resource. - * @param properties The resource properties to be updated. - * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String fileSystemName, FileSystemResourceUpdate properties, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (fileSystemName == null) { - return Mono.error(new IllegalArgumentException("Parameter fileSystemName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, fileSystemName, properties, accept, context); - } - /** * Update a FileSystemResource. * @@ -861,7 +531,11 @@ private Mono updateAsync(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String resourceGroupName, String fileSystemName, FileSystemResourceUpdate properties, Context context) { - return updateWithResponseAsync(resourceGroupName, fileSystemName, properties, context).block(); + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, fileSystemName, contentType, accept, properties, + context); } /** @@ -893,25 +567,9 @@ public FileSystemResourceInner update(String resourceGroupName, String fileSyste */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String fileSystemName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (fileSystemName == null) { - return Mono.error(new IllegalArgumentException("Parameter fileSystemName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, fileSystemName, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, fileSystemName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -920,34 +578,15 @@ private Mono>> deleteWithResponseAsync(String resource * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param fileSystemName Name of the File System resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String fileSystemName, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (fileSystemName == null) { - return Mono.error(new IllegalArgumentException("Parameter fileSystemName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, fileSystemName, accept, context); + private Response deleteWithResponse(String resourceGroupName, String fileSystemName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, fileSystemName, Context.NONE); } /** @@ -955,16 +594,16 @@ private Mono>> deleteWithResponseAsync(String resource * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param fileSystemName Name of the File System resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response body along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String fileSystemName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, fileSystemName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String fileSystemName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, fileSystemName, context); } /** @@ -972,19 +611,16 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param fileSystemName Name of the File System resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String fileSystemName, - Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, fileSystemName, context); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String fileSystemName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, fileSystemName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + this.client.getContext()); } /** @@ -999,7 +635,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String fileSystemName) { - return this.beginDeleteAsync(resourceGroupName, fileSystemName).getSyncPoller(); + Response response = deleteWithResponse(resourceGroupName, fileSystemName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -1016,7 +653,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String fileSystemName, Context context) { - return this.beginDeleteAsync(resourceGroupName, fileSystemName, context).getSyncPoller(); + Response response = deleteWithResponse(resourceGroupName, fileSystemName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -1040,16 +678,13 @@ private Mono deleteAsync(String resourceGroupName, String fileSystemName) * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param fileSystemName Name of the File System resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String fileSystemName, Context context) { - return beginDeleteAsync(resourceGroupName, fileSystemName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + public void delete(String resourceGroupName, String fileSystemName) { + beginDelete(resourceGroupName, fileSystemName).getFinalResult(); } /** @@ -1057,28 +692,212 @@ private Mono deleteAsync(String resourceGroupName, String fileSystemName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param fileSystemName Name of the File System resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String fileSystemName) { - deleteAsync(resourceGroupName, fileSystemName).block(); + public void delete(String resourceGroupName, String fileSystemName, Context context) { + beginDelete(resourceGroupName, fileSystemName, context).getFinalResult(); } /** - * Delete a FileSystemResource. + * List FileSystemResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List FileSystemResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * List FileSystemResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List FileSystemResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param fileSystemName Name of the File System resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String fileSystemName, Context context) { - deleteAsync(resourceGroupName, fileSystemName, context).block(); + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, + Context context) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List FileSystemResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); + } + + /** + * List FileSystemResource resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); + } + + /** + * List FileSystemResource resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List FileSystemResource resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * List FileSystemResource resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List FileSystemResource resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List FileSystemResource resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); + } + + /** + * List FileSystemResource resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), + nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); } /** @@ -1092,23 +911,34 @@ public void delete(String resourceGroupName, String fileSystemName, Context cont * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext( - context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -1117,24 +947,15 @@ private Mono> listBySubscriptionNextSingl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FileSystemResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -1148,23 +969,34 @@ private Mono> listBySubscriptionNextSingl * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -1173,23 +1005,14 @@ private Mono> listByResourceGroupNextSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FileSystemResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, - Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsImpl.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsImpl.java index bbd2ac04a2eb..79328b0e96f3 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsImpl.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.implementation; @@ -27,37 +27,12 @@ public FileSystemsImpl(FileSystemsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new FileSystemResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new FileSystemResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new FileSystemResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new FileSystemResourceImpl(inner1, this.manager())); - } - public Response getByResourceGroupWithResponse(String resourceGroupName, String fileSystemName, Context context) { Response inner = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, fileSystemName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new FileSystemResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new FileSystemResourceImpl(inner.getValue(), this.manager())); } public FileSystemResource getByResourceGroup(String resourceGroupName, String fileSystemName) { @@ -77,6 +52,27 @@ public void delete(String resourceGroupName, String fileSystemName, Context cont this.serviceClient().delete(resourceGroupName, fileSystemName, context); } + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new FileSystemResourceImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new FileSystemResourceImpl(inner1, this.manager())); + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new FileSystemResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new FileSystemResourceImpl(inner1, this.manager())); + } + public FileSystemResource getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationImpl.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationImpl.java index 85543ec7fb5b..f642f896e48f 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationImpl.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.implementation; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsClientImpl.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsClientImpl.java index b3c3f435320b..b8093cf46bb4 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsClientImpl.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.qumulo.fluent.OperationsClient; import com.azure.resourcemanager.qumulo.fluent.models.OperationInner; -import com.azure.resourcemanager.qumulo.models.OperationListResult; +import com.azure.resourcemanager.qumulo.implementation.models.OperationListResult; import reactor.core.publisher.Mono; /** @@ -42,31 +42,38 @@ public final class OperationsClientImpl implements OperationsClient { /** * The service client containing this operation class. */ - private final QumuloStorageImpl client; + private final QumuloManagementClientImpl client; /** * Initializes an instance of OperationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - OperationsClientImpl(QumuloStorageImpl client) { + OperationsClientImpl(QumuloManagementClientImpl client) { this.service = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for QumuloStorageOperations to be used by the proxy service to perform - * REST calls. + * The interface defining all the services for QumuloManagementClientOperations to be used by the proxy service to + * perform REST calls. */ - @Host("{$host}") - @ServiceInterface(name = "QumuloStorageOperati") + @Host("{endpoint}") + @ServiceInterface(name = "QumuloManagementClientOperations") public interface OperationsService { @Headers({ "Content-Type: application/json" }) @Get("/providers/Qumulo.Storage/operations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/providers/Qumulo.Storage/operations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -74,7 +81,14 @@ Mono> list(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** @@ -87,10 +101,6 @@ Mono> listNext(@PathParam(value = "nextLink", enco */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext( @@ -103,24 +113,14 @@ private Mono> listSinglePageAsync() { /** * List the operations for the provider. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** @@ -128,12 +128,15 @@ private Mono> listSinglePageAsync(Context context) * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with - * {@link PagedFlux}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -143,13 +146,15 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with - * {@link PagedFlux}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -162,7 +167,7 @@ private PagedFlux listAsync(Context context) { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { - return new PagedIterable<>(listAsync()); + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); } /** @@ -177,7 +182,7 @@ public PagedIterable list() { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -192,13 +197,6 @@ public PagedIterable list(Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), @@ -206,6 +204,24 @@ private Mono> listNextSinglePageAsync(String nextL .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + /** * Get the next page of items. * @@ -214,22 +230,13 @@ private Mono> listNextSinglePageAsync(String nextL * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsImpl.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsImpl.java index 84d30b58ba48..fc6cd4d04b27 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsImpl.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.implementation; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloStorageBuilder.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientBuilder.java similarity index 64% rename from sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloStorageBuilder.java rename to sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientBuilder.java index e77215bf8e9f..a4a90c9d6cae 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloStorageBuilder.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientBuilder.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.implementation; @@ -15,39 +15,39 @@ import java.time.Duration; /** - * A builder for creating a new instance of the QumuloStorageImpl type. + * A builder for creating a new instance of the QumuloManagementClientImpl type. */ -@ServiceClientBuilder(serviceClients = { QumuloStorageImpl.class }) -public final class QumuloStorageBuilder { +@ServiceClientBuilder(serviceClients = { QumuloManagementClientImpl.class }) +public final class QumuloManagementClientBuilder { /* - * The ID of the target subscription. + * Service host */ - private String subscriptionId; + private String endpoint; /** - * Sets The ID of the target subscription. + * Sets Service host. * - * @param subscriptionId the subscriptionId value. - * @return the QumuloStorageBuilder. + * @param endpoint the endpoint value. + * @return the QumuloManagementClientBuilder. */ - public QumuloStorageBuilder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; + public QumuloManagementClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; return this; } /* - * server parameter + * The ID of the target subscription. The value must be an UUID. */ - private String endpoint; + private String subscriptionId; /** - * Sets server parameter. + * Sets The ID of the target subscription. The value must be an UUID. * - * @param endpoint the endpoint value. - * @return the QumuloStorageBuilder. + * @param subscriptionId the subscriptionId value. + * @return the QumuloManagementClientBuilder. */ - public QumuloStorageBuilder endpoint(String endpoint) { - this.endpoint = endpoint; + public QumuloManagementClientBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; return this; } @@ -60,9 +60,9 @@ public QumuloStorageBuilder endpoint(String endpoint) { * Sets The environment to connect to. * * @param environment the environment value. - * @return the QumuloStorageBuilder. + * @return the QumuloManagementClientBuilder. */ - public QumuloStorageBuilder environment(AzureEnvironment environment) { + public QumuloManagementClientBuilder environment(AzureEnvironment environment) { this.environment = environment; return this; } @@ -76,9 +76,9 @@ public QumuloStorageBuilder environment(AzureEnvironment environment) { * Sets The HTTP pipeline to send requests through. * * @param pipeline the pipeline value. - * @return the QumuloStorageBuilder. + * @return the QumuloManagementClientBuilder. */ - public QumuloStorageBuilder pipeline(HttpPipeline pipeline) { + public QumuloManagementClientBuilder pipeline(HttpPipeline pipeline) { this.pipeline = pipeline; return this; } @@ -92,9 +92,9 @@ public QumuloStorageBuilder pipeline(HttpPipeline pipeline) { * Sets The default poll interval for long-running operation. * * @param defaultPollInterval the defaultPollInterval value. - * @return the QumuloStorageBuilder. + * @return the QumuloManagementClientBuilder. */ - public QumuloStorageBuilder defaultPollInterval(Duration defaultPollInterval) { + public QumuloManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { this.defaultPollInterval = defaultPollInterval; return this; } @@ -108,19 +108,19 @@ public QumuloStorageBuilder defaultPollInterval(Duration defaultPollInterval) { * Sets The serializer to serialize an object into a string. * * @param serializerAdapter the serializerAdapter value. - * @return the QumuloStorageBuilder. + * @return the QumuloManagementClientBuilder. */ - public QumuloStorageBuilder serializerAdapter(SerializerAdapter serializerAdapter) { + public QumuloManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { this.serializerAdapter = serializerAdapter; return this; } /** - * Builds an instance of QumuloStorageImpl with the provided parameters. + * Builds an instance of QumuloManagementClientImpl with the provided parameters. * - * @return an instance of QumuloStorageImpl. + * @return an instance of QumuloManagementClientImpl. */ - public QumuloStorageImpl buildClient() { + public QumuloManagementClientImpl buildClient() { String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; HttpPipeline localPipeline = (pipeline != null) @@ -131,8 +131,8 @@ public QumuloStorageImpl buildClient() { SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); - QumuloStorageImpl client = new QumuloStorageImpl(localPipeline, localSerializerAdapter, - localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); + QumuloManagementClientImpl client = new QumuloManagementClientImpl(localPipeline, localSerializerAdapter, + localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId); return client; } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloStorageImpl.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientImpl.java similarity index 81% rename from sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloStorageImpl.java rename to sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientImpl.java index bf91f3bab312..a9f35714ce1e 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloStorageImpl.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.implementation; @@ -13,19 +13,22 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.management.exception.ManagementError; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollerFactory; import com.azure.core.management.polling.PollResult; +import com.azure.core.management.polling.PollerFactory; +import com.azure.core.management.polling.SyncPollerFactory; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; import com.azure.resourcemanager.qumulo.fluent.FileSystemsClient; import com.azure.resourcemanager.qumulo.fluent.OperationsClient; -import com.azure.resourcemanager.qumulo.fluent.QumuloStorage; +import com.azure.resourcemanager.qumulo.fluent.QumuloManagementClient; import java.io.IOException; import java.lang.reflect.Type; import java.nio.ByteBuffer; @@ -36,31 +39,17 @@ import reactor.core.publisher.Mono; /** - * Initializes a new instance of the QumuloStorageImpl type. + * Initializes a new instance of the QumuloManagementClientImpl type. */ -@ServiceClient(builder = QumuloStorageBuilder.class) -public final class QumuloStorageImpl implements QumuloStorage { - /** - * The ID of the target subscription. - */ - private final String subscriptionId; - - /** - * Gets The ID of the target subscription. - * - * @return the subscriptionId value. - */ - public String getSubscriptionId() { - return this.subscriptionId; - } - +@ServiceClient(builder = QumuloManagementClientBuilder.class) +public final class QumuloManagementClientImpl implements QumuloManagementClient { /** - * server parameter. + * Service host. */ private final String endpoint; /** - * Gets server parameter. + * Gets Service host. * * @return the endpoint value. */ @@ -69,12 +58,12 @@ public String getEndpoint() { } /** - * Api Version. + * Version parameter. */ private final String apiVersion; /** - * Gets Api Version. + * Gets Version parameter. * * @return the apiVersion value. */ @@ -82,6 +71,20 @@ public String getApiVersion() { return this.apiVersion; } + /** + * The ID of the target subscription. The value must be an UUID. + */ + private final String subscriptionId; + + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + /** * The HTTP pipeline to send requests through. */ @@ -153,23 +156,23 @@ public FileSystemsClient getFileSystems() { } /** - * Initializes an instance of QumuloStorage client. + * Initializes an instance of QumuloManagementClient client. * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. - * @param subscriptionId The ID of the target subscription. - * @param endpoint server parameter. + * @param endpoint Service host. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. */ - QumuloStorageImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval, - AzureEnvironment environment, String subscriptionId, String endpoint) { + QumuloManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, + Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; - this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2024-06-19"; + this.subscriptionId = subscriptionId; + this.apiVersion = "2026-04-16"; this.operations = new OperationsClientImpl(this); this.fileSystems = new FileSystemsClientImpl(this); } @@ -211,6 +214,23 @@ public PollerFlux, U> getLroResult(Mono type of poll result. + * @param type of final result. + * @return SyncPoller for poll result and final result. + */ + public SyncPoller, U> getLroResult(Response activationResponse, + Type pollResultType, Type finalResultType, Context context) { + return SyncPollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType, + defaultPollInterval, () -> activationResponse, context); + } + /** * Gets the final result, or an error, based on last async poll response. * @@ -268,7 +288,7 @@ private static final class HttpResponseImpl extends HttpResponse { super(null); this.statusCode = statusCode; this.httpHeaders = httpHeaders; - this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8); + this.responseBody = responseBody == null ? new byte[0] : responseBody.getBytes(StandardCharsets.UTF_8); } public int getStatusCode() { @@ -300,5 +320,5 @@ public Mono getBodyAsString(Charset charset) { } } - private static final ClientLogger LOGGER = new ClientLogger(QumuloStorageImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(QumuloManagementClientImpl.class); } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/ResourceManagerUtils.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/ResourceManagerUtils.java index 06dfd477c522..4f6f7a88f8b4 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/ResourceManagerUtils.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/ResourceManagerUtils.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.implementation; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceListResult.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/models/FileSystemResourceListResult.java similarity index 67% rename from sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceListResult.java rename to sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/models/FileSystemResourceListResult.java index 9f985bc2c154..b30862b8d4a5 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceListResult.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/models/FileSystemResourceListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.qumulo.models; +package com.azure.resourcemanager.qumulo.implementation.models; -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -17,7 +16,7 @@ /** * The response of a FileSystemResource list operation. */ -@Fluent +@Immutable public final class FileSystemResourceListResult implements JsonSerializable { /* * The FileSystemResource items on this page @@ -32,7 +31,7 @@ public final class FileSystemResourceListResult implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The FileSystemResource items on this page. - * - * @param value the value value to set. - * @return the FileSystemResourceListResult object itself. - */ - public FileSystemResourceListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,34 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the FileSystemResourceListResult object itself. - */ - public FileSystemResourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model FileSystemResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(FileSystemResourceListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/OperationListResult.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/models/OperationListResult.java similarity index 78% rename from sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/OperationListResult.java rename to sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/models/OperationListResult.java index 6d2cf7e672c3..8b33e3e1996e 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/OperationListResult.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/models/OperationListResult.java @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.qumulo.models; +package com.azure.resourcemanager.qumulo.implementation.models; import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; @@ -20,23 +20,23 @@ @Immutable public final class OperationListResult implements JsonSerializable { /* - * List of operations supported by the resource provider + * The Operation items on this page */ private List value; /* - * URL to get the next set of operation list results (if there are any). + * The link to the next page of items */ private String nextLink; /** * Creates an instance of OperationListResult class. */ - public OperationListResult() { + private OperationListResult() { } /** - * Get the value property: List of operations supported by the resource provider. + * Get the value property: The Operation items on this page. * * @return the value value. */ @@ -45,7 +45,7 @@ public List value() { } /** - * Get the nextLink property: URL to get the next set of operation list results (if there are any). + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -53,23 +53,14 @@ public String nextLink() { return this.nextLink; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - /** * {@inheritDoc} */ @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -79,6 +70,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of OperationListResult 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 OperationListResult. */ public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/package-info.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/package-info.java index 4fc69595632b..93dbfed00437 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/package-info.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the implementations for QumuloStorage. - * null. + * Package containing the implementations for Qumulo. */ package com.azure.resourcemanager.qumulo.implementation; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ActionType.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ActionType.java index fe9cd9f49229..c77253d4c3b2 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ActionType.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ActionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -8,11 +8,11 @@ import java.util.Collection; /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ public final class ActionType extends ExpandableStringEnum { /** - * Static value Internal for ActionType. + * Actions are for internal-only APIs. */ public static final ActionType INTERNAL = fromString("Internal"); diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java index 32ced874794e..ed95ce33710e 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -8,7 +8,6 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.qumulo.fluent.models.FileSystemResourceInner; -import java.util.List; import java.util.Map; /** @@ -50,6 +49,13 @@ public interface FileSystemResource { */ Map tags(); + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + FileSystemResourceProperties properties(); + /** * Gets the identity property: The managed service identities assigned to this resource. * @@ -64,69 +70,6 @@ public interface FileSystemResource { */ SystemData systemData(); - /** - * Gets the marketplaceDetails property: Marketplace details. - * - * @return the marketplaceDetails value. - */ - MarketplaceDetails marketplaceDetails(); - - /** - * Gets the provisioningState property: Provisioning State of the resource. - * - * @return the provisioningState value. - */ - ProvisioningState provisioningState(); - - /** - * Gets the storageSku property: Storage Sku. - * - * @return the storageSku value. - */ - String storageSku(); - - /** - * Gets the userDetails property: User Details. - * - * @return the userDetails value. - */ - UserDetails userDetails(); - - /** - * Gets the delegatedSubnetId property: Delegated subnet id for Vnet injection. - * - * @return the delegatedSubnetId value. - */ - String delegatedSubnetId(); - - /** - * Gets the clusterLoginUrl property: File system Id of the resource. - * - * @return the clusterLoginUrl value. - */ - String clusterLoginUrl(); - - /** - * Gets the privateIPs property: Private IPs of the resource. - * - * @return the privateIPs value. - */ - List privateIPs(); - - /** - * Gets the adminPassword property: Initial administrator password of the resource. - * - * @return the adminPassword value. - */ - String adminPassword(); - - /** - * Gets the availabilityZone property: Availability zone. - * - * @return the availabilityZone value. - */ - String availabilityZone(); - /** * Gets the region of the resource. * @@ -210,10 +153,8 @@ interface WithResourceGroup { * The stage of the FileSystemResource definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, - DefinitionStages.WithMarketplaceDetails, DefinitionStages.WithStorageSku, DefinitionStages.WithUserDetails, - DefinitionStages.WithDelegatedSubnetId, DefinitionStages.WithClusterLoginUrl, - DefinitionStages.WithPrivateIPs, DefinitionStages.WithAdminPassword, DefinitionStages.WithAvailabilityZone { + interface WithCreate + extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithIdentity { /** * Executes the create request. * @@ -244,120 +185,29 @@ interface WithTags { } /** - * The stage of the FileSystemResource definition allowing to specify identity. + * The stage of the FileSystemResource definition allowing to specify properties. */ - 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); - } - - /** - * The stage of the FileSystemResource definition allowing to specify marketplaceDetails. - */ - interface WithMarketplaceDetails { - /** - * Specifies the marketplaceDetails property: Marketplace details. - * - * @param marketplaceDetails Marketplace details. - * @return the next definition stage. - */ - WithCreate withMarketplaceDetails(MarketplaceDetails marketplaceDetails); - } - - /** - * The stage of the FileSystemResource definition allowing to specify storageSku. - */ - interface WithStorageSku { - /** - * Specifies the storageSku property: Storage Sku. - * - * @param storageSku Storage Sku. - * @return the next definition stage. - */ - WithCreate withStorageSku(String storageSku); - } - - /** - * The stage of the FileSystemResource definition allowing to specify userDetails. - */ - interface WithUserDetails { - /** - * Specifies the userDetails property: User Details. - * - * @param userDetails User Details. - * @return the next definition stage. - */ - WithCreate withUserDetails(UserDetails userDetails); - } - - /** - * The stage of the FileSystemResource definition allowing to specify delegatedSubnetId. - */ - interface WithDelegatedSubnetId { - /** - * Specifies the delegatedSubnetId property: Delegated subnet id for Vnet injection. - * - * @param delegatedSubnetId Delegated subnet id for Vnet injection. - * @return the next definition stage. - */ - WithCreate withDelegatedSubnetId(String delegatedSubnetId); - } - - /** - * The stage of the FileSystemResource definition allowing to specify clusterLoginUrl. - */ - interface WithClusterLoginUrl { - /** - * Specifies the clusterLoginUrl property: File system Id of the resource. - * - * @param clusterLoginUrl File system Id of the resource. - * @return the next definition stage. - */ - WithCreate withClusterLoginUrl(String clusterLoginUrl); - } - - /** - * The stage of the FileSystemResource definition allowing to specify privateIPs. - */ - interface WithPrivateIPs { - /** - * Specifies the privateIPs property: Private IPs of the resource. - * - * @param privateIPs Private IPs of the resource. - * @return the next definition stage. - */ - WithCreate withPrivateIPs(List privateIPs); - } - - /** - * The stage of the FileSystemResource definition allowing to specify adminPassword. - */ - interface WithAdminPassword { + interface WithProperties { /** - * Specifies the adminPassword property: Initial administrator password of the resource. + * Specifies the properties property: The resource-specific properties for this resource.. * - * @param adminPassword Initial administrator password of the resource. + * @param properties The resource-specific properties for this resource. * @return the next definition stage. */ - WithCreate withAdminPassword(String adminPassword); + WithCreate withProperties(FileSystemResourceProperties properties); } /** - * The stage of the FileSystemResource definition allowing to specify availabilityZone. + * The stage of the FileSystemResource definition allowing to specify identity. */ - interface WithAvailabilityZone { + interface WithIdentity { /** - * Specifies the availabilityZone property: Availability zone. + * Specifies the identity property: The managed service identities assigned to this resource.. * - * @param availabilityZone Availability zone. + * @param identity The managed service identities assigned to this resource. * @return the next definition stage. */ - WithCreate withAvailabilityZone(String availabilityZone); + WithCreate withIdentity(ManagedServiceIdentity identity); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceProperties.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceProperties.java similarity index 84% rename from sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceProperties.java rename to sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceProperties.java index d90b63ac5b04..5001b2a4ae77 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceProperties.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceProperties.java @@ -1,18 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.qumulo.fluent.models; +package com.azure.resourcemanager.qumulo.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.qumulo.models.MarketplaceDetails; -import com.azure.resourcemanager.qumulo.models.ProvisioningState; -import com.azure.resourcemanager.qumulo.models.UserDetails; import java.io.IOException; import java.util.List; @@ -46,6 +42,11 @@ public final class FileSystemResourceProperties implements JsonSerializable writer.writeString(element)); jsonWriter.writeStringField("availabilityZone", this.availabilityZone); @@ -326,6 +309,8 @@ public static FileSystemResourceProperties fromJson(JsonReader jsonReader) throw } else if ("provisioningState".equals(fieldName)) { deserializedFileSystemResourceProperties.provisioningState = ProvisioningState.fromString(reader.getString()); + } else if ("performanceTier".equals(fieldName)) { + deserializedFileSystemResourceProperties.performanceTier = reader.getString(); } else if ("clusterLoginUrl".equals(fieldName)) { deserializedFileSystemResourceProperties.clusterLoginUrl = reader.getString(); } else if ("privateIPs".equals(fieldName)) { diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdate.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdate.java index 193de3ce8a2b..4cb7a07e0aac 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdate.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -98,20 +98,6 @@ public FileSystemResourceUpdate withProperties(FileSystemResourceUpdatePropertie return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (properties() != null) { - properties().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdateProperties.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdateProperties.java index 2e3ca124b404..368bd60fd392 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdateProperties.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdateProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -31,6 +31,11 @@ public final class FileSystemResourceUpdateProperties implements JsonSerializabl */ private String delegatedSubnetId; + /* + * Pre-Provisioned Performance of the Resource + */ + private String performanceTier; + /** * Creates an instance of FileSystemResourceUpdateProperties class. */ @@ -98,17 +103,23 @@ public FileSystemResourceUpdateProperties withDelegatedSubnetId(String delegated } /** - * Validates the instance. + * Get the performanceTier property: Pre-Provisioned Performance of the Resource. + * + * @return the performanceTier value. + */ + public String performanceTier() { + return this.performanceTier; + } + + /** + * Set the performanceTier property: Pre-Provisioned Performance of the Resource. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @param performanceTier the performanceTier value to set. + * @return the FileSystemResourceUpdateProperties object itself. */ - public void validate() { - if (marketplaceDetails() != null) { - marketplaceDetails().validate(); - } - if (userDetails() != null) { - userDetails().validate(); - } + public FileSystemResourceUpdateProperties withPerformanceTier(String performanceTier) { + this.performanceTier = performanceTier; + return this; } /** @@ -120,6 +131,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("marketplaceDetails", this.marketplaceDetails); jsonWriter.writeJsonField("userDetails", this.userDetails); jsonWriter.writeStringField("delegatedSubnetId", this.delegatedSubnetId); + jsonWriter.writeStringField("performanceTier", this.performanceTier); return jsonWriter.writeEndObject(); } @@ -146,6 +158,8 @@ public static FileSystemResourceUpdateProperties fromJson(JsonReader jsonReader) deserializedFileSystemResourceUpdateProperties.userDetails = UserDetails.fromJson(reader); } else if ("delegatedSubnetId".equals(fieldName)) { deserializedFileSystemResourceUpdateProperties.delegatedSubnetId = reader.getString(); + } else if ("performanceTier".equals(fieldName)) { + deserializedFileSystemResourceUpdateProperties.performanceTier = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystems.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystems.java index 579144171c4d..39a30dec0e8d 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystems.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystems.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -13,96 +13,96 @@ */ public interface FileSystems { /** - * List FileSystemResource resources by subscription ID. + * Get a FileSystemResource. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fileSystemName Name of the File System resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. + * @return a FileSystemResource along with {@link Response}. */ - PagedIterable list(); + Response getByResourceGroupWithResponse(String resourceGroupName, String fileSystemName, + Context context); /** - * List FileSystemResource resources by subscription ID. + * Get a FileSystemResource. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fileSystemName Name of the File System resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. + * @return a FileSystemResource. */ - PagedIterable list(Context context); + FileSystemResource getByResourceGroup(String resourceGroupName, String fileSystemName); /** - * List FileSystemResource resources by resource group. + * Delete a FileSystemResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fileSystemName Name of the File System resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + void deleteByResourceGroup(String resourceGroupName, String fileSystemName); /** - * List FileSystemResource resources by resource group. + * Delete a FileSystemResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fileSystemName Name of the File System resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + void delete(String resourceGroupName, String fileSystemName, Context context); /** - * Get a FileSystemResource. + * List FileSystemResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param fileSystemName Name of the File System resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FileSystemResource along with {@link Response}. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String fileSystemName, - Context context); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * Get a FileSystemResource. + * List FileSystemResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param fileSystemName Name of the File System resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a FileSystemResource. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. */ - FileSystemResource getByResourceGroup(String resourceGroupName, String fileSystemName); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Delete a FileSystemResource. + * List FileSystemResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param fileSystemName Name of the File System resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. */ - void deleteByResourceGroup(String resourceGroupName, String fileSystemName); + PagedIterable list(); /** - * Delete a FileSystemResource. + * List FileSystemResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param fileSystemName Name of the File System resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FileSystemResource list operation as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String fileSystemName, Context context); + PagedIterable list(Context context); /** * Get a FileSystemResource. diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentity.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentity.java index 15d3ada213c9..1e25709cbca4 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentity.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentity.java @@ -1,18 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; 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; -import java.util.UUID; /** * Managed service identity (system assigned and/or user assigned identities). @@ -23,24 +21,21 @@ public final class ManagedServiceIdentity implements JsonSerializable userAssignedIdentities; @@ -56,7 +51,7 @@ public ManagedServiceIdentity() { * * @return the principalId value. */ - public UUID principalId() { + public String principalId() { return this.principalId; } @@ -66,13 +61,12 @@ public UUID principalId() { * * @return the tenantId value. */ - public UUID tenantId() { + public String tenantId() { return this.tenantId; } /** - * Get the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are - * allowed). + * Get the type property: The type of managed identity assigned to this resource. * * @return the type value. */ @@ -81,8 +75,7 @@ public ManagedServiceIdentityType type() { } /** - * Set the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are - * allowed). + * 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. @@ -93,10 +86,7 @@ public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { } /** - * Get the userAssignedIdentities property: The set of user assigned identities associated with the resource. The - * userAssignedIdentities dictionary keys will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - * The dictionary values can be empty objects ({}) in requests. + * Get the userAssignedIdentities property: The identities assigned to this resource by the user. * * @return the userAssignedIdentities value. */ @@ -105,10 +95,7 @@ public Map userAssignedIdentities() { } /** - * Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The - * userAssignedIdentities dictionary keys will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - * The dictionary values can be empty objects ({}) in requests. + * 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. @@ -118,27 +105,6 @@ public ManagedServiceIdentity withUserAssignedIdentities(Map { - if (e != null) { - e.validate(); - } - }); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedServiceIdentity.class); - /** * {@inheritDoc} */ @@ -170,11 +136,9 @@ public static ManagedServiceIdentity fromJson(JsonReader jsonReader) throws IOEx if ("type".equals(fieldName)) { deserializedManagedServiceIdentity.type = ManagedServiceIdentityType.fromString(reader.getString()); } else if ("principalId".equals(fieldName)) { - deserializedManagedServiceIdentity.principalId - = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); + deserializedManagedServiceIdentity.principalId = reader.getString(); } else if ("tenantId".equals(fieldName)) { - deserializedManagedServiceIdentity.tenantId - = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); + deserializedManagedServiceIdentity.tenantId = reader.getString(); } else if ("userAssignedIdentities".equals(fieldName)) { Map userAssignedIdentities = reader.readMap(reader1 -> UserAssignedIdentity.fromJson(reader1)); diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentityType.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentityType.java index 22b026aa7bbc..ed10fefa22dd 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentityType.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentityType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -12,22 +12,22 @@ */ public final class ManagedServiceIdentityType extends ExpandableStringEnum { /** - * Static value None for ManagedServiceIdentityType. + * No managed identity. */ public static final ManagedServiceIdentityType NONE = fromString("None"); /** - * Static value SystemAssigned for ManagedServiceIdentityType. + * System assigned managed identity. */ public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); /** - * Static value UserAssigned for ManagedServiceIdentityType. + * User assigned managed identity. */ public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); /** - * Static value SystemAssigned,UserAssigned for ManagedServiceIdentityType. + * System and user assigned managed identity. */ public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = fromString("SystemAssigned,UserAssigned"); diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceDetails.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceDetails.java index 3941219dd8b0..e3f10b43aa64 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceDetails.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceDetails.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -162,24 +161,6 @@ public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() { return this.marketplaceSubscriptionStatus; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (planId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property planId in model MarketplaceDetails")); - } - if (offerId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property offerId in model MarketplaceDetails")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(MarketplaceDetails.class); - /** * {@inheritDoc} */ diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceSubscriptionStatus.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceSubscriptionStatus.java index 54c935f0c32f..fc648aeaea2c 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceSubscriptionStatus.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceSubscriptionStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -12,22 +12,22 @@ */ public final class MarketplaceSubscriptionStatus extends ExpandableStringEnum { /** - * Static value PendingFulfillmentStart for MarketplaceSubscriptionStatus. + * Fulfillment has not started. */ public static final MarketplaceSubscriptionStatus PENDING_FULFILLMENT_START = fromString("PendingFulfillmentStart"); /** - * Static value Subscribed for MarketplaceSubscriptionStatus. + * Marketplace offer is subscribed. */ public static final MarketplaceSubscriptionStatus SUBSCRIBED = fromString("Subscribed"); /** - * Static value Suspended for MarketplaceSubscriptionStatus. + * Marketplace offer is suspended because of non payment. */ public static final MarketplaceSubscriptionStatus SUSPENDED = fromString("Suspended"); /** - * Static value Unsubscribed for MarketplaceSubscriptionStatus. + * Marketplace offer is unsubscribed. */ public static final MarketplaceSubscriptionStatus UNSUBSCRIBED = fromString("Unsubscribed"); diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/Operation.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/Operation.java index 505637355b3b..ef183f92633d 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/Operation.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/Operation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -20,7 +20,7 @@ public interface Operation { /** * Gets the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane - * operations and "false" for ARM/control-plane operations. + * operations and "false" for Azure Resource Manager/control-plane operations. * * @return the isDataAction value. */ @@ -42,8 +42,8 @@ public interface Operation { Origin origin(); /** - * Gets the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal - * only APIs. + * Gets the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. * * @return the actionType value. */ diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/OperationDisplay.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/OperationDisplay.java index 0216c25c90d1..17db882d5f0c 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/OperationDisplay.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/OperationDisplay.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -12,7 +12,7 @@ import java.io.IOException; /** - * Localized display information for this particular operation. + * Localized display information for an operation. */ @Immutable public final class OperationDisplay implements JsonSerializable { @@ -42,7 +42,7 @@ public final class OperationDisplay implements JsonSerializable { /** - * Static value user for Origin. + * Indicates the operation is initiated by a user. */ public static final Origin USER = fromString("user"); /** - * Static value system for Origin. + * Indicates the operation is initiated by a system. */ public static final Origin SYSTEM = fromString("system"); /** - * Static value user,system for Origin. + * Indicates the operation is initiated by a user or system. */ public static final Origin USER_SYSTEM = fromString("user,system"); diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ProvisioningState.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ProvisioningState.java index 37a7a95f4ef3..ebebc47786a8 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ProvisioningState.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/ProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -12,42 +12,42 @@ */ public final class ProvisioningState extends ExpandableStringEnum { /** - * Static value Accepted for ProvisioningState. + * File system resource creation request accepted. */ public static final ProvisioningState ACCEPTED = fromString("Accepted"); /** - * Static value Creating for ProvisioningState. + * File system resource creation started. */ public static final ProvisioningState CREATING = fromString("Creating"); /** - * Static value Updating for ProvisioningState. + * File system resource is being updated. */ public static final ProvisioningState UPDATING = fromString("Updating"); /** - * Static value Deleting for ProvisioningState. + * File system resource deletion started. */ public static final ProvisioningState DELETING = fromString("Deleting"); /** - * Static value Succeeded for ProvisioningState. + * File system resource creation successful. */ public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); /** - * Static value Failed for ProvisioningState. + * File system resource creation failed. */ public static final ProvisioningState FAILED = fromString("Failed"); /** - * Static value Canceled for ProvisioningState. + * File system resource creation canceled. */ public static final ProvisioningState CANCELED = fromString("Canceled"); /** - * Static value Deleted for ProvisioningState. + * File system resource is deleted. */ public static final ProvisioningState DELETED = fromString("Deleted"); diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/UserAssignedIdentity.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/UserAssignedIdentity.java index 0de9b9b9ea34..51619bae087c 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/UserAssignedIdentity.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/UserAssignedIdentity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; @@ -10,7 +10,6 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; -import java.util.UUID; /** * User assigned identity properties. @@ -20,12 +19,12 @@ public final class UserAssignedIdentity implements JsonSerializable UUID.fromString(nonNullReader.getString())); + deserializedUserAssignedIdentity.principalId = reader.getString(); } else if ("clientId".equals(fieldName)) { - deserializedUserAssignedIdentity.clientId - = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); + deserializedUserAssignedIdentity.clientId = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/UserDetails.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/UserDetails.java index dc11ef094205..b744a14e275f 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/UserDetails.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/UserDetails.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -48,20 +47,6 @@ public UserDetails withEmail(String email) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (email() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property email in model UserDetails")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(UserDetails.class); - /** * {@inheritDoc} */ diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/package-info.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/package-info.java index 88ca4a6bb32c..49989a3266f4 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/package-info.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the data models for QumuloStorage. - * null. + * Package containing the data models for Qumulo. */ package com.azure.resourcemanager.qumulo.models; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/package-info.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/package-info.java index 96630d7093b5..7d58d087029b 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/package-info.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the classes for QumuloStorage. - * null. + * Package containing the classes for Qumulo. */ package com.azure.resourcemanager.qumulo; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/module-info.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/module-info.java index f3c22c39e1d2..a54662347e46 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/module-info.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/module-info.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. module com.azure.resourcemanager.qumulo { requires transitive com.azure.core.management; @@ -12,4 +12,5 @@ opens com.azure.resourcemanager.qumulo.fluent.models to com.azure.core; opens com.azure.resourcemanager.qumulo.models to com.azure.core; + opens com.azure.resourcemanager.qumulo.implementation.models to com.azure.core; } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/META-INF/azure-resourcemanager-qumulo_metadata.json b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/META-INF/azure-resourcemanager-qumulo_metadata.json new file mode 100644 index 000000000000..db8952218c66 --- /dev/null +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/META-INF/azure-resourcemanager-qumulo_metadata.json @@ -0,0 +1 @@ +{"flavor":"azure","apiVersions":{"Qumulo.Storage":"2026-04-16"},"crossLanguagePackageId":"Qumulo.Storage","crossLanguageVersion":"f2e16fac6187","crossLanguageDefinitions":{"com.azure.resourcemanager.qumulo.fluent.FileSystemsClient":"Qumulo.Storage.FileSystems","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.beginCreateOrUpdate":"Qumulo.Storage.FileSystems.createOrUpdate","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.beginDelete":"Qumulo.Storage.FileSystems.delete","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.createOrUpdate":"Qumulo.Storage.FileSystems.createOrUpdate","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.delete":"Qumulo.Storage.FileSystems.delete","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.getByResourceGroup":"Qumulo.Storage.FileSystems.get","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.getByResourceGroupWithResponse":"Qumulo.Storage.FileSystems.get","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.list":"Qumulo.Storage.FileSystems.listBySubscription","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.listByResourceGroup":"Qumulo.Storage.FileSystems.listByResourceGroup","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.update":"Qumulo.Storage.FileSystems.update","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.updateWithResponse":"Qumulo.Storage.FileSystems.update","com.azure.resourcemanager.qumulo.fluent.OperationsClient":"Qumulo.Storage.Operations","com.azure.resourcemanager.qumulo.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.qumulo.fluent.QumuloManagementClient":"Qumulo.Storage","com.azure.resourcemanager.qumulo.fluent.models.FileSystemResourceInner":"LiftrBase.Storage.FileSystemResource","com.azure.resourcemanager.qumulo.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.qumulo.implementation.QumuloManagementClientBuilder":"Qumulo.Storage","com.azure.resourcemanager.qumulo.implementation.models.FileSystemResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.qumulo.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.qumulo.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.qumulo.models.FileSystemResourceProperties":"LiftrBase.Storage.FileSystemResourceProperties","com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdate":"LiftrBase.Storage.FileSystemResourceUpdate","com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdateProperties":"LiftrBase.Storage.FileSystemResourceUpdateProperties","com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.qumulo.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.qumulo.models.MarketplaceDetails":"LiftrBase.MarketplaceDetails","com.azure.resourcemanager.qumulo.models.MarketplaceSubscriptionStatus":"LiftrBase.MarketplaceSubscriptionStatus","com.azure.resourcemanager.qumulo.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.qumulo.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.qumulo.models.ProvisioningState":"LiftrBase.ProvisioningState","com.azure.resourcemanager.qumulo.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.qumulo.models.UserDetails":"LiftrBase.UserDetails"},"generatedFiles":["src/main/java/com/azure/resourcemanager/qumulo/QumuloManager.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/FileSystemsClient.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/QumuloManagementClient.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsClientImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/models/FileSystemResourceListResult.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/models/ActionType.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceProperties.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdate.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdateProperties.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystems.java","src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceDetails.java","src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceSubscriptionStatus.java","src/main/java/com/azure/resourcemanager/qumulo/models/Operation.java","src/main/java/com/azure/resourcemanager/qumulo/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/qumulo/models/Operations.java","src/main/java/com/azure/resourcemanager/qumulo/models/Origin.java","src/main/java/com/azure/resourcemanager/qumulo/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/qumulo/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/qumulo/models/UserDetails.java","src/main/java/com/azure/resourcemanager/qumulo/models/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/azure-resourcemanager-qumulo.properties b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/azure-resourcemanager-qumulo.properties new file mode 100644 index 000000000000..defbd48204e4 --- /dev/null +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/azure-resourcemanager-qumulo.properties @@ -0,0 +1 @@ +version=${project.version} diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsCreateOrUpdateSamples.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsCreateOrUpdateSamples.java index f9026d7b39b3..2891031ce9d3 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsCreateOrUpdateSamples.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsCreateOrUpdateSamples.java @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; +import com.azure.resourcemanager.qumulo.models.FileSystemResourceProperties; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentityType; import com.azure.resourcemanager.qumulo.models.MarketplaceDetails; @@ -18,58 +19,53 @@ */ public final class FileSystemsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_CreateOrUpdate_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_CreateOrUpdate. + * Sample code: FileSystems_CreateOrUpdate_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsCreateOrUpdate(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsCreateOrUpdateMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems() - .define("hfcmtgaes") - .withRegion("pnb") + .define("qumulo-fs-01") + .withRegion("ninyfyhmsedp") .withExistingResourceGroup("rgQumulo") - .withTags(mapOf("key7090", "fakeTokenPlaceholder")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) - .withUserAssignedIdentities(mapOf("key7679", new UserAssignedIdentity()))) - .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("xaqtkloiyovmexqhn") - .withPlanId("fwtpz") - .withOfferId("s") - .withPublisherId("czxcfrwodazyaft") - .withTermUnit("cfwwczmygsimcyvoclcw")) - .withStorageSku("yhyzby") - .withUserDetails(new UserDetails().withEmail("aqsnzyroo")) - .withDelegatedSubnetId("jykmxrf") - .withClusterLoginUrl("ykaynsjvhihdthkkvvodjrgc") - .withPrivateIPs(Arrays.asList("gzken")) - .withAdminPassword("fakeTestSecretPlaceholder") - .withAvailabilityZone("eqdvbdiuwmhhzqzmksmwllpddqquwt") .create(); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_CreateOrUpdate_MinimumSet_Gen. + * Sample code: FileSystems_CreateOrUpdate_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsCreateOrUpdateMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsCreateOrUpdateMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems() - .define("aaaaaaaa") - .withRegion("aaaaaaaaaaaaaaaaaaaaaaaaa") - .withExistingResourceGroup("rgopenapi") - .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("aaaaaaaaaaaaa") - .withPlanId("aaaaaa") - .withOfferId("aaaaaaaaaaaaaaaaaaaaaaaaa")) - .withStorageSku("Standard") - .withUserDetails(new UserDetails().withEmail("viptslwulnpaupfljvnjeq")) - .withDelegatedSubnetId("aaaaaaaaaa") - .withAdminPassword("fakeTestSecretPlaceholder") + .define("qumulo-fs-01") + .withRegion("uiuztlexlmxsqcnsdpvzzygmi") + .withExistingResourceGroup("rgQumulo") + .withTags(mapOf("key7800", "fakeTokenPlaceholder")) + .withProperties(new FileSystemResourceProperties() + .withMarketplaceDetails( + new MarketplaceDetails().withMarketplaceSubscriptionId("vwjzkiurjihwxrhoicenkbxacokvep") + .withPlanId("vxnyxa") + .withOfferId("itiocfnteqyuavgmdtnvwvbpectyr") + .withPublisherId("zfevjvhjiifwxbazta") + .withTermUnit("lkbiqoqdyqbua")) + .withStorageSku("myzqnfqelxo") + .withUserDetails(new UserDetails().withEmail("rlqqzevfgtqpynvifqp")) + .withDelegatedSubnetId("kmjaqsfflkjpke") + .withPerformanceTier("fjgqmkcvjtygcavpbo") + .withClusterLoginUrl("uzpvkgxrbgtthyxgavsjr") + .withPrivateIPs(Arrays.asList("qrhvbdfbfdgqqe")) + .withAdminPassword("fakeTokenPlaceholder") + .withAvailabilityZone("luklrtwmngwnaerygykcbwljeso")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) + .withUserAssignedIdentities(mapOf("key8111", new UserAssignedIdentity()))) .create(); } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsDeleteSamples.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsDeleteSamples.java index 0d10a6003980..0e3c016ac0ac 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsDeleteSamples.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -9,28 +9,27 @@ */ public final class FileSystemsDeleteSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Delete_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_Delete. + * Sample code: FileSystems_Delete_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsDelete(com.azure.resourcemanager.qumulo.QumuloManager manager) { - manager.fileSystems().delete("rgQumulo", "xoschzkccroahrykedlvbbnsddq", com.azure.core.util.Context.NONE); + public static void fileSystemsDeleteMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.qumulo.QumuloManager manager) { + manager.fileSystems().delete("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Delete_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_Delete_MinimumSet_Gen. + * Sample code: FileSystems_Delete_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsDeleteMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { - manager.fileSystems().delete("rgQumulo", "jgtskkiplquyrlkaxvhdg", com.azure.core.util.Context.NONE); + public static void fileSystemsDeleteMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { + manager.fileSystems().delete("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsGetByResourceGroupSamples.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsGetByResourceGroupSamples.java index 81286b16ca7d..04e2ca60803f 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsGetByResourceGroupSamples.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsGetByResourceGroupSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -9,30 +9,29 @@ */ public final class FileSystemsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Get_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_Get. + * Sample code: FileSystems_Get_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsGet(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void + fileSystemsGetMaximumSetGenGeneratedByMinimumSetRule(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems() - .getByResourceGroupWithResponse("rgQumulo", "sihbehcisdqtqqyfiewiiaphgh", com.azure.core.util.Context.NONE); + .getByResourceGroupWithResponse("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Get_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Get_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_Get_MinimumSet_Gen. + * Sample code: FileSystems_Get_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsGetMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsGetMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems() - .getByResourceGroupWithResponse("rgQumulo", "aaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); + .getByResourceGroupWithResponse("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsListByResourceGroupSamples.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsListByResourceGroupSamples.java index 443ddc11ff65..92013ecdc38c 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsListByResourceGroupSamples.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsListByResourceGroupSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -9,29 +9,28 @@ */ public final class FileSystemsListByResourceGroupSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_ListByResourceGroup. + * Sample code: FileSystems_ListByResourceGroup_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsListByResourceGroup(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void + fileSystemsListByResourceGroupMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems().listByResourceGroup("rgQumulo", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_ListByResourceGroup_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_ListByResourceGroup_MinimumSet_Gen. + * Sample code: FileSystems_ListByResourceGroup_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void - fileSystemsListByResourceGroupMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems().listByResourceGroup("rgQumulo", com.azure.core.util.Context.NONE); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsListSamples.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsListSamples.java index 8ef208ea6883..35e55e09604b 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsListSamples.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -9,29 +9,27 @@ */ public final class FileSystemsListSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_ListBySubscription_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_ListBySubscription. + * Sample code: FileSystems_ListBySubscription_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsListBySubscription(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems().list(com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_ListBySubscription_MinimumSet_Gen. + * Sample code: FileSystems_ListBySubscription_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void - fileSystemsListBySubscriptionMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsListBySubscriptionMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.fileSystems().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsUpdateSamples.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsUpdateSamples.java index b74902c573ef..814810cbc674 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsUpdateSamples.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -19,47 +19,48 @@ */ public final class FileSystemsUpdateSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Update_MaximumSet_Gen.json */ /** - * Sample code: FileSystems_Update_MinimumSet_Gen. + * Sample code: FileSystems_Update_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsUpdateMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsUpdateMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { FileSystemResource resource = manager.fileSystems() - .getByResourceGroupWithResponse("rgQumulo", "aaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE) .getValue(); - resource.update().apply(); + resource.update() + .withTags(mapOf("key5846", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) + .withUserAssignedIdentities(mapOf("key8111", new UserAssignedIdentity()))) + .withProperties(new FileSystemResourceUpdateProperties() + .withMarketplaceDetails( + new MarketplaceDetails().withMarketplaceSubscriptionId("vwjzkiurjihwxrhoicenkbxacokvep") + .withPlanId("vxnyxa") + .withOfferId("itiocfnteqyuavgmdtnvwvbpectyr") + .withPublisherId("zfevjvhjiifwxbazta") + .withTermUnit("lkbiqoqdyqbua")) + .withUserDetails(new UserDetails().withEmail("rlqqzevfgtqpynvifqp")) + .withDelegatedSubnetId("osinzkhurmzdaw") + .withPerformanceTier("Premium")) + .apply(); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * FileSystems_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/FileSystems_Update_MinimumSet_Gen.json */ /** - * Sample code: FileSystems_Update. + * Sample code: FileSystems_Update_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void fileSystemsUpdate(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void fileSystemsUpdateMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.qumulo.QumuloManager manager) { FileSystemResource resource = manager.fileSystems() - .getByResourceGroupWithResponse("rgQumulo", "ahpixnvykleksjlr", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("rgQumulo", "qumulo-fs-01", com.azure.core.util.Context.NONE) .getValue(); - resource.update() - .withTags(mapOf("key357", "fakeTokenPlaceholder")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) - .withUserAssignedIdentities(mapOf("key7679", new UserAssignedIdentity()))) - .withProperties(new FileSystemResourceUpdateProperties() - .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("xaqtkloiyovmexqhn") - .withPlanId("fwtpz") - .withOfferId("s") - .withPublisherId("czxcfrwodazyaft") - .withTermUnit("cfwwczmygsimcyvoclcw")) - .withUserDetails(new UserDetails().withEmail("aqsnzyroo")) - .withDelegatedSubnetId("bqaryqsjlackxphpmzffgoqsvm")) - .apply(); + resource.update().apply(); } // Use "Map.of" if available diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/OperationsListSamples.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/OperationsListSamples.java index 70e0473f5919..a37efb784550 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/OperationsListSamples.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/OperationsListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -9,28 +9,27 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-16/Operations_List_MaximumSet_Gen.json */ /** - * Sample code: Operations_List_MinimumSet_Gen. + * Sample code: Operations_List_MaximumSet. * * @param manager Entry point to QumuloManager. */ - public static void operationsListMinimumSetGen(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void operationsListMaximumSet(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/ - * Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-16/Operations_List_MinimumSet_Gen.json */ /** - * Sample code: Operations_List. + * Sample code: Operations_List_MaximumSet_Gen - generated by [MinimumSet] rule. * * @param manager Entry point to QumuloManager. */ - public static void operationsList(com.azure.resourcemanager.qumulo.QumuloManager manager) { + public static void + operationsListMaximumSetGenGeneratedByMinimumSetRule(com.azure.resourcemanager.qumulo.QumuloManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/FileSystemResourceUpdatePropertiesTests.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/FileSystemResourceUpdatePropertiesTests.java index 9ba8929f1f88..3aad0cfab2d6 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/FileSystemResourceUpdatePropertiesTests.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/FileSystemResourceUpdatePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -14,34 +14,37 @@ public final class FileSystemResourceUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileSystemResourceUpdateProperties model = BinaryData.fromString( - "{\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"gou\",\"planId\":\"zndlikwy\",\"offerId\":\"kgfg\",\"publisherId\":\"madgakeqsrxyb\",\"termUnit\":\"qedqytbciqfoufl\",\"marketplaceSubscriptionStatus\":\"Suspended\"},\"userDetails\":{\"email\":\"zsm\"},\"delegatedSubnetId\":\"mglougpbkw\"}") + "{\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"kzsmodm\",\"planId\":\"lougpbkw\",\"offerId\":\"mutduqktaps\",\"publisherId\":\"gcue\",\"termUnit\":\"umkdosvqwhbmd\",\"marketplaceSubscriptionStatus\":\"PendingFulfillmentStart\"},\"userDetails\":{\"email\":\"f\"},\"delegatedSubnetId\":\"gmbmbexppbh\",\"performanceTier\":\"qrolfpf\"}") .toObject(FileSystemResourceUpdateProperties.class); - Assertions.assertEquals("gou", model.marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("zndlikwy", model.marketplaceDetails().planId()); - Assertions.assertEquals("kgfg", model.marketplaceDetails().offerId()); - Assertions.assertEquals("madgakeqsrxyb", model.marketplaceDetails().publisherId()); - Assertions.assertEquals("qedqytbciqfoufl", model.marketplaceDetails().termUnit()); - Assertions.assertEquals("zsm", model.userDetails().email()); - Assertions.assertEquals("mglougpbkw", model.delegatedSubnetId()); + Assertions.assertEquals("kzsmodm", model.marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("lougpbkw", model.marketplaceDetails().planId()); + Assertions.assertEquals("mutduqktaps", model.marketplaceDetails().offerId()); + Assertions.assertEquals("gcue", model.marketplaceDetails().publisherId()); + Assertions.assertEquals("umkdosvqwhbmd", model.marketplaceDetails().termUnit()); + Assertions.assertEquals("f", model.userDetails().email()); + Assertions.assertEquals("gmbmbexppbh", model.delegatedSubnetId()); + Assertions.assertEquals("qrolfpf", model.performanceTier()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FileSystemResourceUpdateProperties model = new FileSystemResourceUpdateProperties() - .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("gou") - .withPlanId("zndlikwy") - .withOfferId("kgfg") - .withPublisherId("madgakeqsrxyb") - .withTermUnit("qedqytbciqfoufl")) - .withUserDetails(new UserDetails().withEmail("zsm")) - .withDelegatedSubnetId("mglougpbkw"); + .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("kzsmodm") + .withPlanId("lougpbkw") + .withOfferId("mutduqktaps") + .withPublisherId("gcue") + .withTermUnit("umkdosvqwhbmd")) + .withUserDetails(new UserDetails().withEmail("f")) + .withDelegatedSubnetId("gmbmbexppbh") + .withPerformanceTier("qrolfpf"); model = BinaryData.fromObject(model).toObject(FileSystemResourceUpdateProperties.class); - Assertions.assertEquals("gou", model.marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("zndlikwy", model.marketplaceDetails().planId()); - Assertions.assertEquals("kgfg", model.marketplaceDetails().offerId()); - Assertions.assertEquals("madgakeqsrxyb", model.marketplaceDetails().publisherId()); - Assertions.assertEquals("qedqytbciqfoufl", model.marketplaceDetails().termUnit()); - Assertions.assertEquals("zsm", model.userDetails().email()); - Assertions.assertEquals("mglougpbkw", model.delegatedSubnetId()); + Assertions.assertEquals("kzsmodm", model.marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("lougpbkw", model.marketplaceDetails().planId()); + Assertions.assertEquals("mutduqktaps", model.marketplaceDetails().offerId()); + Assertions.assertEquals("gcue", model.marketplaceDetails().publisherId()); + Assertions.assertEquals("umkdosvqwhbmd", model.marketplaceDetails().termUnit()); + Assertions.assertEquals("f", model.userDetails().email()); + Assertions.assertEquals("gmbmbexppbh", model.delegatedSubnetId()); + Assertions.assertEquals("qrolfpf", model.performanceTier()); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/FileSystemResourceUpdateTests.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/FileSystemResourceUpdateTests.java index fa44b05a3db5..f65e4004bbe1 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/FileSystemResourceUpdateTests.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/FileSystemResourceUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -20,46 +20,48 @@ public final class FileSystemResourceUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileSystemResourceUpdate model = BinaryData.fromString( - "{\"identity\":{\"principalId\":\"4e002400-db04-4967-aa5e-0de7692a8887\",\"tenantId\":\"58762891-8354-4204-9f85-4a952222e42f\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"feusnhut\":{\"principalId\":\"89998b59-013a-45ef-8b44-d98c58fade47\",\"clientId\":\"80c187a2-7c75-4868-8f46-1f1eb47006a5\"},\"tmrldhugjzzdatq\":{\"principalId\":\"494430c0-f131-4d28-aa9e-d7c9a4d200a5\",\"clientId\":\"4eb41cb4-7e33-4a49-a24f-9254dce58dd8\"}}},\"tags\":{\"lgphu\":\"cdgea\"},\"properties\":{\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"dvkaozw\",\"planId\":\"i\",\"offerId\":\"tyhxhurokft\",\"publisherId\":\"olniwpwcukjf\",\"termUnit\":\"iawxklry\",\"marketplaceSubscriptionStatus\":\"Suspended\"},\"userDetails\":{\"email\":\"kbasyypn\"},\"delegatedSubnetId\":\"hsgcbacphejkot\"}}") + "{\"identity\":{\"principalId\":\"jqul\",\"tenantId\":\"sntnbybkzgcw\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ksqrglssai\":{\"principalId\":\"xwrljdouskcqvkoc\",\"clientId\":\"jdkwtnhxbnjb\"},\"jfm\":{\"principalId\":\"p\",\"clientId\":\"nzl\"},\"vndhkrwpdapp\":{\"principalId\":\"eebvmgxsab\",\"clientId\":\"qduujitcjczdz\"},\"je\":{\"principalId\":\"bdkvwrwjf\",\"clientId\":\"snhu\"}}},\"tags\":{\"hugjzzdatqxhoc\":\"rl\",\"ozwyiftyhxhuro\":\"geablgphuticndvk\"},\"properties\":{\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"xolniwpwcukjfk\",\"planId\":\"iawxklry\",\"offerId\":\"lwckbasyypnddhs\",\"publisherId\":\"bacphejko\",\"termUnit\":\"nqgoulzndli\",\"marketplaceSubscriptionStatus\":\"Subscribed\"},\"userDetails\":{\"email\":\"kgfg\"},\"delegatedSubnetId\":\"madgakeqsrxyb\",\"performanceTier\":\"qedqytbciqfoufl\"}}") .toObject(FileSystemResourceUpdate.class); Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals("cdgea", model.tags().get("lgphu")); - Assertions.assertEquals("dvkaozw", model.properties().marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("i", model.properties().marketplaceDetails().planId()); - Assertions.assertEquals("tyhxhurokft", model.properties().marketplaceDetails().offerId()); - Assertions.assertEquals("olniwpwcukjf", model.properties().marketplaceDetails().publisherId()); - Assertions.assertEquals("iawxklry", model.properties().marketplaceDetails().termUnit()); - Assertions.assertEquals("kbasyypn", model.properties().userDetails().email()); - Assertions.assertEquals("hsgcbacphejkot", model.properties().delegatedSubnetId()); + Assertions.assertEquals("rl", model.tags().get("hugjzzdatqxhoc")); + Assertions.assertEquals("xolniwpwcukjfk", model.properties().marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("iawxklry", model.properties().marketplaceDetails().planId()); + Assertions.assertEquals("lwckbasyypnddhs", model.properties().marketplaceDetails().offerId()); + Assertions.assertEquals("bacphejko", model.properties().marketplaceDetails().publisherId()); + Assertions.assertEquals("nqgoulzndli", model.properties().marketplaceDetails().termUnit()); + Assertions.assertEquals("kgfg", model.properties().userDetails().email()); + Assertions.assertEquals("madgakeqsrxyb", model.properties().delegatedSubnetId()); + Assertions.assertEquals("qedqytbciqfoufl", model.properties().performanceTier()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FileSystemResourceUpdate model - = new FileSystemResourceUpdate() - .withIdentity( - new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("feusnhut", new UserAssignedIdentity(), "tmrldhugjzzdatq", - new UserAssignedIdentity()))) - .withTags(mapOf("lgphu", "cdgea")) - .withProperties(new FileSystemResourceUpdateProperties() - .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("dvkaozw") - .withPlanId("i") - .withOfferId("tyhxhurokft") - .withPublisherId("olniwpwcukjf") - .withTermUnit("iawxklry")) - .withUserDetails(new UserDetails().withEmail("kbasyypn")) - .withDelegatedSubnetId("hsgcbacphejkot")); + FileSystemResourceUpdate model = new FileSystemResourceUpdate() + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities( + mapOf("ksqrglssai", new UserAssignedIdentity(), "jfm", new UserAssignedIdentity(), "vndhkrwpdapp", + new UserAssignedIdentity(), "je", new UserAssignedIdentity()))) + .withTags(mapOf("hugjzzdatqxhoc", "rl", "ozwyiftyhxhuro", "geablgphuticndvk")) + .withProperties(new FileSystemResourceUpdateProperties() + .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("xolniwpwcukjfk") + .withPlanId("iawxklry") + .withOfferId("lwckbasyypnddhs") + .withPublisherId("bacphejko") + .withTermUnit("nqgoulzndli")) + .withUserDetails(new UserDetails().withEmail("kgfg")) + .withDelegatedSubnetId("madgakeqsrxyb") + .withPerformanceTier("qedqytbciqfoufl")); model = BinaryData.fromObject(model).toObject(FileSystemResourceUpdate.class); Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals("cdgea", model.tags().get("lgphu")); - Assertions.assertEquals("dvkaozw", model.properties().marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("i", model.properties().marketplaceDetails().planId()); - Assertions.assertEquals("tyhxhurokft", model.properties().marketplaceDetails().offerId()); - Assertions.assertEquals("olniwpwcukjf", model.properties().marketplaceDetails().publisherId()); - Assertions.assertEquals("iawxklry", model.properties().marketplaceDetails().termUnit()); - Assertions.assertEquals("kbasyypn", model.properties().userDetails().email()); - Assertions.assertEquals("hsgcbacphejkot", model.properties().delegatedSubnetId()); + Assertions.assertEquals("rl", model.tags().get("hugjzzdatqxhoc")); + Assertions.assertEquals("xolniwpwcukjfk", model.properties().marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("iawxklry", model.properties().marketplaceDetails().planId()); + Assertions.assertEquals("lwckbasyypnddhs", model.properties().marketplaceDetails().offerId()); + Assertions.assertEquals("bacphejko", model.properties().marketplaceDetails().publisherId()); + Assertions.assertEquals("nqgoulzndli", model.properties().marketplaceDetails().termUnit()); + Assertions.assertEquals("kgfg", model.properties().userDetails().email()); + Assertions.assertEquals("madgakeqsrxyb", model.properties().delegatedSubnetId()); + Assertions.assertEquals("qedqytbciqfoufl", model.properties().performanceTier()); } // Use "Map.of" if available diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/ManagedServiceIdentityTests.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/ManagedServiceIdentityTests.java index d6b24107fd9b..a64a2330b40d 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/ManagedServiceIdentityTests.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/ManagedServiceIdentityTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -16,19 +16,17 @@ public final class ManagedServiceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"d9397208-8e4a-456f-b682-743e861f9bc8\",\"tenantId\":\"7654d8d1-c5b8-4c12-9be8-ab9d3de1e2f3\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"duuji\":{\"principalId\":\"c67f98f2-839d-4960-9bad-a984335abedf\",\"clientId\":\"5ccc469b-cbe7-4e3b-9156-ee86dcd45758\"},\"czdzev\":{\"principalId\":\"f5fa7c0c-b20d-4c86-b366-9534e07f5200\",\"clientId\":\"d8a0866b-6dff-429e-8a5a-f7f473dc54a4\"},\"krwpdap\":{\"principalId\":\"8eab3fb9-cc3a-4917-82a9-ca5bfa6a6998\",\"clientId\":\"74101884-d32c-4c5b-8744-0dee24fd43fa\"}}}") + "{\"principalId\":\"nuvamiheogna\",\"tenantId\":\"zxtheotusivyevcc\",\"type\":\"None\",\"userAssignedIdentities\":{\"ljofxqeofjaeqjh\":{\"principalId\":\"hungbwjzrnf\",\"clientId\":\"xgispemvtzfkufu\"}}}") .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedServiceIdentity model - = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("duuji", new UserAssignedIdentity(), "czdzev", - new UserAssignedIdentity(), "krwpdap", new UserAssignedIdentity())); + ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) + .withUserAssignedIdentities(mapOf("ljofxqeofjaeqjh", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type()); } // Use "Map.of" if available diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/MarketplaceDetailsTests.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/MarketplaceDetailsTests.java index 5ed1d8f3782d..d185ecf3be94 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/MarketplaceDetailsTests.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/MarketplaceDetailsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -12,27 +12,27 @@ public final class MarketplaceDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MarketplaceDetails model = BinaryData.fromString( - "{\"marketplaceSubscriptionId\":\"lxxwrljdouskc\",\"planId\":\"vkocrcjdkwtn\",\"offerId\":\"xbnjbiksq\",\"publisherId\":\"lssai\",\"termUnit\":\"p\",\"marketplaceSubscriptionStatus\":\"PendingFulfillmentStart\"}") + "{\"marketplaceSubscriptionId\":\"v\",\"planId\":\"cjrwzoxxjtfellu\",\"offerId\":\"fziton\",\"publisherId\":\"qfpjk\",\"termUnit\":\"xofpdvhpfxxypi\",\"marketplaceSubscriptionStatus\":\"Suspended\"}") .toObject(MarketplaceDetails.class); - Assertions.assertEquals("lxxwrljdouskc", model.marketplaceSubscriptionId()); - Assertions.assertEquals("vkocrcjdkwtn", model.planId()); - Assertions.assertEquals("xbnjbiksq", model.offerId()); - Assertions.assertEquals("lssai", model.publisherId()); - Assertions.assertEquals("p", model.termUnit()); + Assertions.assertEquals("v", model.marketplaceSubscriptionId()); + Assertions.assertEquals("cjrwzoxxjtfellu", model.planId()); + Assertions.assertEquals("fziton", model.offerId()); + Assertions.assertEquals("qfpjk", model.publisherId()); + Assertions.assertEquals("xofpdvhpfxxypi", model.termUnit()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MarketplaceDetails model = new MarketplaceDetails().withMarketplaceSubscriptionId("lxxwrljdouskc") - .withPlanId("vkocrcjdkwtn") - .withOfferId("xbnjbiksq") - .withPublisherId("lssai") - .withTermUnit("p"); + MarketplaceDetails model = new MarketplaceDetails().withMarketplaceSubscriptionId("v") + .withPlanId("cjrwzoxxjtfellu") + .withOfferId("fziton") + .withPublisherId("qfpjk") + .withTermUnit("xofpdvhpfxxypi"); model = BinaryData.fromObject(model).toObject(MarketplaceDetails.class); - Assertions.assertEquals("lxxwrljdouskc", model.marketplaceSubscriptionId()); - Assertions.assertEquals("vkocrcjdkwtn", model.planId()); - Assertions.assertEquals("xbnjbiksq", model.offerId()); - Assertions.assertEquals("lssai", model.publisherId()); - Assertions.assertEquals("p", model.termUnit()); + Assertions.assertEquals("v", model.marketplaceSubscriptionId()); + Assertions.assertEquals("cjrwzoxxjtfellu", model.planId()); + Assertions.assertEquals("fziton", model.offerId()); + Assertions.assertEquals("qfpjk", model.publisherId()); + Assertions.assertEquals("xofpdvhpfxxypi", model.termUnit()); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationDisplayTests.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationDisplayTests.java index f37280bab6df..700c3f7ff64a 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationDisplayTests.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationDisplayTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -11,13 +11,7 @@ public final class OperationDisplayTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"yrtih\",\"resource\":\"tijbpzvgnwzsymgl\",\"operation\":\"fcyzkohdbihanufh\",\"description\":\"bj\"}") + "{\"provider\":\"cdm\",\"resource\":\"rcryuanzwuxzdxta\",\"operation\":\"lhmwhfpmrqobm\",\"description\":\"kknryrtihf\"}") .toObject(OperationDisplay.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay(); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationInnerTests.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationInnerTests.java index 1b5e80d4d229..92399def6194 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationInnerTests.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationInnerTests.java @@ -1,24 +1,17 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.qumulo.fluent.models.OperationInner; -import com.azure.resourcemanager.qumulo.models.OperationDisplay; public final class OperationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationInner model = BinaryData.fromString( - "{\"name\":\"usarhmofc\",\"isDataAction\":false,\"display\":{\"provider\":\"urkdtmlx\",\"resource\":\"kuksjtxukcdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") + "{\"name\":\"nygj\",\"isDataAction\":true,\"display\":{\"provider\":\"eqsrdeupewnwreit\",\"resource\":\"yflusarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") .toObject(OperationInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withDisplay(new OperationDisplay()); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationListResultTests.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationListResultTests.java index 02c0794dbd72..98606723edee 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationListResultTests.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationListResultTests.java @@ -1,23 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.qumulo.models.OperationListResult; +import com.azure.resourcemanager.qumulo.implementation.models.OperationListResult; +import org.junit.jupiter.api.Assertions; public final class OperationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"isDataAction\":true,\"display\":{\"provider\":\"pbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"izhwlrxy\",\"isDataAction\":false,\"display\":{\"provider\":\"ijgkdm\",\"resource\":\"azlobcufpdznrbt\",\"operation\":\"qjnqglhqgnufoooj\",\"description\":\"ifsqesaagdfmg\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"rifkwm\",\"isDataAction\":true,\"display\":{\"provider\":\"izntocipao\",\"resource\":\"jpsq\",\"operation\":\"mpoyfd\",\"description\":\"ogknygjofjdd\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"upewnwreitjzy\"}") + "{\"value\":[{\"name\":\"hq\",\"isDataAction\":true,\"display\":{\"provider\":\"pybczmehmtzopb\",\"resource\":\"h\",\"operation\":\"pidgsybbejhphoyc\",\"description\":\"xaobhdxbmtqioqjz\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"fpownoizhwlr\",\"isDataAction\":false,\"display\":{\"provider\":\"oqijgkdmbpaz\",\"resource\":\"bc\",\"operation\":\"pdznrbtcqqjnqgl\",\"description\":\"gnufoooj\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"esaagdfm\",\"isDataAction\":true,\"display\":{\"provider\":\"j\",\"resource\":\"ifkwmrvktsizntoc\",\"operation\":\"a\",\"description\":\"ajpsquc\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"kfo\"}") .toObject(OperationListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model = new OperationListResult(); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); + Assertions.assertEquals("kfo", model.nextLink()); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationsListMockTests.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationsListMockTests.java index 0276080a5871..1c1ebfdcb80f 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationsListMockTests.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/OperationsListMockTests.java @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.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.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.qumulo.QumuloManager; import com.azure.resourcemanager.qumulo.models.Operation; @@ -21,14 +21,14 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"utduqktapspwgcu\",\"isDataAction\":true,\"display\":{\"provider\":\"kdosvqw\",\"resource\":\"mdgbbjfdd\",\"operation\":\"bmbexppbhtqqro\",\"description\":\"p\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"km\",\"isDataAction\":false,\"display\":{\"provider\":\"xdcu\",\"resource\":\"fsrpymzidnse\",\"operation\":\"xtbzsgfyccsne\",\"description\":\"dwzjeiach\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); QumuloManager manager = QumuloManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/UserAssignedIdentityTests.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/UserAssignedIdentityTests.java index 63659d4d1afc..60de4456518f 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/UserAssignedIdentityTests.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/UserAssignedIdentityTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -10,9 +10,8 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"ed794185-4a39-4554-b316-ca63636a1333\",\"clientId\":\"7a9d75d7-97f7-4b30-9f13-5b7f69129bbc\"}") - .toObject(UserAssignedIdentity.class); + UserAssignedIdentity model + = BinaryData.fromString("{\"principalId\":\"b\",\"clientId\":\"v\"}").toObject(UserAssignedIdentity.class); } @org.junit.jupiter.api.Test diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/UserDetailsTests.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/UserDetailsTests.java index 5aaea8650531..dd77b4e00cf1 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/UserDetailsTests.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/test/java/com/azure/resourcemanager/qumulo/generated/UserDetailsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.qumulo.generated; @@ -11,14 +11,14 @@ public final class UserDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UserDetails model = BinaryData.fromString("{\"email\":\"zlljfmppeebvm\"}").toObject(UserDetails.class); - Assertions.assertEquals("zlljfmppeebvm", model.email()); + UserDetails model = BinaryData.fromString("{\"email\":\"mayhuybbkpodepoo\"}").toObject(UserDetails.class); + Assertions.assertEquals("mayhuybbkpodepoo", model.email()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UserDetails model = new UserDetails().withEmail("zlljfmppeebvm"); + UserDetails model = new UserDetails().withEmail("mayhuybbkpodepoo"); model = BinaryData.fromObject(model).toObject(UserDetails.class); - Assertions.assertEquals("zlljfmppeebvm", model.email()); + Assertions.assertEquals("mayhuybbkpodepoo", model.email()); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml b/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml new file mode 100644 index 000000000000..358119c661f2 --- /dev/null +++ b/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/liftrqumulo/Qumulo.Storage.Management +commit: 31221e37affcbc82e521758d6d3dde7c97526ecd +repo: Azure/azure-rest-api-specs +additionalDirectories: From 6ab785677752a664062605914f13c0f33be4ac0b Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 22 Jun 2026 02:35:57 +0000 Subject: [PATCH 2/5] Configurations: 'specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml', API Version: 2026-04-16, SDK Release Type: stable, and CommitSHA: '01f079814f51b81c1172652659edb2f56d2a16ca' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6462914 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../azure-resourcemanager-qumulo/CHANGELOG.md | 37 +-- .../azure-resourcemanager-qumulo/SAMPLE.md | 30 +-- .../azure-resourcemanager-qumulo/pom.xml | 1 - .../models/FileSystemResourceInner.java | 246 ++++++++++++++++-- .../models/FileSystemResourceProperties.java | 5 +- .../FileSystemResourceImpl.java | 104 +++++++- .../qumulo/models/FileSystemResource.java | 207 +++++++++++++-- ...azure-resourcemanager-qumulo_metadata.json | 2 +- .../FileSystemsCreateOrUpdateSamples.java | 30 +-- .../tsp-location.yaml | 2 +- 10 files changed, 550 insertions(+), 114 deletions(-) rename sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/{ => fluent}/models/FileSystemResourceProperties.java (97%) diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md b/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md index bbbb39969b7e..926226dfdc9b 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md +++ b/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.2.0 (2026-06-19) +## 1.2.0 (2026-06-22) - Azure Resource Manager Qumulo client library for Java. This package contains Microsoft Azure SDK for Qumulo Management SDK. Package api-version 2026-04-16. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). @@ -14,23 +14,11 @@ * `validate()` was removed -#### `models.FileSystemResource` was modified - -* `availabilityZone()` was removed -* `storageSku()` was removed -* `privateIPs()` was removed -* `provisioningState()` was removed -* `adminPassword()` was removed -* `userDetails()` was removed -* `marketplaceDetails()` was removed -* `clusterLoginUrl()` was removed -* `delegatedSubnetId()` was removed - #### `models.ManagedServiceIdentity` was modified -* `java.util.UUID principalId()` -> `java.lang.String principalId()` -* `validate()` was removed * `java.util.UUID tenantId()` -> `java.lang.String tenantId()` +* `validate()` was removed +* `java.util.UUID principalId()` -> `java.lang.String principalId()` #### `models.UserAssignedIdentity` was modified @@ -59,33 +47,20 @@ * `fluent.QumuloStorage serviceClient()` -> `fluent.QumuloManagementClient serviceClient()` -#### `models.FileSystemResource$Definition` was modified - -* `withAvailabilityZone(java.lang.String)` was removed -* `withAdminPassword(java.lang.String)` was removed -* `withStorageSku(java.lang.String)` was removed -* `withUserDetails(models.UserDetails)` was removed -* `withMarketplaceDetails(models.MarketplaceDetails)` was removed -* `withDelegatedSubnetId(java.lang.String)` was removed -* `withClusterLoginUrl(java.lang.String)` was removed -* `withPrivateIPs(java.util.List)` was removed - ### Features Added -* `models.FileSystemResourceProperties` was added - #### `models.FileSystemResource` was modified -* `properties()` was added +* `performanceTier()` was added #### `models.FileSystemResourceUpdateProperties` was modified -* `performanceTier()` was added * `withPerformanceTier(java.lang.String)` was added +* `performanceTier()` was added #### `models.FileSystemResource$Definition` was modified -* `withProperties(models.FileSystemResourceProperties)` was added +* `withPerformanceTier(java.lang.String)` was added ## 1.1.0 (2024-09-10) diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/SAMPLE.md b/sdk/qumulo/azure-resourcemanager-qumulo/SAMPLE.md index 00d560a01c7f..94137c4297b7 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/SAMPLE.md +++ b/sdk/qumulo/azure-resourcemanager-qumulo/SAMPLE.md @@ -16,7 +16,6 @@ ### FileSystems_CreateOrUpdate ```java -import com.azure.resourcemanager.qumulo.models.FileSystemResourceProperties; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentityType; import com.azure.resourcemanager.qumulo.models.MarketplaceDetails; @@ -61,23 +60,22 @@ public final class FileSystemsCreateOrUpdateSamples { .withRegion("uiuztlexlmxsqcnsdpvzzygmi") .withExistingResourceGroup("rgQumulo") .withTags(mapOf("key7800", "fakeTokenPlaceholder")) - .withProperties(new FileSystemResourceProperties() - .withMarketplaceDetails( - new MarketplaceDetails().withMarketplaceSubscriptionId("vwjzkiurjihwxrhoicenkbxacokvep") - .withPlanId("vxnyxa") - .withOfferId("itiocfnteqyuavgmdtnvwvbpectyr") - .withPublisherId("zfevjvhjiifwxbazta") - .withTermUnit("lkbiqoqdyqbua")) - .withStorageSku("myzqnfqelxo") - .withUserDetails(new UserDetails().withEmail("rlqqzevfgtqpynvifqp")) - .withDelegatedSubnetId("kmjaqsfflkjpke") - .withPerformanceTier("fjgqmkcvjtygcavpbo") - .withClusterLoginUrl("uzpvkgxrbgtthyxgavsjr") - .withPrivateIPs(Arrays.asList("qrhvbdfbfdgqqe")) - .withAdminPassword("fakeTokenPlaceholder") - .withAvailabilityZone("luklrtwmngwnaerygykcbwljeso")) .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) .withUserAssignedIdentities(mapOf("key8111", new UserAssignedIdentity()))) + .withMarketplaceDetails( + new MarketplaceDetails().withMarketplaceSubscriptionId("vwjzkiurjihwxrhoicenkbxacokvep") + .withPlanId("vxnyxa") + .withOfferId("itiocfnteqyuavgmdtnvwvbpectyr") + .withPublisherId("zfevjvhjiifwxbazta") + .withTermUnit("lkbiqoqdyqbua")) + .withStorageSku("myzqnfqelxo") + .withUserDetails(new UserDetails().withEmail("rlqqzevfgtqpynvifqp")) + .withDelegatedSubnetId("kmjaqsfflkjpke") + .withPerformanceTier("fjgqmkcvjtygcavpbo") + .withClusterLoginUrl("uzpvkgxrbgtthyxgavsjr") + .withPrivateIPs(Arrays.asList("qrhvbdfbfdgqqe")) + .withAdminPassword("") + .withAvailabilityZone("luklrtwmngwnaerygykcbwljeso") .create(); } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml b/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml index 5707f040f1a1..11454b81c6c6 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml +++ b/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml @@ -45,7 +45,6 @@ UTF-8 0 0 - false diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java index 6003bb4983e2..87716b8ad5de 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java @@ -10,9 +10,12 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.qumulo.models.FileSystemResourceProperties; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity; +import com.azure.resourcemanager.qumulo.models.MarketplaceDetails; +import com.azure.resourcemanager.qumulo.models.ProvisioningState; +import com.azure.resourcemanager.qumulo.models.UserDetails; import java.io.IOException; +import java.util.List; import java.util.Map; /** @@ -23,7 +26,7 @@ public final class FileSystemResourceInner extends Resource { /* * The resource-specific properties for this resource. */ - private FileSystemResourceProperties properties; + private FileSystemResourceProperties innerProperties; /* * The managed service identities assigned to this resource. @@ -57,23 +60,12 @@ public FileSystemResourceInner() { } /** - * Get the properties property: The resource-specific properties for this resource. + * Get the innerProperties property: The resource-specific properties for this resource. * - * @return the properties value. + * @return the innerProperties value. */ - public FileSystemResourceProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the FileSystemResourceInner object itself. - */ - public FileSystemResourceInner withProperties(FileSystemResourceProperties properties) { - this.properties = properties; - return this; + private FileSystemResourceProperties innerProperties() { + return this.innerProperties; } /** @@ -153,6 +145,222 @@ public FileSystemResourceInner withTags(Map tags) { return this; } + /** + * Get the marketplaceDetails property: Marketplace details. + * + * @return the marketplaceDetails value. + */ + public MarketplaceDetails marketplaceDetails() { + return this.innerProperties() == null ? null : this.innerProperties().marketplaceDetails(); + } + + /** + * Set the marketplaceDetails property: Marketplace details. + * + * @param marketplaceDetails the marketplaceDetails value to set. + * @return the FileSystemResourceInner object itself. + */ + public FileSystemResourceInner withMarketplaceDetails(MarketplaceDetails marketplaceDetails) { + if (this.innerProperties() == null) { + this.innerProperties = new FileSystemResourceProperties(); + } + this.innerProperties().withMarketplaceDetails(marketplaceDetails); + return this; + } + + /** + * Get the provisioningState property: Provisioning State of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the storageSku property: Storage Sku. + * + * @return the storageSku value. + */ + public String storageSku() { + return this.innerProperties() == null ? null : this.innerProperties().storageSku(); + } + + /** + * Set the storageSku property: Storage Sku. + * + * @param storageSku the storageSku value to set. + * @return the FileSystemResourceInner object itself. + */ + public FileSystemResourceInner withStorageSku(String storageSku) { + if (this.innerProperties() == null) { + this.innerProperties = new FileSystemResourceProperties(); + } + this.innerProperties().withStorageSku(storageSku); + return this; + } + + /** + * Get the userDetails property: User Details. + * + * @return the userDetails value. + */ + public UserDetails userDetails() { + return this.innerProperties() == null ? null : this.innerProperties().userDetails(); + } + + /** + * Set the userDetails property: User Details. + * + * @param userDetails the userDetails value to set. + * @return the FileSystemResourceInner object itself. + */ + public FileSystemResourceInner withUserDetails(UserDetails userDetails) { + if (this.innerProperties() == null) { + this.innerProperties = new FileSystemResourceProperties(); + } + this.innerProperties().withUserDetails(userDetails); + return this; + } + + /** + * Get the delegatedSubnetId property: Delegated subnet id for Vnet injection. + * + * @return the delegatedSubnetId value. + */ + public String delegatedSubnetId() { + return this.innerProperties() == null ? null : this.innerProperties().delegatedSubnetId(); + } + + /** + * Set the delegatedSubnetId property: Delegated subnet id for Vnet injection. + * + * @param delegatedSubnetId the delegatedSubnetId value to set. + * @return the FileSystemResourceInner object itself. + */ + public FileSystemResourceInner withDelegatedSubnetId(String delegatedSubnetId) { + if (this.innerProperties() == null) { + this.innerProperties = new FileSystemResourceProperties(); + } + this.innerProperties().withDelegatedSubnetId(delegatedSubnetId); + return this; + } + + /** + * Get the performanceTier property: Pre-Provisioned Performance of the Resource. + * + * @return the performanceTier value. + */ + public String performanceTier() { + return this.innerProperties() == null ? null : this.innerProperties().performanceTier(); + } + + /** + * Set the performanceTier property: Pre-Provisioned Performance of the Resource. + * + * @param performanceTier the performanceTier value to set. + * @return the FileSystemResourceInner object itself. + */ + public FileSystemResourceInner withPerformanceTier(String performanceTier) { + if (this.innerProperties() == null) { + this.innerProperties = new FileSystemResourceProperties(); + } + this.innerProperties().withPerformanceTier(performanceTier); + return this; + } + + /** + * Get the clusterLoginUrl property: File system Id of the resource. + * + * @return the clusterLoginUrl value. + */ + public String clusterLoginUrl() { + return this.innerProperties() == null ? null : this.innerProperties().clusterLoginUrl(); + } + + /** + * Set the clusterLoginUrl property: File system Id of the resource. + * + * @param clusterLoginUrl the clusterLoginUrl value to set. + * @return the FileSystemResourceInner object itself. + */ + public FileSystemResourceInner withClusterLoginUrl(String clusterLoginUrl) { + if (this.innerProperties() == null) { + this.innerProperties = new FileSystemResourceProperties(); + } + this.innerProperties().withClusterLoginUrl(clusterLoginUrl); + return this; + } + + /** + * Get the privateIPs property: Private IPs of the resource. + * + * @return the privateIPs value. + */ + public List privateIPs() { + return this.innerProperties() == null ? null : this.innerProperties().privateIPs(); + } + + /** + * Set the privateIPs property: Private IPs of the resource. + * + * @param privateIPs the privateIPs value to set. + * @return the FileSystemResourceInner object itself. + */ + public FileSystemResourceInner withPrivateIPs(List privateIPs) { + if (this.innerProperties() == null) { + this.innerProperties = new FileSystemResourceProperties(); + } + this.innerProperties().withPrivateIPs(privateIPs); + return this; + } + + /** + * Get the adminPassword property: Initial administrator password of the resource. + * + * @return the adminPassword value. + */ + public String adminPassword() { + return this.innerProperties() == null ? null : this.innerProperties().adminPassword(); + } + + /** + * Set the adminPassword property: Initial administrator password of the resource. + * + * @param adminPassword the adminPassword value to set. + * @return the FileSystemResourceInner object itself. + */ + public FileSystemResourceInner withAdminPassword(String adminPassword) { + if (this.innerProperties() == null) { + this.innerProperties = new FileSystemResourceProperties(); + } + this.innerProperties().withAdminPassword(adminPassword); + return this; + } + + /** + * Get the availabilityZone property: Availability zone. + * + * @return the availabilityZone value. + */ + public String availabilityZone() { + return this.innerProperties() == null ? null : this.innerProperties().availabilityZone(); + } + + /** + * Set the availabilityZone property: Availability zone. + * + * @param availabilityZone the availabilityZone value to set. + * @return the FileSystemResourceInner object itself. + */ + public FileSystemResourceInner withAvailabilityZone(String availabilityZone) { + if (this.innerProperties() == null) { + this.innerProperties = new FileSystemResourceProperties(); + } + this.innerProperties().withAvailabilityZone(availabilityZone); + return this; + } + /** * {@inheritDoc} */ @@ -161,7 +369,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("location", location()); jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeJsonField("properties", this.innerProperties); jsonWriter.writeJsonField("identity", this.identity); return jsonWriter.writeEndObject(); } @@ -194,7 +402,7 @@ public static FileSystemResourceInner fromJson(JsonReader jsonReader) throws IOE Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedFileSystemResourceInner.withTags(tags); } else if ("properties".equals(fieldName)) { - deserializedFileSystemResourceInner.properties = FileSystemResourceProperties.fromJson(reader); + deserializedFileSystemResourceInner.innerProperties = FileSystemResourceProperties.fromJson(reader); } else if ("identity".equals(fieldName)) { deserializedFileSystemResourceInner.identity = ManagedServiceIdentity.fromJson(reader); } else if ("systemData".equals(fieldName)) { diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceProperties.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceProperties.java similarity index 97% rename from sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceProperties.java rename to sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceProperties.java index 5001b2a4ae77..8304d5d1ea1c 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceProperties.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceProperties.java @@ -2,13 +2,16 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.qumulo.models; +package com.azure.resourcemanager.qumulo.fluent.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 com.azure.resourcemanager.qumulo.models.MarketplaceDetails; +import com.azure.resourcemanager.qumulo.models.ProvisioningState; +import com.azure.resourcemanager.qumulo.models.UserDetails; import java.io.IOException; import java.util.List; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java index c621a771b4f3..a1248935935f 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java @@ -9,11 +9,14 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.qumulo.fluent.models.FileSystemResourceInner; import com.azure.resourcemanager.qumulo.models.FileSystemResource; -import com.azure.resourcemanager.qumulo.models.FileSystemResourceProperties; import com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdate; import com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdateProperties; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity; +import com.azure.resourcemanager.qumulo.models.MarketplaceDetails; +import com.azure.resourcemanager.qumulo.models.ProvisioningState; +import com.azure.resourcemanager.qumulo.models.UserDetails; import java.util.Collections; +import java.util.List; import java.util.Map; public final class FileSystemResourceImpl @@ -47,10 +50,6 @@ public Map tags() { } } - public FileSystemResourceProperties properties() { - return this.innerModel().properties(); - } - public ManagedServiceIdentity identity() { return this.innerModel().identity(); } @@ -59,6 +58,51 @@ public SystemData systemData() { return this.innerModel().systemData(); } + public MarketplaceDetails marketplaceDetails() { + return this.innerModel().marketplaceDetails(); + } + + public ProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public String storageSku() { + return this.innerModel().storageSku(); + } + + public UserDetails userDetails() { + return this.innerModel().userDetails(); + } + + public String delegatedSubnetId() { + return this.innerModel().delegatedSubnetId(); + } + + public String performanceTier() { + return this.innerModel().performanceTier(); + } + + public String clusterLoginUrl() { + return this.innerModel().clusterLoginUrl(); + } + + public List privateIPs() { + List inner = this.innerModel().privateIPs(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public String adminPassword() { + return this.innerModel().adminPassword(); + } + + public String availabilityZone() { + return this.innerModel().availabilityZone(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -175,11 +219,6 @@ public FileSystemResourceImpl withTags(Map tags) { } } - public FileSystemResourceImpl withProperties(FileSystemResourceProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - public FileSystemResourceImpl withIdentity(ManagedServiceIdentity identity) { if (isInCreateMode()) { this.innerModel().withIdentity(identity); @@ -190,6 +229,51 @@ public FileSystemResourceImpl withIdentity(ManagedServiceIdentity identity) { } } + public FileSystemResourceImpl withMarketplaceDetails(MarketplaceDetails marketplaceDetails) { + this.innerModel().withMarketplaceDetails(marketplaceDetails); + return this; + } + + public FileSystemResourceImpl withStorageSku(String storageSku) { + this.innerModel().withStorageSku(storageSku); + return this; + } + + public FileSystemResourceImpl withUserDetails(UserDetails userDetails) { + this.innerModel().withUserDetails(userDetails); + return this; + } + + public FileSystemResourceImpl withDelegatedSubnetId(String delegatedSubnetId) { + this.innerModel().withDelegatedSubnetId(delegatedSubnetId); + return this; + } + + public FileSystemResourceImpl withPerformanceTier(String performanceTier) { + this.innerModel().withPerformanceTier(performanceTier); + return this; + } + + public FileSystemResourceImpl withClusterLoginUrl(String clusterLoginUrl) { + this.innerModel().withClusterLoginUrl(clusterLoginUrl); + return this; + } + + public FileSystemResourceImpl withPrivateIPs(List privateIPs) { + this.innerModel().withPrivateIPs(privateIPs); + return this; + } + + public FileSystemResourceImpl withAdminPassword(String adminPassword) { + this.innerModel().withAdminPassword(adminPassword); + return this; + } + + public FileSystemResourceImpl withAvailabilityZone(String availabilityZone) { + this.innerModel().withAvailabilityZone(availabilityZone); + return this; + } + public FileSystemResourceImpl withProperties(FileSystemResourceUpdateProperties properties) { this.updateProperties.withProperties(properties); return this; diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java index ed95ce33710e..82fd3194213a 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java @@ -8,6 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.qumulo.fluent.models.FileSystemResourceInner; +import java.util.List; import java.util.Map; /** @@ -49,13 +50,6 @@ public interface FileSystemResource { */ Map tags(); - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - FileSystemResourceProperties properties(); - /** * Gets the identity property: The managed service identities assigned to this resource. * @@ -70,6 +64,76 @@ public interface FileSystemResource { */ SystemData systemData(); + /** + * Gets the marketplaceDetails property: Marketplace details. + * + * @return the marketplaceDetails value. + */ + MarketplaceDetails marketplaceDetails(); + + /** + * Gets the provisioningState property: Provisioning State of the resource. + * + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * Gets the storageSku property: Storage Sku. + * + * @return the storageSku value. + */ + String storageSku(); + + /** + * Gets the userDetails property: User Details. + * + * @return the userDetails value. + */ + UserDetails userDetails(); + + /** + * Gets the delegatedSubnetId property: Delegated subnet id for Vnet injection. + * + * @return the delegatedSubnetId value. + */ + String delegatedSubnetId(); + + /** + * Gets the performanceTier property: Pre-Provisioned Performance of the Resource. + * + * @return the performanceTier value. + */ + String performanceTier(); + + /** + * Gets the clusterLoginUrl property: File system Id of the resource. + * + * @return the clusterLoginUrl value. + */ + String clusterLoginUrl(); + + /** + * Gets the privateIPs property: Private IPs of the resource. + * + * @return the privateIPs value. + */ + List privateIPs(); + + /** + * Gets the adminPassword property: Initial administrator password of the resource. + * + * @return the adminPassword value. + */ + String adminPassword(); + + /** + * Gets the availabilityZone property: Availability zone. + * + * @return the availabilityZone value. + */ + String availabilityZone(); + /** * Gets the region of the resource. * @@ -154,7 +218,10 @@ interface WithResourceGroup { * resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithIdentity { + extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithMarketplaceDetails, + DefinitionStages.WithStorageSku, DefinitionStages.WithUserDetails, DefinitionStages.WithDelegatedSubnetId, + DefinitionStages.WithPerformanceTier, DefinitionStages.WithClusterLoginUrl, DefinitionStages.WithPrivateIPs, + DefinitionStages.WithAdminPassword, DefinitionStages.WithAvailabilityZone { /** * Executes the create request. * @@ -185,29 +252,133 @@ interface WithTags { } /** - * The stage of the FileSystemResource definition allowing to specify properties. + * The stage of the FileSystemResource definition allowing to specify identity. */ - interface WithProperties { + interface WithIdentity { /** - * Specifies the properties property: The resource-specific properties for this resource.. + * Specifies the identity property: The managed service identities assigned to this resource.. * - * @param properties The resource-specific properties for this resource. + * @param identity The managed service identities assigned to this resource. * @return the next definition stage. */ - WithCreate withProperties(FileSystemResourceProperties properties); + WithCreate withIdentity(ManagedServiceIdentity identity); } /** - * The stage of the FileSystemResource definition allowing to specify identity. + * The stage of the FileSystemResource definition allowing to specify marketplaceDetails. */ - interface WithIdentity { + interface WithMarketplaceDetails { /** - * Specifies the identity property: The managed service identities assigned to this resource.. + * Specifies the marketplaceDetails property: Marketplace details. * - * @param identity The managed service identities assigned to this resource. + * @param marketplaceDetails Marketplace details. * @return the next definition stage. */ - WithCreate withIdentity(ManagedServiceIdentity identity); + WithCreate withMarketplaceDetails(MarketplaceDetails marketplaceDetails); + } + + /** + * The stage of the FileSystemResource definition allowing to specify storageSku. + */ + interface WithStorageSku { + /** + * Specifies the storageSku property: Storage Sku. + * + * @param storageSku Storage Sku. + * @return the next definition stage. + */ + WithCreate withStorageSku(String storageSku); + } + + /** + * The stage of the FileSystemResource definition allowing to specify userDetails. + */ + interface WithUserDetails { + /** + * Specifies the userDetails property: User Details. + * + * @param userDetails User Details. + * @return the next definition stage. + */ + WithCreate withUserDetails(UserDetails userDetails); + } + + /** + * The stage of the FileSystemResource definition allowing to specify delegatedSubnetId. + */ + interface WithDelegatedSubnetId { + /** + * Specifies the delegatedSubnetId property: Delegated subnet id for Vnet injection. + * + * @param delegatedSubnetId Delegated subnet id for Vnet injection. + * @return the next definition stage. + */ + WithCreate withDelegatedSubnetId(String delegatedSubnetId); + } + + /** + * The stage of the FileSystemResource definition allowing to specify performanceTier. + */ + interface WithPerformanceTier { + /** + * Specifies the performanceTier property: Pre-Provisioned Performance of the Resource. + * + * @param performanceTier Pre-Provisioned Performance of the Resource. + * @return the next definition stage. + */ + WithCreate withPerformanceTier(String performanceTier); + } + + /** + * The stage of the FileSystemResource definition allowing to specify clusterLoginUrl. + */ + interface WithClusterLoginUrl { + /** + * Specifies the clusterLoginUrl property: File system Id of the resource. + * + * @param clusterLoginUrl File system Id of the resource. + * @return the next definition stage. + */ + WithCreate withClusterLoginUrl(String clusterLoginUrl); + } + + /** + * The stage of the FileSystemResource definition allowing to specify privateIPs. + */ + interface WithPrivateIPs { + /** + * Specifies the privateIPs property: Private IPs of the resource. + * + * @param privateIPs Private IPs of the resource. + * @return the next definition stage. + */ + WithCreate withPrivateIPs(List privateIPs); + } + + /** + * The stage of the FileSystemResource definition allowing to specify adminPassword. + */ + interface WithAdminPassword { + /** + * Specifies the adminPassword property: Initial administrator password of the resource. + * + * @param adminPassword Initial administrator password of the resource. + * @return the next definition stage. + */ + WithCreate withAdminPassword(String adminPassword); + } + + /** + * The stage of the FileSystemResource definition allowing to specify availabilityZone. + */ + interface WithAvailabilityZone { + /** + * Specifies the availabilityZone property: Availability zone. + * + * @param availabilityZone Availability zone. + * @return the next definition stage. + */ + WithCreate withAvailabilityZone(String availabilityZone); } } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/META-INF/azure-resourcemanager-qumulo_metadata.json b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/META-INF/azure-resourcemanager-qumulo_metadata.json index db8952218c66..ee1265843b7b 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/META-INF/azure-resourcemanager-qumulo_metadata.json +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/main/resources/META-INF/azure-resourcemanager-qumulo_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Qumulo.Storage":"2026-04-16"},"crossLanguagePackageId":"Qumulo.Storage","crossLanguageVersion":"f2e16fac6187","crossLanguageDefinitions":{"com.azure.resourcemanager.qumulo.fluent.FileSystemsClient":"Qumulo.Storage.FileSystems","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.beginCreateOrUpdate":"Qumulo.Storage.FileSystems.createOrUpdate","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.beginDelete":"Qumulo.Storage.FileSystems.delete","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.createOrUpdate":"Qumulo.Storage.FileSystems.createOrUpdate","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.delete":"Qumulo.Storage.FileSystems.delete","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.getByResourceGroup":"Qumulo.Storage.FileSystems.get","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.getByResourceGroupWithResponse":"Qumulo.Storage.FileSystems.get","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.list":"Qumulo.Storage.FileSystems.listBySubscription","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.listByResourceGroup":"Qumulo.Storage.FileSystems.listByResourceGroup","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.update":"Qumulo.Storage.FileSystems.update","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.updateWithResponse":"Qumulo.Storage.FileSystems.update","com.azure.resourcemanager.qumulo.fluent.OperationsClient":"Qumulo.Storage.Operations","com.azure.resourcemanager.qumulo.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.qumulo.fluent.QumuloManagementClient":"Qumulo.Storage","com.azure.resourcemanager.qumulo.fluent.models.FileSystemResourceInner":"LiftrBase.Storage.FileSystemResource","com.azure.resourcemanager.qumulo.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.qumulo.implementation.QumuloManagementClientBuilder":"Qumulo.Storage","com.azure.resourcemanager.qumulo.implementation.models.FileSystemResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.qumulo.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.qumulo.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.qumulo.models.FileSystemResourceProperties":"LiftrBase.Storage.FileSystemResourceProperties","com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdate":"LiftrBase.Storage.FileSystemResourceUpdate","com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdateProperties":"LiftrBase.Storage.FileSystemResourceUpdateProperties","com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.qumulo.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.qumulo.models.MarketplaceDetails":"LiftrBase.MarketplaceDetails","com.azure.resourcemanager.qumulo.models.MarketplaceSubscriptionStatus":"LiftrBase.MarketplaceSubscriptionStatus","com.azure.resourcemanager.qumulo.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.qumulo.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.qumulo.models.ProvisioningState":"LiftrBase.ProvisioningState","com.azure.resourcemanager.qumulo.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.qumulo.models.UserDetails":"LiftrBase.UserDetails"},"generatedFiles":["src/main/java/com/azure/resourcemanager/qumulo/QumuloManager.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/FileSystemsClient.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/QumuloManagementClient.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsClientImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/models/FileSystemResourceListResult.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/models/ActionType.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceProperties.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdate.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdateProperties.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystems.java","src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceDetails.java","src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceSubscriptionStatus.java","src/main/java/com/azure/resourcemanager/qumulo/models/Operation.java","src/main/java/com/azure/resourcemanager/qumulo/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/qumulo/models/Operations.java","src/main/java/com/azure/resourcemanager/qumulo/models/Origin.java","src/main/java/com/azure/resourcemanager/qumulo/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/qumulo/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/qumulo/models/UserDetails.java","src/main/java/com/azure/resourcemanager/qumulo/models/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Qumulo.Storage":"2026-04-16"},"crossLanguagePackageId":"Qumulo.Storage","crossLanguageVersion":"404f02c74a8c","crossLanguageDefinitions":{"com.azure.resourcemanager.qumulo.fluent.FileSystemsClient":"Qumulo.Storage.FileSystems","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.beginCreateOrUpdate":"Qumulo.Storage.FileSystems.createOrUpdate","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.beginDelete":"Qumulo.Storage.FileSystems.delete","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.createOrUpdate":"Qumulo.Storage.FileSystems.createOrUpdate","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.delete":"Qumulo.Storage.FileSystems.delete","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.getByResourceGroup":"Qumulo.Storage.FileSystems.get","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.getByResourceGroupWithResponse":"Qumulo.Storage.FileSystems.get","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.list":"Qumulo.Storage.FileSystems.listBySubscription","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.listByResourceGroup":"Qumulo.Storage.FileSystems.listByResourceGroup","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.update":"Qumulo.Storage.FileSystems.update","com.azure.resourcemanager.qumulo.fluent.FileSystemsClient.updateWithResponse":"Qumulo.Storage.FileSystems.update","com.azure.resourcemanager.qumulo.fluent.OperationsClient":"Qumulo.Storage.Operations","com.azure.resourcemanager.qumulo.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.qumulo.fluent.QumuloManagementClient":"Qumulo.Storage","com.azure.resourcemanager.qumulo.fluent.models.FileSystemResourceInner":"LiftrBase.Storage.FileSystemResource","com.azure.resourcemanager.qumulo.fluent.models.FileSystemResourceProperties":"LiftrBase.Storage.FileSystemResourceProperties","com.azure.resourcemanager.qumulo.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.qumulo.implementation.QumuloManagementClientBuilder":"Qumulo.Storage","com.azure.resourcemanager.qumulo.implementation.models.FileSystemResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.qumulo.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.qumulo.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdate":"LiftrBase.Storage.FileSystemResourceUpdate","com.azure.resourcemanager.qumulo.models.FileSystemResourceUpdateProperties":"LiftrBase.Storage.FileSystemResourceUpdateProperties","com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.qumulo.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.qumulo.models.MarketplaceDetails":"LiftrBase.MarketplaceDetails","com.azure.resourcemanager.qumulo.models.MarketplaceSubscriptionStatus":"LiftrBase.MarketplaceSubscriptionStatus","com.azure.resourcemanager.qumulo.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.qumulo.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.qumulo.models.ProvisioningState":"LiftrBase.ProvisioningState","com.azure.resourcemanager.qumulo.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.qumulo.models.UserDetails":"LiftrBase.UserDetails"},"generatedFiles":["src/main/java/com/azure/resourcemanager/qumulo/QumuloManager.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/FileSystemsClient.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/QumuloManagementClient.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceInner.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/models/FileSystemResourceProperties.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/fluent/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemResourceImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsClientImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/FileSystemsImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/QumuloManagementClientImpl.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/models/FileSystemResourceListResult.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/qumulo/implementation/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/models/ActionType.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResource.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdate.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystemResourceUpdateProperties.java","src/main/java/com/azure/resourcemanager/qumulo/models/FileSystems.java","src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/qumulo/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceDetails.java","src/main/java/com/azure/resourcemanager/qumulo/models/MarketplaceSubscriptionStatus.java","src/main/java/com/azure/resourcemanager/qumulo/models/Operation.java","src/main/java/com/azure/resourcemanager/qumulo/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/qumulo/models/Operations.java","src/main/java/com/azure/resourcemanager/qumulo/models/Origin.java","src/main/java/com/azure/resourcemanager/qumulo/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/qumulo/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/qumulo/models/UserDetails.java","src/main/java/com/azure/resourcemanager/qumulo/models/package-info.java","src/main/java/com/azure/resourcemanager/qumulo/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsCreateOrUpdateSamples.java b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsCreateOrUpdateSamples.java index 2891031ce9d3..f81acc85622d 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsCreateOrUpdateSamples.java +++ b/sdk/qumulo/azure-resourcemanager-qumulo/src/samples/java/com/azure/resourcemanager/qumulo/generated/FileSystemsCreateOrUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.qumulo.generated; -import com.azure.resourcemanager.qumulo.models.FileSystemResourceProperties; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentity; import com.azure.resourcemanager.qumulo.models.ManagedServiceIdentityType; import com.azure.resourcemanager.qumulo.models.MarketplaceDetails; @@ -49,23 +48,22 @@ public static void fileSystemsCreateOrUpdateMaximumSet(com.azure.resourcemanager .withRegion("uiuztlexlmxsqcnsdpvzzygmi") .withExistingResourceGroup("rgQumulo") .withTags(mapOf("key7800", "fakeTokenPlaceholder")) - .withProperties(new FileSystemResourceProperties() - .withMarketplaceDetails( - new MarketplaceDetails().withMarketplaceSubscriptionId("vwjzkiurjihwxrhoicenkbxacokvep") - .withPlanId("vxnyxa") - .withOfferId("itiocfnteqyuavgmdtnvwvbpectyr") - .withPublisherId("zfevjvhjiifwxbazta") - .withTermUnit("lkbiqoqdyqbua")) - .withStorageSku("myzqnfqelxo") - .withUserDetails(new UserDetails().withEmail("rlqqzevfgtqpynvifqp")) - .withDelegatedSubnetId("kmjaqsfflkjpke") - .withPerformanceTier("fjgqmkcvjtygcavpbo") - .withClusterLoginUrl("uzpvkgxrbgtthyxgavsjr") - .withPrivateIPs(Arrays.asList("qrhvbdfbfdgqqe")) - .withAdminPassword("fakeTokenPlaceholder") - .withAvailabilityZone("luklrtwmngwnaerygykcbwljeso")) .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) .withUserAssignedIdentities(mapOf("key8111", new UserAssignedIdentity()))) + .withMarketplaceDetails( + new MarketplaceDetails().withMarketplaceSubscriptionId("vwjzkiurjihwxrhoicenkbxacokvep") + .withPlanId("vxnyxa") + .withOfferId("itiocfnteqyuavgmdtnvwvbpectyr") + .withPublisherId("zfevjvhjiifwxbazta") + .withTermUnit("lkbiqoqdyqbua")) + .withStorageSku("myzqnfqelxo") + .withUserDetails(new UserDetails().withEmail("rlqqzevfgtqpynvifqp")) + .withDelegatedSubnetId("kmjaqsfflkjpke") + .withPerformanceTier("fjgqmkcvjtygcavpbo") + .withClusterLoginUrl("uzpvkgxrbgtthyxgavsjr") + .withPrivateIPs(Arrays.asList("qrhvbdfbfdgqqe")) + .withAdminPassword("") + .withAvailabilityZone("luklrtwmngwnaerygykcbwljeso") .create(); } diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml b/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml index 358119c661f2..e28840a036c1 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml +++ b/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/liftrqumulo/Qumulo.Storage.Management -commit: 31221e37affcbc82e521758d6d3dde7c97526ecd +commit: 01f079814f51b81c1172652659edb2f56d2a16ca repo: Azure/azure-rest-api-specs additionalDirectories: From 02c79d8d6e3df5115b2e42e16eb4237a48886832 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Mon, 22 Jun 2026 10:45:42 +0800 Subject: [PATCH 3/5] Update pom.xml --- sdk/qumulo/azure-resourcemanager-qumulo/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml b/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml index 11454b81c6c6..4b0db484f795 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml +++ b/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml @@ -45,6 +45,7 @@ UTF-8 0 0 + true From 06f3d49bbe3328e0fb66111106d7127fb59edc2e Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 22 Jun 2026 02:59:00 +0000 Subject: [PATCH 4/5] Configurations: 'specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml', API Version: 2026-04-16, SDK Release Type: stable, and CommitSHA: '8b49356d37ead647d489c122db9d20872fd580e5' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6462964 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md | 4 ++-- sdk/qumulo/azure-resourcemanager-qumulo/pom.xml | 1 - sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md b/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md index 926226dfdc9b..880ac3880c5e 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md +++ b/sdk/qumulo/azure-resourcemanager-qumulo/CHANGELOG.md @@ -22,9 +22,9 @@ #### `models.UserAssignedIdentity` was modified -* `validate()` was removed -* `java.util.UUID clientId()` -> `java.lang.String clientId()` * `java.util.UUID principalId()` -> `java.lang.String principalId()` +* `java.util.UUID clientId()` -> `java.lang.String clientId()` +* `validate()` was removed #### `models.FileSystemResourceUpdateProperties` was modified diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml b/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml index 4b0db484f795..11454b81c6c6 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml +++ b/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml @@ -45,7 +45,6 @@ UTF-8 0 0 - true diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml b/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml index e28840a036c1..e6e0941a2f2a 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml +++ b/sdk/qumulo/azure-resourcemanager-qumulo/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/liftrqumulo/Qumulo.Storage.Management -commit: 01f079814f51b81c1172652659edb2f56d2a16ca +commit: 8b49356d37ead647d489c122db9d20872fd580e5 repo: Azure/azure-rest-api-specs additionalDirectories: From 7ee713192176cac6ff42d4ae8a2a241e73ed506e Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Mon, 22 Jun 2026 11:11:37 +0800 Subject: [PATCH 5/5] Update pom.xml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- sdk/qumulo/azure-resourcemanager-qumulo/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml b/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml index 11454b81c6c6..4b0db484f795 100644 --- a/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml +++ b/sdk/qumulo/azure-resourcemanager-qumulo/pom.xml @@ -45,6 +45,7 @@ UTF-8 0 0 + true