From 980b8501cb1e9e326f75cb776b124b2855e55139 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 30 Apr 2025 21:48:59 +0000 Subject: [PATCH] CodeGen from PR 34375 in Azure/azure-rest-api-specs Merge 8dbab95154d481ce4b288aae886a6325bdaf8287 into edae40cd7204da747aab3a1d0247878e48b98313 --- .../CHANGELOG.md | 26 +- .../README.md | 8 +- .../SAMPLE.md | 626 +++++-------- .../pom.xml | 15 +- .../InformaticaDataManagementManager.java | 33 +- ...a => InformaticaDataManagementClient.java} | 24 +- .../fluent/OperationsClient.java | 2 +- .../fluent/OrganizationsClient.java | 132 +-- .../fluent/ServerlessRuntimesClient.java | 146 +-- .../CheckDependenciesResponseInner.java | 2 +- .../InformaticaOrganizationResourceInner.java | 26 +- ...rmaticaServerlessRuntimeResourceInner.java | 26 +- ...icaServerlessRuntimeResourceListInner.java | 12 +- .../fluent/models/OperationInner.java | 16 +- .../ServerlessMetadataResponseInner.java | 2 +- .../fluent/models/package-info.java | 3 +- .../fluent/package-info.java | 3 +- .../CheckDependenciesResponseImpl.java | 2 +- ...formaticaDataManagementClientBuilder.java} | 62 +- ... InformaticaDataManagementClientImpl.java} | 62 +- .../InformaticaOrganizationResourceImpl.java | 18 +- ...ormaticaServerlessRuntimeResourceImpl.java | 22 +- ...ticaServerlessRuntimeResourceListImpl.java | 8 +- .../implementation/OperationImpl.java | 2 +- .../implementation/OperationsClientImpl.java | 18 +- .../implementation/OperationsImpl.java | 2 +- .../OrganizationsClientImpl.java | 849 +++++++++--------- .../implementation/OrganizationsImpl.java | 94 +- .../implementation/ResourceManagerUtils.java | 2 +- .../ServerlessMetadataResponseImpl.java | 2 +- .../ServerlessRuntimesClientImpl.java | 770 ++++++++-------- .../ServerlessRuntimesImpl.java | 58 +- ...rmaticaOrganizationResourceListResult.java | 4 +- ...caServerlessRuntimeResourceListResult.java | 4 +- .../models/OperationListResult.java | 23 +- .../implementation/package-info.java | 3 +- .../models/ActionType.java | 6 +- .../models/AdvancedCustomProperties.java | 2 +- .../models/ApplicationConfigs.java | 2 +- .../models/ApplicationType.java | 6 +- .../models/ApplicationTypeMetadata.java | 2 +- .../models/CdiConfigProps.java | 2 +- .../models/CheckDependenciesResponse.java | 2 +- .../models/CompanyDetails.java | 2 +- .../models/CompanyDetailsUpdate.java | 2 +- .../models/ComputeUnitsMetadata.java | 2 +- ... => InfaRuntimeResourceFetchMetaData.java} | 70 +- .../InfaServerlessFetchConfigProperties.java | 2 +- .../InformaticaOrganizationResource.java | 28 +- ...InformaticaOrganizationResourceUpdate.java | 2 +- .../models/InformaticaProperties.java | 2 +- ...nformaticaServerlessRuntimeProperties.java | 2 +- .../InformaticaServerlessRuntimeResource.java | 24 +- ...ormaticaServerlessRuntimeResourceList.java | 4 +- ...maticaServerlessRuntimeResourceUpdate.java | 2 +- .../models/LinkOrganization.java | 2 +- .../models/MarketplaceDetails.java | 2 +- .../models/MarketplaceDetailsUpdate.java | 2 +- .../models/NetworkInterfaceConfiguration.java | 2 +- .../NetworkInterfaceConfigurationUpdate.java | 2 +- .../models/OfferDetails.java | 2 +- .../models/OfferDetailsUpdate.java | 2 +- .../models/Operation.java | 8 +- .../models/OperationDisplay.java | 4 +- .../models/Operations.java | 2 +- .../models/OrganizationProperties.java | 2 +- .../OrganizationPropertiesCustomUpdate.java | 2 +- .../models/Organizations.java | 102 +-- .../models/Origin.java | 8 +- .../models/PlatformType.java | 4 +- .../models/ProvisioningState.java | 20 +- .../models/RegionsMetadata.java | 2 +- .../models/RuntimeType.java | 4 +- .../models/ServerlessConfigProperties.java | 2 +- .../models/ServerlessMetadataResponse.java | 2 +- .../ServerlessRuntimeConfigProperties.java | 2 +- ...rverlessRuntimeConfigPropertiesUpdate.java | 2 +- .../models/ServerlessRuntimeDependency.java | 2 +- .../ServerlessRuntimeNetworkProfile.java | 2 +- ...ServerlessRuntimeNetworkProfileUpdate.java | 12 +- ...rverlessRuntimePropertiesCustomUpdate.java | 2 +- .../models/ServerlessRuntimeTag.java | 2 +- ...erverlessRuntimeUserContextProperties.java | 2 +- ...essRuntimeUserContextPropertiesUpdate.java | 2 +- .../models/ServerlessRuntimes.java | 82 +- .../models/UserDetails.java | 2 +- .../models/UserDetailsUpdate.java | 2 +- .../models/package-info.java | 3 +- .../package-info.java | 3 +- .../src/main/java/module-info.java | 3 +- .../proxy-config.json | 2 +- .../reflect-config.json | 2 +- ...nager-informaticadatamanagement.properties | 1 + .../generated/OperationsListSamples.java | 10 +- .../OrganizationsCreateOrUpdateSamples.java | 10 +- .../generated/OrganizationsDeleteSamples.java | 10 +- ...ationsGetAllServerlessRuntimesSamples.java | 10 +- ...rganizationsGetByResourceGroupSamples.java | 10 +- ...nizationsGetServerlessMetadataSamples.java | 10 +- ...ganizationsListByResourceGroupSamples.java | 40 - .../generated/OrganizationsListSamples.java | 40 - .../generated/OrganizationsUpdateSamples.java | 10 +- ...rlessRuntimesCheckDependenciesSamples.java | 10 +- ...rverlessRuntimesCreateOrUpdateSamples.java | 10 +- .../ServerlessRuntimesDeleteSamples.java | 6 +- .../ServerlessRuntimesGetSamples.java | 10 +- ...istByInformaticaOrganizationResourceS.java | 26 - ...RuntimesServerlessResourceByIdSamples.java | 6 +- ...esStartFailedServerlessRuntimeSamples.java | 6 +- .../ServerlessRuntimesUpdateSamples.java | 10 +- .../generated/ApplicationConfigsTests.java | 40 +- .../ApplicationTypeMetadataTests.java | 8 +- .../generated/CdiConfigPropsTests.java | 76 +- .../CheckDependenciesResponseInnerTests.java | 20 +- .../generated/CompanyDetailsTests.java | 40 +- .../generated/CompanyDetailsUpdateTests.java | 40 +- .../generated/ComputeUnitsMetadataTests.java | 10 +- ...InfaRuntimeResourceFetchMetaDataTests.java | 44 + ...InfaRuntimeResourceFetchMetadataTests.java | 44 - ...aServerlessFetchConfigPropertiesTests.java | 32 +- ...maticaOrganizationResourceUpdateTests.java | 290 +++--- .../generated/InformaticaPropertiesTests.java | 28 +- ...rverlessRuntimeResourceListInnerTests.java | 52 +- .../generated/MarketplaceDetailsTests.java | 46 +- .../MarketplaceDetailsUpdateTests.java | 46 +- .../NetworkInterfaceConfigurationTests.java | 23 +- ...workInterfaceConfigurationUpdateTests.java | 26 +- .../generated/OfferDetailsTests.java | 40 +- .../generated/OfferDetailsUpdateTests.java | 40 +- .../generated/OperationDisplayTests.java | 4 +- .../generated/OperationInnerTests.java | 4 +- .../generated/OperationListResultTests.java | 8 +- .../generated/OperationsListMockTests.java | 8 +- ...ganizationPropertiesCustomUpdateTests.java | 346 +++---- ...rverlessRuntimesWithResponseMockTests.java | 58 +- ...rverlessMetadataWithResponseMockTests.java | 57 +- .../generated/RegionsMetadataTests.java | 10 +- .../ServerlessConfigPropertiesTests.java | 18 +- .../ServerlessMetadataResponseInnerTests.java | 52 +- ...erverlessRuntimeConfigPropertiesTests.java | 221 +++-- ...essRuntimeConfigPropertiesUpdateTests.java | 196 ++-- .../ServerlessRuntimeDependencyTests.java | 16 +- .../ServerlessRuntimeNetworkProfileTests.java | 22 +- ...rlessRuntimeNetworkProfileUpdateTests.java | 22 +- .../generated/ServerlessRuntimeTagTests.java | 10 +- ...heckDependenciesWithResponseMockTests.java | 27 +- ...rtFailedServerlessRuntimeWitMockTests.java | 9 +- .../generated/UserDetailsTests.java | 34 +- .../generated/UserDetailsUpdateTests.java | 34 +- .../tsp-location.yaml | 4 + 150 files changed, 2860 insertions(+), 3054 deletions(-) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/{InformaticaDataManagement.java => InformaticaDataManagementClient.java} (82%) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/{InformaticaDataManagementBuilder.java => InformaticaDataManagementClientBuilder.java} (64%) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/{InformaticaDataManagementImpl.java => InformaticaDataManagementClientImpl.java} (91%) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/{ => implementation}/models/InformaticaOrganizationResourceListResult.java (96%) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/{ => implementation}/models/InformaticaServerlessRuntimeResourceListResult.java (96%) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/{ => implementation}/models/OperationListResult.java (74%) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/{InfaRuntimeResourceFetchMetadata.java => InfaRuntimeResourceFetchMetaData.java} (82%) create mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/azure-resourcemanager-informaticadatamanagement.properties delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsListByResourceGroupSamples.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsListSamples.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesListByInformaticaOrganizationResourceS.java create mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetaDataTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetadataTests.java create mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/tsp-location.yaml diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md index cd5272424cfe..a06a8803527d 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md @@ -1,14 +1,32 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2025-04-30) -### Features Added +- Azure Resource Manager Informatica DataManagement client library for Java. This package contains Microsoft Azure SDK for Informatica DataManagement Management SDK. 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.InformaticaOrganizationResourceListResult` was removed + +#### `models.InformaticaServerlessRuntimeResourceListResult` was removed + +#### `models.InfaRuntimeResourceFetchMetadata` was removed + +#### `InformaticaDataManagementManager` was modified + +* `fluent.InformaticaDataManagement serviceClient()` -> `fluent.InformaticaDataManagementClient serviceClient()` + +### Features Added + +* `implementation.models.InformaticaOrganizationResourceListResult` was added + +* `implementation.models.OperationListResult` was added + +* `models.InfaRuntimeResourceFetchMetaData` was added -### Other Changes +* `implementation.models.InformaticaServerlessRuntimeResourceListResult` was added ## 1.0.0 (2024-07-15) diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md index ea426d9b9af8..a3c9a67365ee 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Informatica DataManagement client library for Java. -This package contains Microsoft Azure SDK for Informatica DataManagement Management SDK. Package tag package-2024-05-08. 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 Informatica DataManagement Management SDK. 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 @@ -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 @@ InformaticaDataManagementManager manager = InformaticaDataManagementManager .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/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/SAMPLE.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/SAMPLE.md index 62c27a0d64ed..3d1358c1e622 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/SAMPLE.md +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/SAMPLE.md @@ -12,8 +12,6 @@ - [GetAllServerlessRuntimes](#organizations_getallserverlessruntimes) - [GetByResourceGroup](#organizations_getbyresourcegroup) - [GetServerlessMetadata](#organizations_getserverlessmetadata) -- [List](#organizations_list) -- [ListByResourceGroup](#organizations_listbyresourcegroup) - [Update](#organizations_update) ## ServerlessRuntimes @@ -22,7 +20,6 @@ - [CreateOrUpdate](#serverlessruntimes_createorupdate) - [Delete](#serverlessruntimes_delete) - [Get](#serverlessruntimes_get) -- [ListByInformaticaOrganizationResource](#serverlessruntimes_listbyinformaticaorganizationresource) - [ServerlessResourceById](#serverlessruntimes_serverlessresourcebyid) - [StartFailedServerlessRuntime](#serverlessruntimes_startfailedserverlessruntime) - [Update](#serverlessruntimes_update) @@ -30,190 +27,34 @@ ```java /** - * Samples for Operations List. + * Samples for ServerlessRuntimes StartFailedServerlessRuntime. */ -public final class OperationsListSamples { - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Operations_List_MaximumSet_Gen.json - */ - /** - * Sample code: Operations_List. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void - operationsList(com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.operations().list(com.azure.core.util.Context.NONE); - } - +public final class ServerlessRuntimesStartFailedServerlessRuntimeSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json */ /** - * Sample code: Operations_List_Min. + * Sample code: ServerlessRuntimes_StartFailedServerlessRuntime. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void operationsListMin( + public static void serverlessRuntimesStartFailedServerlessRuntime( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.operations().list(com.azure.core.util.Context.NONE); + manager.serverlessRuntimes() + .startFailedServerlessRuntimeWithResponse("rgopenapi", "9M4", "-25-G_", com.azure.core.util.Context.NONE); } } ``` ### Organizations_CreateOrUpdate -```java -import com.azure.resourcemanager.informaticadatamanagement.models.CompanyDetails; -import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaProperties; -import com.azure.resourcemanager.informaticadatamanagement.models.LinkOrganization; -import com.azure.resourcemanager.informaticadatamanagement.models.MarketplaceDetails; -import com.azure.resourcemanager.informaticadatamanagement.models.OfferDetails; -import com.azure.resourcemanager.informaticadatamanagement.models.OrganizationProperties; -import com.azure.resourcemanager.informaticadatamanagement.models.UserDetails; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for Organizations CreateOrUpdate. - */ -public final class OrganizationsCreateOrUpdateSamples { - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_CreateOrUpdate_MaximumSet_Gen.json - */ - /** - * Sample code: Organizations_CreateOrUpdate. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void organizationsCreateOrUpdate( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations() - .define("C") - .withRegion("pamjoudtssthlbhrnfjidr") - .withExistingResourceGroup("rgopenapi") - .withTags(mapOf("key8430", "fakeTokenPlaceholder")) - .withProperties(new OrganizationProperties() - .withInformaticaProperties( - new InformaticaProperties().withOrganizationId("wtdmhlwhkvgqdumaehgfgiqcxgnqpx") - .withOrganizationName("nomzbvwe") - .withInformaticaRegion("zfqodqpbeflhedypiijdkc") - .withSingleSignOnUrl("https://contoso.com/singlesignon")) - .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("ovenlecocg") - .withOfferDetails(new OfferDetails() - .withPublisherId( - "zajxpfacudwongxjvnnuhhpygmnydchgowjccyuzsjonegmqxcqqpnzafanggowfqdixnnutyfvmvwrkx") - .withOfferId("cwswcfwmzhjcoksmueukegwaptvpcmbfyvixfhvgwnjyblqivqdkkwkunkgimiopwwkvgnwclmajhuty") - .withPlanId("jfnemevyivtlxhectiutdavdgfyidolivuojumdzckp") - .withPlanName( - "iaoxgaitteuoqgujkgxbdgryaobtkjjecuvchwutntrvmuorikrbqqegmelenbewhakiysprrnovjixyxrikscaptrbapbdspu") - .withTermUnit("gjwmgevrblbosuogsvfspsgspetbnxaygkbelvadpgwiywl") - .withTermId( - "tcvvsxdjnjlfmjhmvwklptdmxetnzydxyuhfqchoubmtoeqbchnfxoxqzezlgpxdnzyvzgkynjxzzgetkqccxvpzahxattluqdipvbdktqmndfefitzuifqjpschzlbvixnvznkmmgjwvkplfhemnapsewgqxggdzdokryhv"))) - .withUserDetails(new UserDetails().withFirstName("appvdclawzfjntdfdftjevlhvzropnxqtnypid") - .withLastName("nzirbvzmkxtbrlamyatlcszebxgcyncxoascojsmacwvjsjvn") - .withEmailAddress("7_-46@13D--3.m-4x-.11.c-9-.DHLYFc") - .withUpn("undljch") - .withPhoneNumber("fvcjylxlmhdnshsgywnzlyvshu")) - .withCompanyDetails(new CompanyDetails().withCompanyName("xszcggknokhw") - .withOfficeAddress("sbttzwyajgdbsvipuiclbzvkcvwyil") - .withCountry("gwkcpnwyaqc") - .withDomain("utcxetzzpmbvwmjrvphqngvp") - .withBusiness("pucosrtjv") - .withNumberOfEmployees(25)) - .withLinkOrganization(new LinkOrganization().withToken("fakeTokenPlaceholder"))) - .create(); - } - - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_CreateOrUpdate_MinimumSet_Gen.json - */ - /** - * Sample code: Organizations_CreateOrUpdate_Min. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void organizationsCreateOrUpdateMin( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations() - .define("n6v") - .withRegion("pamjoudtssthlbhrnfjidr") - .withExistingResourceGroup("rgopenapi") - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} -``` - -### Organizations_Delete - -```java -/** - * Samples for Organizations Delete. - */ -public final class OrganizationsDeleteSamples { - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Delete_MaximumSet_Gen.json - */ - /** - * Sample code: Organizations_Delete. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void organizationsDelete( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().delete("rgopenapi", "_", com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Delete_MinimumSet_Gen.json - */ - /** - * Sample code: Organizations_Delete_Min. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void organizationsDeleteMin( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().delete("rgopenapi", "_-", com.azure.core.util.Context.NONE); - } -} -``` - -### Organizations_GetAllServerlessRuntimes - ```java /** * Samples for Organizations GetAllServerlessRuntimes. */ public final class OrganizationsGetAllServerlessRuntimesSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json */ /** * Sample code: Organizations_GetAllServerlessRuntimes_Min. @@ -227,9 +68,7 @@ public final class OrganizationsGetAllServerlessRuntimesSamples { } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json */ /** * Sample code: Organizations_GetAllServerlessRuntimes. @@ -244,164 +83,114 @@ public final class OrganizationsGetAllServerlessRuntimesSamples { } ``` -### Organizations_GetByResourceGroup +### Organizations_Delete ```java /** - * Samples for Organizations GetByResourceGroup. + * Samples for Operations List. */ -public final class OrganizationsGetByResourceGroupSamples { - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Get_MinimumSet_Gen.json - */ - /** - * Sample code: Organizations_Get_Min. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void organizationsGetMin( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().getByResourceGroupWithResponse("rgopenapi", "q", com.azure.core.util.Context.NONE); - } - +public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Operations_List_MaximumSet_Gen.json */ /** - * Sample code: Organizations_Get. + * Sample code: Operations_List. * * @param manager Entry point to InformaticaDataManagementManager. */ public static void - organizationsGet(com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().getByResourceGroupWithResponse("rgopenapi", "Sg", com.azure.core.util.Context.NONE); - } -} -``` - -### Organizations_GetServerlessMetadata - -```java -/** - * Samples for Organizations GetServerlessMetadata. - */ -public final class OrganizationsGetServerlessMetadataSamples { - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_GetServerlessMetadata_MinimumSet_Gen.json - */ - /** - * Sample code: Organizations_GetServerlessMetadata_Min. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void organizationsGetServerlessMetadataMin( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().getServerlessMetadataWithResponse("rgopenapi", "A", com.azure.core.util.Context.NONE); + operationsList(com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_GetServerlessMetadata_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Operations_List_MinimumSet_Gen.json */ /** - * Sample code: Organizations_GetServerlessMetadata. + * Sample code: Operations_List_Min. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void organizationsGetServerlessMetadata( + public static void operationsListMin( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations() - .getServerlessMetadataWithResponse("rgopenapi", "3_UC", com.azure.core.util.Context.NONE); + manager.operations().list(com.azure.core.util.Context.NONE); } } ``` -### Organizations_List +### Organizations_GetAllServerlessRuntimes ```java /** - * Samples for Organizations List. + * Samples for ServerlessRuntimes CheckDependencies. */ -public final class OrganizationsListSamples { +public final class ServerlessRuntimesCheckDependenciesSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_CheckDependencies_MinimumSet_Gen.json */ /** - * Sample code: Organizations_ListBySubscription. + * Sample code: ServerlessRuntimes_CheckDependencies_Min. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void organizationsListBySubscription( + public static void serverlessRuntimesCheckDependenciesMin( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().list(com.azure.core.util.Context.NONE); + manager.serverlessRuntimes() + .checkDependenciesWithResponse("rgopenapi", "_-", "_2_", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json */ /** - * Sample code: Organizations_ListBySubscription_Min. + * Sample code: ServerlessRuntimes_CheckDependencies. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void organizationsListBySubscriptionMin( + public static void serverlessRuntimesCheckDependencies( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().list(com.azure.core.util.Context.NONE); + manager.serverlessRuntimes() + .checkDependenciesWithResponse("rgopenapi", "3P", "M", com.azure.core.util.Context.NONE); } } ``` -### Organizations_ListByResourceGroup +### Organizations_GetByResourceGroup ```java /** - * Samples for Organizations ListByResourceGroup. + * Samples for ServerlessRuntimes Get. */ -public final class OrganizationsListByResourceGroupSamples { +public final class ServerlessRuntimesGetSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_Get_MaximumSet_Gen.json */ /** - * Sample code: Organizations_ListByResourceGroup_Min. + * Sample code: ServerlessRuntimes_Get. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void organizationsListByResourceGroupMin( + public static void serverlessRuntimesGet( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + manager.serverlessRuntimes().getWithResponse("rgopenapi", "e3Y", "48-", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_Get_MinimumSet_Gen.json */ /** - * Sample code: Organizations_ListByResourceGroup. + * Sample code: ServerlessRuntimes_Get_Min. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void organizationsListByResourceGroup( + public static void serverlessRuntimesGetMin( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + manager.serverlessRuntimes().getWithResponse("rgopenapi", "YC", "___", com.azure.core.util.Context.NONE); } } ``` -### Organizations_Update +### Organizations_GetServerlessMetadata ```java import com.azure.resourcemanager.informaticadatamanagement.models.CompanyDetailsUpdate; @@ -418,9 +207,7 @@ import java.util.Map; */ public final class OrganizationsUpdateSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_Update_MaximumSet_Gen.json */ /** * Sample code: Organizations_Update. @@ -462,9 +249,7 @@ public final class OrganizationsUpdateSamples { } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Update_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_Update_MinimumSet_Gen.json */ /** * Sample code: Organizations_Update_Min. @@ -493,48 +278,7 @@ public final class OrganizationsUpdateSamples { } ``` -### ServerlessRuntimes_CheckDependencies - -```java -/** - * Samples for ServerlessRuntimes CheckDependencies. - */ -public final class ServerlessRuntimesCheckDependenciesSamples { - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_CheckDependencies_MinimumSet_Gen.json - */ - /** - * Sample code: ServerlessRuntimes_CheckDependencies_Min. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void serverlessRuntimesCheckDependenciesMin( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.serverlessRuntimes() - .checkDependenciesWithResponse("rgopenapi", "_-", "_2_", com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json - */ - /** - * Sample code: ServerlessRuntimes_CheckDependencies. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void serverlessRuntimesCheckDependencies( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.serverlessRuntimes() - .checkDependenciesWithResponse("rgopenapi", "3P", "M", com.azure.core.util.Context.NONE); - } -} -``` - -### ServerlessRuntimes_CreateOrUpdate +### Organizations_Update ```java import com.azure.resourcemanager.informaticadatamanagement.models.AdvancedCustomProperties; @@ -555,9 +299,7 @@ import java.util.Arrays; */ public final class ServerlessRuntimesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_CreateOrUpdate. @@ -611,9 +353,7 @@ public final class ServerlessRuntimesCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_CreateOrUpdate_Min. @@ -627,147 +367,161 @@ public final class ServerlessRuntimesCreateOrUpdateSamples { } ``` -### ServerlessRuntimes_Delete +### ServerlessRuntimes_CheckDependencies ```java /** - * Samples for ServerlessRuntimes Delete. + * Samples for ServerlessRuntimes ServerlessResourceById. */ -public final class ServerlessRuntimesDeleteSamples { +public final class ServerlessRuntimesServerlessResourceByIdSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json */ /** - * Sample code: ServerlessRuntimes_Delete. + * Sample code: ServerlessRuntimes_ServerlessResourceById. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void serverlessRuntimesDelete( + public static void serverlessRuntimesServerlessResourceById( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { manager.serverlessRuntimes() - .delete("rgopenapi", "orgName", "serverlessRuntimeName", com.azure.core.util.Context.NONE); + .serverlessResourceByIdWithResponse("rgopenapi", "_RD_R", "serverlessRuntimeName159", + com.azure.core.util.Context.NONE); } } ``` -### ServerlessRuntimes_Get +### ServerlessRuntimes_CreateOrUpdate ```java +import com.azure.resourcemanager.informaticadatamanagement.models.CompanyDetails; +import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaProperties; +import com.azure.resourcemanager.informaticadatamanagement.models.LinkOrganization; +import com.azure.resourcemanager.informaticadatamanagement.models.MarketplaceDetails; +import com.azure.resourcemanager.informaticadatamanagement.models.OfferDetails; +import com.azure.resourcemanager.informaticadatamanagement.models.OrganizationProperties; +import com.azure.resourcemanager.informaticadatamanagement.models.UserDetails; +import java.util.HashMap; +import java.util.Map; + /** - * Samples for ServerlessRuntimes Get. + * Samples for Organizations CreateOrUpdate. */ -public final class ServerlessRuntimesGetSamples { +public final class OrganizationsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: ServerlessRuntimes_Get. + * Sample code: Organizations_CreateOrUpdate. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void serverlessRuntimesGet( + public static void organizationsCreateOrUpdate( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.serverlessRuntimes().getWithResponse("rgopenapi", "e3Y", "48-", com.azure.core.util.Context.NONE); + manager.organizations() + .define("C") + .withRegion("pamjoudtssthlbhrnfjidr") + .withExistingResourceGroup("rgopenapi") + .withTags(mapOf("key8430", "fakeTokenPlaceholder")) + .withProperties(new OrganizationProperties() + .withInformaticaProperties( + new InformaticaProperties().withOrganizationId("wtdmhlwhkvgqdumaehgfgiqcxgnqpx") + .withOrganizationName("nomzbvwe") + .withInformaticaRegion("zfqodqpbeflhedypiijdkc") + .withSingleSignOnUrl("https://contoso.com/singlesignon")) + .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("ovenlecocg") + .withOfferDetails(new OfferDetails() + .withPublisherId( + "zajxpfacudwongxjvnnuhhpygmnydchgowjccyuzsjonegmqxcqqpnzafanggowfqdixnnutyfvmvwrkx") + .withOfferId("cwswcfwmzhjcoksmueukegwaptvpcmbfyvixfhvgwnjyblqivqdkkwkunkgimiopwwkvgnwclmajhuty") + .withPlanId("jfnemevyivtlxhectiutdavdgfyidolivuojumdzckp") + .withPlanName( + "iaoxgaitteuoqgujkgxbdgryaobtkjjecuvchwutntrvmuorikrbqqegmelenbewhakiysprrnovjixyxrikscaptrbapbdspu") + .withTermUnit("gjwmgevrblbosuogsvfspsgspetbnxaygkbelvadpgwiywl") + .withTermId( + "tcvvsxdjnjlfmjhmvwklptdmxetnzydxyuhfqchoubmtoeqbchnfxoxqzezlgpxdnzyvzgkynjxzzgetkqccxvpzahxattluqdipvbdktqmndfefitzuifqjpschzlbvixnvznkmmgjwvkplfhemnapsewgqxggdzdokryhv"))) + .withUserDetails(new UserDetails().withFirstName("appvdclawzfjntdfdftjevlhvzropnxqtnypid") + .withLastName("nzirbvzmkxtbrlamyatlcszebxgcyncxoascojsmacwvjsjvn") + .withEmailAddress("7_-46@13D--3.m-4x-.11.c-9-.DHLYFc") + .withUpn("undljch") + .withPhoneNumber("fvcjylxlmhdnshsgywnzlyvshu")) + .withCompanyDetails(new CompanyDetails().withCompanyName("xszcggknokhw") + .withOfficeAddress("sbttzwyajgdbsvipuiclbzvkcvwyil") + .withCountry("gwkcpnwyaqc") + .withDomain("utcxetzzpmbvwmjrvphqngvp") + .withBusiness("pucosrtjv") + .withNumberOfEmployees(25)) + .withLinkOrganization(new LinkOrganization().withToken("fakeTokenPlaceholder"))) + .create(); } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_Get_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_CreateOrUpdate_MinimumSet_Gen.json */ /** - * Sample code: ServerlessRuntimes_Get_Min. + * Sample code: Organizations_CreateOrUpdate_Min. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void serverlessRuntimesGetMin( + public static void organizationsCreateOrUpdateMin( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.serverlessRuntimes().getWithResponse("rgopenapi", "YC", "___", com.azure.core.util.Context.NONE); + manager.organizations() + .define("n6v") + .withRegion("pamjoudtssthlbhrnfjidr") + .withExistingResourceGroup("rgopenapi") + .create(); } -} -``` -### ServerlessRuntimes_ListByInformaticaOrganizationResource - -```java -/** - * Samples for ServerlessRuntimes ListByInformaticaOrganizationResource. - */ -public final class ServerlessRuntimesListByInformaticaOrganizationResourceS { - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json - */ - /** - * Sample code: ServerlessRuntimes_ListByInformaticaOrganizationResource. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void serverlessRuntimesListByInformaticaOrganizationResource( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.serverlessRuntimes() - .listByInformaticaOrganizationResource("rgopenapi", "orgName", com.azure.core.util.Context.NONE); + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; } } ``` -### ServerlessRuntimes_ServerlessResourceById +### ServerlessRuntimes_Delete ```java /** - * Samples for ServerlessRuntimes ServerlessResourceById. + * Samples for Organizations Delete. */ -public final class ServerlessRuntimesServerlessResourceByIdSamples { +public final class OrganizationsDeleteSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_Delete_MaximumSet_Gen.json */ /** - * Sample code: ServerlessRuntimes_ServerlessResourceById. + * Sample code: Organizations_Delete. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void serverlessRuntimesServerlessResourceById( + public static void organizationsDelete( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.serverlessRuntimes() - .serverlessResourceByIdWithResponse("rgopenapi", "_RD_R", "serverlessRuntimeName159", - com.azure.core.util.Context.NONE); + manager.organizations().delete("rgopenapi", "_", com.azure.core.util.Context.NONE); } -} -``` -### ServerlessRuntimes_StartFailedServerlessRuntime - -```java -/** - * Samples for ServerlessRuntimes StartFailedServerlessRuntime. - */ -public final class ServerlessRuntimesStartFailedServerlessRuntimeSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_Delete_MinimumSet_Gen.json */ /** - * Sample code: ServerlessRuntimes_StartFailedServerlessRuntime. + * Sample code: Organizations_Delete_Min. * * @param manager Entry point to InformaticaDataManagementManager. */ - public static void serverlessRuntimesStartFailedServerlessRuntime( + public static void organizationsDeleteMin( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.serverlessRuntimes() - .startFailedServerlessRuntimeWithResponse("rgopenapi", "9M4", "-25-G_", com.azure.core.util.Context.NONE); + manager.organizations().delete("rgopenapi", "_-", com.azure.core.util.Context.NONE); } } ``` -### ServerlessRuntimes_Update +### ServerlessRuntimes_Get ```java import com.azure.resourcemanager.informaticadatamanagement.models.AdvancedCustomProperties; @@ -789,9 +543,7 @@ import java.util.Arrays; */ public final class ServerlessRuntimesUpdateSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_Update_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_Update_MinimumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Update_Min. @@ -807,9 +559,7 @@ public final class ServerlessRuntimesUpdateSamples { } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_Update_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Update. @@ -866,3 +616,97 @@ public final class ServerlessRuntimesUpdateSamples { } ``` +### ServerlessRuntimes_ServerlessResourceById + +```java +/** + * Samples for ServerlessRuntimes Delete. + */ +public final class ServerlessRuntimesDeleteSamples { + /* + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: ServerlessRuntimes_Delete. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void serverlessRuntimesDelete( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.serverlessRuntimes() + .delete("rgopenapi", "orgName", "serverlessRuntimeName", com.azure.core.util.Context.NONE); + } +} +``` + +### ServerlessRuntimes_StartFailedServerlessRuntime + +```java +/** + * Samples for Organizations GetByResourceGroup. + */ +public final class OrganizationsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2024-05-08/Organizations_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Organizations_Get_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void organizationsGetMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.organizations().getByResourceGroupWithResponse("rgopenapi", "q", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2024-05-08/Organizations_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Organizations_Get. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void + organizationsGet(com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.organizations().getByResourceGroupWithResponse("rgopenapi", "Sg", com.azure.core.util.Context.NONE); + } +} +``` + +### ServerlessRuntimes_Update + +```java +/** + * Samples for Organizations GetServerlessMetadata. + */ +public final class OrganizationsGetServerlessMetadataSamples { + /* + * x-ms-original-file: 2024-05-08/Organizations_GetServerlessMetadata_MinimumSet_Gen.json + */ + /** + * Sample code: Organizations_GetServerlessMetadata_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void organizationsGetServerlessMetadataMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.organizations().getServerlessMetadataWithResponse("rgopenapi", "A", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2024-05-08/Organizations_GetServerlessMetadata_MaximumSet_Gen.json + */ + /** + * Sample code: Organizations_GetServerlessMetadata. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void organizationsGetServerlessMetadata( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.organizations() + .getServerlessMetadataWithResponse("rgopenapi", "3_UC", com.azure.core.util.Context.NONE); + } +} +``` + diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml index 9cf3a6a8a899..b7c93cebf329 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml @@ -1,7 +1,7 @@ 4.0.0 @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for Informatica DataManagement Management - This package contains Microsoft Azure SDK for Informatica DataManagement Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-05-08. + This package contains Microsoft Azure SDK for Informatica DataManagement Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. https://github.com/Azure/azure-sdk-for-java @@ -45,13 +45,9 @@ UTF-8 0 0 + true - - com.azure - azure-json - 1.5.0 - com.azure azure-core @@ -74,5 +70,10 @@ 1.15.4 test + + com.azure + azure-json + 1.5.0 + diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/InformaticaDataManagementManager.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/InformaticaDataManagementManager.java index 86613c62a976..291b0d43f177 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/InformaticaDataManagementManager.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/InformaticaDataManagementManager.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.informaticadatamanagement; @@ -11,20 +11,21 @@ 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.informaticadatamanagement.fluent.InformaticaDataManagement; -import com.azure.resourcemanager.informaticadatamanagement.implementation.InformaticaDataManagementBuilder; +import com.azure.resourcemanager.informaticadatamanagement.fluent.InformaticaDataManagementClient; +import com.azure.resourcemanager.informaticadatamanagement.implementation.InformaticaDataManagementClientBuilder; import com.azure.resourcemanager.informaticadatamanagement.implementation.OperationsImpl; import com.azure.resourcemanager.informaticadatamanagement.implementation.OrganizationsImpl; import com.azure.resourcemanager.informaticadatamanagement.implementation.ServerlessRuntimesImpl; @@ -35,6 +36,7 @@ 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; @@ -48,13 +50,13 @@ public final class InformaticaDataManagementManager { private ServerlessRuntimes serverlessRuntimes; - private final InformaticaDataManagement clientObject; + private final InformaticaDataManagementClient clientObject; private InformaticaDataManagementManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); - this.clientObject = new InformaticaDataManagementBuilder().pipeline(httpPipeline) + this.clientObject = new InformaticaDataManagementClientBuilder().pipeline(httpPipeline) .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) .subscriptionId(profile.getSubscriptionId()) .defaultPollInterval(defaultPollInterval) @@ -102,6 +104,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-informaticadatamanagement.properties"); private HttpClient httpClient; private HttpLogOptions httpLogOptions; @@ -209,12 +214,14 @@ public InformaticaDataManagementManager authenticate(TokenCredential credential, 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.informaticadatamanagement") .append("/") - .append("1.0.0"); + .append(clientVersion); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -247,7 +254,7 @@ public InformaticaDataManagementManager authenticate(TokenCredential credential, 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())); @@ -297,12 +304,12 @@ public ServerlessRuntimes serverlessRuntimes() { } /** - * Gets wrapped service client InformaticaDataManagement providing direct access to the underlying auto-generated - * API implementation, based on Azure REST API. + * Gets wrapped service client InformaticaDataManagementClient providing direct access to the underlying + * auto-generated API implementation, based on Azure REST API. * - * @return Wrapped service client InformaticaDataManagement. + * @return Wrapped service client InformaticaDataManagementClient. */ - public InformaticaDataManagement serviceClient() { + public InformaticaDataManagementClient serviceClient() { return this.clientObject; } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagement.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagementClient.java similarity index 82% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagement.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagementClient.java index 557cfd925f4a..adbc3b58b238 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagement.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagementClient.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.informaticadatamanagement.fluent; @@ -8,30 +8,30 @@ import java.time.Duration; /** - * The interface for InformaticaDataManagement class. + * The interface for InformaticaDataManagementClient class. */ -public interface InformaticaDataManagement { +public interface InformaticaDataManagementClient { /** - * 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/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OperationsClient.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OperationsClient.java index 5957196a0302..525914b91993 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OperationsClient.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.fluent; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OrganizationsClient.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OrganizationsClient.java index c1f0775c1548..26cb98c0083a 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OrganizationsClient.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OrganizationsClient.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.informaticadatamanagement.fluent; @@ -20,57 +20,6 @@ * An instance of this class provides access to all the operations defined in OrganizationsClient. */ public interface OrganizationsClient { - /** - * List InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * List InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - - /** - * List InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * List InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - /** * Get a InformaticaOrganizationResource. * @@ -247,34 +196,55 @@ InformaticaOrganizationResourceInner update(String resourceGroupName, String org void delete(String resourceGroupName, String organizationName, Context context); /** - * Gets all serverless runtime resources in a given informatica organization resource. + * List InformaticaOrganizationResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 all serverless runtime resources in a given informatica organization resource along with - * {@link Response}. + * @return the response of a InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response - getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); /** - * Gets all serverless runtime resources in a given informatica organization resource. + * List InformaticaOrganizationResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 all serverless runtime resources in a given informatica organization resource. + * @return the response of a InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(String resourceGroupName, - String organizationName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * List InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); /** * Gets Metadata of the serverless runtime environment. @@ -303,4 +273,34 @@ Response getServerlessMetadataWithResponse(Stri */ @ServiceMethod(returns = ReturnType.SINGLE) ServerlessMetadataResponseInner getServerlessMetadata(String resourceGroupName, String organizationName); + + /** + * Gets all serverless runtime resources in a given informatica organization resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 all serverless runtime resources in a given informatica organization resource along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response + getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context); + + /** + * Gets all serverless runtime resources in a given informatica organization resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 all serverless runtime resources in a given informatica organization resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(String resourceGroupName, + String organizationName); } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/ServerlessRuntimesClient.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/ServerlessRuntimesClient.java index 2be74e3d4dbf..243750fd868a 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/ServerlessRuntimesClient.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/ServerlessRuntimesClient.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.informaticadatamanagement.fluent; @@ -19,37 +19,6 @@ * An instance of this class provides access to all the operations defined in ServerlessRuntimesClient. */ public interface ServerlessRuntimesClient { - /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable - listByInformaticaOrganizationResource(String resourceGroupName, String organizationName); - - /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable - listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context); - /** * Get a InformaticaServerlessRuntimeResource. * @@ -150,38 +119,35 @@ InformaticaServerlessRuntimeResourceInner createOrUpdate(String resourceGroupNam String serverlessRuntimeName, InformaticaServerlessRuntimeResourceInner resource, Context context); /** - * Update a InformaticaServerlessRuntimeResource. + * Delete a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime 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 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 Serverless Runtime environment resource by Informatica along with {@link Response}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse(String resourceGroupName, - String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, - Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, + String serverlessRuntimeName); /** - * Update a InformaticaServerlessRuntimeResource. + * Delete a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime 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 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 Serverless Runtime environment resource by Informatica. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName, - String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, + String serverlessRuntimeName, Context context); /** * Delete a InformaticaServerlessRuntimeResource. @@ -192,11 +158,9 @@ InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, - String serverlessRuntimeName); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName); /** * Delete a InformaticaServerlessRuntimeResource. @@ -208,38 +172,74 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context); /** - * Delete a InformaticaServerlessRuntimeResource. + * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 InformaticaServerlessRuntimeResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable + listByInformaticaOrganizationResource(String resourceGroupName, String organizationName); + + /** + * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 InformaticaServerlessRuntimeResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable + listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context); + + /** + * Update a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime 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 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 Serverless Runtime environment resource by Informatica along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName); + Response updateWithResponse(String resourceGroupName, + String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, + Context context); /** - * Delete a InformaticaServerlessRuntimeResource. + * Update a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime resource. - * @param context The context to associate with this operation. + * @param properties The resource properties to be updated. * @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 Serverless Runtime environment resource by Informatica. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context); + InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName, + String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties); /** * Checks all dependencies for a serverless runtime resource. @@ -274,7 +274,7 @@ CheckDependenciesResponseInner checkDependencies(String resourceGroupName, Strin String serverlessRuntimeName); /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -283,14 +283,14 @@ CheckDependenciesResponseInner checkDependencies(String resourceGroupName, Strin * @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 Serverless Runtime environment resource by Informatica along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response serverlessResourceByIdWithResponse(String resourceGroupName, - String organizationName, String serverlessRuntimeName, Context context); + Response startFailedServerlessRuntimeWithResponse(String resourceGroupName, String organizationName, + String serverlessRuntimeName, Context context); /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -298,14 +298,12 @@ Response serverlessResourceByIdWithRe * @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 Serverless Runtime environment resource by Informatica. */ @ServiceMethod(returns = ReturnType.SINGLE) - InformaticaServerlessRuntimeResourceInner serverlessResourceById(String resourceGroupName, String organizationName, - String serverlessRuntimeName); + void startFailedServerlessRuntime(String resourceGroupName, String organizationName, String serverlessRuntimeName); /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by ID. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -314,14 +312,14 @@ InformaticaServerlessRuntimeResourceInner serverlessResourceById(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return a Serverless Runtime environment resource by Informatica along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response startFailedServerlessRuntimeWithResponse(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context); + Response serverlessResourceByIdWithResponse(String resourceGroupName, + String organizationName, String serverlessRuntimeName, Context context); /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by ID. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -329,7 +327,9 @@ Response startFailedServerlessRuntimeWithResponse(String resourceGroupName * @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 Serverless Runtime environment resource by Informatica. */ @ServiceMethod(returns = ReturnType.SINGLE) - void startFailedServerlessRuntime(String resourceGroupName, String organizationName, String serverlessRuntimeName); + InformaticaServerlessRuntimeResourceInner serverlessResourceById(String resourceGroupName, String organizationName, + String serverlessRuntimeName); } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/CheckDependenciesResponseInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/CheckDependenciesResponseInner.java index b181dd2d5f97..c67f9f22c7aa 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/CheckDependenciesResponseInner.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/CheckDependenciesResponseInner.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.informaticadatamanagement.fluent.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaOrganizationResourceInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaOrganizationResourceInner.java index 9f58ec160829..11037b1cd8a6 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaOrganizationResourceInner.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaOrganizationResourceInner.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.informaticadatamanagement.fluent.models; @@ -30,9 +30,9 @@ public final class InformaticaOrganizationResourceInner extends Resource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -40,9 +40,9 @@ public final class InformaticaOrganizationResourceInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of InformaticaOrganizationResourceInner class. @@ -80,13 +80,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -100,13 +100,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceInner.java index e2f10d9cfced..5fba9844e12d 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceInner.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceInner.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.informaticadatamanagement.fluent.models; @@ -29,9 +29,9 @@ public final class InformaticaServerlessRuntimeResourceInner extends ProxyResour private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +39,9 @@ public final class InformaticaServerlessRuntimeResourceInner extends ProxyResour private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of InformaticaServerlessRuntimeResourceInner class. @@ -79,13 +79,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -99,13 +99,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceListInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceListInner.java index 9e8c35c92230..3a595f9e86eb 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceListInner.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceListInner.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.informaticadatamanagement.fluent.models; @@ -10,7 +10,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetadata; +import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetaData; import java.io.IOException; import java.util.List; @@ -23,7 +23,7 @@ public final class InformaticaServerlessRuntimeResourceListInner /* * List of runtime resources for the fetch all API */ - private List informaticaRuntimeResources; + private List informaticaRuntimeResources; /** * Creates an instance of InformaticaServerlessRuntimeResourceListInner class. @@ -36,7 +36,7 @@ private InformaticaServerlessRuntimeResourceListInner() { * * @return the informaticaRuntimeResources value. */ - public List informaticaRuntimeResources() { + public List informaticaRuntimeResources() { return this.informaticaRuntimeResources; } @@ -86,8 +86,8 @@ public static InformaticaServerlessRuntimeResourceListInner fromJson(JsonReader reader.nextToken(); if ("informaticaRuntimeResources".equals(fieldName)) { - List informaticaRuntimeResources - = reader.readArray(reader1 -> InfaRuntimeResourceFetchMetadata.fromJson(reader1)); + List informaticaRuntimeResources + = reader.readArray(reader1 -> InfaRuntimeResourceFetchMetaData.fromJson(reader1)); deserializedInformaticaServerlessRuntimeResourceListInner.informaticaRuntimeResources = informaticaRuntimeResources; } else { diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/OperationInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/OperationInner.java index 9c31cf04b99c..a64a47e1fb21 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/OperationInner.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/OperationInner.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.informaticadatamanagement.fluent.models; @@ -15,8 +15,6 @@ import java.io.IOException; /** - * REST API Operation - * * Details of a REST API operation, returned from the Resource Provider Operations API. */ @Immutable @@ -28,8 +26,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,7 +43,7 @@ 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; @@ -67,7 +65,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. */ @@ -95,8 +93,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. */ diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/ServerlessMetadataResponseInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/ServerlessMetadataResponseInner.java index dfdf06fab932..a39a33daadec 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/ServerlessMetadataResponseInner.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/ServerlessMetadataResponseInner.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.informaticadatamanagement.fluent.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/package-info.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/package-info.java index 70ef22300cce..b2a4a44de77b 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/package-info.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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 InformaticaDataManagement. - * null. */ package com.azure.resourcemanager.informaticadatamanagement.fluent.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/package-info.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/package-info.java index c6adef6daac0..b4dfb8670fe7 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/package-info.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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 InformaticaDataManagement. - * null. */ package com.azure.resourcemanager.informaticadatamanagement.fluent; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/CheckDependenciesResponseImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/CheckDependenciesResponseImpl.java index 7cffd6a118f1..510c8ac7d81d 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/CheckDependenciesResponseImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/CheckDependenciesResponseImpl.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.informaticadatamanagement.implementation; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementBuilder.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementClientBuilder.java similarity index 64% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementBuilder.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementClientBuilder.java index 603397f65fcd..a485ca7e4282 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementBuilder.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementClientBuilder.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.informaticadatamanagement.implementation; @@ -15,39 +15,39 @@ import java.time.Duration; /** - * A builder for creating a new instance of the InformaticaDataManagementImpl type. + * A builder for creating a new instance of the InformaticaDataManagementClientImpl type. */ -@ServiceClientBuilder(serviceClients = { InformaticaDataManagementImpl.class }) -public final class InformaticaDataManagementBuilder { +@ServiceClientBuilder(serviceClients = { InformaticaDataManagementClientImpl.class }) +public final class InformaticaDataManagementClientBuilder { /* - * 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 InformaticaDataManagementBuilder. + * @param endpoint the endpoint value. + * @return the InformaticaDataManagementClientBuilder. */ - public InformaticaDataManagementBuilder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; + public InformaticaDataManagementClientBuilder 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 InformaticaDataManagementBuilder. + * @param subscriptionId the subscriptionId value. + * @return the InformaticaDataManagementClientBuilder. */ - public InformaticaDataManagementBuilder endpoint(String endpoint) { - this.endpoint = endpoint; + public InformaticaDataManagementClientBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; return this; } @@ -60,9 +60,9 @@ public InformaticaDataManagementBuilder endpoint(String endpoint) { * Sets The environment to connect to. * * @param environment the environment value. - * @return the InformaticaDataManagementBuilder. + * @return the InformaticaDataManagementClientBuilder. */ - public InformaticaDataManagementBuilder environment(AzureEnvironment environment) { + public InformaticaDataManagementClientBuilder environment(AzureEnvironment environment) { this.environment = environment; return this; } @@ -76,9 +76,9 @@ public InformaticaDataManagementBuilder environment(AzureEnvironment environment * Sets The HTTP pipeline to send requests through. * * @param pipeline the pipeline value. - * @return the InformaticaDataManagementBuilder. + * @return the InformaticaDataManagementClientBuilder. */ - public InformaticaDataManagementBuilder pipeline(HttpPipeline pipeline) { + public InformaticaDataManagementClientBuilder pipeline(HttpPipeline pipeline) { this.pipeline = pipeline; return this; } @@ -92,9 +92,9 @@ public InformaticaDataManagementBuilder pipeline(HttpPipeline pipeline) { * Sets The default poll interval for long-running operation. * * @param defaultPollInterval the defaultPollInterval value. - * @return the InformaticaDataManagementBuilder. + * @return the InformaticaDataManagementClientBuilder. */ - public InformaticaDataManagementBuilder defaultPollInterval(Duration defaultPollInterval) { + public InformaticaDataManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { this.defaultPollInterval = defaultPollInterval; return this; } @@ -108,19 +108,19 @@ public InformaticaDataManagementBuilder defaultPollInterval(Duration defaultPoll * Sets The serializer to serialize an object into a string. * * @param serializerAdapter the serializerAdapter value. - * @return the InformaticaDataManagementBuilder. + * @return the InformaticaDataManagementClientBuilder. */ - public InformaticaDataManagementBuilder serializerAdapter(SerializerAdapter serializerAdapter) { + public InformaticaDataManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { this.serializerAdapter = serializerAdapter; return this; } /** - * Builds an instance of InformaticaDataManagementImpl with the provided parameters. + * Builds an instance of InformaticaDataManagementClientImpl with the provided parameters. * - * @return an instance of InformaticaDataManagementImpl. + * @return an instance of InformaticaDataManagementClientImpl. */ - public InformaticaDataManagementImpl buildClient() { + public InformaticaDataManagementClientImpl 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 InformaticaDataManagementImpl buildClient() { SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); - InformaticaDataManagementImpl client = new InformaticaDataManagementImpl(localPipeline, localSerializerAdapter, - localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); + InformaticaDataManagementClientImpl client = new InformaticaDataManagementClientImpl(localPipeline, + localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId); return client; } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementClientImpl.java similarity index 91% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementImpl.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementClientImpl.java index 16c962282859..bb1bd79a1c02 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementClientImpl.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.informaticadatamanagement.implementation; @@ -13,8 +13,8 @@ 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.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; @@ -23,7 +23,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.informaticadatamanagement.fluent.InformaticaDataManagement; +import com.azure.resourcemanager.informaticadatamanagement.fluent.InformaticaDataManagementClient; import com.azure.resourcemanager.informaticadatamanagement.fluent.OperationsClient; import com.azure.resourcemanager.informaticadatamanagement.fluent.OrganizationsClient; import com.azure.resourcemanager.informaticadatamanagement.fluent.ServerlessRuntimesClient; @@ -37,31 +37,17 @@ import reactor.core.publisher.Mono; /** - * Initializes a new instance of the InformaticaDataManagementImpl type. + * Initializes a new instance of the InformaticaDataManagementClientImpl type. */ -@ServiceClient(builder = InformaticaDataManagementBuilder.class) -public final class InformaticaDataManagementImpl implements InformaticaDataManagement { - /** - * 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 = InformaticaDataManagementClientBuilder.class) +public final class InformaticaDataManagementClientImpl implements InformaticaDataManagementClient { /** - * server parameter. + * Service host. */ private final String endpoint; /** - * Gets server parameter. + * Gets Service host. * * @return the endpoint value. */ @@ -70,12 +56,12 @@ public String getEndpoint() { } /** - * Api Version. + * Version parameter. */ private final String apiVersion; /** - * Gets Api Version. + * Gets Version parameter. * * @return the apiVersion value. */ @@ -83,6 +69,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. */ @@ -168,22 +168,22 @@ public ServerlessRuntimesClient getServerlessRuntimes() { } /** - * Initializes an instance of InformaticaDataManagement client. + * Initializes an instance of InformaticaDataManagementClient 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. */ - InformaticaDataManagementImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, - Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) { + InformaticaDataManagementClientImpl(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.subscriptionId = subscriptionId; this.apiVersion = "2024-05-08"; this.operations = new OperationsClientImpl(this); this.organizations = new OrganizationsClientImpl(this); @@ -316,5 +316,5 @@ public Mono getBodyAsString(Charset charset) { } } - private static final ClientLogger LOGGER = new ClientLogger(InformaticaDataManagementImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(InformaticaDataManagementClientImpl.class); } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaOrganizationResourceImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaOrganizationResourceImpl.java index 3d3589d8094a..6e07956d7fb0 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaOrganizationResourceImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaOrganizationResourceImpl.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.informaticadatamanagement.implementation; @@ -154,22 +154,22 @@ public InformaticaOrganizationResource refresh(Context context) { return this; } - public Response getAllServerlessRuntimesWithResponse(Context context) { + public Response getServerlessMetadataWithResponse(Context context) { return serviceManager.organizations() - .getAllServerlessRuntimesWithResponse(resourceGroupName, organizationName, context); + .getServerlessMetadataWithResponse(resourceGroupName, organizationName, context); } - public InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes() { - return serviceManager.organizations().getAllServerlessRuntimes(resourceGroupName, organizationName); + public ServerlessMetadataResponse getServerlessMetadata() { + return serviceManager.organizations().getServerlessMetadata(resourceGroupName, organizationName); } - public Response getServerlessMetadataWithResponse(Context context) { + public Response getAllServerlessRuntimesWithResponse(Context context) { return serviceManager.organizations() - .getServerlessMetadataWithResponse(resourceGroupName, organizationName, context); + .getAllServerlessRuntimesWithResponse(resourceGroupName, organizationName, context); } - public ServerlessMetadataResponse getServerlessMetadata() { - return serviceManager.organizations().getServerlessMetadata(resourceGroupName, organizationName); + public InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes() { + return serviceManager.organizations().getAllServerlessRuntimes(resourceGroupName, organizationName); } public InformaticaOrganizationResourceImpl withRegion(Region location) { diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceImpl.java index a3b6a200e670..4ac47d44fabc 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceImpl.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.informaticadatamanagement.implementation; @@ -146,16 +146,6 @@ public CheckDependenciesResponse checkDependencies() { .checkDependencies(resourceGroupName, organizationName, serverlessRuntimeName); } - public Response serverlessResourceByIdWithResponse(Context context) { - return serviceManager.serverlessRuntimes() - .serverlessResourceByIdWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, context); - } - - public InformaticaServerlessRuntimeResource serverlessResourceById() { - return serviceManager.serverlessRuntimes() - .serverlessResourceById(resourceGroupName, organizationName, serverlessRuntimeName); - } - public Response startFailedServerlessRuntimeWithResponse(Context context) { return serviceManager.serverlessRuntimes() .startFailedServerlessRuntimeWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, @@ -167,6 +157,16 @@ public void startFailedServerlessRuntime() { .startFailedServerlessRuntime(resourceGroupName, organizationName, serverlessRuntimeName); } + public Response serverlessResourceByIdWithResponse(Context context) { + return serviceManager.serverlessRuntimes() + .serverlessResourceByIdWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, context); + } + + public InformaticaServerlessRuntimeResource serverlessResourceById() { + return serviceManager.serverlessRuntimes() + .serverlessResourceById(resourceGroupName, organizationName, serverlessRuntimeName); + } + public InformaticaServerlessRuntimeResourceImpl withProperties(InformaticaServerlessRuntimeProperties properties) { this.innerModel().withProperties(properties); return this; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceListImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceListImpl.java index 4d36bb77a8bb..2d648c05bbcd 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceListImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceListImpl.java @@ -1,11 +1,11 @@ // 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.informaticadatamanagement.implementation; import com.azure.resourcemanager.informaticadatamanagement.fluent.models.InformaticaServerlessRuntimeResourceListInner; -import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetadata; +import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetaData; import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceList; import java.util.Collections; import java.util.List; @@ -21,8 +21,8 @@ public final class InformaticaServerlessRuntimeResourceListImpl implements Infor this.serviceManager = serviceManager; } - public List informaticaRuntimeResources() { - List inner = this.innerModel().informaticaRuntimeResources(); + public List informaticaRuntimeResources() { + List inner = this.innerModel().informaticaRuntimeResources(); if (inner != null) { return Collections.unmodifiableList(inner); } else { diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationImpl.java index 1eea487edee4..41d2bcadf75f 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.implementation; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsClientImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsClientImpl.java index bd3d31cc0e3c..b05c91c15ae0 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsClientImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.informaticadatamanagement.fluent.OperationsClient; import com.azure.resourcemanager.informaticadatamanagement.fluent.models.OperationInner; -import com.azure.resourcemanager.informaticadatamanagement.models.OperationListResult; +import com.azure.resourcemanager.informaticadatamanagement.implementation.models.OperationListResult; import reactor.core.publisher.Mono; /** @@ -42,31 +42,31 @@ public final class OperationsClientImpl implements OperationsClient { /** * The service client containing this operation class. */ - private final InformaticaDataManagementImpl client; + private final InformaticaDataManagementClientImpl client; /** * Initializes an instance of OperationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - OperationsClientImpl(InformaticaDataManagementImpl client) { + OperationsClientImpl(InformaticaDataManagementClientImpl client) { this.service = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for InformaticaDataManagementOperations to be used by the proxy service - * to perform REST calls. + * The interface defining all the services for InformaticaDataManagementClientOperations to be used by the proxy + * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "InformaticaDataManag") public interface OperationsService { @Headers({ "Content-Type: application/json" }) @Get("/providers/Informatica.DataManagement/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" }) @@ -74,7 +74,7 @@ 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); } /** diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsImpl.java index 7a4e8878fd28..bc36b43e1949 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.implementation; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsClientImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsClientImpl.java index a8392838f0b8..3ee851ebd657 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsClientImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsClientImpl.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.informaticadatamanagement.implementation; @@ -37,7 +37,7 @@ import com.azure.resourcemanager.informaticadatamanagement.fluent.models.InformaticaOrganizationResourceInner; import com.azure.resourcemanager.informaticadatamanagement.fluent.models.InformaticaServerlessRuntimeResourceListInner; import com.azure.resourcemanager.informaticadatamanagement.fluent.models.ServerlessMetadataResponseInner; -import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaOrganizationResourceListResult; +import com.azure.resourcemanager.informaticadatamanagement.implementation.models.InformaticaOrganizationResourceListResult; import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaOrganizationResourceUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -55,371 +55,120 @@ public final class OrganizationsClientImpl implements OrganizationsClient { /** * The service client containing this operation class. */ - private final InformaticaDataManagementImpl client; + private final InformaticaDataManagementClientImpl client; /** * Initializes an instance of OrganizationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - OrganizationsClientImpl(InformaticaDataManagementImpl client) { + OrganizationsClientImpl(InformaticaDataManagementClientImpl client) { this.service = RestProxy.create(OrganizationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for InformaticaDataManagementOrganizations to be used by the proxy + * The interface defining all the services for InformaticaDataManagementClientOrganizations to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "InformaticaDataManag") public interface OrganizationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Informatica.DataManagement/organizations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") 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}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( - @HostParam("$host") 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/Informatica.DataManagement/organizations/{organizationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("organizationName") String organizationName, - @BodyParam("application/json") InformaticaOrganizationResourceInner resource, - @HeaderParam("Accept") String accept, Context context); + @PathParam("organizationName") String organizationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") InformaticaOrganizationResourceInner resource, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}") @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("organizationName") String organizationName, - @BodyParam("application/json") InformaticaOrganizationResourceUpdate properties, - @HeaderParam("Accept") String accept, Context context); + @PathParam("organizationName") String organizationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") InformaticaOrganizationResourceUpdate properties, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}") @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("organizationName") String organizationName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getAllServerlessRuntimes") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getAllServerlessRuntimes( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + Mono> listByResourceGroup( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getServerlessMetadata") + @Get("/subscriptions/{subscriptionId}/providers/Informatica.DataManagement/organizations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getServerlessMetadata(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getServerlessMetadata") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> getServerlessMetadata(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getAllServerlessRuntimes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * List InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); - } - - /** - * List InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * List InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * List InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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)); - } - - /** - * List InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } + Mono> getAllServerlessRuntimes( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept, + Context context); - /** - * List InformaticaOrganizationResource 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 InformaticaOrganizationResource 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) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -579,10 +328,12 @@ private Mono>> createOrUpdateWithResponseAsync(String } 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, organizationName, resource, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, organizationName, contentType, accept, resource, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -623,10 +374,12 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { resource.validate(); } + 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, organizationName, resource, accept, context); + this.client.getSubscriptionId(), resourceGroupName, organizationName, contentType, accept, resource, + context); } /** @@ -820,10 +573,12 @@ private Mono> updateWithResponseA } 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, organizationName, properties, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, organizationName, contentType, accept, properties, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -864,10 +619,11 @@ private Mono> updateWithResponseA } else { properties.validate(); } + final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, organizationName, properties, accept, context); + resourceGroupName, organizationName, contentType, accept, properties, context); } /** @@ -1013,133 +769,382 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete a InformaticaOrganizationResource. + * Delete a InformaticaOrganizationResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 organizationName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, organizationName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Delete a InformaticaOrganizationResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName) { + return this.beginDeleteAsync(resourceGroupName, organizationName).getSyncPoller(); + } + + /** + * Delete a InformaticaOrganizationResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, organizationName, context).getSyncPoller(); + } + + /** + * Delete a InformaticaOrganizationResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String organizationName) { + return beginDeleteAsync(resourceGroupName, organizationName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a InformaticaOrganizationResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 organizationName, Context context) { + return beginDeleteAsync(resourceGroupName, organizationName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a InformaticaOrganizationResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String organizationName) { + deleteAsync(resourceGroupName, organizationName).block(); + } + + /** + * Delete a InformaticaOrganizationResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 organizationName, Context context) { + deleteAsync(resourceGroupName, organizationName, context).block(); + } + + /** + * List InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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 InformaticaOrganizationResource 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)); + } + + /** + * List InformaticaOrganizationResource 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 InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * List InformaticaOrganizationResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 of a InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName, + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, organizationName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * Delete a InformaticaOrganizationResource. + * List InformaticaOrganizationResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName) { - return this.beginDeleteAsync(resourceGroupName, organizationName).getSyncPoller(); + @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())); } /** - * Delete a InformaticaOrganizationResource. + * List InformaticaOrganizationResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, organizationName, context).getSyncPoller(); + @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)); } /** - * Delete a InformaticaOrganizationResource. + * List InformaticaOrganizationResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the response of a InformaticaOrganizationResource list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String organizationName) { - return beginDeleteAsync(resourceGroupName, organizationName).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } /** - * Delete a InformaticaOrganizationResource. + * List InformaticaOrganizationResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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. + * @return the response of a InformaticaOrganizationResource list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String organizationName, Context context) { - return beginDeleteAsync(resourceGroupName, organizationName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); } /** - * Delete a InformaticaOrganizationResource. + * List InformaticaOrganizationResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String organizationName) { - deleteAsync(resourceGroupName, organizationName).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * Delete a InformaticaOrganizationResource. + * List InformaticaOrganizationResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String organizationName, Context context) { - deleteAsync(resourceGroupName, organizationName, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** - * Gets all serverless runtime resources in a given informatica organization resource. + * Gets Metadata of the serverless runtime environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all serverless runtime resources in a given informatica organization resource along with {@link Response} - * on successful completion of {@link Mono}. + * @return metadata of the serverless runtime environment along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getAllServerlessRuntimesWithResponseAsync(String resourceGroupName, String organizationName) { + private Mono> + getServerlessMetadataWithResponseAsync(String resourceGroupName, String organizationName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1159,13 +1164,13 @@ public void delete(String resourceGroupName, String organizationName, Context co final String accept = "application/json"; return FluxUtil .withContext( - context -> service.getAllServerlessRuntimes(this.client.getEndpoint(), this.client.getApiVersion(), + context -> service.getServerlessMetadata(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets all serverless runtime resources in a given informatica organization resource. + * Gets Metadata of the serverless runtime environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1173,12 +1178,12 @@ public void delete(String resourceGroupName, String organizationName, Context co * @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 all serverless runtime resources in a given informatica organization resource along with {@link Response} - * on successful completion of {@link Mono}. + * @return metadata of the serverless runtime environment along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getAllServerlessRuntimesWithResponseAsync(String resourceGroupName, String organizationName, Context context) { + private Mono> + getServerlessMetadataWithResponseAsync(String resourceGroupName, String organizationName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1197,30 +1202,29 @@ public void delete(String resourceGroupName, String organizationName, Context co } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getAllServerlessRuntimes(this.client.getEndpoint(), this.client.getApiVersion(), + return service.getServerlessMetadata(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context); } /** - * Gets all serverless runtime resources in a given informatica organization resource. + * Gets Metadata of the serverless runtime environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all serverless runtime resources in a given informatica organization resource on successful completion of - * {@link Mono}. + * @return metadata of the serverless runtime environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAllServerlessRuntimesAsync(String resourceGroupName, + private Mono getServerlessMetadataAsync(String resourceGroupName, String organizationName) { - return getAllServerlessRuntimesWithResponseAsync(resourceGroupName, organizationName) + return getServerlessMetadataWithResponseAsync(resourceGroupName, organizationName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets all serverless runtime resources in a given informatica organization resource. + * Gets Metadata of the serverless runtime environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1228,45 +1232,43 @@ private Mono getAllServerlessRunt * @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 all serverless runtime resources in a given informatica organization resource along with - * {@link Response}. + * @return metadata of the serverless runtime environment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response - getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context) { - return getAllServerlessRuntimesWithResponseAsync(resourceGroupName, organizationName, context).block(); + public Response getServerlessMetadataWithResponse(String resourceGroupName, + String organizationName, Context context) { + return getServerlessMetadataWithResponseAsync(resourceGroupName, organizationName, context).block(); } /** - * Gets all serverless runtime resources in a given informatica organization resource. + * Gets Metadata of the serverless runtime environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all serverless runtime resources in a given informatica organization resource. + * @return metadata of the serverless runtime environment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(String resourceGroupName, - String organizationName) { - return getAllServerlessRuntimesWithResponse(resourceGroupName, organizationName, Context.NONE).getValue(); + public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGroupName, String organizationName) { + return getServerlessMetadataWithResponse(resourceGroupName, organizationName, Context.NONE).getValue(); } /** - * Gets Metadata of the serverless runtime environment. + * Gets all serverless runtime resources in a given informatica organization resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return metadata of the serverless runtime environment along with {@link Response} on successful completion of - * {@link Mono}. + * @return all serverless runtime resources in a given informatica organization resource along with {@link Response} + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getServerlessMetadataWithResponseAsync(String resourceGroupName, String organizationName) { + private Mono> + getAllServerlessRuntimesWithResponseAsync(String resourceGroupName, String organizationName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1286,13 +1288,13 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St final String accept = "application/json"; return FluxUtil .withContext( - context -> service.getServerlessMetadata(this.client.getEndpoint(), this.client.getApiVersion(), + context -> service.getAllServerlessRuntimes(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets Metadata of the serverless runtime environment. + * Gets all serverless runtime resources in a given informatica organization resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1300,12 +1302,12 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St * @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 metadata of the serverless runtime environment along with {@link Response} on successful completion of - * {@link Mono}. + * @return all serverless runtime resources in a given informatica organization resource along with {@link Response} + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getServerlessMetadataWithResponseAsync(String resourceGroupName, String organizationName, Context context) { + private Mono> + getAllServerlessRuntimesWithResponseAsync(String resourceGroupName, String organizationName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1324,29 +1326,30 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getServerlessMetadata(this.client.getEndpoint(), this.client.getApiVersion(), + return service.getAllServerlessRuntimes(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context); } /** - * Gets Metadata of the serverless runtime environment. + * Gets all serverless runtime resources in a given informatica organization resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return metadata of the serverless runtime environment on successful completion of {@link Mono}. + * @return all serverless runtime resources in a given informatica organization resource on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getServerlessMetadataAsync(String resourceGroupName, + private Mono getAllServerlessRuntimesAsync(String resourceGroupName, String organizationName) { - return getServerlessMetadataWithResponseAsync(resourceGroupName, organizationName) + return getAllServerlessRuntimesWithResponseAsync(resourceGroupName, organizationName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets Metadata of the serverless runtime environment. + * Gets all serverless runtime resources in a given informatica organization resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1354,27 +1357,29 @@ private Mono getServerlessMetadataAsync(String * @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 metadata of the serverless runtime environment along with {@link Response}. + * @return all serverless runtime resources in a given informatica organization resource along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getServerlessMetadataWithResponse(String resourceGroupName, - String organizationName, Context context) { - return getServerlessMetadataWithResponseAsync(resourceGroupName, organizationName, context).block(); + public Response + getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context) { + return getAllServerlessRuntimesWithResponseAsync(resourceGroupName, organizationName, context).block(); } /** - * Gets Metadata of the serverless runtime environment. + * Gets all serverless runtime resources in a given informatica organization resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return metadata of the serverless runtime environment. + * @return all serverless runtime resources in a given informatica organization resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGroupName, String organizationName) { - return getServerlessMetadataWithResponse(resourceGroupName, organizationName, Context.NONE).getValue(); + public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(String resourceGroupName, + String organizationName) { + return getAllServerlessRuntimesWithResponse(resourceGroupName, organizationName, Context.NONE).getValue(); } /** @@ -1389,7 +1394,7 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listBySubscriptionNextSinglePageAsync(String nextLink) { + listByResourceGroupNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1400,7 +1405,7 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou 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())); @@ -1419,7 +1424,7 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { + listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1429,7 +1434,7 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, 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)); } @@ -1446,7 +1451,7 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listByResourceGroupNextSinglePageAsync(String nextLink) { + listBySubscriptionNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1457,7 +1462,7 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou 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())); @@ -1476,7 +1481,7 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { + listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1486,7 +1491,7 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, 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)); } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsImpl.java index 089838a6f65d..d25941b0a007 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsImpl.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.informaticadatamanagement.implementation; @@ -31,33 +31,6 @@ public OrganizationsImpl(OrganizationsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner - = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, - Context context) { - PagedIterable inner - = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager())); - } - public Response getByResourceGroupWithResponse(String resourceGroupName, String organizationName, Context context) { Response inner @@ -88,27 +61,31 @@ public void delete(String resourceGroupName, String organizationName, Context co this.serviceClient().delete(resourceGroupName, organizationName, context); } - public Response - getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context) { - Response inner - = this.serviceClient().getAllServerlessRuntimesWithResponse(resourceGroupName, organizationName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new InformaticaServerlessRuntimeResourceListImpl(inner.getValue(), this.manager())); - } else { - return null; - } + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager())); } - public InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes(String resourceGroupName, - String organizationName) { - InformaticaServerlessRuntimeResourceListInner inner - = this.serviceClient().getAllServerlessRuntimes(resourceGroupName, organizationName); - if (inner != null) { - return new InformaticaServerlessRuntimeResourceListImpl(inner, this.manager()); - } else { - return null; - } + public PagedIterable listByResourceGroup(String resourceGroupName, + Context context) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager())); + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager())); } public Response getServerlessMetadataWithResponse(String resourceGroupName, @@ -133,6 +110,29 @@ public ServerlessMetadataResponse getServerlessMetadata(String resourceGroupName } } + public Response + getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context) { + Response inner + = this.serviceClient().getAllServerlessRuntimesWithResponse(resourceGroupName, organizationName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new InformaticaServerlessRuntimeResourceListImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes(String resourceGroupName, + String organizationName) { + InformaticaServerlessRuntimeResourceListInner inner + = this.serviceClient().getAllServerlessRuntimes(resourceGroupName, organizationName); + if (inner != null) { + return new InformaticaServerlessRuntimeResourceListImpl(inner, this.manager()); + } else { + return null; + } + } + public InformaticaOrganizationResource getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ResourceManagerUtils.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ResourceManagerUtils.java index a4996de0485a..b1c44273eed6 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ResourceManagerUtils.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.implementation; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessMetadataResponseImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessMetadataResponseImpl.java index 041b804975a7..3d1014eb10b5 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessMetadataResponseImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessMetadataResponseImpl.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.informaticadatamanagement.implementation; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesClientImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesClientImpl.java index c7337d7e3bb5..e1ae4cc780f6 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesClientImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesClientImpl.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.informaticadatamanagement.implementation; @@ -36,7 +36,7 @@ import com.azure.resourcemanager.informaticadatamanagement.fluent.ServerlessRuntimesClient; import com.azure.resourcemanager.informaticadatamanagement.fluent.models.CheckDependenciesResponseInner; import com.azure.resourcemanager.informaticadatamanagement.fluent.models.InformaticaServerlessRuntimeResourceInner; -import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceListResult; +import com.azure.resourcemanager.informaticadatamanagement.implementation.models.InformaticaServerlessRuntimeResourceListResult; import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -54,88 +54,86 @@ public final class ServerlessRuntimesClientImpl implements ServerlessRuntimesCli /** * The service client containing this operation class. */ - private final InformaticaDataManagementImpl client; + private final InformaticaDataManagementClientImpl client; /** * Initializes an instance of ServerlessRuntimesClientImpl. * * @param client the instance of the service client containing this operation class. */ - ServerlessRuntimesClientImpl(InformaticaDataManagementImpl client) { + ServerlessRuntimesClientImpl(InformaticaDataManagementClientImpl client) { this.service = RestProxy.create(ServerlessRuntimesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for InformaticaDataManagementServerlessRuntimes to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for InformaticaDataManagementClientServerlessRuntimes to be used by the + * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "InformaticaDataManag") public interface ServerlessRuntimesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByInformaticaOrganizationResource( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept, - Context context); - @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("organizationName") String organizationName, @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("organizationName") String organizationName, @PathParam("serverlessRuntimeName") String serverlessRuntimeName, - @BodyParam("application/json") InformaticaServerlessRuntimeResourceInner resource, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") InformaticaServerlessRuntimeResourceInner resource, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}") - @ExpectedResponses({ 200 }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("organizationName") String organizationName, - @PathParam("serverlessRuntimeName") String serverlessRuntimeName, - @BodyParam("application/json") InformaticaServerlessRuntimeResourceUpdate properties, - @HeaderParam("Accept") String accept, Context context); + @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}") - @ExpectedResponses({ 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByInformaticaOrganizationResource( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("organizationName") String organizationName, - @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("serverlessRuntimeName") String serverlessRuntimeName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") InformaticaServerlessRuntimeResourceUpdate properties, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/checkDependencies") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkDependencies(@HostParam("$host") String endpoint, + Mono> checkDependencies(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("organizationName") String organizationName, @@ -143,23 +141,23 @@ Mono> checkDependencies(@HostParam("$ho Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/serverlessResourceById") - @ExpectedResponses({ 200 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/startFailedServerlessRuntime") + @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> serverlessResourceById( - @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> startFailedServerlessRuntime(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("organizationName") String organizationName, @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/startFailedServerlessRuntime") - @ExpectedResponses({ 204 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/serverlessResourceById") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> startFailedServerlessRuntime(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + Mono> serverlessResourceById( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("organizationName") String organizationName, @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept, @@ -170,167 +168,10 @@ Mono> startFailedServerlessRuntime(@HostParam("$host") String end @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByInformaticaOrganizationResourceNext( - @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 InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a InformaticaServerlessRuntimeResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByInformaticaOrganizationResourceSinglePageAsync(String resourceGroupName, String organizationName) { - 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 (organizationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByInformaticaOrganizationResource(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName, - 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 InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 InformaticaServerlessRuntimeResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByInformaticaOrganizationResourceSinglePageAsync(String resourceGroupName, String organizationName, - 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 (organizationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByInformaticaOrganizationResource(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux - listByInformaticaOrganizationResourceAsync(String resourceGroupName, String organizationName) { - return new PagedFlux<>( - () -> listByInformaticaOrganizationResourceSinglePageAsync(resourceGroupName, organizationName), - nextLink -> listByInformaticaOrganizationResourceNextSinglePageAsync(nextLink)); - } - - /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux - listByInformaticaOrganizationResourceAsync(String resourceGroupName, String organizationName, Context context) { - return new PagedFlux<>( - () -> listByInformaticaOrganizationResourceSinglePageAsync(resourceGroupName, organizationName, context), - nextLink -> listByInformaticaOrganizationResourceNextSinglePageAsync(nextLink, context)); - } - - /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable - listByInformaticaOrganizationResource(String resourceGroupName, String organizationName) { - return new PagedIterable<>(listByInformaticaOrganizationResourceAsync(resourceGroupName, organizationName)); - } - - /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable - listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context) { - return new PagedIterable<>( - listByInformaticaOrganizationResourceAsync(resourceGroupName, organizationName, context)); - } - /** * Get a InformaticaServerlessRuntimeResource. * @@ -510,11 +351,12 @@ private Mono>> createOrUpdateWithResponseAsync(String } 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, organizationName, serverlessRuntimeName, resource, - accept, context)) + this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, + contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -561,11 +403,12 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { resource.validate(); } + 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, organizationName, serverlessRuntimeName, resource, - accept, context); + this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, contentType, + accept, resource, context); } /** @@ -740,21 +583,19 @@ public InformaticaServerlessRuntimeResourceInner createOrUpdate(String resourceG } /** - * Update a InformaticaServerlessRuntimeResource. + * Delete a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime resource. - * @param properties The resource properties to be updated. * @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 Serverless Runtime environment resource by Informatica along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String organizationName, + String serverlessRuntimeName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -775,37 +616,29 @@ private Mono> updateWithResp return Mono .error(new IllegalArgumentException("Parameter serverlessRuntimeName 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"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, properties, - accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a InformaticaServerlessRuntimeResource. + * Delete a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime 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 a Serverless Runtime environment resource by Informatica along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, - Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String organizationName, + String serverlessRuntimeName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -826,74 +659,139 @@ private Mono> updateWithResp return Mono .error(new IllegalArgumentException("Parameter serverlessRuntimeName 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, organizationName, serverlessRuntimeName, properties, accept, context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, organizationName, serverlessRuntimeName, accept, context); } /** - * Update a InformaticaServerlessRuntimeResource. + * Delete a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime resource. - * @param properties The resource properties to be updated. * @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 Serverless Runtime environment resource by Informatica on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, - String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) { - return updateWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, properties) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName, + String serverlessRuntimeName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Update a InformaticaServerlessRuntimeResource. + * Delete a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime 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 a Serverless Runtime environment resource by Informatica along with {@link Response}. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName, + String serverlessRuntimeName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Delete a InformaticaServerlessRuntimeResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations resource. + * @param serverlessRuntimeName Name of the Serverless Runtime resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, + String serverlessRuntimeName) { + return this.beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).getSyncPoller(); + } + + /** + * Delete a InformaticaServerlessRuntimeResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations resource. + * @param serverlessRuntimeName Name of the Serverless Runtime resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, + String serverlessRuntimeName, Context context) { + return this.beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context) + .getSyncPoller(); + } + + /** + * Delete a InformaticaServerlessRuntimeResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations resource. + * @param serverlessRuntimeName Name of the Serverless Runtime resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String resourceGroupName, - String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, + private Mono deleteAsync(String resourceGroupName, String organizationName, String serverlessRuntimeName) { + return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a InformaticaServerlessRuntimeResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations resource. + * @param serverlessRuntimeName Name of the Serverless Runtime 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 organizationName, String serverlessRuntimeName, Context context) { - return updateWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, properties, context) - .block(); + return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Update a InformaticaServerlessRuntimeResource. + * Delete a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime resource. - * @param properties The resource properties to be updated. * @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 Serverless Runtime environment resource by Informatica. */ @ServiceMethod(returns = ReturnType.SINGLE) - public InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName, - String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) { - return updateWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, properties, Context.NONE) - .getValue(); + public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName) { + deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).block(); } /** @@ -902,14 +800,31 @@ public InformaticaServerlessRuntimeResourceInner update(String resourceGroupName * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String organizationName, - String serverlessRuntimeName) { + public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, + Context context) { + deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).block(); + } + + /** + * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a InformaticaServerlessRuntimeResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByInformaticaOrganizationResourceSinglePageAsync(String resourceGroupName, String organizationName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -926,33 +841,33 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null.")); } - if (serverlessRuntimeName == null) { - return Mono - .error(new IllegalArgumentException("Parameter serverlessRuntimeName 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, organizationName, serverlessRuntimeName, accept, - context)) + .withContext(context -> service.listByInformaticaOrganizationResource(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName, + 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())); } /** - * Delete a InformaticaServerlessRuntimeResource. + * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. - * @param serverlessRuntimeName Name of the Serverless Runtime 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 of a InformaticaServerlessRuntimeResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context) { + private Mono> + listByInformaticaOrganizationResourceSinglePageAsync(String resourceGroupName, String organizationName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -969,160 +884,247 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null.")); } - if (serverlessRuntimeName == null) { - return Mono - .error(new IllegalArgumentException("Parameter serverlessRuntimeName 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, organizationName, serverlessRuntimeName, accept, context); + return service + .listByInformaticaOrganizationResource(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Delete a InformaticaServerlessRuntimeResource. + * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. - * @param serverlessRuntimeName Name of the Serverless Runtime resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName, - String serverlessRuntimeName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux + listByInformaticaOrganizationResourceAsync(String resourceGroupName, String organizationName) { + return new PagedFlux<>( + () -> listByInformaticaOrganizationResourceSinglePageAsync(resourceGroupName, organizationName), + nextLink -> listByInformaticaOrganizationResourceNextSinglePageAsync(nextLink)); } /** - * Delete a InformaticaServerlessRuntimeResource. + * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. - * @param serverlessRuntimeName Name of the Serverless Runtime 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 of a InformaticaServerlessRuntimeResource list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux + listByInformaticaOrganizationResourceAsync(String resourceGroupName, String organizationName, Context context) { + return new PagedFlux<>( + () -> listByInformaticaOrganizationResourceSinglePageAsync(resourceGroupName, organizationName, context), + nextLink -> listByInformaticaOrganizationResourceNextSinglePageAsync(nextLink, context)); } /** - * Delete a InformaticaServerlessRuntimeResource. + * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. - * @param serverlessRuntimeName Name of the Serverless Runtime resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, - String serverlessRuntimeName) { - return this.beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable + listByInformaticaOrganizationResource(String resourceGroupName, String organizationName) { + return new PagedIterable<>(listByInformaticaOrganizationResourceAsync(resourceGroupName, organizationName)); } /** - * Delete a InformaticaServerlessRuntimeResource. + * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. - * @param serverlessRuntimeName Name of the Serverless Runtime resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context) { - return this.beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable + listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context) { + return new PagedIterable<>( + listByInformaticaOrganizationResourceAsync(resourceGroupName, organizationName, context)); } /** - * Delete a InformaticaServerlessRuntimeResource. + * Update a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime resource. + * @param properties The resource properties to be updated. * @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. + * @return a Serverless Runtime environment resource by Informatica along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String organizationName, String serverlessRuntimeName) { - return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> updateWithResponseAsync(String resourceGroupName, + String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate 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 (organizationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null.")); + } + if (serverlessRuntimeName == null) { + return Mono + .error(new IllegalArgumentException("Parameter serverlessRuntimeName 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, organizationName, serverlessRuntimeName, + contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a InformaticaServerlessRuntimeResource. + * Update a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime 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 A {@link Mono} that completes when a successful response is received. + * @return a Serverless Runtime environment resource by Informatica along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String organizationName, String serverlessRuntimeName, + private Mono> updateWithResponseAsync(String resourceGroupName, + String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, Context context) { - return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + 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 (organizationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null.")); + } + if (serverlessRuntimeName == null) { + return Mono + .error(new IllegalArgumentException("Parameter serverlessRuntimeName 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"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, organizationName, serverlessRuntimeName, contentType, accept, properties, context); } /** - * Delete a InformaticaServerlessRuntimeResource. + * Update a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime resource. + * @param properties The resource properties to be updated. * @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 Serverless Runtime environment resource by Informatica on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName) { - deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).block(); + private Mono updateAsync(String resourceGroupName, + String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) { + return updateWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Delete a InformaticaServerlessRuntimeResource. + * Update a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime 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 a Serverless Runtime environment resource by Informatica along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, + public Response updateWithResponse(String resourceGroupName, + String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, Context context) { - deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).block(); + return updateWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, properties, context) + .block(); + } + + /** + * Update a InformaticaServerlessRuntimeResource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations resource. + * @param serverlessRuntimeName Name of the Serverless Runtime resource. + * @param properties The resource properties to be updated. + * @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 Serverless Runtime environment resource by Informatica. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName, + String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) { + return updateWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, properties, Context.NONE) + .getValue(); } /** @@ -1269,7 +1271,7 @@ public CheckDependenciesResponseInner checkDependencies(String resourceGroupName } /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1277,12 +1279,11 @@ public CheckDependenciesResponseInner checkDependencies(String resourceGroupName * @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 Serverless Runtime environment resource by Informatica along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> serverlessResourceByIdWithResponseAsync( - String resourceGroupName, String organizationName, String serverlessRuntimeName) { + private Mono> startFailedServerlessRuntimeWithResponseAsync(String resourceGroupName, + String organizationName, String serverlessRuntimeName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1305,14 +1306,14 @@ private Mono> serverlessReso } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.serverlessResourceById(this.client.getEndpoint(), + .withContext(context -> service.startFailedServerlessRuntime(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1321,12 +1322,11 @@ private Mono> serverlessReso * @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 Serverless Runtime environment resource by Informatica along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> serverlessResourceByIdWithResponseAsync( - String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context) { + private Mono> startFailedServerlessRuntimeWithResponseAsync(String resourceGroupName, + String organizationName, String serverlessRuntimeName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1349,13 +1349,13 @@ private Mono> serverlessReso } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.serverlessResourceById(this.client.getEndpoint(), this.client.getApiVersion(), + return service.startFailedServerlessRuntime(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept, context); } /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1363,17 +1363,17 @@ private Mono> serverlessReso * @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 Serverless Runtime environment resource by Informatica on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono serverlessResourceByIdAsync(String resourceGroupName, - String organizationName, String serverlessRuntimeName) { - return serverlessResourceByIdWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono startFailedServerlessRuntimeAsync(String resourceGroupName, String organizationName, + String serverlessRuntimeName) { + return startFailedServerlessRuntimeWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName) + .flatMap(ignored -> Mono.empty()); } /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1382,17 +1382,17 @@ private Mono serverlessResourceByIdAs * @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 Serverless Runtime environment resource by Informatica along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response serverlessResourceByIdWithResponse( - String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context) { - return serverlessResourceByIdWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, + public Response startFailedServerlessRuntimeWithResponse(String resourceGroupName, String organizationName, + String serverlessRuntimeName, Context context) { + return startFailedServerlessRuntimeWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).block(); } /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1400,17 +1400,16 @@ public Response serverlessResourceByI * @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 Serverless Runtime environment resource by Informatica. */ @ServiceMethod(returns = ReturnType.SINGLE) - public InformaticaServerlessRuntimeResourceInner serverlessResourceById(String resourceGroupName, - String organizationName, String serverlessRuntimeName) { - return serverlessResourceByIdWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, - Context.NONE).getValue(); + public void startFailedServerlessRuntime(String resourceGroupName, String organizationName, + String serverlessRuntimeName) { + startFailedServerlessRuntimeWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, + Context.NONE); } /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by ID. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1418,11 +1417,12 @@ public InformaticaServerlessRuntimeResourceInner serverlessResourceById(String r * @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 a Serverless Runtime environment resource by Informatica along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> startFailedServerlessRuntimeWithResponseAsync(String resourceGroupName, - String organizationName, String serverlessRuntimeName) { + private Mono> serverlessResourceByIdWithResponseAsync( + String resourceGroupName, String organizationName, String serverlessRuntimeName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1445,14 +1445,14 @@ private Mono> startFailedServerlessRuntimeWithResponseAsync(Strin } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.startFailedServerlessRuntime(this.client.getEndpoint(), + .withContext(context -> service.serverlessResourceById(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by ID. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1461,11 +1461,12 @@ private Mono> startFailedServerlessRuntimeWithResponseAsync(Strin * @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 a Serverless Runtime environment resource by Informatica along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> startFailedServerlessRuntimeWithResponseAsync(String resourceGroupName, - String organizationName, String serverlessRuntimeName, Context context) { + private Mono> serverlessResourceByIdWithResponseAsync( + String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1488,13 +1489,13 @@ private Mono> startFailedServerlessRuntimeWithResponseAsync(Strin } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.startFailedServerlessRuntime(this.client.getEndpoint(), this.client.getApiVersion(), + return service.serverlessResourceById(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept, context); } /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by ID. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1502,17 +1503,17 @@ private Mono> startFailedServerlessRuntimeWithResponseAsync(Strin * @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. + * @return a Serverless Runtime environment resource by Informatica on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startFailedServerlessRuntimeAsync(String resourceGroupName, String organizationName, - String serverlessRuntimeName) { - return startFailedServerlessRuntimeWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName) - .flatMap(ignored -> Mono.empty()); + private Mono serverlessResourceByIdAsync(String resourceGroupName, + String organizationName, String serverlessRuntimeName) { + return serverlessResourceByIdWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by ID. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1521,17 +1522,17 @@ private Mono startFailedServerlessRuntimeAsync(String resourceGroupName, S * @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}. + * @return a Serverless Runtime environment resource by Informatica along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response startFailedServerlessRuntimeWithResponse(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context) { - return startFailedServerlessRuntimeWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, + public Response serverlessResourceByIdWithResponse( + String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context) { + return serverlessResourceByIdWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).block(); } /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by ID. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -1539,12 +1540,13 @@ public Response startFailedServerlessRuntimeWithResponse(String resourceGr * @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 Serverless Runtime environment resource by Informatica. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void startFailedServerlessRuntime(String resourceGroupName, String organizationName, - String serverlessRuntimeName) { - startFailedServerlessRuntimeWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, - Context.NONE); + public InformaticaServerlessRuntimeResourceInner serverlessResourceById(String resourceGroupName, + String organizationName, String serverlessRuntimeName) { + return serverlessResourceByIdWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, + Context.NONE).getValue(); } /** diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesImpl.java index 68c93f748227..e21405f56f11 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesImpl.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.informaticadatamanagement.implementation; @@ -29,22 +29,6 @@ public ServerlessRuntimesImpl(ServerlessRuntimesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable - listByInformaticaOrganizationResource(String resourceGroupName, String organizationName) { - PagedIterable inner - = this.serviceClient().listByInformaticaOrganizationResource(resourceGroupName, organizationName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new InformaticaServerlessRuntimeResourceImpl(inner1, this.manager())); - } - - public PagedIterable - listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context) { - PagedIterable inner - = this.serviceClient().listByInformaticaOrganizationResource(resourceGroupName, organizationName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new InformaticaServerlessRuntimeResourceImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context) { Response inner @@ -77,6 +61,22 @@ public void delete(String resourceGroupName, String organizationName, String ser this.serviceClient().delete(resourceGroupName, organizationName, serverlessRuntimeName, context); } + public PagedIterable + listByInformaticaOrganizationResource(String resourceGroupName, String organizationName) { + PagedIterable inner + = this.serviceClient().listByInformaticaOrganizationResource(resourceGroupName, organizationName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new InformaticaServerlessRuntimeResourceImpl(inner1, this.manager())); + } + + public PagedIterable + listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context) { + PagedIterable inner + = this.serviceClient().listByInformaticaOrganizationResource(resourceGroupName, organizationName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new InformaticaServerlessRuntimeResourceImpl(inner1, this.manager())); + } + public Response checkDependenciesWithResponse(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context) { Response inner = this.serviceClient() @@ -100,6 +100,18 @@ public CheckDependenciesResponse checkDependencies(String resourceGroupName, Str } } + public Response startFailedServerlessRuntimeWithResponse(String resourceGroupName, String organizationName, + String serverlessRuntimeName, Context context) { + return this.serviceClient() + .startFailedServerlessRuntimeWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, + context); + } + + public void startFailedServerlessRuntime(String resourceGroupName, String organizationName, + String serverlessRuntimeName) { + this.serviceClient().startFailedServerlessRuntime(resourceGroupName, organizationName, serverlessRuntimeName); + } + public Response serverlessResourceByIdWithResponse(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context) { Response inner = this.serviceClient() @@ -123,18 +135,6 @@ public InformaticaServerlessRuntimeResource serverlessResourceById(String resour } } - public Response startFailedServerlessRuntimeWithResponse(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context) { - return this.serviceClient() - .startFailedServerlessRuntimeWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, - context); - } - - public void startFailedServerlessRuntime(String resourceGroupName, String organizationName, - String serverlessRuntimeName) { - this.serviceClient().startFailedServerlessRuntime(resourceGroupName, organizationName, serverlessRuntimeName); - } - public InformaticaServerlessRuntimeResource getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceListResult.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaOrganizationResourceListResult.java similarity index 96% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceListResult.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaOrganizationResourceListResult.java index 24e4d28f3332..4e71eb07a1c5 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceListResult.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaOrganizationResourceListResult.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.informaticadatamanagement.models; +package com.azure.resourcemanager.informaticadatamanagement.implementation.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceListResult.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaServerlessRuntimeResourceListResult.java similarity index 96% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceListResult.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaServerlessRuntimeResourceListResult.java index f91d417e560f..e07beed49392 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceListResult.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaServerlessRuntimeResourceListResult.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.informaticadatamanagement.models; +package com.azure.resourcemanager.informaticadatamanagement.implementation.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OperationListResult.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/OperationListResult.java similarity index 74% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OperationListResult.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/OperationListResult.java index 80e8069449f6..fa3f25855486 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OperationListResult.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/OperationListResult.java @@ -1,10 +1,11 @@ // 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.informaticadatamanagement.models; +package com.azure.resourcemanager.informaticadatamanagement.implementation.models; import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,12 +21,12 @@ @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; @@ -36,7 +37,7 @@ 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 +46,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. */ @@ -59,17 +60,24 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model OperationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(OperationListResult.class); + /** * {@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 +87,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/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/package-info.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/package-info.java index 326e751be365..12e27d4eec8f 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/package-info.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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 InformaticaDataManagement. - * null. */ package com.azure.resourcemanager.informaticadatamanagement.implementation; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ActionType.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ActionType.java index 6839ced26a50..cf954e94842c 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ActionType.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.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/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/AdvancedCustomProperties.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/AdvancedCustomProperties.java index 192cd0c00dff..07048ecf7940 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/AdvancedCustomProperties.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/AdvancedCustomProperties.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationConfigs.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationConfigs.java index 7bb803c3b03b..997289599317 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationConfigs.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationConfigs.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationType.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationType.java index cf7638ec1e4f..a37854fc65cb 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationType.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationType.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.informaticadatamanagement.models; @@ -12,12 +12,12 @@ */ public final class ApplicationType extends ExpandableStringEnum { /** - * Static value CDI for ApplicationType. + * Data Integration. */ public static final ApplicationType CDI = fromString("CDI"); /** - * Static value CDIE for ApplicationType. + * Advanced Data Integration. */ public static final ApplicationType CDIE = fromString("CDIE"); diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationTypeMetadata.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationTypeMetadata.java index 8d81efd5e485..9452fefd6386 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationTypeMetadata.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ApplicationTypeMetadata.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CdiConfigProps.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CdiConfigProps.java index d433dc15a268..7f33b17b7688 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CdiConfigProps.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CdiConfigProps.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CheckDependenciesResponse.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CheckDependenciesResponse.java index a5786048723b..3067d6eae20e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CheckDependenciesResponse.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CheckDependenciesResponse.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CompanyDetails.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CompanyDetails.java index 28a3352ebf1e..241a275178e2 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CompanyDetails.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CompanyDetails.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CompanyDetailsUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CompanyDetailsUpdate.java index 62636b4f74e4..5c3cad33455f 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CompanyDetailsUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/CompanyDetailsUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ComputeUnitsMetadata.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ComputeUnitsMetadata.java index 32881a84671f..2bd75b9257b5 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ComputeUnitsMetadata.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ComputeUnitsMetadata.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InfaRuntimeResourceFetchMetadata.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InfaRuntimeResourceFetchMetaData.java similarity index 82% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InfaRuntimeResourceFetchMetadata.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InfaRuntimeResourceFetchMetaData.java index 98b92c014464..4377325c40af 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InfaRuntimeResourceFetchMetadata.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InfaRuntimeResourceFetchMetaData.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.informaticadatamanagement.models; @@ -16,7 +16,7 @@ * Informatica runtime resource metadata as received via the informatica fetch all runtime environments API. */ @Immutable -public final class InfaRuntimeResourceFetchMetadata implements JsonSerializable { +public final class InfaRuntimeResourceFetchMetaData implements JsonSerializable { /* * Environment name */ @@ -78,9 +78,9 @@ public final class InfaRuntimeResourceFetchMetadata implements JsonSerializable< private String description; /** - * Creates an instance of InfaRuntimeResourceFetchMetadata class. + * Creates an instance of InfaRuntimeResourceFetchMetaData class. */ - private InfaRuntimeResourceFetchMetadata() { + private InfaRuntimeResourceFetchMetaData() { } /** @@ -200,63 +200,63 @@ public void validate() { if (name() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property name in model InfaRuntimeResourceFetchMetadata")); + "Missing required property name in model InfaRuntimeResourceFetchMetaData")); } if (createdTime() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property createdTime in model InfaRuntimeResourceFetchMetadata")); + "Missing required property createdTime in model InfaRuntimeResourceFetchMetaData")); } if (updatedTime() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property updatedTime in model InfaRuntimeResourceFetchMetadata")); + "Missing required property updatedTime in model InfaRuntimeResourceFetchMetaData")); } if (createdBy() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property createdBy in model InfaRuntimeResourceFetchMetadata")); + "Missing required property createdBy in model InfaRuntimeResourceFetchMetaData")); } if (updatedBy() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property updatedBy in model InfaRuntimeResourceFetchMetadata")); + "Missing required property updatedBy in model InfaRuntimeResourceFetchMetaData")); } if (id() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property id in model InfaRuntimeResourceFetchMetadata")); + "Missing required property id in model InfaRuntimeResourceFetchMetaData")); } if (type() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property type in model InfaRuntimeResourceFetchMetadata")); + "Missing required property type in model InfaRuntimeResourceFetchMetaData")); } if (status() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property status in model InfaRuntimeResourceFetchMetadata")); + "Missing required property status in model InfaRuntimeResourceFetchMetaData")); } if (statusLocalized() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property statusLocalized in model InfaRuntimeResourceFetchMetadata")); + "Missing required property statusLocalized in model InfaRuntimeResourceFetchMetaData")); } if (statusMessage() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property statusMessage in model InfaRuntimeResourceFetchMetadata")); + "Missing required property statusMessage in model InfaRuntimeResourceFetchMetaData")); } if (serverlessConfigProperties() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( - "Missing required property serverlessConfigProperties in model InfaRuntimeResourceFetchMetadata")); + "Missing required property serverlessConfigProperties in model InfaRuntimeResourceFetchMetaData")); } else { serverlessConfigProperties().validate(); } } - private static final ClientLogger LOGGER = new ClientLogger(InfaRuntimeResourceFetchMetadata.class); + private static final ClientLogger LOGGER = new ClientLogger(InfaRuntimeResourceFetchMetaData.class); /** * {@inheritDoc} @@ -280,53 +280,53 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of InfaRuntimeResourceFetchMetadata from the JsonReader. + * Reads an instance of InfaRuntimeResourceFetchMetaData from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of InfaRuntimeResourceFetchMetadata if the JsonReader was pointing to an instance of it, or + * @return An instance of InfaRuntimeResourceFetchMetaData 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 InfaRuntimeResourceFetchMetadata. + * @throws IOException If an error occurs while reading the InfaRuntimeResourceFetchMetaData. */ - public static InfaRuntimeResourceFetchMetadata fromJson(JsonReader jsonReader) throws IOException { + public static InfaRuntimeResourceFetchMetaData fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - InfaRuntimeResourceFetchMetadata deserializedInfaRuntimeResourceFetchMetadata - = new InfaRuntimeResourceFetchMetadata(); + InfaRuntimeResourceFetchMetaData deserializedInfaRuntimeResourceFetchMetaData + = new InfaRuntimeResourceFetchMetaData(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("name".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.name = reader.getString(); + deserializedInfaRuntimeResourceFetchMetaData.name = reader.getString(); } else if ("createdTime".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.createdTime = reader.getString(); + deserializedInfaRuntimeResourceFetchMetaData.createdTime = reader.getString(); } else if ("updatedTime".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.updatedTime = reader.getString(); + deserializedInfaRuntimeResourceFetchMetaData.updatedTime = reader.getString(); } else if ("createdBy".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.createdBy = reader.getString(); + deserializedInfaRuntimeResourceFetchMetaData.createdBy = reader.getString(); } else if ("updatedBy".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.updatedBy = reader.getString(); + deserializedInfaRuntimeResourceFetchMetaData.updatedBy = reader.getString(); } else if ("id".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.id = reader.getString(); + deserializedInfaRuntimeResourceFetchMetaData.id = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.type = RuntimeType.fromString(reader.getString()); + deserializedInfaRuntimeResourceFetchMetaData.type = RuntimeType.fromString(reader.getString()); } else if ("status".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.status = reader.getString(); + deserializedInfaRuntimeResourceFetchMetaData.status = reader.getString(); } else if ("statusLocalized".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.statusLocalized = reader.getString(); + deserializedInfaRuntimeResourceFetchMetaData.statusLocalized = reader.getString(); } else if ("statusMessage".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.statusMessage = reader.getString(); + deserializedInfaRuntimeResourceFetchMetaData.statusMessage = reader.getString(); } else if ("serverlessConfigProperties".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.serverlessConfigProperties + deserializedInfaRuntimeResourceFetchMetaData.serverlessConfigProperties = InfaServerlessFetchConfigProperties.fromJson(reader); } else if ("description".equals(fieldName)) { - deserializedInfaRuntimeResourceFetchMetadata.description = reader.getString(); + deserializedInfaRuntimeResourceFetchMetaData.description = reader.getString(); } else { reader.skipChildren(); } } - return deserializedInfaRuntimeResourceFetchMetadata; + return deserializedInfaRuntimeResourceFetchMetaData; }); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InfaServerlessFetchConfigProperties.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InfaServerlessFetchConfigProperties.java index c8e02b7e842c..b56261c00ea2 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InfaServerlessFetchConfigProperties.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InfaServerlessFetchConfigProperties.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResource.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResource.java index faa0fa475828..0e8b246c4906 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResource.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResource.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.informaticadatamanagement.models; @@ -268,43 +268,43 @@ interface WithProperties { InformaticaOrganizationResource refresh(Context context); /** - * Gets all serverless runtime resources in a given informatica organization resource. + * Gets Metadata of the serverless runtime environment. * * @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 all serverless runtime resources in a given informatica organization resource along with - * {@link Response}. + * @return metadata of the serverless runtime environment along with {@link Response}. */ - Response getAllServerlessRuntimesWithResponse(Context context); + Response getServerlessMetadataWithResponse(Context context); /** - * Gets all serverless runtime resources in a given informatica organization resource. + * Gets Metadata of the serverless runtime environment. * * @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 all serverless runtime resources in a given informatica organization resource. + * @return metadata of the serverless runtime environment. */ - InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes(); + ServerlessMetadataResponse getServerlessMetadata(); /** - * Gets Metadata of the serverless runtime environment. + * Gets all serverless runtime resources in a given informatica organization 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 metadata of the serverless runtime environment along with {@link Response}. + * @return all serverless runtime resources in a given informatica organization resource along with + * {@link Response}. */ - Response getServerlessMetadataWithResponse(Context context); + Response getAllServerlessRuntimesWithResponse(Context context); /** - * Gets Metadata of the serverless runtime environment. + * Gets all serverless runtime resources in a given informatica organization resource. * * @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 metadata of the serverless runtime environment. + * @return all serverless runtime resources in a given informatica organization resource. */ - ServerlessMetadataResponse getServerlessMetadata(); + InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes(); } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceUpdate.java index 8836bfb80b66..312de72f9014 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaProperties.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaProperties.java index ea7a90fdad5e..5640e05b2d03 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaProperties.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaProperties.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeProperties.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeProperties.java index 5e39b727194d..fcfc7a637f6a 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeProperties.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeProperties.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResource.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResource.java index 47e19727e6fd..51c06f3ec48d 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResource.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResource.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.informaticadatamanagement.models; @@ -214,41 +214,41 @@ interface WithProperties { CheckDependenciesResponse checkDependencies(); /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime 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 Serverless Runtime environment resource by Informatica along with {@link Response}. + * @return the {@link Response}. */ - Response serverlessResourceByIdWithResponse(Context context); + Response startFailedServerlessRuntimeWithResponse(Context context); /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime resource. * * @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 Serverless Runtime environment resource by Informatica. */ - InformaticaServerlessRuntimeResource serverlessResourceById(); + void startFailedServerlessRuntime(); /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by 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 {@link Response}. + * @return a Serverless Runtime environment resource by Informatica along with {@link Response}. */ - Response startFailedServerlessRuntimeWithResponse(Context context); + Response serverlessResourceByIdWithResponse(Context context); /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by 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 a Serverless Runtime environment resource by Informatica. */ - void startFailedServerlessRuntime(); + InformaticaServerlessRuntimeResource serverlessResourceById(); } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceList.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceList.java index 00009a0f5d53..fbcbe3fee529 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceList.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceList.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.informaticadatamanagement.models; @@ -16,7 +16,7 @@ public interface InformaticaServerlessRuntimeResourceList { * * @return the informaticaRuntimeResources value. */ - List informaticaRuntimeResources(); + List informaticaRuntimeResources(); /** * Gets the inner diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceUpdate.java index bebbfe69a009..83ee20fc8f31 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/LinkOrganization.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/LinkOrganization.java index b9798cece9ee..4ad8fba88c6f 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/LinkOrganization.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/LinkOrganization.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/MarketplaceDetails.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/MarketplaceDetails.java index 55e6722d4d6a..cdf91d1fa077 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/MarketplaceDetails.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/MarketplaceDetails.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/MarketplaceDetailsUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/MarketplaceDetailsUpdate.java index d65bdab3f77a..e280f107ad1e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/MarketplaceDetailsUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/MarketplaceDetailsUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/NetworkInterfaceConfiguration.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/NetworkInterfaceConfiguration.java index 0b303207425a..3452f6c3fe72 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/NetworkInterfaceConfiguration.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/NetworkInterfaceConfiguration.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/NetworkInterfaceConfigurationUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/NetworkInterfaceConfigurationUpdate.java index ef0dd161a9e6..06561b37aa02 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/NetworkInterfaceConfigurationUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/NetworkInterfaceConfigurationUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OfferDetails.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OfferDetails.java index 8bd53e6b6d3b..1161453eb127 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OfferDetails.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OfferDetails.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OfferDetailsUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OfferDetailsUpdate.java index 6ae828f8cb54..d592071c210a 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OfferDetailsUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OfferDetailsUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Operation.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Operation.java index 6a694e98f370..20861e613a2c 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Operation.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.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/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OperationDisplay.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OperationDisplay.java index c79922652ed7..fffc4a1b1861 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OperationDisplay.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.models; @@ -12,7 +12,7 @@ import java.io.IOException; /** - * Localized display information for this particular operation. + * Localized display information for and operation. */ @Immutable public final class OperationDisplay implements JsonSerializable { diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Operations.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Operations.java index f7d9dae81c1a..711733f4ceb4 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Operations.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Operations.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OrganizationProperties.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OrganizationProperties.java index d1a57acc579b..5f2d9b84a7e1 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OrganizationProperties.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OrganizationProperties.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OrganizationPropertiesCustomUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OrganizationPropertiesCustomUpdate.java index 8f61c885bc44..c2d53566eb51 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OrganizationPropertiesCustomUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OrganizationPropertiesCustomUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Organizations.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Organizations.java index c2acee1bf878..09635b364665 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Organizations.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Organizations.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.informaticadatamanagement.models; @@ -13,103 +13,103 @@ */ public interface Organizations { /** - * List InformaticaOrganizationResource resources by subscription ID. + * Get a InformaticaOrganizationResource. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. + * @return a InformaticaOrganizationResource along with {@link Response}. */ - PagedIterable list(); + Response getByResourceGroupWithResponse(String resourceGroupName, + String organizationName, Context context); /** - * List InformaticaOrganizationResource resources by subscription ID. + * Get a InformaticaOrganizationResource. * - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. + * @return a InformaticaOrganizationResource. */ - PagedIterable list(Context context); + InformaticaOrganizationResource getByResourceGroup(String resourceGroupName, String organizationName); /** - * List InformaticaOrganizationResource resources by resource group. + * Delete a InformaticaOrganizationResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + void deleteByResourceGroup(String resourceGroupName, String organizationName); /** - * List InformaticaOrganizationResource resources by resource group. + * Delete a InformaticaOrganizationResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Name of the Organizations 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 InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + void delete(String resourceGroupName, String organizationName, Context context); /** - * Get a InformaticaOrganizationResource. + * List InformaticaOrganizationResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 InformaticaOrganizationResource along with {@link Response}. + * @return the response of a InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, - String organizationName, Context context); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * Get a InformaticaOrganizationResource. + * List InformaticaOrganizationResource resources by resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 InformaticaOrganizationResource. + * @return the response of a InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - InformaticaOrganizationResource getByResourceGroup(String resourceGroupName, String organizationName); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Delete a InformaticaOrganizationResource. + * List InformaticaOrganizationResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - void deleteByResourceGroup(String resourceGroupName, String organizationName); + PagedIterable list(); /** - * Delete a InformaticaOrganizationResource. + * List InformaticaOrganizationResource resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations 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 InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - void delete(String resourceGroupName, String organizationName, Context context); + PagedIterable list(Context context); /** - * Gets all serverless runtime resources in a given informatica organization resource. + * Gets Metadata of the serverless runtime environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -117,27 +117,25 @@ Response getByResourceGroupWithResponse(String * @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 all serverless runtime resources in a given informatica organization resource along with - * {@link Response}. + * @return metadata of the serverless runtime environment along with {@link Response}. */ - Response getAllServerlessRuntimesWithResponse(String resourceGroupName, + Response getServerlessMetadataWithResponse(String resourceGroupName, String organizationName, Context context); /** - * Gets all serverless runtime resources in a given informatica organization resource. + * Gets Metadata of the serverless runtime environment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations 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 all serverless runtime resources in a given informatica organization resource. + * @return metadata of the serverless runtime environment. */ - InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes(String resourceGroupName, - String organizationName); + ServerlessMetadataResponse getServerlessMetadata(String resourceGroupName, String organizationName); /** - * Gets Metadata of the serverless runtime environment. + * Gets all serverless runtime resources in a given informatica organization resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -145,22 +143,24 @@ InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes(String resourc * @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 metadata of the serverless runtime environment along with {@link Response}. + * @return all serverless runtime resources in a given informatica organization resource along with + * {@link Response}. */ - Response getServerlessMetadataWithResponse(String resourceGroupName, + Response getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context); /** - * Gets Metadata of the serverless runtime environment. + * Gets all serverless runtime resources in a given informatica organization resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations 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 metadata of the serverless runtime environment. + * @return all serverless runtime resources in a given informatica organization resource. */ - ServerlessMetadataResponse getServerlessMetadata(String resourceGroupName, String organizationName); + InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes(String resourceGroupName, + String organizationName); /** * Get a InformaticaOrganizationResource. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Origin.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Origin.java index 6bcf005d0046..b46ca771e4eb 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Origin.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Origin.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.informaticadatamanagement.models; @@ -13,17 +13,17 @@ */ public final class Origin extends ExpandableStringEnum { /** - * 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/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/PlatformType.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/PlatformType.java index 93463c873059..a87657eb114c 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/PlatformType.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/PlatformType.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.informaticadatamanagement.models; @@ -12,7 +12,7 @@ */ public final class PlatformType extends ExpandableStringEnum { /** - * Static value AZURE for PlatformType. + * Azure platform type. */ public static final PlatformType AZURE = fromString("AZURE"); diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ProvisioningState.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ProvisioningState.java index 8946102a435d..5bcbca25be5b 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ProvisioningState.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.models; @@ -12,47 +12,47 @@ */ public final class ProvisioningState extends ExpandableStringEnum { /** - * Static value Accepted for ProvisioningState. + * Organization resource creation request accepted. */ public static final ProvisioningState ACCEPTED = fromString("Accepted"); /** - * Static value Creating for ProvisioningState. + * Organization resource creation started. */ public static final ProvisioningState CREATING = fromString("Creating"); /** - * Static value Updating for ProvisioningState. + * Organization resource is being updated. */ public static final ProvisioningState UPDATING = fromString("Updating"); /** - * Static value Deleting for ProvisioningState. + * Organization resource deletion started. */ public static final ProvisioningState DELETING = fromString("Deleting"); /** - * Static value Succeeded for ProvisioningState. + * Organization resource creation successful. */ public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); /** - * Static value Failed for ProvisioningState. + * Organization resource creation failed. */ public static final ProvisioningState FAILED = fromString("Failed"); /** - * Static value Canceled for ProvisioningState. + * Organization resource creation canceled. */ public static final ProvisioningState CANCELED = fromString("Canceled"); /** - * Static value Deleted for ProvisioningState. + * Organization resource is deleted. */ public static final ProvisioningState DELETED = fromString("Deleted"); /** - * Static value NotSpecified for ProvisioningState. + * Organization resource state is unknown. */ public static final ProvisioningState NOT_SPECIFIED = fromString("NotSpecified"); diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/RegionsMetadata.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/RegionsMetadata.java index 4b0c6c136128..0375a65a8f1e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/RegionsMetadata.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/RegionsMetadata.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/RuntimeType.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/RuntimeType.java index 78a1cca9c59a..df17caaa30aa 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/RuntimeType.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/RuntimeType.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.informaticadatamanagement.models; @@ -12,7 +12,7 @@ */ public final class RuntimeType extends ExpandableStringEnum { /** - * Static value SERVERLESS for RuntimeType. + * Serverless Runtime type. */ public static final RuntimeType SERVERLESS = fromString("SERVERLESS"); diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessConfigProperties.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessConfigProperties.java index 9e757ca46042..71786da1941e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessConfigProperties.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessConfigProperties.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessMetadataResponse.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessMetadataResponse.java index ae0c851452c2..a05df839bfda 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessMetadataResponse.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessMetadataResponse.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeConfigProperties.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeConfigProperties.java index b357951bae67..192c316a3f39 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeConfigProperties.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeConfigProperties.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeConfigPropertiesUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeConfigPropertiesUpdate.java index db2b67b3f74e..ea9294932400 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeConfigPropertiesUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeConfigPropertiesUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeDependency.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeDependency.java index 99d689c41053..3cd24a893120 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeDependency.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeDependency.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeNetworkProfile.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeNetworkProfile.java index 73bdf60fcef5..e4f860b8eb99 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeNetworkProfile.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeNetworkProfile.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeNetworkProfileUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeNetworkProfileUpdate.java index 5005f6e28ae6..62bf0f48f129 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeNetworkProfileUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeNetworkProfileUpdate.java @@ -1,10 +1,11 @@ // 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.informaticadatamanagement.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; @@ -55,11 +56,17 @@ public NetworkInterfaceConfigurationUpdate networkInterfaceConfiguration() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (networkInterfaceConfiguration() != null) { + if (networkInterfaceConfiguration() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property networkInterfaceConfiguration in model ServerlessRuntimeNetworkProfileUpdate")); + } else { networkInterfaceConfiguration().validate(); } } + private static final ClientLogger LOGGER = new ClientLogger(ServerlessRuntimeNetworkProfileUpdate.class); + /** * {@inheritDoc} */ @@ -76,6 +83,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ServerlessRuntimeNetworkProfileUpdate 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 ServerlessRuntimeNetworkProfileUpdate. */ public static ServerlessRuntimeNetworkProfileUpdate fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimePropertiesCustomUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimePropertiesCustomUpdate.java index 5421e22cae09..6d59348e2496 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimePropertiesCustomUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimePropertiesCustomUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeTag.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeTag.java index 7d63e285354d..5090f38e4ce5 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeTag.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeTag.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeUserContextProperties.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeUserContextProperties.java index 5ba4c12f0259..f14f19c2464f 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeUserContextProperties.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeUserContextProperties.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeUserContextPropertiesUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeUserContextPropertiesUpdate.java index 83cfc89a77f0..b6a5ecf6add5 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeUserContextPropertiesUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimeUserContextPropertiesUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimes.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimes.java index 8139cbc761b6..56ee66d6b18e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimes.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/ServerlessRuntimes.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.informaticadatamanagement.models; @@ -13,87 +13,87 @@ */ public interface ServerlessRuntimes { /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * Get a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. + * @param serverlessRuntimeName Name of the Serverless Runtime 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 InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedIterable}. + * @return a InformaticaServerlessRuntimeResource along with {@link Response}. */ - PagedIterable listByInformaticaOrganizationResource(String resourceGroupName, - String organizationName); + Response getWithResponse(String resourceGroupName, String organizationName, + String serverlessRuntimeName, Context context); /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * Get a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. - * @param context The context to associate with this operation. + * @param serverlessRuntimeName Name of the Serverless Runtime 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 InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedIterable}. + * @return a InformaticaServerlessRuntimeResource. */ - PagedIterable listByInformaticaOrganizationResource(String resourceGroupName, - String organizationName, Context context); + InformaticaServerlessRuntimeResource get(String resourceGroupName, String organizationName, + String serverlessRuntimeName); /** - * Get a InformaticaServerlessRuntimeResource. + * Delete a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime 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 InformaticaServerlessRuntimeResource along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context); + void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName); /** - * Get a InformaticaServerlessRuntimeResource. + * Delete a InformaticaServerlessRuntimeResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. * @param serverlessRuntimeName Name of the Serverless Runtime 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 InformaticaServerlessRuntimeResource. */ - InformaticaServerlessRuntimeResource get(String resourceGroupName, String organizationName, - String serverlessRuntimeName); + void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context); /** - * Delete a InformaticaServerlessRuntimeResource. + * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. - * @param serverlessRuntimeName Name of the Serverless Runtime 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 InformaticaServerlessRuntimeResource list operation as paginated response with + * {@link PagedIterable}. */ - void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName); + PagedIterable listByInformaticaOrganizationResource(String resourceGroupName, + String organizationName); /** - * Delete a InformaticaServerlessRuntimeResource. + * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. - * @param serverlessRuntimeName Name of the Serverless Runtime 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 InformaticaServerlessRuntimeResource list operation as paginated response with + * {@link PagedIterable}. */ - void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context); + PagedIterable listByInformaticaOrganizationResource(String resourceGroupName, + String organizationName, Context context); /** * Checks all dependencies for a serverless runtime resource. @@ -126,7 +126,7 @@ CheckDependenciesResponse checkDependencies(String resourceGroupName, String org String serverlessRuntimeName); /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -135,13 +135,13 @@ CheckDependenciesResponse checkDependencies(String resourceGroupName, String org * @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 Serverless Runtime environment resource by Informatica along with {@link Response}. + * @return the {@link Response}. */ - Response serverlessResourceByIdWithResponse(String resourceGroupName, - String organizationName, String serverlessRuntimeName, Context context); + Response startFailedServerlessRuntimeWithResponse(String resourceGroupName, String organizationName, + String serverlessRuntimeName, Context context); /** - * Returns a serverless runtime resource by ID. + * Starts a failed runtime resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -149,13 +149,11 @@ Response serverlessResourceByIdWithRespons * @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 Serverless Runtime environment resource by Informatica. */ - InformaticaServerlessRuntimeResource serverlessResourceById(String resourceGroupName, String organizationName, - String serverlessRuntimeName); + void startFailedServerlessRuntime(String resourceGroupName, String organizationName, String serverlessRuntimeName); /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by ID. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -164,13 +162,13 @@ InformaticaServerlessRuntimeResource serverlessResourceById(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return a Serverless Runtime environment resource by Informatica along with {@link Response}. */ - Response startFailedServerlessRuntimeWithResponse(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context); + Response serverlessResourceByIdWithResponse(String resourceGroupName, + String organizationName, String serverlessRuntimeName, Context context); /** - * Starts a failed runtime resource. + * Returns a serverless runtime resource by ID. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Name of the Organizations resource. @@ -178,8 +176,10 @@ Response startFailedServerlessRuntimeWithResponse(String resourceGroupName * @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 Serverless Runtime environment resource by Informatica. */ - void startFailedServerlessRuntime(String resourceGroupName, String organizationName, String serverlessRuntimeName); + InformaticaServerlessRuntimeResource serverlessResourceById(String resourceGroupName, String organizationName, + String serverlessRuntimeName); /** * Get a InformaticaServerlessRuntimeResource. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/UserDetails.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/UserDetails.java index 3cdbde2d4182..cb300927a3bc 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/UserDetails.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/UserDetails.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/UserDetailsUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/UserDetailsUpdate.java index d20e09cf2aa9..1af39a0e33cf 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/UserDetailsUpdate.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/UserDetailsUpdate.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.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/package-info.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/package-info.java index 1ac27f11ea24..c77c1d9d8fbe 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/package-info.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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 InformaticaDataManagement. - * null. */ package com.azure.resourcemanager.informaticadatamanagement.models; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/package-info.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/package-info.java index 1ae65630fa8b..a0f5aea89e9e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/package-info.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/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 InformaticaDataManagement. - * null. */ package com.azure.resourcemanager.informaticadatamanagement; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/module-info.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/module-info.java index f2c15fecc4bb..c0052ff435d7 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/module-info.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/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.informaticadatamanagement { requires transitive com.azure.core.management; @@ -12,4 +12,5 @@ opens com.azure.resourcemanager.informaticadatamanagement.fluent.models to com.azure.core; opens com.azure.resourcemanager.informaticadatamanagement.models to com.azure.core; + opens com.azure.resourcemanager.informaticadatamanagement.implementation.models to com.azure.core; } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-informaticadatamanagement/proxy-config.json b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-informaticadatamanagement/proxy-config.json index 21c917f819da..16beb4ddb293 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-informaticadatamanagement/proxy-config.json +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-informaticadatamanagement/proxy-config.json @@ -1 +1 @@ -[ [ "com.azure.resourcemanager.informaticadatamanagement.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.informaticadatamanagement.implementation.OrganizationsClientImpl$OrganizationsService" ], [ "com.azure.resourcemanager.informaticadatamanagement.implementation.ServerlessRuntimesClientImpl$ServerlessRuntimesService" ] ] \ No newline at end of file +[["com.azure.resourcemanager.informaticadatamanagement.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.informaticadatamanagement.implementation.OrganizationsClientImpl$OrganizationsService"],["com.azure.resourcemanager.informaticadatamanagement.implementation.ServerlessRuntimesClientImpl$ServerlessRuntimesService"]] \ No newline at end of file diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-informaticadatamanagement/reflect-config.json b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-informaticadatamanagement/reflect-config.json index 8878e547a798..0637a088a01e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-informaticadatamanagement/reflect-config.json +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-informaticadatamanagement/reflect-config.json @@ -1 +1 @@ -[ ] \ No newline at end of file +[] \ No newline at end of file diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/azure-resourcemanager-informaticadatamanagement.properties b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/azure-resourcemanager-informaticadatamanagement.properties new file mode 100644 index 000000000000..defbd48204e4 --- /dev/null +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/resources/azure-resourcemanager-informaticadatamanagement.properties @@ -0,0 +1 @@ +version=${project.version} diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationsListSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationsListSamples.java index accc4089ec09..f26381bd4576 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationsListSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.generated; @@ -9,9 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Operations_List_MaximumSet_Gen.json */ /** * Sample code: Operations_List. @@ -24,9 +22,7 @@ public final class OperationsListSamples { } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/Operations_List_MinimumSet_Gen.json */ /** * Sample code: Operations_List_Min. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsCreateOrUpdateSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsCreateOrUpdateSamples.java index 8831345b8101..ef577bfb1f6f 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsCreateOrUpdateSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsCreateOrUpdateSamples.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.informaticadatamanagement.generated; @@ -19,9 +19,7 @@ */ public final class OrganizationsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Organizations_CreateOrUpdate. @@ -68,9 +66,7 @@ public static void organizationsCreateOrUpdate( } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: Organizations_CreateOrUpdate_Min. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsDeleteSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsDeleteSamples.java index 6079c5782dcd..35d5977a0945 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsDeleteSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsDeleteSamples.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.informaticadatamanagement.generated; @@ -9,9 +9,7 @@ */ public final class OrganizationsDeleteSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_Delete_MaximumSet_Gen.json */ /** * Sample code: Organizations_Delete. @@ -24,9 +22,7 @@ public static void organizationsDelete( } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_Delete_MinimumSet_Gen.json */ /** * Sample code: Organizations_Delete_Min. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesSamples.java index fd4f2696281d..3d3621f5b81e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesSamples.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.informaticadatamanagement.generated; @@ -9,9 +9,7 @@ */ public final class OrganizationsGetAllServerlessRuntimesSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json */ /** * Sample code: Organizations_GetAllServerlessRuntimes_Min. @@ -25,9 +23,7 @@ public static void organizationsGetAllServerlessRuntimesMin( } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json */ /** * Sample code: Organizations_GetAllServerlessRuntimes. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetByResourceGroupSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetByResourceGroupSamples.java index 1f9866f39b03..1afe4f158c18 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetByResourceGroupSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetByResourceGroupSamples.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.informaticadatamanagement.generated; @@ -9,9 +9,7 @@ */ public final class OrganizationsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Get_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_Get_MinimumSet_Gen.json */ /** * Sample code: Organizations_Get_Min. @@ -24,9 +22,7 @@ public static void organizationsGetMin( } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_Get_MaximumSet_Gen.json */ /** * Sample code: Organizations_Get. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataSamples.java index 6cfdab5b9f45..a1fdcc2d107a 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataSamples.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.informaticadatamanagement.generated; @@ -9,9 +9,7 @@ */ public final class OrganizationsGetServerlessMetadataSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_GetServerlessMetadata_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_GetServerlessMetadata_MinimumSet_Gen.json */ /** * Sample code: Organizations_GetServerlessMetadata_Min. @@ -24,9 +22,7 @@ public static void organizationsGetServerlessMetadataMin( } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_GetServerlessMetadata_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_GetServerlessMetadata_MaximumSet_Gen.json */ /** * Sample code: Organizations_GetServerlessMetadata. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsListByResourceGroupSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsListByResourceGroupSamples.java deleted file mode 100644 index 2ebdd2d9f816..000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsListByResourceGroupSamples.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -/** - * Samples for Organizations ListByResourceGroup. - */ -public final class OrganizationsListByResourceGroupSamples { - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_ListByResourceGroup_MinimumSet_Gen.json - */ - /** - * Sample code: Organizations_ListByResourceGroup_Min. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void organizationsListByResourceGroupMin( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_ListByResourceGroup_MaximumSet_Gen.json - */ - /** - * Sample code: Organizations_ListByResourceGroup. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void organizationsListByResourceGroup( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsListSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsListSamples.java deleted file mode 100644 index bbddefc11a15..000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsListSamples.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -/** - * Samples for Organizations List. - */ -public final class OrganizationsListSamples { - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_ListBySubscription_MaximumSet_Gen.json - */ - /** - * Sample code: Organizations_ListBySubscription. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void organizationsListBySubscription( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().list(com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_ListBySubscription_MinimumSet_Gen.json - */ - /** - * Sample code: Organizations_ListBySubscription_Min. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void organizationsListBySubscriptionMin( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.organizations().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsUpdateSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsUpdateSamples.java index 85237fb57002..0ed88a6ccb28 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsUpdateSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsUpdateSamples.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.informaticadatamanagement.generated; @@ -18,9 +18,7 @@ */ public final class OrganizationsUpdateSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_Update_MaximumSet_Gen.json */ /** * Sample code: Organizations_Update. @@ -62,9 +60,7 @@ public static void organizationsUpdate( } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * Organizations_Update_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/Organizations_Update_MinimumSet_Gen.json */ /** * Sample code: Organizations_Update_Min. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesSamples.java index d39c1f0bf188..42b0987e3f7e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesSamples.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.informaticadatamanagement.generated; @@ -9,9 +9,7 @@ */ public final class ServerlessRuntimesCheckDependenciesSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_CheckDependencies_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_CheckDependencies_MinimumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_CheckDependencies_Min. @@ -25,9 +23,7 @@ public static void serverlessRuntimesCheckDependenciesMin( } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_CheckDependencies. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCreateOrUpdateSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCreateOrUpdateSamples.java index 9af54ecd8a34..051af25b7ff8 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCreateOrUpdateSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCreateOrUpdateSamples.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.informaticadatamanagement.generated; @@ -22,9 +22,7 @@ */ public final class ServerlessRuntimesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_CreateOrUpdate. @@ -78,9 +76,7 @@ public static void serverlessRuntimesCreateOrUpdate( } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_CreateOrUpdate_Min. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesDeleteSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesDeleteSamples.java index 7ea525b7a711..2c5954ef2bb3 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesDeleteSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesDeleteSamples.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.informaticadatamanagement.generated; @@ -9,9 +9,7 @@ */ public final class ServerlessRuntimesDeleteSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_Delete_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Delete. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesGetSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesGetSamples.java index 325f03a8daf6..68dce22bf6d0 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesGetSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesGetSamples.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.informaticadatamanagement.generated; @@ -9,9 +9,7 @@ */ public final class ServerlessRuntimesGetSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_Get_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Get. @@ -24,9 +22,7 @@ public static void serverlessRuntimesGet( } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_Get_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_Get_MinimumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Get_Min. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesListByInformaticaOrganizationResourceS.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesListByInformaticaOrganizationResourceS.java deleted file mode 100644 index 93cd37651dad..000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesListByInformaticaOrganizationResourceS.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -/** - * Samples for ServerlessRuntimes ListByInformaticaOrganizationResource. - */ -public final class ServerlessRuntimesListByInformaticaOrganizationResourceS { - /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json - */ - /** - * Sample code: ServerlessRuntimes_ListByInformaticaOrganizationResource. - * - * @param manager Entry point to InformaticaDataManagementManager. - */ - public static void serverlessRuntimesListByInformaticaOrganizationResource( - com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { - manager.serverlessRuntimes() - .listByInformaticaOrganizationResource("rgopenapi", "orgName", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesServerlessResourceByIdSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesServerlessResourceByIdSamples.java index 644136f7ca0e..60f54c66f1ae 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesServerlessResourceByIdSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesServerlessResourceByIdSamples.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.informaticadatamanagement.generated; @@ -9,9 +9,7 @@ */ public final class ServerlessRuntimesServerlessResourceByIdSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_ServerlessResourceById. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeSamples.java index 7259821429bd..2c65b4795973 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeSamples.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.informaticadatamanagement.generated; @@ -9,9 +9,7 @@ */ public final class ServerlessRuntimesStartFailedServerlessRuntimeSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_StartFailedServerlessRuntime. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesUpdateSamples.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesUpdateSamples.java index 510280c22030..79fe7b926e8b 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesUpdateSamples.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/samples/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesUpdateSamples.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.informaticadatamanagement.generated; @@ -23,9 +23,7 @@ */ public final class ServerlessRuntimesUpdateSamples { /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_Update_MinimumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_Update_MinimumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Update_Min. @@ -41,9 +39,7 @@ public static void serverlessRuntimesUpdateMin( } /* - * x-ms-original-file: - * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ - * ServerlessRuntimes_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-05-08/ServerlessRuntimes_Update_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Update. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationConfigsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationConfigsTests.java index e32963025c99..2fc49a8fc58a 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationConfigsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationConfigsTests.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.informaticadatamanagement.generated; @@ -12,30 +12,30 @@ public final class ApplicationConfigsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationConfigs model = BinaryData.fromString( - "{\"type\":\"ztzp\",\"name\":\"fn\",\"value\":\"ckw\",\"platform\":\"fz\",\"customized\":\"whxxbuyqax\",\"defaultValue\":\"feqztppriol\"}") + "{\"type\":\"cjefuzmu\",\"name\":\"pbttdum\",\"value\":\"rp\",\"platform\":\"xe\",\"customized\":\"mnzb\",\"defaultValue\":\"bhjpglkfgohdne\"}") .toObject(ApplicationConfigs.class); - Assertions.assertEquals("ztzp", model.type()); - Assertions.assertEquals("fn", model.name()); - Assertions.assertEquals("ckw", model.value()); - Assertions.assertEquals("fz", model.platform()); - Assertions.assertEquals("whxxbuyqax", model.customized()); - Assertions.assertEquals("feqztppriol", model.defaultValue()); + Assertions.assertEquals("cjefuzmu", model.type()); + Assertions.assertEquals("pbttdum", model.name()); + Assertions.assertEquals("rp", model.value()); + Assertions.assertEquals("xe", model.platform()); + Assertions.assertEquals("mnzb", model.customized()); + Assertions.assertEquals("bhjpglkfgohdne", model.defaultValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ApplicationConfigs model = new ApplicationConfigs().withType("ztzp") - .withName("fn") - .withValue("ckw") - .withPlatform("fz") - .withCustomized("whxxbuyqax") - .withDefaultValue("feqztppriol"); + ApplicationConfigs model = new ApplicationConfigs().withType("cjefuzmu") + .withName("pbttdum") + .withValue("rp") + .withPlatform("xe") + .withCustomized("mnzb") + .withDefaultValue("bhjpglkfgohdne"); model = BinaryData.fromObject(model).toObject(ApplicationConfigs.class); - Assertions.assertEquals("ztzp", model.type()); - Assertions.assertEquals("fn", model.name()); - Assertions.assertEquals("ckw", model.value()); - Assertions.assertEquals("fz", model.platform()); - Assertions.assertEquals("whxxbuyqax", model.customized()); - Assertions.assertEquals("feqztppriol", model.defaultValue()); + Assertions.assertEquals("cjefuzmu", model.type()); + Assertions.assertEquals("pbttdum", model.name()); + Assertions.assertEquals("rp", model.value()); + Assertions.assertEquals("xe", model.platform()); + Assertions.assertEquals("mnzb", model.customized()); + Assertions.assertEquals("bhjpglkfgohdne", model.defaultValue()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationTypeMetadataTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationTypeMetadataTests.java index e4d596d8a25a..3c88f0f7ada1 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationTypeMetadataTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationTypeMetadataTests.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.informaticadatamanagement.generated; @@ -11,9 +11,9 @@ public final class ApplicationTypeMetadataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ApplicationTypeMetadata model = BinaryData.fromString("{\"name\":\"yrs\",\"value\":\"sytgadgvraea\"}") + ApplicationTypeMetadata model = BinaryData.fromString("{\"name\":\"loayqcgw\",\"value\":\"zjuzgwyz\"}") .toObject(ApplicationTypeMetadata.class); - Assertions.assertEquals("yrs", model.name()); - Assertions.assertEquals("sytgadgvraea", model.value()); + Assertions.assertEquals("loayqcgw", model.name()); + Assertions.assertEquals("zjuzgwyz", model.value()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CdiConfigPropsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CdiConfigPropsTests.java index 7a5d61e8ad0a..03771ba88347 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CdiConfigPropsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CdiConfigPropsTests.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.informaticadatamanagement.generated; @@ -14,55 +14,43 @@ public final class CdiConfigPropsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CdiConfigProps model = BinaryData.fromString( - "{\"engineName\":\"hzv\",\"engineVersion\":\"ytdw\",\"applicationConfigs\":[{\"type\":\"brqubp\",\"name\":\"xhexiilivpdti\",\"value\":\"r\",\"platform\":\"tdqoaxoruzfgsq\",\"customized\":\"yfxrx\",\"defaultValue\":\"l\"},{\"type\":\"ptramxj\",\"name\":\"zwl\",\"value\":\"nwxuqlcvydyp\",\"platform\":\"tdooaoj\",\"customized\":\"niodkooeb\",\"defaultValue\":\"nuj\"},{\"type\":\"emmsbvdkc\",\"name\":\"odtji\",\"value\":\"fw\",\"platform\":\"lfltka\",\"customized\":\"jvefkdlfoakggkfp\",\"defaultValue\":\"gaowpulpqblylsyx\"},{\"type\":\"qjnsjervtia\",\"name\":\"xsdszuempsb\",\"value\":\"kfzbeyvpnqicvi\",\"platform\":\"v\",\"customized\":\"jjxd\",\"defaultValue\":\"rbuukzclewyhmlwp\"}]}") + "{\"engineName\":\"gaokonzmnsikv\",\"engineVersion\":\"kqze\",\"applicationConfigs\":[{\"type\":\"kdltfzxmhhvhg\",\"name\":\"r\",\"value\":\"odkwobd\",\"platform\":\"gxtibqdxbxw\",\"customized\":\"kbogqxndlkzgx\",\"defaultValue\":\"uriplbpodxunkb\"},{\"type\":\"bxmubyynt\",\"name\":\"lrb\",\"value\":\"tkoievseotgq\",\"platform\":\"l\",\"customized\":\"tmuwlauwzi\",\"defaultValue\":\"xbmp\"}]}") .toObject(CdiConfigProps.class); - Assertions.assertEquals("hzv", model.engineName()); - Assertions.assertEquals("ytdw", model.engineVersion()); - Assertions.assertEquals("brqubp", model.applicationConfigs().get(0).type()); - Assertions.assertEquals("xhexiilivpdti", model.applicationConfigs().get(0).name()); - Assertions.assertEquals("r", model.applicationConfigs().get(0).value()); - Assertions.assertEquals("tdqoaxoruzfgsq", model.applicationConfigs().get(0).platform()); - Assertions.assertEquals("yfxrx", model.applicationConfigs().get(0).customized()); - Assertions.assertEquals("l", model.applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("gaokonzmnsikv", model.engineName()); + Assertions.assertEquals("kqze", model.engineVersion()); + Assertions.assertEquals("kdltfzxmhhvhg", model.applicationConfigs().get(0).type()); + Assertions.assertEquals("r", model.applicationConfigs().get(0).name()); + Assertions.assertEquals("odkwobd", model.applicationConfigs().get(0).value()); + Assertions.assertEquals("gxtibqdxbxw", model.applicationConfigs().get(0).platform()); + Assertions.assertEquals("kbogqxndlkzgx", model.applicationConfigs().get(0).customized()); + Assertions.assertEquals("uriplbpodxunkb", model.applicationConfigs().get(0).defaultValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CdiConfigProps model = new CdiConfigProps().withEngineName("hzv") - .withEngineVersion("ytdw") + CdiConfigProps model = new CdiConfigProps().withEngineName("gaokonzmnsikv") + .withEngineVersion("kqze") .withApplicationConfigs(Arrays.asList( - new ApplicationConfigs().withType("brqubp") - .withName("xhexiilivpdti") - .withValue("r") - .withPlatform("tdqoaxoruzfgsq") - .withCustomized("yfxrx") - .withDefaultValue("l"), - new ApplicationConfigs().withType("ptramxj") - .withName("zwl") - .withValue("nwxuqlcvydyp") - .withPlatform("tdooaoj") - .withCustomized("niodkooeb") - .withDefaultValue("nuj"), - new ApplicationConfigs().withType("emmsbvdkc") - .withName("odtji") - .withValue("fw") - .withPlatform("lfltka") - .withCustomized("jvefkdlfoakggkfp") - .withDefaultValue("gaowpulpqblylsyx"), - new ApplicationConfigs().withType("qjnsjervtia") - .withName("xsdszuempsb") - .withValue("kfzbeyvpnqicvi") - .withPlatform("v") - .withCustomized("jjxd") - .withDefaultValue("rbuukzclewyhmlwp"))); + new ApplicationConfigs().withType("kdltfzxmhhvhg") + .withName("r") + .withValue("odkwobd") + .withPlatform("gxtibqdxbxw") + .withCustomized("kbogqxndlkzgx") + .withDefaultValue("uriplbpodxunkb"), + new ApplicationConfigs().withType("bxmubyynt") + .withName("lrb") + .withValue("tkoievseotgq") + .withPlatform("l") + .withCustomized("tmuwlauwzi") + .withDefaultValue("xbmp"))); model = BinaryData.fromObject(model).toObject(CdiConfigProps.class); - Assertions.assertEquals("hzv", model.engineName()); - Assertions.assertEquals("ytdw", model.engineVersion()); - Assertions.assertEquals("brqubp", model.applicationConfigs().get(0).type()); - Assertions.assertEquals("xhexiilivpdti", model.applicationConfigs().get(0).name()); - Assertions.assertEquals("r", model.applicationConfigs().get(0).value()); - Assertions.assertEquals("tdqoaxoruzfgsq", model.applicationConfigs().get(0).platform()); - Assertions.assertEquals("yfxrx", model.applicationConfigs().get(0).customized()); - Assertions.assertEquals("l", model.applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("gaokonzmnsikv", model.engineName()); + Assertions.assertEquals("kqze", model.engineVersion()); + Assertions.assertEquals("kdltfzxmhhvhg", model.applicationConfigs().get(0).type()); + Assertions.assertEquals("r", model.applicationConfigs().get(0).name()); + Assertions.assertEquals("odkwobd", model.applicationConfigs().get(0).value()); + Assertions.assertEquals("gxtibqdxbxw", model.applicationConfigs().get(0).platform()); + Assertions.assertEquals("kbogqxndlkzgx", model.applicationConfigs().get(0).customized()); + Assertions.assertEquals("uriplbpodxunkb", model.applicationConfigs().get(0).defaultValue()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CheckDependenciesResponseInnerTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CheckDependenciesResponseInnerTests.java index fe2323bf2a1c..73ae923eb922 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CheckDependenciesResponseInnerTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CheckDependenciesResponseInnerTests.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.informaticadatamanagement.generated; @@ -12,15 +12,15 @@ public final class CheckDependenciesResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CheckDependenciesResponseInner model = BinaryData.fromString( - "{\"count\":1485711526,\"id\":\"xdigrjg\",\"references\":[{\"id\":\"fzdm\",\"appContextId\":\"yqtfihwh\",\"path\":\"otzi\",\"documentType\":\"gamv\",\"description\":\"phoszqz\",\"lastUpdatedTime\":\"dphqamv\"},{\"id\":\"kfwynw\",\"appContextId\":\"vtbvkayh\",\"path\":\"tnvyqiatkzwp\",\"documentType\":\"npwzcjaes\",\"description\":\"vvsccyajguq\",\"lastUpdatedTime\":\"hwyg\"}]}") + "{\"count\":82609235,\"id\":\"rhneuyowq\",\"references\":[{\"id\":\"wyt\",\"appContextId\":\"sibircgpi\",\"path\":\"pzimejzanlfzxi\",\"documentType\":\"vrmbzono\",\"description\":\"i\",\"lastUpdatedTime\":\"rjqc\"}]}") .toObject(CheckDependenciesResponseInner.class); - Assertions.assertEquals(1485711526, model.count()); - Assertions.assertEquals("xdigrjg", model.id()); - Assertions.assertEquals("fzdm", model.references().get(0).id()); - Assertions.assertEquals("yqtfihwh", model.references().get(0).appContextId()); - Assertions.assertEquals("otzi", model.references().get(0).path()); - Assertions.assertEquals("gamv", model.references().get(0).documentType()); - Assertions.assertEquals("phoszqz", model.references().get(0).description()); - Assertions.assertEquals("dphqamv", model.references().get(0).lastUpdatedTime()); + Assertions.assertEquals(82609235, model.count()); + Assertions.assertEquals("rhneuyowq", model.id()); + Assertions.assertEquals("wyt", model.references().get(0).id()); + Assertions.assertEquals("sibircgpi", model.references().get(0).appContextId()); + Assertions.assertEquals("pzimejzanlfzxi", model.references().get(0).path()); + Assertions.assertEquals("vrmbzono", model.references().get(0).documentType()); + Assertions.assertEquals("i", model.references().get(0).description()); + Assertions.assertEquals("rjqc", model.references().get(0).lastUpdatedTime()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsTests.java index 42b444eed2c8..6b58df40adae 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsTests.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.informaticadatamanagement.generated; @@ -12,30 +12,30 @@ public final class CompanyDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CompanyDetails model = BinaryData.fromString( - "{\"companyName\":\"wbnguitnwui\",\"officeAddress\":\"a\",\"country\":\"ufizuckyf\",\"domain\":\"rfidfvzwdz\",\"business\":\"tymw\",\"numberOfEmployees\":396497881}") + "{\"companyName\":\"sgcbac\",\"officeAddress\":\"ejk\",\"country\":\"ynqgoulzndlikwyq\",\"domain\":\"fgibmadgakeq\",\"business\":\"xybz\",\"numberOfEmployees\":161045800}") .toObject(CompanyDetails.class); - Assertions.assertEquals("wbnguitnwui", model.companyName()); - Assertions.assertEquals("a", model.officeAddress()); - Assertions.assertEquals("ufizuckyf", model.country()); - Assertions.assertEquals("rfidfvzwdz", model.domain()); - Assertions.assertEquals("tymw", model.business()); - Assertions.assertEquals(396497881, model.numberOfEmployees()); + Assertions.assertEquals("sgcbac", model.companyName()); + Assertions.assertEquals("ejk", model.officeAddress()); + Assertions.assertEquals("ynqgoulzndlikwyq", model.country()); + Assertions.assertEquals("fgibmadgakeq", model.domain()); + Assertions.assertEquals("xybz", model.business()); + Assertions.assertEquals(161045800, model.numberOfEmployees()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CompanyDetails model = new CompanyDetails().withCompanyName("wbnguitnwui") - .withOfficeAddress("a") - .withCountry("ufizuckyf") - .withDomain("rfidfvzwdz") - .withBusiness("tymw") - .withNumberOfEmployees(396497881); + CompanyDetails model = new CompanyDetails().withCompanyName("sgcbac") + .withOfficeAddress("ejk") + .withCountry("ynqgoulzndlikwyq") + .withDomain("fgibmadgakeq") + .withBusiness("xybz") + .withNumberOfEmployees(161045800); model = BinaryData.fromObject(model).toObject(CompanyDetails.class); - Assertions.assertEquals("wbnguitnwui", model.companyName()); - Assertions.assertEquals("a", model.officeAddress()); - Assertions.assertEquals("ufizuckyf", model.country()); - Assertions.assertEquals("rfidfvzwdz", model.domain()); - Assertions.assertEquals("tymw", model.business()); - Assertions.assertEquals(396497881, model.numberOfEmployees()); + Assertions.assertEquals("sgcbac", model.companyName()); + Assertions.assertEquals("ejk", model.officeAddress()); + Assertions.assertEquals("ynqgoulzndlikwyq", model.country()); + Assertions.assertEquals("fgibmadgakeq", model.domain()); + Assertions.assertEquals("xybz", model.business()); + Assertions.assertEquals(161045800, model.numberOfEmployees()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsUpdateTests.java index d4dce4fd26f9..b6b4af615139 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsUpdateTests.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.informaticadatamanagement.generated; @@ -12,30 +12,30 @@ public final class CompanyDetailsUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CompanyDetailsUpdate model = BinaryData.fromString( - "{\"companyName\":\"wvl\",\"officeAddress\":\"avwhheunm\",\"country\":\"hgyxzkonoc\",\"domain\":\"oklyaxuconuq\",\"business\":\"fkbey\",\"numberOfEmployees\":1315033601}") + "{\"companyName\":\"juqk\",\"officeAddress\":\"sa\",\"country\":\"wkuofoskghsauu\",\"domain\":\"jmvxie\",\"business\":\"ugidyjrr\",\"numberOfEmployees\":207335442}") .toObject(CompanyDetailsUpdate.class); - Assertions.assertEquals("wvl", model.companyName()); - Assertions.assertEquals("avwhheunm", model.officeAddress()); - Assertions.assertEquals("hgyxzkonoc", model.country()); - Assertions.assertEquals("oklyaxuconuq", model.domain()); - Assertions.assertEquals("fkbey", model.business()); - Assertions.assertEquals(1315033601, model.numberOfEmployees()); + Assertions.assertEquals("juqk", model.companyName()); + Assertions.assertEquals("sa", model.officeAddress()); + Assertions.assertEquals("wkuofoskghsauu", model.country()); + Assertions.assertEquals("jmvxie", model.domain()); + Assertions.assertEquals("ugidyjrr", model.business()); + Assertions.assertEquals(207335442, model.numberOfEmployees()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CompanyDetailsUpdate model = new CompanyDetailsUpdate().withCompanyName("wvl") - .withOfficeAddress("avwhheunm") - .withCountry("hgyxzkonoc") - .withDomain("oklyaxuconuq") - .withBusiness("fkbey") - .withNumberOfEmployees(1315033601); + CompanyDetailsUpdate model = new CompanyDetailsUpdate().withCompanyName("juqk") + .withOfficeAddress("sa") + .withCountry("wkuofoskghsauu") + .withDomain("jmvxie") + .withBusiness("ugidyjrr") + .withNumberOfEmployees(207335442); model = BinaryData.fromObject(model).toObject(CompanyDetailsUpdate.class); - Assertions.assertEquals("wvl", model.companyName()); - Assertions.assertEquals("avwhheunm", model.officeAddress()); - Assertions.assertEquals("hgyxzkonoc", model.country()); - Assertions.assertEquals("oklyaxuconuq", model.domain()); - Assertions.assertEquals("fkbey", model.business()); - Assertions.assertEquals(1315033601, model.numberOfEmployees()); + Assertions.assertEquals("juqk", model.companyName()); + Assertions.assertEquals("sa", model.officeAddress()); + Assertions.assertEquals("wkuofoskghsauu", model.country()); + Assertions.assertEquals("jmvxie", model.domain()); + Assertions.assertEquals("ugidyjrr", model.business()); + Assertions.assertEquals(207335442, model.numberOfEmployees()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ComputeUnitsMetadataTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ComputeUnitsMetadataTests.java index 8dfe3e3a7564..cc6580902d32 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ComputeUnitsMetadataTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ComputeUnitsMetadataTests.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.informaticadatamanagement.generated; @@ -11,9 +11,9 @@ public final class ComputeUnitsMetadataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ComputeUnitsMetadata model - = BinaryData.fromString("{\"name\":\"e\",\"value\":[\"arrwlquu\"]}").toObject(ComputeUnitsMetadata.class); - Assertions.assertEquals("e", model.name()); - Assertions.assertEquals("arrwlquu", model.value().get(0)); + ComputeUnitsMetadata model = BinaryData.fromString("{\"name\":\"txon\",\"value\":[\"savjcbpwxqps\"]}") + .toObject(ComputeUnitsMetadata.class); + Assertions.assertEquals("txon", model.name()); + Assertions.assertEquals("savjcbpwxqps", model.value().get(0)); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetaDataTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetaDataTests.java new file mode 100644 index 000000000000..95acf8582aeb --- /dev/null +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetaDataTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.informaticadatamanagement.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetaData; +import com.azure.resourcemanager.informaticadatamanagement.models.RuntimeType; +import org.junit.jupiter.api.Assertions; + +public final class InfaRuntimeResourceFetchMetaDataTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + InfaRuntimeResourceFetchMetaData model = BinaryData.fromString( + "{\"name\":\"xkp\",\"createdTime\":\"ksmond\",\"updatedTime\":\"mquxvypo\",\"createdBy\":\"gkopkwhojvpajqgx\",\"updatedBy\":\"smocmbq\",\"id\":\"qvmkcxo\",\"type\":\"SERVERLESS\",\"status\":\"pvhelxprg\",\"statusLocalized\":\"yat\",\"statusMessage\":\"dckcbc\",\"serverlessConfigProperties\":{\"subnet\":\"jrjxgciqibrhosx\",\"applicationType\":\"qrhzoymibmrqyib\",\"resourceGroupName\":\"wfluszdt\",\"advancedCustomProperties\":\"rkwofyyvoqa\",\"supplementaryFileLocation\":\"iexpbtgiwbwo\",\"platform\":\"washr\",\"tags\":\"tkcnqxwb\",\"vnet\":\"kulpiujwaasi\",\"executionTimeout\":\"i\",\"computeUnits\":\"byuqerpqlp\",\"tenantId\":\"cciuqgbdbutau\",\"subscriptionId\":\"btkuwhh\",\"region\":\"ykojoxafnndlpic\",\"serverlessArmResourceId\":\"o\"},\"description\":\"kcdyhbpk\"}") + .toObject(InfaRuntimeResourceFetchMetaData.class); + Assertions.assertEquals("xkp", model.name()); + Assertions.assertEquals("ksmond", model.createdTime()); + Assertions.assertEquals("mquxvypo", model.updatedTime()); + Assertions.assertEquals("gkopkwhojvpajqgx", model.createdBy()); + Assertions.assertEquals("smocmbq", model.updatedBy()); + Assertions.assertEquals("qvmkcxo", model.id()); + Assertions.assertEquals(RuntimeType.SERVERLESS, model.type()); + Assertions.assertEquals("pvhelxprg", model.status()); + Assertions.assertEquals("yat", model.statusLocalized()); + Assertions.assertEquals("dckcbc", model.statusMessage()); + Assertions.assertEquals("jrjxgciqibrhosx", model.serverlessConfigProperties().subnet()); + Assertions.assertEquals("qrhzoymibmrqyib", model.serverlessConfigProperties().applicationType()); + Assertions.assertEquals("wfluszdt", model.serverlessConfigProperties().resourceGroupName()); + Assertions.assertEquals("rkwofyyvoqa", model.serverlessConfigProperties().advancedCustomProperties()); + Assertions.assertEquals("iexpbtgiwbwo", model.serverlessConfigProperties().supplementaryFileLocation()); + Assertions.assertEquals("washr", model.serverlessConfigProperties().platform()); + Assertions.assertEquals("tkcnqxwb", model.serverlessConfigProperties().tags()); + Assertions.assertEquals("kulpiujwaasi", model.serverlessConfigProperties().vnet()); + Assertions.assertEquals("i", model.serverlessConfigProperties().executionTimeout()); + Assertions.assertEquals("byuqerpqlp", model.serverlessConfigProperties().computeUnits()); + Assertions.assertEquals("cciuqgbdbutau", model.serverlessConfigProperties().tenantId()); + Assertions.assertEquals("btkuwhh", model.serverlessConfigProperties().subscriptionId()); + Assertions.assertEquals("ykojoxafnndlpic", model.serverlessConfigProperties().region()); + Assertions.assertEquals("o", model.serverlessConfigProperties().serverlessArmResourceId()); + Assertions.assertEquals("kcdyhbpk", model.description()); + } +} diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetadataTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetadataTests.java deleted file mode 100644 index e1e16f7876d4..000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetadataTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetadata; -import com.azure.resourcemanager.informaticadatamanagement.models.RuntimeType; -import org.junit.jupiter.api.Assertions; - -public final class InfaRuntimeResourceFetchMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InfaRuntimeResourceFetchMetadata model = BinaryData.fromString( - "{\"name\":\"wfqkquj\",\"createdTime\":\"dsuyonobgla\",\"updatedTime\":\"cq\",\"createdBy\":\"tcc\",\"updatedBy\":\"g\",\"id\":\"udxytlmoyrx\",\"type\":\"SERVERLESS\",\"status\":\"fudwpznt\",\"statusLocalized\":\"hdzhlrqj\",\"statusMessage\":\"hckfrlhrx\",\"serverlessConfigProperties\":{\"subnet\":\"kyv\",\"applicationType\":\"ca\",\"resourceGroupName\":\"z\",\"advancedCustomProperties\":\"zka\",\"supplementaryFileLocation\":\"uwbc\",\"platform\":\"wbme\",\"tags\":\"seyvj\",\"vnet\":\"rts\",\"executionTimeout\":\"spkdee\",\"computeUnits\":\"ofmxagkvtmelmqkr\",\"tenantId\":\"hvljuahaquh\",\"subscriptionId\":\"hmdua\",\"region\":\"exq\",\"serverlessArmResourceId\":\"fadmws\"},\"description\":\"r\"}") - .toObject(InfaRuntimeResourceFetchMetadata.class); - Assertions.assertEquals("wfqkquj", model.name()); - Assertions.assertEquals("dsuyonobgla", model.createdTime()); - Assertions.assertEquals("cq", model.updatedTime()); - Assertions.assertEquals("tcc", model.createdBy()); - Assertions.assertEquals("g", model.updatedBy()); - Assertions.assertEquals("udxytlmoyrx", model.id()); - Assertions.assertEquals(RuntimeType.SERVERLESS, model.type()); - Assertions.assertEquals("fudwpznt", model.status()); - Assertions.assertEquals("hdzhlrqj", model.statusLocalized()); - Assertions.assertEquals("hckfrlhrx", model.statusMessage()); - Assertions.assertEquals("kyv", model.serverlessConfigProperties().subnet()); - Assertions.assertEquals("ca", model.serverlessConfigProperties().applicationType()); - Assertions.assertEquals("z", model.serverlessConfigProperties().resourceGroupName()); - Assertions.assertEquals("zka", model.serverlessConfigProperties().advancedCustomProperties()); - Assertions.assertEquals("uwbc", model.serverlessConfigProperties().supplementaryFileLocation()); - Assertions.assertEquals("wbme", model.serverlessConfigProperties().platform()); - Assertions.assertEquals("seyvj", model.serverlessConfigProperties().tags()); - Assertions.assertEquals("rts", model.serverlessConfigProperties().vnet()); - Assertions.assertEquals("spkdee", model.serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("ofmxagkvtmelmqkr", model.serverlessConfigProperties().computeUnits()); - Assertions.assertEquals("hvljuahaquh", model.serverlessConfigProperties().tenantId()); - Assertions.assertEquals("hmdua", model.serverlessConfigProperties().subscriptionId()); - Assertions.assertEquals("exq", model.serverlessConfigProperties().region()); - Assertions.assertEquals("fadmws", model.serverlessConfigProperties().serverlessArmResourceId()); - Assertions.assertEquals("r", model.description()); - } -} diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaServerlessFetchConfigPropertiesTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaServerlessFetchConfigPropertiesTests.java index 19bef8080aee..7074f2611808 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaServerlessFetchConfigPropertiesTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaServerlessFetchConfigPropertiesTests.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.informaticadatamanagement.generated; @@ -12,21 +12,21 @@ public final class InfaServerlessFetchConfigPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InfaServerlessFetchConfigProperties model = BinaryData.fromString( - "{\"subnet\":\"xpvgo\",\"applicationType\":\"lf\",\"resourceGroupName\":\"sgwbnbbeld\",\"advancedCustomProperties\":\"k\",\"supplementaryFileLocation\":\"ali\",\"platform\":\"rqhakauha\",\"tags\":\"sfwxosowzxc\",\"vnet\":\"i\",\"executionTimeout\":\"ooxdjebwpuc\",\"computeUnits\":\"fvovbvmeuecivy\",\"tenantId\":\"ce\",\"subscriptionId\":\"jgjrwjueiotwm\",\"region\":\"ytdxwit\",\"serverlessArmResourceId\":\"rjaw\"}") + "{\"subnet\":\"wdreqnovvqfovl\",\"applicationType\":\"ywsuwsy\",\"resourceGroupName\":\"ndsytgadg\",\"advancedCustomProperties\":\"aeaeneqnzarrw\",\"supplementaryFileLocation\":\"uu\",\"platform\":\"fqka\",\"tags\":\"wiipfpub\",\"vnet\":\"bwwift\",\"executionTimeout\":\"qkvpuvksgplsakn\",\"computeUnits\":\"fsynljphuop\",\"tenantId\":\"dlqiyntorzih\",\"subscriptionId\":\"osjswsr\",\"region\":\"lyzrpzbchckqqzqi\",\"serverlessArmResourceId\":\"iysui\"}") .toObject(InfaServerlessFetchConfigProperties.class); - Assertions.assertEquals("xpvgo", model.subnet()); - Assertions.assertEquals("lf", model.applicationType()); - Assertions.assertEquals("sgwbnbbeld", model.resourceGroupName()); - Assertions.assertEquals("k", model.advancedCustomProperties()); - Assertions.assertEquals("ali", model.supplementaryFileLocation()); - Assertions.assertEquals("rqhakauha", model.platform()); - Assertions.assertEquals("sfwxosowzxc", model.tags()); - Assertions.assertEquals("i", model.vnet()); - Assertions.assertEquals("ooxdjebwpuc", model.executionTimeout()); - Assertions.assertEquals("fvovbvmeuecivy", model.computeUnits()); - Assertions.assertEquals("ce", model.tenantId()); - Assertions.assertEquals("jgjrwjueiotwm", model.subscriptionId()); - Assertions.assertEquals("ytdxwit", model.region()); - Assertions.assertEquals("rjaw", model.serverlessArmResourceId()); + Assertions.assertEquals("wdreqnovvqfovl", model.subnet()); + Assertions.assertEquals("ywsuwsy", model.applicationType()); + Assertions.assertEquals("ndsytgadg", model.resourceGroupName()); + Assertions.assertEquals("aeaeneqnzarrw", model.advancedCustomProperties()); + Assertions.assertEquals("uu", model.supplementaryFileLocation()); + Assertions.assertEquals("fqka", model.platform()); + Assertions.assertEquals("wiipfpub", model.tags()); + Assertions.assertEquals("bwwift", model.vnet()); + Assertions.assertEquals("qkvpuvksgplsakn", model.executionTimeout()); + Assertions.assertEquals("fsynljphuop", model.computeUnits()); + Assertions.assertEquals("dlqiyntorzih", model.tenantId()); + Assertions.assertEquals("osjswsr", model.subscriptionId()); + Assertions.assertEquals("lyzrpzbchckqqzqi", model.region()); + Assertions.assertEquals("iysui", model.serverlessArmResourceId()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaOrganizationResourceUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaOrganizationResourceUpdateTests.java index 2ef551068421..41dd13de9b8e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaOrganizationResourceUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaOrganizationResourceUpdateTests.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.informaticadatamanagement.generated; @@ -19,287 +19,285 @@ public final class InformaticaOrganizationResourceUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InformaticaOrganizationResourceUpdate model = BinaryData.fromString( - "{\"tags\":{\"jcmmxdcufufsrp\":\"km\",\"sgfyccsnew\":\"mzidnsezcxtb\",\"oosflnr\":\"dwzjeiach\",\"vypyqrimzinpv\":\"sfqpteehz\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"ckwhds\":\"irsoodqxhcrmnohj\",\"znorcj\":\"ifiyipjxsqwpgrj\",\"xqabnmocpcysh\":\"vsnb\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"j\":\"bl\"},\"properties\":{\"informaticaOrganizationProperties\":{},\"marketplaceDetails\":{},\"userDetails\":{},\"companyDetails\":{},\"existingResourceId\":\"jmkljavbqidtqajz\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"pku\",\"offerDetails\":{\"publisherId\":\"rlkhbzhfepgzgq\",\"offerId\":\"zloc\",\"planId\":\"c\",\"planName\":\"ierhhbcsglummaj\",\"termUnit\":\"aodxo\",\"termId\":\"bdxkqpxokaj\"}},\"userDetails\":{\"firstName\":\"pimexgstxgcpodg\",\"lastName\":\"ajrmvdjwzrlovmc\",\"emailAddress\":\"hijco\",\"upn\":\"ctbzaq\",\"phoneNumber\":\"sycbkbfk\"},\"companyDetails\":{\"companyName\":\"dkexxppofm\",\"officeAddress\":\"x\",\"country\":\"jpgd\",\"domain\":\"ocjjxhvpmouexh\",\"business\":\"xibqeojnx\",\"numberOfEmployees\":2010157167},\"existingResourceId\":\"ddntwndei\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"w\",\"offerDetails\":{\"publisherId\":\"aoqvuh\",\"offerId\":\"cffcyddglmj\",\"planId\":\"jqkwpyeicx\",\"planName\":\"ciwqvhk\",\"termUnit\":\"xuigdtopbobj\",\"termId\":\"hm\"}},\"userDetails\":{\"firstName\":\"a\",\"lastName\":\"uhrzayvvt\",\"emailAddress\":\"vdfgiotk\",\"upn\":\"utqxlngx\",\"phoneNumber\":\"fgugnxkrxdqmid\"},\"companyDetails\":{\"companyName\":\"zrvqdr\",\"officeAddress\":\"hjybigehoqfbo\",\"country\":\"kanyktzlcuiywg\",\"domain\":\"wgndrvynhzgpp\",\"business\":\"cgyncocpecf\",\"numberOfEmployees\":925016585},\"existingResourceId\":\"oo\"}}") + "{\"tags\":{\"smodmgloug\":\"flmmnk\",\"wtmutduq\":\"b\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"kdosvqw\":\"pwgcuertu\",\"bjf\":\"bmdg\",\"bexppb\":\"dgmb\",\"rolfpfp\":\"tq\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"gjyjgzjaoyfhrtxi\":\"qux\",\"rkujy\":\"n\"},\"properties\":{\"informaticaOrganizationProperties\":{},\"marketplaceDetails\":{},\"userDetails\":{},\"companyDetails\":{},\"existingResourceId\":\"fqawrlyxw\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"prbnwbxgjvtbv\",\"offerDetails\":{\"publisherId\":\"szdnr\",\"offerId\":\"qguhmuo\",\"planId\":\"f\",\"planName\":\"wzwbnguitn\",\"termUnit\":\"izgazxu\",\"termId\":\"zuckyfi\"}},\"userDetails\":{\"firstName\":\"idf\",\"lastName\":\"wdzuhtymwisd\",\"emailAddress\":\"thwxmnteiwaopvkm\",\"upn\":\"c\",\"phoneNumber\":\"xdcu\"},\"companyDetails\":{\"companyName\":\"srp\",\"officeAddress\":\"zidnsezcxtbzsgfy\",\"country\":\"sne\",\"domain\":\"dwzjeiach\",\"business\":\"osfln\",\"numberOfEmployees\":13730136},\"existingResourceId\":\"qpteeh\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"ypyqrimzinp\",\"offerDetails\":{\"publisherId\":\"jdkirsoodqx\",\"offerId\":\"rmnohj\",\"planId\":\"kwh\",\"planName\":\"oifiyipjxsqwpgr\",\"termUnit\":\"znorcj\",\"termId\":\"snb\"}},\"userDetails\":{\"firstName\":\"abnmocpcyshu\",\"lastName\":\"afbljjgpbtoqcjmk\",\"emailAddress\":\"a\",\"upn\":\"qidtqajzyu\",\"phoneNumber\":\"kudjkrlkhb\"},\"companyDetails\":{\"companyName\":\"epgzgqexz\",\"officeAddress\":\"c\",\"country\":\"c\",\"domain\":\"ierhhbcsglummaj\",\"business\":\"aodxo\",\"numberOfEmployees\":547031215},\"existingResourceId\":\"xkqpxo\"}}") .toObject(InformaticaOrganizationResourceUpdate.class); - Assertions.assertEquals("km", model.tags().get("jcmmxdcufufsrp")); - Assertions.assertEquals("irsoodqxhcrmnohj", - model.properties().informaticaOrganizationProperties().tags().get("ckwhds")); - Assertions.assertEquals("bl", + Assertions.assertEquals("flmmnk", model.tags().get("smodmgloug")); + Assertions.assertEquals("pwgcuertu", + model.properties().informaticaOrganizationProperties().tags().get("kdosvqw")); + Assertions.assertEquals("qux", model.properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("j")); - Assertions.assertEquals("jmkljavbqidtqajz", + .get("gjyjgzjaoyfhrtxi")); + Assertions.assertEquals("fqawrlyxw", model.properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .existingResourceId()); - Assertions.assertEquals("pku", + Assertions.assertEquals("prbnwbxgjvtbv", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .marketplaceSubscriptionId()); - Assertions.assertEquals("rlkhbzhfepgzgq", + Assertions.assertEquals("szdnr", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .publisherId()); - Assertions.assertEquals("zloc", + Assertions.assertEquals("qguhmuo", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .offerId()); - Assertions.assertEquals("c", + Assertions.assertEquals("f", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .planId()); - Assertions.assertEquals("ierhhbcsglummaj", + Assertions.assertEquals("wzwbnguitn", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .planName()); - Assertions.assertEquals("aodxo", + Assertions.assertEquals("izgazxu", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .termUnit()); - Assertions.assertEquals("bdxkqpxokaj", + Assertions.assertEquals("zuckyfi", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .termId()); - Assertions.assertEquals("pimexgstxgcpodg", + Assertions.assertEquals("idf", model.properties().informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("ajrmvdjwzrlovmc", + Assertions.assertEquals("wdzuhtymwisd", model.properties().informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("hijco", + Assertions.assertEquals("thwxmnteiwaopvkm", model.properties().informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("ctbzaq", + Assertions.assertEquals("c", model.properties().informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("sycbkbfk", + Assertions.assertEquals("xdcu", model.properties().informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("dkexxppofm", + Assertions.assertEquals("srp", model.properties().informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("x", + Assertions.assertEquals("zidnsezcxtbzsgfy", model.properties().informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("jpgd", + Assertions.assertEquals("sne", model.properties().informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("ocjjxhvpmouexh", + Assertions.assertEquals("dwzjeiach", model.properties().informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("xibqeojnx", + Assertions.assertEquals("osfln", model.properties().informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(2010157167, + Assertions.assertEquals(13730136, model.properties().informaticaOrganizationProperties().properties().companyDetails().numberOfEmployees()); - Assertions.assertEquals("ddntwndei", + Assertions.assertEquals("qpteeh", model.properties().informaticaOrganizationProperties().properties().existingResourceId()); - Assertions.assertEquals("w", model.properties().marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("aoqvuh", model.properties().marketplaceDetails().offerDetails().publisherId()); - Assertions.assertEquals("cffcyddglmj", model.properties().marketplaceDetails().offerDetails().offerId()); - Assertions.assertEquals("jqkwpyeicx", model.properties().marketplaceDetails().offerDetails().planId()); - Assertions.assertEquals("ciwqvhk", model.properties().marketplaceDetails().offerDetails().planName()); - Assertions.assertEquals("xuigdtopbobj", model.properties().marketplaceDetails().offerDetails().termUnit()); - Assertions.assertEquals("hm", model.properties().marketplaceDetails().offerDetails().termId()); - Assertions.assertEquals("a", model.properties().userDetails().firstName()); - Assertions.assertEquals("uhrzayvvt", model.properties().userDetails().lastName()); - Assertions.assertEquals("vdfgiotk", model.properties().userDetails().emailAddress()); - Assertions.assertEquals("utqxlngx", model.properties().userDetails().upn()); - Assertions.assertEquals("fgugnxkrxdqmid", model.properties().userDetails().phoneNumber()); - Assertions.assertEquals("zrvqdr", model.properties().companyDetails().companyName()); - Assertions.assertEquals("hjybigehoqfbo", model.properties().companyDetails().officeAddress()); - Assertions.assertEquals("kanyktzlcuiywg", model.properties().companyDetails().country()); - Assertions.assertEquals("wgndrvynhzgpp", model.properties().companyDetails().domain()); - Assertions.assertEquals("cgyncocpecf", model.properties().companyDetails().business()); - Assertions.assertEquals(925016585, model.properties().companyDetails().numberOfEmployees()); - Assertions.assertEquals("oo", model.properties().existingResourceId()); + Assertions.assertEquals("ypyqrimzinp", model.properties().marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("jdkirsoodqx", model.properties().marketplaceDetails().offerDetails().publisherId()); + Assertions.assertEquals("rmnohj", model.properties().marketplaceDetails().offerDetails().offerId()); + Assertions.assertEquals("kwh", model.properties().marketplaceDetails().offerDetails().planId()); + Assertions.assertEquals("oifiyipjxsqwpgr", model.properties().marketplaceDetails().offerDetails().planName()); + Assertions.assertEquals("znorcj", model.properties().marketplaceDetails().offerDetails().termUnit()); + Assertions.assertEquals("snb", model.properties().marketplaceDetails().offerDetails().termId()); + Assertions.assertEquals("abnmocpcyshu", model.properties().userDetails().firstName()); + Assertions.assertEquals("afbljjgpbtoqcjmk", model.properties().userDetails().lastName()); + Assertions.assertEquals("a", model.properties().userDetails().emailAddress()); + Assertions.assertEquals("qidtqajzyu", model.properties().userDetails().upn()); + Assertions.assertEquals("kudjkrlkhb", model.properties().userDetails().phoneNumber()); + Assertions.assertEquals("epgzgqexz", model.properties().companyDetails().companyName()); + Assertions.assertEquals("c", model.properties().companyDetails().officeAddress()); + Assertions.assertEquals("c", model.properties().companyDetails().country()); + Assertions.assertEquals("ierhhbcsglummaj", model.properties().companyDetails().domain()); + Assertions.assertEquals("aodxo", model.properties().companyDetails().business()); + Assertions.assertEquals(547031215, model.properties().companyDetails().numberOfEmployees()); + Assertions.assertEquals("xkqpxo", model.properties().existingResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { InformaticaOrganizationResourceUpdate model - = new InformaticaOrganizationResourceUpdate() - .withTags(mapOf("jcmmxdcufufsrp", "km", "sgfyccsnew", "mzidnsezcxtb", "oosflnr", "dwzjeiach", - "vypyqrimzinpv", "sfqpteehz")) - .withProperties(new OrganizationPropertiesCustomUpdate() - .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() - .withTags(mapOf("ckwhds", "irsoodqxhcrmnohj", "znorcj", "ifiyipjxsqwpgrj", "xqabnmocpcysh", - "vsnb")) - .withProperties( - new OrganizationPropertiesCustomUpdate() - .withInformaticaOrganizationProperties( - new InformaticaOrganizationResourceUpdate().withTags(mapOf("j", "bl")) - .withProperties(new OrganizationPropertiesCustomUpdate() - .withInformaticaOrganizationProperties( - new InformaticaOrganizationResourceUpdate()) - .withMarketplaceDetails(new MarketplaceDetailsUpdate()) - .withUserDetails(new UserDetailsUpdate()) - .withCompanyDetails(new CompanyDetailsUpdate()) - .withExistingResourceId("jmkljavbqidtqajz"))) + = new InformaticaOrganizationResourceUpdate().withTags(mapOf("smodmgloug", "flmmnk", "wtmutduq", "b")) + .withProperties( + new OrganizationPropertiesCustomUpdate() + .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() + .withTags(mapOf("kdosvqw", "pwgcuertu", "bjf", "bmdg", "bexppb", "dgmb", "rolfpfp", "tq")) + .withProperties(new OrganizationPropertiesCustomUpdate() + .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() + .withTags(mapOf("gjyjgzjaoyfhrtxi", "qux", "rkujy", "n")) + .withProperties(new OrganizationPropertiesCustomUpdate() + .withInformaticaOrganizationProperties( + new InformaticaOrganizationResourceUpdate()) + .withMarketplaceDetails(new MarketplaceDetailsUpdate()) + .withUserDetails(new UserDetailsUpdate()) + .withCompanyDetails(new CompanyDetailsUpdate()) + .withExistingResourceId("fqawrlyxw"))) .withMarketplaceDetails( - new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("pku") - .withOfferDetails(new OfferDetailsUpdate().withPublisherId("rlkhbzhfepgzgq") - .withOfferId("zloc") - .withPlanId("c") - .withPlanName("ierhhbcsglummaj") - .withTermUnit("aodxo") - .withTermId("bdxkqpxokaj"))) - .withUserDetails(new UserDetailsUpdate().withFirstName("pimexgstxgcpodg") - .withLastName("ajrmvdjwzrlovmc") - .withEmailAddress("hijco") - .withUpn("ctbzaq") - .withPhoneNumber("sycbkbfk")) - .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("dkexxppofm") - .withOfficeAddress("x") - .withCountry("jpgd") - .withDomain("ocjjxhvpmouexh") - .withBusiness("xibqeojnx") - .withNumberOfEmployees(2010157167)) - .withExistingResourceId("ddntwndei"))) - .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("w") - .withOfferDetails(new OfferDetailsUpdate().withPublisherId("aoqvuh") - .withOfferId("cffcyddglmj") - .withPlanId("jqkwpyeicx") - .withPlanName("ciwqvhk") - .withTermUnit("xuigdtopbobj") - .withTermId("hm"))) - .withUserDetails(new UserDetailsUpdate().withFirstName("a") - .withLastName("uhrzayvvt") - .withEmailAddress("vdfgiotk") - .withUpn("utqxlngx") - .withPhoneNumber("fgugnxkrxdqmid")) - .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("zrvqdr") - .withOfficeAddress("hjybigehoqfbo") - .withCountry("kanyktzlcuiywg") - .withDomain("wgndrvynhzgpp") - .withBusiness("cgyncocpecf") - .withNumberOfEmployees(925016585)) - .withExistingResourceId("oo")); + new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("prbnwbxgjvtbv") + .withOfferDetails(new OfferDetailsUpdate().withPublisherId("szdnr") + .withOfferId("qguhmuo") + .withPlanId("f") + .withPlanName("wzwbnguitn") + .withTermUnit("izgazxu") + .withTermId("zuckyfi"))) + .withUserDetails(new UserDetailsUpdate().withFirstName("idf") + .withLastName("wdzuhtymwisd") + .withEmailAddress("thwxmnteiwaopvkm") + .withUpn("c") + .withPhoneNumber("xdcu")) + .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("srp") + .withOfficeAddress("zidnsezcxtbzsgfy") + .withCountry("sne") + .withDomain("dwzjeiach") + .withBusiness("osfln") + .withNumberOfEmployees(13730136)) + .withExistingResourceId("qpteeh"))) + .withMarketplaceDetails( + new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("ypyqrimzinp") + .withOfferDetails(new OfferDetailsUpdate().withPublisherId("jdkirsoodqx") + .withOfferId("rmnohj") + .withPlanId("kwh") + .withPlanName("oifiyipjxsqwpgr") + .withTermUnit("znorcj") + .withTermId("snb"))) + .withUserDetails(new UserDetailsUpdate().withFirstName("abnmocpcyshu") + .withLastName("afbljjgpbtoqcjmk") + .withEmailAddress("a") + .withUpn("qidtqajzyu") + .withPhoneNumber("kudjkrlkhb")) + .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("epgzgqexz") + .withOfficeAddress("c") + .withCountry("c") + .withDomain("ierhhbcsglummaj") + .withBusiness("aodxo") + .withNumberOfEmployees(547031215)) + .withExistingResourceId("xkqpxo")); model = BinaryData.fromObject(model).toObject(InformaticaOrganizationResourceUpdate.class); - Assertions.assertEquals("km", model.tags().get("jcmmxdcufufsrp")); - Assertions.assertEquals("irsoodqxhcrmnohj", - model.properties().informaticaOrganizationProperties().tags().get("ckwhds")); - Assertions.assertEquals("bl", + Assertions.assertEquals("flmmnk", model.tags().get("smodmgloug")); + Assertions.assertEquals("pwgcuertu", + model.properties().informaticaOrganizationProperties().tags().get("kdosvqw")); + Assertions.assertEquals("qux", model.properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("j")); - Assertions.assertEquals("jmkljavbqidtqajz", + .get("gjyjgzjaoyfhrtxi")); + Assertions.assertEquals("fqawrlyxw", model.properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .existingResourceId()); - Assertions.assertEquals("pku", + Assertions.assertEquals("prbnwbxgjvtbv", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .marketplaceSubscriptionId()); - Assertions.assertEquals("rlkhbzhfepgzgq", + Assertions.assertEquals("szdnr", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .publisherId()); - Assertions.assertEquals("zloc", + Assertions.assertEquals("qguhmuo", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .offerId()); - Assertions.assertEquals("c", + Assertions.assertEquals("f", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .planId()); - Assertions.assertEquals("ierhhbcsglummaj", + Assertions.assertEquals("wzwbnguitn", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .planName()); - Assertions.assertEquals("aodxo", + Assertions.assertEquals("izgazxu", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .termUnit()); - Assertions.assertEquals("bdxkqpxokaj", + Assertions.assertEquals("zuckyfi", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .termId()); - Assertions.assertEquals("pimexgstxgcpodg", + Assertions.assertEquals("idf", model.properties().informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("ajrmvdjwzrlovmc", + Assertions.assertEquals("wdzuhtymwisd", model.properties().informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("hijco", + Assertions.assertEquals("thwxmnteiwaopvkm", model.properties().informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("ctbzaq", + Assertions.assertEquals("c", model.properties().informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("sycbkbfk", + Assertions.assertEquals("xdcu", model.properties().informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("dkexxppofm", + Assertions.assertEquals("srp", model.properties().informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("x", + Assertions.assertEquals("zidnsezcxtbzsgfy", model.properties().informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("jpgd", + Assertions.assertEquals("sne", model.properties().informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("ocjjxhvpmouexh", + Assertions.assertEquals("dwzjeiach", model.properties().informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("xibqeojnx", + Assertions.assertEquals("osfln", model.properties().informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(2010157167, + Assertions.assertEquals(13730136, model.properties().informaticaOrganizationProperties().properties().companyDetails().numberOfEmployees()); - Assertions.assertEquals("ddntwndei", + Assertions.assertEquals("qpteeh", model.properties().informaticaOrganizationProperties().properties().existingResourceId()); - Assertions.assertEquals("w", model.properties().marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("aoqvuh", model.properties().marketplaceDetails().offerDetails().publisherId()); - Assertions.assertEquals("cffcyddglmj", model.properties().marketplaceDetails().offerDetails().offerId()); - Assertions.assertEquals("jqkwpyeicx", model.properties().marketplaceDetails().offerDetails().planId()); - Assertions.assertEquals("ciwqvhk", model.properties().marketplaceDetails().offerDetails().planName()); - Assertions.assertEquals("xuigdtopbobj", model.properties().marketplaceDetails().offerDetails().termUnit()); - Assertions.assertEquals("hm", model.properties().marketplaceDetails().offerDetails().termId()); - Assertions.assertEquals("a", model.properties().userDetails().firstName()); - Assertions.assertEquals("uhrzayvvt", model.properties().userDetails().lastName()); - Assertions.assertEquals("vdfgiotk", model.properties().userDetails().emailAddress()); - Assertions.assertEquals("utqxlngx", model.properties().userDetails().upn()); - Assertions.assertEquals("fgugnxkrxdqmid", model.properties().userDetails().phoneNumber()); - Assertions.assertEquals("zrvqdr", model.properties().companyDetails().companyName()); - Assertions.assertEquals("hjybigehoqfbo", model.properties().companyDetails().officeAddress()); - Assertions.assertEquals("kanyktzlcuiywg", model.properties().companyDetails().country()); - Assertions.assertEquals("wgndrvynhzgpp", model.properties().companyDetails().domain()); - Assertions.assertEquals("cgyncocpecf", model.properties().companyDetails().business()); - Assertions.assertEquals(925016585, model.properties().companyDetails().numberOfEmployees()); - Assertions.assertEquals("oo", model.properties().existingResourceId()); + Assertions.assertEquals("ypyqrimzinp", model.properties().marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("jdkirsoodqx", model.properties().marketplaceDetails().offerDetails().publisherId()); + Assertions.assertEquals("rmnohj", model.properties().marketplaceDetails().offerDetails().offerId()); + Assertions.assertEquals("kwh", model.properties().marketplaceDetails().offerDetails().planId()); + Assertions.assertEquals("oifiyipjxsqwpgr", model.properties().marketplaceDetails().offerDetails().planName()); + Assertions.assertEquals("znorcj", model.properties().marketplaceDetails().offerDetails().termUnit()); + Assertions.assertEquals("snb", model.properties().marketplaceDetails().offerDetails().termId()); + Assertions.assertEquals("abnmocpcyshu", model.properties().userDetails().firstName()); + Assertions.assertEquals("afbljjgpbtoqcjmk", model.properties().userDetails().lastName()); + Assertions.assertEquals("a", model.properties().userDetails().emailAddress()); + Assertions.assertEquals("qidtqajzyu", model.properties().userDetails().upn()); + Assertions.assertEquals("kudjkrlkhb", model.properties().userDetails().phoneNumber()); + Assertions.assertEquals("epgzgqexz", model.properties().companyDetails().companyName()); + Assertions.assertEquals("c", model.properties().companyDetails().officeAddress()); + Assertions.assertEquals("c", model.properties().companyDetails().country()); + Assertions.assertEquals("ierhhbcsglummaj", model.properties().companyDetails().domain()); + Assertions.assertEquals("aodxo", model.properties().companyDetails().business()); + Assertions.assertEquals(547031215, model.properties().companyDetails().numberOfEmployees()); + Assertions.assertEquals("xkqpxo", model.properties().existingResourceId()); } // Use "Map.of" if available diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaPropertiesTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaPropertiesTests.java index 6e5ec9aadbbf..f80b6dc67245 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaPropertiesTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaPropertiesTests.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.informaticadatamanagement.generated; @@ -12,24 +12,24 @@ public final class InformaticaPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InformaticaProperties model = BinaryData.fromString( - "{\"organizationId\":\"yqkgfg\",\"organizationName\":\"madgakeqsrxyb\",\"informaticaRegion\":\"qedqytbciqfoufl\",\"singleSignOnUrl\":\"nkzsmodmglou\"}") + "{\"organizationId\":\"xqeofjaeqjhqjba\",\"organizationName\":\"msmjqulngsntn\",\"informaticaRegion\":\"bkzgcwrwclx\",\"singleSignOnUrl\":\"rljdouskcqv\"}") .toObject(InformaticaProperties.class); - Assertions.assertEquals("yqkgfg", model.organizationId()); - Assertions.assertEquals("madgakeqsrxyb", model.organizationName()); - Assertions.assertEquals("qedqytbciqfoufl", model.informaticaRegion()); - Assertions.assertEquals("nkzsmodmglou", model.singleSignOnUrl()); + Assertions.assertEquals("xqeofjaeqjhqjba", model.organizationId()); + Assertions.assertEquals("msmjqulngsntn", model.organizationName()); + Assertions.assertEquals("bkzgcwrwclx", model.informaticaRegion()); + Assertions.assertEquals("rljdouskcqv", model.singleSignOnUrl()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - InformaticaProperties model = new InformaticaProperties().withOrganizationId("yqkgfg") - .withOrganizationName("madgakeqsrxyb") - .withInformaticaRegion("qedqytbciqfoufl") - .withSingleSignOnUrl("nkzsmodmglou"); + InformaticaProperties model = new InformaticaProperties().withOrganizationId("xqeofjaeqjhqjba") + .withOrganizationName("msmjqulngsntn") + .withInformaticaRegion("bkzgcwrwclx") + .withSingleSignOnUrl("rljdouskcqv"); model = BinaryData.fromObject(model).toObject(InformaticaProperties.class); - Assertions.assertEquals("yqkgfg", model.organizationId()); - Assertions.assertEquals("madgakeqsrxyb", model.organizationName()); - Assertions.assertEquals("qedqytbciqfoufl", model.informaticaRegion()); - Assertions.assertEquals("nkzsmodmglou", model.singleSignOnUrl()); + Assertions.assertEquals("xqeofjaeqjhqjba", model.organizationId()); + Assertions.assertEquals("msmjqulngsntn", model.organizationName()); + Assertions.assertEquals("bkzgcwrwclx", model.informaticaRegion()); + Assertions.assertEquals("rljdouskcqv", model.singleSignOnUrl()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaServerlessRuntimeResourceListInnerTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaServerlessRuntimeResourceListInnerTests.java index 24611b818852..b279f5481406 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaServerlessRuntimeResourceListInnerTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaServerlessRuntimeResourceListInnerTests.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.informaticadatamanagement.generated; @@ -13,45 +13,45 @@ public final class InformaticaServerlessRuntimeResourceListInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InformaticaServerlessRuntimeResourceListInner model = BinaryData.fromString( - "{\"informaticaRuntimeResources\":[{\"name\":\"mjmwvvjektcx\",\"createdTime\":\"enhwlrs\",\"updatedTime\":\"frzpwvlqdqgb\",\"createdBy\":\"qylihkaetckt\",\"updatedBy\":\"fcivfsnkym\",\"id\":\"ctq\",\"type\":\"SERVERLESS\",\"status\":\"fbebrjcxer\",\"statusLocalized\":\"uwutttxfvjrbi\",\"statusMessage\":\"phxepcyvahf\",\"serverlessConfigProperties\":{\"subnet\":\"jky\",\"applicationType\":\"j\",\"resourceGroupName\":\"ujqgidok\",\"advancedCustomProperties\":\"ljyoxgvcltb\",\"supplementaryFileLocation\":\"ncghkje\",\"platform\":\"zhbijhtxfv\",\"tags\":\"bfs\",\"vnet\":\"nehmpvecx\",\"executionTimeout\":\"debfqkkrbmpukgri\",\"computeUnits\":\"lzlfbxzpuz\",\"tenantId\":\"ispnqzahmgkbrp\",\"subscriptionId\":\"dhibnuq\",\"region\":\"pikad\",\"serverlessArmResourceId\":\"vtq\"},\"description\":\"n\"},{\"name\":\"uynhijg\",\"createdTime\":\"mebf\",\"updatedTime\":\"iarbutrcvpna\",\"createdBy\":\"zmhjrunmp\",\"updatedBy\":\"ttdbhrbnl\",\"id\":\"nkxmyskpbhenbtk\",\"type\":\"SERVERLESS\",\"status\":\"ywn\",\"statusLocalized\":\"tnrsyn\",\"statusMessage\":\"qidybyx\",\"serverlessConfigProperties\":{\"subnet\":\"fclhaaxdbabphlwr\",\"applicationType\":\"fkts\",\"resourceGroupName\":\"sucocmnyyazttbtw\",\"advancedCustomProperties\":\"qpuedckzywbiex\",\"supplementaryFileLocation\":\"eyueaxibxujwb\",\"platform\":\"walm\",\"tags\":\"yoxa\",\"vnet\":\"dkzjancuxrh\",\"executionTimeout\":\"bavxbniwdjswzt\",\"computeUnits\":\"bpg\",\"tenantId\":\"ytxhp\",\"subscriptionId\":\"bzpfzab\",\"region\":\"cuh\",\"serverlessArmResourceId\":\"tcty\"},\"description\":\"klbb\"},{\"name\":\"vplwzbhv\",\"createdTime\":\"yuguosvmkfssx\",\"updatedTime\":\"ukkfplgmgs\",\"createdBy\":\"nkjzkdeslpvlop\",\"updatedBy\":\"i\",\"id\":\"ighxpk\",\"type\":\"SERVERLESS\",\"status\":\"zb\",\"statusLocalized\":\"iuebbaumny\",\"statusMessage\":\"upedeojnabckhs\",\"serverlessConfigProperties\":{\"subnet\":\"xpsiebtfhvpes\",\"applicationType\":\"skrdqmhjj\",\"resourceGroupName\":\"tldwkyzxuutk\",\"advancedCustomProperties\":\"ws\",\"supplementaryFileLocation\":\"svlxotogtwrup\",\"platform\":\"xvnmicykvceov\",\"tags\":\"lo\",\"vnet\":\"oty\",\"executionTimeout\":\"fcnj\",\"computeUnits\":\"cn\",\"tenantId\":\"hbttkphyw\",\"subscriptionId\":\"vjtoqnermclfp\",\"region\":\"hoxus\",\"serverlessArmResourceId\":\"pabgyeps\"},\"description\":\"tazqugxywpmueefj\"}]}") + "{\"informaticaRuntimeResources\":[{\"name\":\"lfphsdyhtozfikd\",\"createdTime\":\"wwquuvxzxclvithh\",\"updatedTime\":\"zonosgg\",\"createdBy\":\"hcohfwdsjnk\",\"updatedBy\":\"ljuti\",\"id\":\"swacffgdkzz\",\"type\":\"SERVERLESS\",\"status\":\"kfvhqcrailvpn\",\"statusLocalized\":\"pfuflrw\",\"statusMessage\":\"mh\",\"serverlessConfigProperties\":{\"subnet\":\"xyjrxsagafcnih\",\"applicationType\":\"qapnedgfbcv\",\"resourceGroupName\":\"vq\",\"advancedCustomProperties\":\"keqdcvdrhvoods\",\"supplementaryFileLocation\":\"bobzdopcjwvnhd\",\"platform\":\"wmgxcxrsl\",\"tags\":\"utwu\",\"vnet\":\"grpkhjwniyqs\",\"executionTimeout\":\"i\",\"computeUnits\":\"dggkzzlvmbmpa\",\"tenantId\":\"odfvuefywsbp\",\"subscriptionId\":\"mwyhr\",\"region\":\"uyfta\",\"serverlessArmResourceId\":\"cpwi\"},\"description\":\"vqtmnub\"}]}") .toObject(InformaticaServerlessRuntimeResourceListInner.class); - Assertions.assertEquals("mjmwvvjektcx", model.informaticaRuntimeResources().get(0).name()); - Assertions.assertEquals("enhwlrs", model.informaticaRuntimeResources().get(0).createdTime()); - Assertions.assertEquals("frzpwvlqdqgb", model.informaticaRuntimeResources().get(0).updatedTime()); - Assertions.assertEquals("qylihkaetckt", model.informaticaRuntimeResources().get(0).createdBy()); - Assertions.assertEquals("fcivfsnkym", model.informaticaRuntimeResources().get(0).updatedBy()); - Assertions.assertEquals("ctq", model.informaticaRuntimeResources().get(0).id()); + Assertions.assertEquals("lfphsdyhtozfikd", model.informaticaRuntimeResources().get(0).name()); + Assertions.assertEquals("wwquuvxzxclvithh", model.informaticaRuntimeResources().get(0).createdTime()); + Assertions.assertEquals("zonosgg", model.informaticaRuntimeResources().get(0).updatedTime()); + Assertions.assertEquals("hcohfwdsjnk", model.informaticaRuntimeResources().get(0).createdBy()); + Assertions.assertEquals("ljuti", model.informaticaRuntimeResources().get(0).updatedBy()); + Assertions.assertEquals("swacffgdkzz", model.informaticaRuntimeResources().get(0).id()); Assertions.assertEquals(RuntimeType.SERVERLESS, model.informaticaRuntimeResources().get(0).type()); - Assertions.assertEquals("fbebrjcxer", model.informaticaRuntimeResources().get(0).status()); - Assertions.assertEquals("uwutttxfvjrbi", model.informaticaRuntimeResources().get(0).statusLocalized()); - Assertions.assertEquals("phxepcyvahf", model.informaticaRuntimeResources().get(0).statusMessage()); - Assertions.assertEquals("jky", + Assertions.assertEquals("kfvhqcrailvpn", model.informaticaRuntimeResources().get(0).status()); + Assertions.assertEquals("pfuflrw", model.informaticaRuntimeResources().get(0).statusLocalized()); + Assertions.assertEquals("mh", model.informaticaRuntimeResources().get(0).statusMessage()); + Assertions.assertEquals("xyjrxsagafcnih", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().subnet()); - Assertions.assertEquals("j", + Assertions.assertEquals("qapnedgfbcv", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().applicationType()); - Assertions.assertEquals("ujqgidok", + Assertions.assertEquals("vq", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().resourceGroupName()); - Assertions.assertEquals("ljyoxgvcltb", + Assertions.assertEquals("keqdcvdrhvoods", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().advancedCustomProperties()); - Assertions.assertEquals("ncghkje", + Assertions.assertEquals("bobzdopcjwvnhd", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().supplementaryFileLocation()); - Assertions.assertEquals("zhbijhtxfv", + Assertions.assertEquals("wmgxcxrsl", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().platform()); - Assertions.assertEquals("bfs", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().tags()); - Assertions.assertEquals("nehmpvecx", + Assertions.assertEquals("utwu", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().tags()); + Assertions.assertEquals("grpkhjwniyqs", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().vnet()); - Assertions.assertEquals("debfqkkrbmpukgri", + Assertions.assertEquals("i", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("lzlfbxzpuz", + Assertions.assertEquals("dggkzzlvmbmpa", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().computeUnits()); - Assertions.assertEquals("ispnqzahmgkbrp", + Assertions.assertEquals("odfvuefywsbp", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().tenantId()); - Assertions.assertEquals("dhibnuq", + Assertions.assertEquals("mwyhr", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().subscriptionId()); - Assertions.assertEquals("pikad", + Assertions.assertEquals("uyfta", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().region()); - Assertions.assertEquals("vtq", + Assertions.assertEquals("cpwi", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().serverlessArmResourceId()); - Assertions.assertEquals("n", model.informaticaRuntimeResources().get(0).description()); + Assertions.assertEquals("vqtmnub", model.informaticaRuntimeResources().get(0).description()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsTests.java index e3ead5c60bc8..1342eb78de08 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.generated; @@ -13,33 +13,33 @@ public final class MarketplaceDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MarketplaceDetails model = BinaryData.fromString( - "{\"marketplaceSubscriptionId\":\"b\",\"offerDetails\":{\"publisherId\":\"wtmutduq\",\"offerId\":\"ta\",\"planId\":\"spwgcuertumkdosv\",\"planName\":\"whbmd\",\"termUnit\":\"bjf\",\"termId\":\"dgmb\"}}") + "{\"marketplaceSubscriptionId\":\"cr\",\"offerDetails\":{\"publisherId\":\"jdkwtnhxbnjb\",\"offerId\":\"ksqrglssai\",\"planId\":\"qpjwnzlljfm\",\"planName\":\"pee\",\"termUnit\":\"mgxsab\",\"termId\":\"yqduujit\"}}") .toObject(MarketplaceDetails.class); - Assertions.assertEquals("b", model.marketplaceSubscriptionId()); - Assertions.assertEquals("wtmutduq", model.offerDetails().publisherId()); - Assertions.assertEquals("ta", model.offerDetails().offerId()); - Assertions.assertEquals("spwgcuertumkdosv", model.offerDetails().planId()); - Assertions.assertEquals("whbmd", model.offerDetails().planName()); - Assertions.assertEquals("bjf", model.offerDetails().termUnit()); - Assertions.assertEquals("dgmb", model.offerDetails().termId()); + Assertions.assertEquals("cr", model.marketplaceSubscriptionId()); + Assertions.assertEquals("jdkwtnhxbnjb", model.offerDetails().publisherId()); + Assertions.assertEquals("ksqrglssai", model.offerDetails().offerId()); + Assertions.assertEquals("qpjwnzlljfm", model.offerDetails().planId()); + Assertions.assertEquals("pee", model.offerDetails().planName()); + Assertions.assertEquals("mgxsab", model.offerDetails().termUnit()); + Assertions.assertEquals("yqduujit", model.offerDetails().termId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MarketplaceDetails model = new MarketplaceDetails().withMarketplaceSubscriptionId("b") - .withOfferDetails(new OfferDetails().withPublisherId("wtmutduq") - .withOfferId("ta") - .withPlanId("spwgcuertumkdosv") - .withPlanName("whbmd") - .withTermUnit("bjf") - .withTermId("dgmb")); + MarketplaceDetails model = new MarketplaceDetails().withMarketplaceSubscriptionId("cr") + .withOfferDetails(new OfferDetails().withPublisherId("jdkwtnhxbnjb") + .withOfferId("ksqrglssai") + .withPlanId("qpjwnzlljfm") + .withPlanName("pee") + .withTermUnit("mgxsab") + .withTermId("yqduujit")); model = BinaryData.fromObject(model).toObject(MarketplaceDetails.class); - Assertions.assertEquals("b", model.marketplaceSubscriptionId()); - Assertions.assertEquals("wtmutduq", model.offerDetails().publisherId()); - Assertions.assertEquals("ta", model.offerDetails().offerId()); - Assertions.assertEquals("spwgcuertumkdosv", model.offerDetails().planId()); - Assertions.assertEquals("whbmd", model.offerDetails().planName()); - Assertions.assertEquals("bjf", model.offerDetails().termUnit()); - Assertions.assertEquals("dgmb", model.offerDetails().termId()); + Assertions.assertEquals("cr", model.marketplaceSubscriptionId()); + Assertions.assertEquals("jdkwtnhxbnjb", model.offerDetails().publisherId()); + Assertions.assertEquals("ksqrglssai", model.offerDetails().offerId()); + Assertions.assertEquals("qpjwnzlljfm", model.offerDetails().planId()); + Assertions.assertEquals("pee", model.offerDetails().planName()); + Assertions.assertEquals("mgxsab", model.offerDetails().termUnit()); + Assertions.assertEquals("yqduujit", model.offerDetails().termId()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsUpdateTests.java index d90705861b58..ae61de3e3999 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsUpdateTests.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.informaticadatamanagement.generated; @@ -13,33 +13,33 @@ public final class MarketplaceDetailsUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MarketplaceDetailsUpdate model = BinaryData.fromString( - "{\"marketplaceSubscriptionId\":\"gigr\",\"offerDetails\":{\"publisherId\":\"ur\",\"offerId\":\"xxjnspydptk\",\"planId\":\"nkoukn\",\"planName\":\"dwtiukbldngkp\",\"termUnit\":\"ipazyxoegukgjnpi\",\"termId\":\"gygev\"}}") + "{\"marketplaceSubscriptionId\":\"hfuiuaodsfc\",\"offerDetails\":{\"publisherId\":\"xodpuozmyzydagfu\",\"offerId\":\"bezy\",\"planId\":\"okktwhrdxw\",\"planName\":\"wqsmbsur\",\"termUnit\":\"imoryocfsfksym\",\"termId\":\"ys\"}}") .toObject(MarketplaceDetailsUpdate.class); - Assertions.assertEquals("gigr", model.marketplaceSubscriptionId()); - Assertions.assertEquals("ur", model.offerDetails().publisherId()); - Assertions.assertEquals("xxjnspydptk", model.offerDetails().offerId()); - Assertions.assertEquals("nkoukn", model.offerDetails().planId()); - Assertions.assertEquals("dwtiukbldngkp", model.offerDetails().planName()); - Assertions.assertEquals("ipazyxoegukgjnpi", model.offerDetails().termUnit()); - Assertions.assertEquals("gygev", model.offerDetails().termId()); + Assertions.assertEquals("hfuiuaodsfc", model.marketplaceSubscriptionId()); + Assertions.assertEquals("xodpuozmyzydagfu", model.offerDetails().publisherId()); + Assertions.assertEquals("bezy", model.offerDetails().offerId()); + Assertions.assertEquals("okktwhrdxw", model.offerDetails().planId()); + Assertions.assertEquals("wqsmbsur", model.offerDetails().planName()); + Assertions.assertEquals("imoryocfsfksym", model.offerDetails().termUnit()); + Assertions.assertEquals("ys", model.offerDetails().termId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MarketplaceDetailsUpdate model = new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("gigr") - .withOfferDetails(new OfferDetailsUpdate().withPublisherId("ur") - .withOfferId("xxjnspydptk") - .withPlanId("nkoukn") - .withPlanName("dwtiukbldngkp") - .withTermUnit("ipazyxoegukgjnpi") - .withTermId("gygev")); + MarketplaceDetailsUpdate model = new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("hfuiuaodsfc") + .withOfferDetails(new OfferDetailsUpdate().withPublisherId("xodpuozmyzydagfu") + .withOfferId("bezy") + .withPlanId("okktwhrdxw") + .withPlanName("wqsmbsur") + .withTermUnit("imoryocfsfksym") + .withTermId("ys")); model = BinaryData.fromObject(model).toObject(MarketplaceDetailsUpdate.class); - Assertions.assertEquals("gigr", model.marketplaceSubscriptionId()); - Assertions.assertEquals("ur", model.offerDetails().publisherId()); - Assertions.assertEquals("xxjnspydptk", model.offerDetails().offerId()); - Assertions.assertEquals("nkoukn", model.offerDetails().planId()); - Assertions.assertEquals("dwtiukbldngkp", model.offerDetails().planName()); - Assertions.assertEquals("ipazyxoegukgjnpi", model.offerDetails().termUnit()); - Assertions.assertEquals("gygev", model.offerDetails().termId()); + Assertions.assertEquals("hfuiuaodsfc", model.marketplaceSubscriptionId()); + Assertions.assertEquals("xodpuozmyzydagfu", model.offerDetails().publisherId()); + Assertions.assertEquals("bezy", model.offerDetails().offerId()); + Assertions.assertEquals("okktwhrdxw", model.offerDetails().planId()); + Assertions.assertEquals("wqsmbsur", model.offerDetails().planName()); + Assertions.assertEquals("imoryocfsfksym", model.offerDetails().termUnit()); + Assertions.assertEquals("ys", model.offerDetails().termId()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationTests.java index eea5e4946139..bd090b30b7e5 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationTests.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.informaticadatamanagement.generated; @@ -12,21 +12,22 @@ public final class NetworkInterfaceConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkInterfaceConfiguration model = BinaryData - .fromString("{\"vnetId\":\"wtl\",\"subnetId\":\"nguxawqaldsy\",\"vnetResourceGuid\":\"ximerqfobwyznk\"}") + .fromString( + "{\"vnetId\":\"kghimdblxgwimfnj\",\"subnetId\":\"fjxwmsz\",\"vnetResourceGuid\":\"foqreyfkzik\"}") .toObject(NetworkInterfaceConfiguration.class); - Assertions.assertEquals("wtl", model.vnetId()); - Assertions.assertEquals("nguxawqaldsy", model.subnetId()); - Assertions.assertEquals("ximerqfobwyznk", model.vnetResourceGuid()); + Assertions.assertEquals("kghimdblxgwimfnj", model.vnetId()); + Assertions.assertEquals("fjxwmsz", model.subnetId()); + Assertions.assertEquals("foqreyfkzik", model.vnetResourceGuid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NetworkInterfaceConfiguration model = new NetworkInterfaceConfiguration().withVnetId("wtl") - .withSubnetId("nguxawqaldsy") - .withVnetResourceGuid("ximerqfobwyznk"); + NetworkInterfaceConfiguration model = new NetworkInterfaceConfiguration().withVnetId("kghimdblxgwimfnj") + .withSubnetId("fjxwmsz") + .withVnetResourceGuid("foqreyfkzik"); model = BinaryData.fromObject(model).toObject(NetworkInterfaceConfiguration.class); - Assertions.assertEquals("wtl", model.vnetId()); - Assertions.assertEquals("nguxawqaldsy", model.subnetId()); - Assertions.assertEquals("ximerqfobwyznk", model.vnetResourceGuid()); + Assertions.assertEquals("kghimdblxgwimfnj", model.vnetId()); + Assertions.assertEquals("fjxwmsz", model.subnetId()); + Assertions.assertEquals("foqreyfkzik", model.vnetResourceGuid()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationUpdateTests.java index 6e957cdbfbdf..e57bb6012b28 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationUpdateTests.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.informaticadatamanagement.generated; @@ -11,22 +11,22 @@ public final class NetworkInterfaceConfigurationUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NetworkInterfaceConfigurationUpdate model = BinaryData - .fromString("{\"vnetId\":\"gq\",\"subnetId\":\"yhejhzisxgfp\",\"vnetResourceGuid\":\"olppvksrpqvujz\"}") - .toObject(NetworkInterfaceConfigurationUpdate.class); - Assertions.assertEquals("gq", model.vnetId()); - Assertions.assertEquals("yhejhzisxgfp", model.subnetId()); - Assertions.assertEquals("olppvksrpqvujz", model.vnetResourceGuid()); + NetworkInterfaceConfigurationUpdate model + = BinaryData.fromString("{\"vnetId\":\"xuqlcvydypat\",\"subnetId\":\"oa\",\"vnetResourceGuid\":\"kniod\"}") + .toObject(NetworkInterfaceConfigurationUpdate.class); + Assertions.assertEquals("xuqlcvydypat", model.vnetId()); + Assertions.assertEquals("oa", model.subnetId()); + Assertions.assertEquals("kniod", model.vnetResourceGuid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NetworkInterfaceConfigurationUpdate model = new NetworkInterfaceConfigurationUpdate().withVnetId("gq") - .withSubnetId("yhejhzisxgfp") - .withVnetResourceGuid("olppvksrpqvujz"); + NetworkInterfaceConfigurationUpdate model = new NetworkInterfaceConfigurationUpdate().withVnetId("xuqlcvydypat") + .withSubnetId("oa") + .withVnetResourceGuid("kniod"); model = BinaryData.fromObject(model).toObject(NetworkInterfaceConfigurationUpdate.class); - Assertions.assertEquals("gq", model.vnetId()); - Assertions.assertEquals("yhejhzisxgfp", model.subnetId()); - Assertions.assertEquals("olppvksrpqvujz", model.vnetResourceGuid()); + Assertions.assertEquals("xuqlcvydypat", model.vnetId()); + Assertions.assertEquals("oa", model.subnetId()); + Assertions.assertEquals("kniod", model.vnetResourceGuid()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsTests.java index e698c2ff0f05..c42fef7fbc0c 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsTests.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.informaticadatamanagement.generated; @@ -12,30 +12,30 @@ public final class OfferDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OfferDetails model = BinaryData.fromString( - "{\"publisherId\":\"bexppb\",\"offerId\":\"tq\",\"planId\":\"rolfpfp\",\"planName\":\"algbquxigjyjg\",\"termUnit\":\"aoyfhrtxilnerkuj\",\"termId\":\"s\"}") + "{\"publisherId\":\"jczdzevndh\",\"offerId\":\"rwpdappdsbdkvwrw\",\"planId\":\"feusnhut\",\"planName\":\"eltmrldhugjzzdat\",\"termUnit\":\"hocdgeab\",\"termId\":\"gphuticndvka\"}") .toObject(OfferDetails.class); - Assertions.assertEquals("bexppb", model.publisherId()); - Assertions.assertEquals("tq", model.offerId()); - Assertions.assertEquals("rolfpfp", model.planId()); - Assertions.assertEquals("algbquxigjyjg", model.planName()); - Assertions.assertEquals("aoyfhrtxilnerkuj", model.termUnit()); - Assertions.assertEquals("s", model.termId()); + Assertions.assertEquals("jczdzevndh", model.publisherId()); + Assertions.assertEquals("rwpdappdsbdkvwrw", model.offerId()); + Assertions.assertEquals("feusnhut", model.planId()); + Assertions.assertEquals("eltmrldhugjzzdat", model.planName()); + Assertions.assertEquals("hocdgeab", model.termUnit()); + Assertions.assertEquals("gphuticndvka", model.termId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OfferDetails model = new OfferDetails().withPublisherId("bexppb") - .withOfferId("tq") - .withPlanId("rolfpfp") - .withPlanName("algbquxigjyjg") - .withTermUnit("aoyfhrtxilnerkuj") - .withTermId("s"); + OfferDetails model = new OfferDetails().withPublisherId("jczdzevndh") + .withOfferId("rwpdappdsbdkvwrw") + .withPlanId("feusnhut") + .withPlanName("eltmrldhugjzzdat") + .withTermUnit("hocdgeab") + .withTermId("gphuticndvka"); model = BinaryData.fromObject(model).toObject(OfferDetails.class); - Assertions.assertEquals("bexppb", model.publisherId()); - Assertions.assertEquals("tq", model.offerId()); - Assertions.assertEquals("rolfpfp", model.planId()); - Assertions.assertEquals("algbquxigjyjg", model.planName()); - Assertions.assertEquals("aoyfhrtxilnerkuj", model.termUnit()); - Assertions.assertEquals("s", model.termId()); + Assertions.assertEquals("jczdzevndh", model.publisherId()); + Assertions.assertEquals("rwpdappdsbdkvwrw", model.offerId()); + Assertions.assertEquals("feusnhut", model.planId()); + Assertions.assertEquals("eltmrldhugjzzdat", model.planName()); + Assertions.assertEquals("hocdgeab", model.termUnit()); + Assertions.assertEquals("gphuticndvka", model.termId()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsUpdateTests.java index 1d3200eda554..50bf303a191d 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsUpdateTests.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.informaticadatamanagement.generated; @@ -12,30 +12,30 @@ public final class OfferDetailsUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OfferDetailsUpdate model = BinaryData.fromString( - "{\"publisherId\":\"ntypmrbpizcdrqj\",\"offerId\":\"pyd\",\"planId\":\"yhxdeoejzicwi\",\"planName\":\"jttgzf\",\"termUnit\":\"shcbkhajdeyeamdp\",\"termId\":\"g\"}") + "{\"publisherId\":\"i\",\"offerId\":\"xhqyudxorrqnb\",\"planId\":\"czvyifq\",\"planName\":\"kdvjsll\",\"termUnit\":\"vvdfwatkpnpul\",\"termId\":\"xbczwtruwiqz\"}") .toObject(OfferDetailsUpdate.class); - Assertions.assertEquals("ntypmrbpizcdrqj", model.publisherId()); - Assertions.assertEquals("pyd", model.offerId()); - Assertions.assertEquals("yhxdeoejzicwi", model.planId()); - Assertions.assertEquals("jttgzf", model.planName()); - Assertions.assertEquals("shcbkhajdeyeamdp", model.termUnit()); - Assertions.assertEquals("g", model.termId()); + Assertions.assertEquals("i", model.publisherId()); + Assertions.assertEquals("xhqyudxorrqnb", model.offerId()); + Assertions.assertEquals("czvyifq", model.planId()); + Assertions.assertEquals("kdvjsll", model.planName()); + Assertions.assertEquals("vvdfwatkpnpul", model.termUnit()); + Assertions.assertEquals("xbczwtruwiqz", model.termId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OfferDetailsUpdate model = new OfferDetailsUpdate().withPublisherId("ntypmrbpizcdrqj") - .withOfferId("pyd") - .withPlanId("yhxdeoejzicwi") - .withPlanName("jttgzf") - .withTermUnit("shcbkhajdeyeamdp") - .withTermId("g"); + OfferDetailsUpdate model = new OfferDetailsUpdate().withPublisherId("i") + .withOfferId("xhqyudxorrqnb") + .withPlanId("czvyifq") + .withPlanName("kdvjsll") + .withTermUnit("vvdfwatkpnpul") + .withTermId("xbczwtruwiqz"); model = BinaryData.fromObject(model).toObject(OfferDetailsUpdate.class); - Assertions.assertEquals("ntypmrbpizcdrqj", model.publisherId()); - Assertions.assertEquals("pyd", model.offerId()); - Assertions.assertEquals("yhxdeoejzicwi", model.planId()); - Assertions.assertEquals("jttgzf", model.planName()); - Assertions.assertEquals("shcbkhajdeyeamdp", model.termUnit()); - Assertions.assertEquals("g", model.termId()); + Assertions.assertEquals("i", model.publisherId()); + Assertions.assertEquals("xhqyudxorrqnb", model.offerId()); + Assertions.assertEquals("czvyifq", model.planId()); + Assertions.assertEquals("kdvjsll", model.planName()); + Assertions.assertEquals("vvdfwatkpnpul", model.termUnit()); + Assertions.assertEquals("xbczwtruwiqz", model.termId()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationDisplayTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationDisplayTests.java index 592ea65a13a1..b94afaf6cb8b 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationDisplayTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.generated; @@ -11,7 +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); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationInnerTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationInnerTests.java index 645cb4e60ae7..2ddf7a0ab47f 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationInnerTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationInnerTests.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.informaticadatamanagement.generated; @@ -11,7 +11,7 @@ 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); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationListResultTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationListResultTests.java index f8576afdac9f..0137d78174b4 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationListResultTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationListResultTests.java @@ -1,17 +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.informaticadatamanagement.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.OperationListResult; +import com.azure.resourcemanager.informaticadatamanagement.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); + Assertions.assertEquals("kfo", model.nextLink()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationsListMockTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationsListMockTests.java index 0893cf6ca774..c3fb0164f1d2 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationsListMockTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.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.informaticadatamanagement.InformaticaDataManagementManager; import com.azure.resourcemanager.informaticadatamanagement.models.Operation; @@ -21,14 +21,14 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"rqwky\",\"isDataAction\":false,\"display\":{\"provider\":\"pg\",\"resource\":\"dkow\",\"operation\":\"bqpc\",\"description\":\"kbwcc\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"mqhldvrii\",\"isDataAction\":false,\"display\":{\"provider\":\"lg\",\"resource\":\"kvtvsexso\",\"operation\":\"el\",\"description\":\"hhahhxvrhmzkwpjg\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); InformaticaDataManagementManager manager = InformaticaDataManagementManager.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/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationPropertiesCustomUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationPropertiesCustomUpdateTests.java index a58377e298b7..12ba1cc8b485 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationPropertiesCustomUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationPropertiesCustomUpdateTests.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.informaticadatamanagement.generated; @@ -19,398 +19,398 @@ public final class OrganizationPropertiesCustomUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OrganizationPropertiesCustomUpdate model = BinaryData.fromString( - "{\"informaticaOrganizationProperties\":{\"tags\":{\"qjqabcypmivkwl\":\"zevgb\",\"wnfnbacf\":\"uvcc\",\"bqqwxrj\":\"onlebxetqgtzxdpn\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"mpmngnzscxaqwoo\":\"nwsubisnj\",\"njeaseipheofloke\":\"hcbonqvpkvlr\",\"enjbdlwtgrhp\":\"y\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"lhbxxhejjzzvdud\":\"masxazjpqyegu\",\"pwlbjnpg\":\"wdslfhotwmcy\",\"nltyfsoppusuesnz\":\"cftadeh\"},\"properties\":{}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"bavo\",\"offerDetails\":{}},\"userDetails\":{\"firstName\":\"mohctb\",\"lastName\":\"udwxdndnvowguj\",\"emailAddress\":\"gwdkcglhsl\",\"upn\":\"jdyggdtji\",\"phoneNumber\":\"b\"},\"companyDetails\":{\"companyName\":\"fqweykhmene\",\"officeAddress\":\"yexfwh\",\"country\":\"cibvyvdcsitynn\",\"domain\":\"mdectehfiqscjey\",\"business\":\"hezrkgq\",\"numberOfEmployees\":1290040732},\"existingResourceId\":\"efovgmk\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"eyyvxyqjpkcat\",\"offerDetails\":{\"publisherId\":\"gjcrcczsqpjhvm\",\"offerId\":\"jvnysounqe\",\"planId\":\"noae\",\"planName\":\"fhyhltrpmopjmcma\",\"termUnit\":\"okth\",\"termId\":\"iuaod\"}},\"userDetails\":{\"firstName\":\"pk\",\"lastName\":\"odpuozmyzydag\",\"emailAddress\":\"axbezyiuo\",\"upn\":\"twhrdxwzywqsm\",\"phoneNumber\":\"ureximoryocfs\"},\"companyDetails\":{\"companyName\":\"ymddys\",\"officeAddress\":\"i\",\"country\":\"xhqyudxorrqnb\",\"domain\":\"czvyifq\",\"business\":\"kdvjsll\",\"numberOfEmployees\":1321349224},\"existingResourceId\":\"d\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"t\",\"offerDetails\":{\"publisherId\":\"pulexxbczw\",\"offerId\":\"uwiqzb\",\"planId\":\"vsovmyokac\",\"planName\":\"kwlhzdo\",\"termUnit\":\"xjmflbvv\",\"termId\":\"hrk\"}},\"userDetails\":{\"firstName\":\"wwzjuqkhrsajiwku\",\"lastName\":\"oskg\",\"emailAddress\":\"auu\",\"upn\":\"jmvxie\",\"phoneNumber\":\"ugidyjrr\"},\"companyDetails\":{\"companyName\":\"aos\",\"officeAddress\":\"xc\",\"country\":\"npc\",\"domain\":\"ocohslkevleg\",\"business\":\"fbuhfmvfaxkffe\",\"numberOfEmployees\":517393984},\"existingResourceId\":\"lvmezyvshxmzsbbz\"}") + "{\"informaticaOrganizationProperties\":{\"tags\":{\"po\":\"onpimexgstxg\",\"djwzrlov\":\"gmaajrm\",\"qsqsy\":\"clwhijcoejctbz\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"ukdkexxppofmxa\":\"k\",\"jpgd\":\"c\",\"j\":\"toc\",\"hd\":\"hvpmoue\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"wndeicbtwnp\":\"eojnxqbzvddn\",\"hcffcyddglmjthjq\":\"aoqvuh\",\"hix\":\"wpyeicxmqciwqvh\",\"og\":\"igdtopbob\"},\"properties\":{}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"u\",\"offerDetails\":{}},\"userDetails\":{\"firstName\":\"hrzayvvtpgvdf\",\"lastName\":\"otkftutqxlngx\",\"emailAddress\":\"fgugnxkrxdqmid\",\"upn\":\"hzrvqd\",\"phoneNumber\":\"bhj\"},\"companyDetails\":{\"companyName\":\"gehoqfbowskany\",\"officeAddress\":\"zlcuiywgqywgndrv\",\"country\":\"hzgpphrcgyncocpe\",\"domain\":\"vmmcoofs\",\"business\":\"zevgb\",\"numberOfEmployees\":2005133060},\"existingResourceId\":\"abcypmivk\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"uvcc\",\"offerDetails\":{\"publisherId\":\"fnba\",\"offerId\":\"ionle\",\"planId\":\"etqgtzxdpnq\",\"planName\":\"qwxrjfeallnw\",\"termUnit\":\"bisnja\",\"termId\":\"mngnzscxaqw\"}},\"userDetails\":{\"firstName\":\"hcbonqvpkvlr\",\"lastName\":\"jease\",\"emailAddress\":\"heoflokeyyienjbd\",\"upn\":\"tgrhpdjpjumas\",\"phoneNumber\":\"zj\"},\"companyDetails\":{\"companyName\":\"e\",\"officeAddress\":\"alhbx\",\"country\":\"e\",\"domain\":\"zzvdudgwds\",\"business\":\"hotwmcynpwlbjnp\",\"numberOfEmployees\":1690822953},\"existingResourceId\":\"tadehxnltyfsopp\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"esnzwde\",\"offerDetails\":{\"publisherId\":\"vorxzdmohct\",\"offerId\":\"vudwx\",\"planId\":\"dnvowg\",\"planName\":\"jugwdkcglhsl\",\"termUnit\":\"jdyggdtji\",\"termId\":\"b\"}},\"userDetails\":{\"firstName\":\"fqweykhmene\",\"lastName\":\"yexfwh\",\"emailAddress\":\"cibvyvdcsitynn\",\"upn\":\"mdectehfiqscjey\",\"phoneNumber\":\"hezrkgq\"},\"companyDetails\":{\"companyName\":\"refovgmkqsleyyvx\",\"officeAddress\":\"jpkcattpng\",\"country\":\"rcczsqpjhvmd\",\"domain\":\"v\",\"business\":\"sounqecanoaeu\",\"numberOfEmployees\":453736827},\"existingResourceId\":\"hltrpmopjmcmatuo\"}") .toObject(OrganizationPropertiesCustomUpdate.class); - Assertions.assertEquals("zevgb", model.informaticaOrganizationProperties().tags().get("qjqabcypmivkwl")); - Assertions.assertEquals("nwsubisnj", + Assertions.assertEquals("onpimexgstxg", model.informaticaOrganizationProperties().tags().get("po")); + Assertions.assertEquals("k", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("mpmngnzscxaqwoo")); - Assertions.assertEquals("masxazjpqyegu", + .get("ukdkexxppofmxa")); + Assertions.assertEquals("eojnxqbzvddn", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("lhbxxhejjzzvdud")); - Assertions.assertEquals("bavo", + .get("wndeicbtwnp")); + Assertions.assertEquals("u", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .marketplaceSubscriptionId()); - Assertions.assertEquals("mohctb", + Assertions.assertEquals("hrzayvvtpgvdf", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .firstName()); - Assertions.assertEquals("udwxdndnvowguj", + Assertions.assertEquals("otkftutqxlngx", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .lastName()); - Assertions.assertEquals("gwdkcglhsl", + Assertions.assertEquals("fgugnxkrxdqmid", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .emailAddress()); - Assertions.assertEquals("jdyggdtji", + Assertions.assertEquals("hzrvqd", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .upn()); - Assertions.assertEquals("b", + Assertions.assertEquals("bhj", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .phoneNumber()); - Assertions.assertEquals("fqweykhmene", + Assertions.assertEquals("gehoqfbowskany", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .companyName()); - Assertions.assertEquals("yexfwh", + Assertions.assertEquals("zlcuiywgqywgndrv", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .officeAddress()); - Assertions.assertEquals("cibvyvdcsitynn", + Assertions.assertEquals("hzgpphrcgyncocpe", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .country()); - Assertions.assertEquals("mdectehfiqscjey", + Assertions.assertEquals("vmmcoofs", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .domain()); - Assertions.assertEquals("hezrkgq", + Assertions.assertEquals("zevgb", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .business()); - Assertions.assertEquals(1290040732, + Assertions.assertEquals(2005133060, model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .numberOfEmployees()); - Assertions.assertEquals("efovgmk", + Assertions.assertEquals("abcypmivk", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .existingResourceId()); - Assertions.assertEquals("eyyvxyqjpkcat", + Assertions.assertEquals("uvcc", model.informaticaOrganizationProperties().properties().marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("gjcrcczsqpjhvm", + Assertions.assertEquals("fnba", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().publisherId()); - Assertions.assertEquals("jvnysounqe", + Assertions.assertEquals("ionle", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().offerId()); - Assertions.assertEquals("noae", + Assertions.assertEquals("etqgtzxdpnq", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planId()); - Assertions.assertEquals("fhyhltrpmopjmcma", + Assertions.assertEquals("qwxrjfeallnw", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planName()); - Assertions.assertEquals("okth", + Assertions.assertEquals("bisnja", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termUnit()); - Assertions.assertEquals("iuaod", + Assertions.assertEquals("mngnzscxaqw", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termId()); - Assertions.assertEquals("pk", model.informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("odpuozmyzydag", + Assertions.assertEquals("hcbonqvpkvlr", + model.informaticaOrganizationProperties().properties().userDetails().firstName()); + Assertions.assertEquals("jease", model.informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("axbezyiuo", + Assertions.assertEquals("heoflokeyyienjbd", model.informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("twhrdxwzywqsm", + Assertions.assertEquals("tgrhpdjpjumas", model.informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("ureximoryocfs", + Assertions.assertEquals("zj", model.informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("ymddys", + Assertions.assertEquals("e", model.informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("i", + Assertions.assertEquals("alhbx", model.informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("xhqyudxorrqnb", - model.informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("czvyifq", + Assertions.assertEquals("e", model.informaticaOrganizationProperties().properties().companyDetails().country()); + Assertions.assertEquals("zzvdudgwds", model.informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("kdvjsll", + Assertions.assertEquals("hotwmcynpwlbjnp", model.informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(1321349224, + Assertions.assertEquals(1690822953, model.informaticaOrganizationProperties().properties().companyDetails().numberOfEmployees()); - Assertions.assertEquals("d", model.informaticaOrganizationProperties().properties().existingResourceId()); - Assertions.assertEquals("t", model.marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("pulexxbczw", model.marketplaceDetails().offerDetails().publisherId()); - Assertions.assertEquals("uwiqzb", model.marketplaceDetails().offerDetails().offerId()); - Assertions.assertEquals("vsovmyokac", model.marketplaceDetails().offerDetails().planId()); - Assertions.assertEquals("kwlhzdo", model.marketplaceDetails().offerDetails().planName()); - Assertions.assertEquals("xjmflbvv", model.marketplaceDetails().offerDetails().termUnit()); - Assertions.assertEquals("hrk", model.marketplaceDetails().offerDetails().termId()); - Assertions.assertEquals("wwzjuqkhrsajiwku", model.userDetails().firstName()); - Assertions.assertEquals("oskg", model.userDetails().lastName()); - Assertions.assertEquals("auu", model.userDetails().emailAddress()); - Assertions.assertEquals("jmvxie", model.userDetails().upn()); - Assertions.assertEquals("ugidyjrr", model.userDetails().phoneNumber()); - Assertions.assertEquals("aos", model.companyDetails().companyName()); - Assertions.assertEquals("xc", model.companyDetails().officeAddress()); - Assertions.assertEquals("npc", model.companyDetails().country()); - Assertions.assertEquals("ocohslkevleg", model.companyDetails().domain()); - Assertions.assertEquals("fbuhfmvfaxkffe", model.companyDetails().business()); - Assertions.assertEquals(517393984, model.companyDetails().numberOfEmployees()); - Assertions.assertEquals("lvmezyvshxmzsbbz", model.existingResourceId()); + Assertions.assertEquals("tadehxnltyfsopp", + model.informaticaOrganizationProperties().properties().existingResourceId()); + Assertions.assertEquals("esnzwde", model.marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("vorxzdmohct", model.marketplaceDetails().offerDetails().publisherId()); + Assertions.assertEquals("vudwx", model.marketplaceDetails().offerDetails().offerId()); + Assertions.assertEquals("dnvowg", model.marketplaceDetails().offerDetails().planId()); + Assertions.assertEquals("jugwdkcglhsl", model.marketplaceDetails().offerDetails().planName()); + Assertions.assertEquals("jdyggdtji", model.marketplaceDetails().offerDetails().termUnit()); + Assertions.assertEquals("b", model.marketplaceDetails().offerDetails().termId()); + Assertions.assertEquals("fqweykhmene", model.userDetails().firstName()); + Assertions.assertEquals("yexfwh", model.userDetails().lastName()); + Assertions.assertEquals("cibvyvdcsitynn", model.userDetails().emailAddress()); + Assertions.assertEquals("mdectehfiqscjey", model.userDetails().upn()); + Assertions.assertEquals("hezrkgq", model.userDetails().phoneNumber()); + Assertions.assertEquals("refovgmkqsleyyvx", model.companyDetails().companyName()); + Assertions.assertEquals("jpkcattpng", model.companyDetails().officeAddress()); + Assertions.assertEquals("rcczsqpjhvmd", model.companyDetails().country()); + Assertions.assertEquals("v", model.companyDetails().domain()); + Assertions.assertEquals("sounqecanoaeu", model.companyDetails().business()); + Assertions.assertEquals(453736827, model.companyDetails().numberOfEmployees()); + Assertions.assertEquals("hltrpmopjmcmatuo", model.existingResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { OrganizationPropertiesCustomUpdate model = new OrganizationPropertiesCustomUpdate() .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() - .withTags(mapOf("qjqabcypmivkwl", "zevgb", "wnfnbacf", "uvcc", "bqqwxrj", "onlebxetqgtzxdpn")) + .withTags(mapOf("po", "onpimexgstxg", "djwzrlov", "gmaajrm", "qsqsy", "clwhijcoejctbz")) .withProperties(new OrganizationPropertiesCustomUpdate() .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() - .withTags(mapOf("mpmngnzscxaqwoo", "nwsubisnj", "njeaseipheofloke", "hcbonqvpkvlr", - "enjbdlwtgrhp", "y")) + .withTags(mapOf("ukdkexxppofmxa", "k", "jpgd", "c", "j", "toc", "hd", "hvpmoue")) .withProperties(new OrganizationPropertiesCustomUpdate() .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() - .withTags(mapOf("lhbxxhejjzzvdud", "masxazjpqyegu", "pwlbjnpg", "wdslfhotwmcy", - "nltyfsoppusuesnz", "cftadeh")) + .withTags(mapOf("wndeicbtwnp", "eojnxqbzvddn", "hcffcyddglmjthjq", "aoqvuh", "hix", + "wpyeicxmqciwqvh", "og", "igdtopbob")) .withProperties(new OrganizationPropertiesCustomUpdate())) - .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("bavo") + .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("u") .withOfferDetails(new OfferDetailsUpdate())) - .withUserDetails(new UserDetailsUpdate().withFirstName("mohctb") - .withLastName("udwxdndnvowguj") - .withEmailAddress("gwdkcglhsl") - .withUpn("jdyggdtji") - .withPhoneNumber("b")) - .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("fqweykhmene") - .withOfficeAddress("yexfwh") - .withCountry("cibvyvdcsitynn") - .withDomain("mdectehfiqscjey") - .withBusiness("hezrkgq") - .withNumberOfEmployees(1290040732)) - .withExistingResourceId("efovgmk"))) - .withMarketplaceDetails( - new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("eyyvxyqjpkcat") - .withOfferDetails(new OfferDetailsUpdate().withPublisherId("gjcrcczsqpjhvm") - .withOfferId("jvnysounqe") - .withPlanId("noae") - .withPlanName("fhyhltrpmopjmcma") - .withTermUnit("okth") - .withTermId("iuaod"))) - .withUserDetails(new UserDetailsUpdate().withFirstName("pk") - .withLastName("odpuozmyzydag") - .withEmailAddress("axbezyiuo") - .withUpn("twhrdxwzywqsm") - .withPhoneNumber("ureximoryocfs")) - .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("ymddys") - .withOfficeAddress("i") - .withCountry("xhqyudxorrqnb") - .withDomain("czvyifq") - .withBusiness("kdvjsll") - .withNumberOfEmployees(1321349224)) - .withExistingResourceId("d"))) - .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("t") - .withOfferDetails(new OfferDetailsUpdate().withPublisherId("pulexxbczw") - .withOfferId("uwiqzb") - .withPlanId("vsovmyokac") - .withPlanName("kwlhzdo") - .withTermUnit("xjmflbvv") - .withTermId("hrk"))) - .withUserDetails(new UserDetailsUpdate().withFirstName("wwzjuqkhrsajiwku") - .withLastName("oskg") - .withEmailAddress("auu") - .withUpn("jmvxie") - .withPhoneNumber("ugidyjrr")) - .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("aos") - .withOfficeAddress("xc") - .withCountry("npc") - .withDomain("ocohslkevleg") - .withBusiness("fbuhfmvfaxkffe") - .withNumberOfEmployees(517393984)) - .withExistingResourceId("lvmezyvshxmzsbbz"); + .withUserDetails(new UserDetailsUpdate().withFirstName("hrzayvvtpgvdf") + .withLastName("otkftutqxlngx") + .withEmailAddress("fgugnxkrxdqmid") + .withUpn("hzrvqd") + .withPhoneNumber("bhj")) + .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("gehoqfbowskany") + .withOfficeAddress("zlcuiywgqywgndrv") + .withCountry("hzgpphrcgyncocpe") + .withDomain("vmmcoofs") + .withBusiness("zevgb") + .withNumberOfEmployees(2005133060)) + .withExistingResourceId("abcypmivk"))) + .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("uvcc") + .withOfferDetails(new OfferDetailsUpdate().withPublisherId("fnba") + .withOfferId("ionle") + .withPlanId("etqgtzxdpnq") + .withPlanName("qwxrjfeallnw") + .withTermUnit("bisnja") + .withTermId("mngnzscxaqw"))) + .withUserDetails(new UserDetailsUpdate().withFirstName("hcbonqvpkvlr") + .withLastName("jease") + .withEmailAddress("heoflokeyyienjbd") + .withUpn("tgrhpdjpjumas") + .withPhoneNumber("zj")) + .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("e") + .withOfficeAddress("alhbx") + .withCountry("e") + .withDomain("zzvdudgwds") + .withBusiness("hotwmcynpwlbjnp") + .withNumberOfEmployees(1690822953)) + .withExistingResourceId("tadehxnltyfsopp"))) + .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("esnzwde") + .withOfferDetails(new OfferDetailsUpdate().withPublisherId("vorxzdmohct") + .withOfferId("vudwx") + .withPlanId("dnvowg") + .withPlanName("jugwdkcglhsl") + .withTermUnit("jdyggdtji") + .withTermId("b"))) + .withUserDetails(new UserDetailsUpdate().withFirstName("fqweykhmene") + .withLastName("yexfwh") + .withEmailAddress("cibvyvdcsitynn") + .withUpn("mdectehfiqscjey") + .withPhoneNumber("hezrkgq")) + .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("refovgmkqsleyyvx") + .withOfficeAddress("jpkcattpng") + .withCountry("rcczsqpjhvmd") + .withDomain("v") + .withBusiness("sounqecanoaeu") + .withNumberOfEmployees(453736827)) + .withExistingResourceId("hltrpmopjmcmatuo"); model = BinaryData.fromObject(model).toObject(OrganizationPropertiesCustomUpdate.class); - Assertions.assertEquals("zevgb", model.informaticaOrganizationProperties().tags().get("qjqabcypmivkwl")); - Assertions.assertEquals("nwsubisnj", + Assertions.assertEquals("onpimexgstxg", model.informaticaOrganizationProperties().tags().get("po")); + Assertions.assertEquals("k", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("mpmngnzscxaqwoo")); - Assertions.assertEquals("masxazjpqyegu", + .get("ukdkexxppofmxa")); + Assertions.assertEquals("eojnxqbzvddn", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("lhbxxhejjzzvdud")); - Assertions.assertEquals("bavo", + .get("wndeicbtwnp")); + Assertions.assertEquals("u", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .marketplaceSubscriptionId()); - Assertions.assertEquals("mohctb", + Assertions.assertEquals("hrzayvvtpgvdf", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .firstName()); - Assertions.assertEquals("udwxdndnvowguj", + Assertions.assertEquals("otkftutqxlngx", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .lastName()); - Assertions.assertEquals("gwdkcglhsl", + Assertions.assertEquals("fgugnxkrxdqmid", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .emailAddress()); - Assertions.assertEquals("jdyggdtji", + Assertions.assertEquals("hzrvqd", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .upn()); - Assertions.assertEquals("b", + Assertions.assertEquals("bhj", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .phoneNumber()); - Assertions.assertEquals("fqweykhmene", + Assertions.assertEquals("gehoqfbowskany", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .companyName()); - Assertions.assertEquals("yexfwh", + Assertions.assertEquals("zlcuiywgqywgndrv", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .officeAddress()); - Assertions.assertEquals("cibvyvdcsitynn", + Assertions.assertEquals("hzgpphrcgyncocpe", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .country()); - Assertions.assertEquals("mdectehfiqscjey", + Assertions.assertEquals("vmmcoofs", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .domain()); - Assertions.assertEquals("hezrkgq", + Assertions.assertEquals("zevgb", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .business()); - Assertions.assertEquals(1290040732, + Assertions.assertEquals(2005133060, model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .numberOfEmployees()); - Assertions.assertEquals("efovgmk", + Assertions.assertEquals("abcypmivk", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .existingResourceId()); - Assertions.assertEquals("eyyvxyqjpkcat", + Assertions.assertEquals("uvcc", model.informaticaOrganizationProperties().properties().marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("gjcrcczsqpjhvm", + Assertions.assertEquals("fnba", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().publisherId()); - Assertions.assertEquals("jvnysounqe", + Assertions.assertEquals("ionle", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().offerId()); - Assertions.assertEquals("noae", + Assertions.assertEquals("etqgtzxdpnq", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planId()); - Assertions.assertEquals("fhyhltrpmopjmcma", + Assertions.assertEquals("qwxrjfeallnw", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planName()); - Assertions.assertEquals("okth", + Assertions.assertEquals("bisnja", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termUnit()); - Assertions.assertEquals("iuaod", + Assertions.assertEquals("mngnzscxaqw", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termId()); - Assertions.assertEquals("pk", model.informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("odpuozmyzydag", + Assertions.assertEquals("hcbonqvpkvlr", + model.informaticaOrganizationProperties().properties().userDetails().firstName()); + Assertions.assertEquals("jease", model.informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("axbezyiuo", + Assertions.assertEquals("heoflokeyyienjbd", model.informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("twhrdxwzywqsm", + Assertions.assertEquals("tgrhpdjpjumas", model.informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("ureximoryocfs", + Assertions.assertEquals("zj", model.informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("ymddys", + Assertions.assertEquals("e", model.informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("i", + Assertions.assertEquals("alhbx", model.informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("xhqyudxorrqnb", - model.informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("czvyifq", + Assertions.assertEquals("e", model.informaticaOrganizationProperties().properties().companyDetails().country()); + Assertions.assertEquals("zzvdudgwds", model.informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("kdvjsll", + Assertions.assertEquals("hotwmcynpwlbjnp", model.informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(1321349224, + Assertions.assertEquals(1690822953, model.informaticaOrganizationProperties().properties().companyDetails().numberOfEmployees()); - Assertions.assertEquals("d", model.informaticaOrganizationProperties().properties().existingResourceId()); - Assertions.assertEquals("t", model.marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("pulexxbczw", model.marketplaceDetails().offerDetails().publisherId()); - Assertions.assertEquals("uwiqzb", model.marketplaceDetails().offerDetails().offerId()); - Assertions.assertEquals("vsovmyokac", model.marketplaceDetails().offerDetails().planId()); - Assertions.assertEquals("kwlhzdo", model.marketplaceDetails().offerDetails().planName()); - Assertions.assertEquals("xjmflbvv", model.marketplaceDetails().offerDetails().termUnit()); - Assertions.assertEquals("hrk", model.marketplaceDetails().offerDetails().termId()); - Assertions.assertEquals("wwzjuqkhrsajiwku", model.userDetails().firstName()); - Assertions.assertEquals("oskg", model.userDetails().lastName()); - Assertions.assertEquals("auu", model.userDetails().emailAddress()); - Assertions.assertEquals("jmvxie", model.userDetails().upn()); - Assertions.assertEquals("ugidyjrr", model.userDetails().phoneNumber()); - Assertions.assertEquals("aos", model.companyDetails().companyName()); - Assertions.assertEquals("xc", model.companyDetails().officeAddress()); - Assertions.assertEquals("npc", model.companyDetails().country()); - Assertions.assertEquals("ocohslkevleg", model.companyDetails().domain()); - Assertions.assertEquals("fbuhfmvfaxkffe", model.companyDetails().business()); - Assertions.assertEquals(517393984, model.companyDetails().numberOfEmployees()); - Assertions.assertEquals("lvmezyvshxmzsbbz", model.existingResourceId()); + Assertions.assertEquals("tadehxnltyfsopp", + model.informaticaOrganizationProperties().properties().existingResourceId()); + Assertions.assertEquals("esnzwde", model.marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("vorxzdmohct", model.marketplaceDetails().offerDetails().publisherId()); + Assertions.assertEquals("vudwx", model.marketplaceDetails().offerDetails().offerId()); + Assertions.assertEquals("dnvowg", model.marketplaceDetails().offerDetails().planId()); + Assertions.assertEquals("jugwdkcglhsl", model.marketplaceDetails().offerDetails().planName()); + Assertions.assertEquals("jdyggdtji", model.marketplaceDetails().offerDetails().termUnit()); + Assertions.assertEquals("b", model.marketplaceDetails().offerDetails().termId()); + Assertions.assertEquals("fqweykhmene", model.userDetails().firstName()); + Assertions.assertEquals("yexfwh", model.userDetails().lastName()); + Assertions.assertEquals("cibvyvdcsitynn", model.userDetails().emailAddress()); + Assertions.assertEquals("mdectehfiqscjey", model.userDetails().upn()); + Assertions.assertEquals("hezrkgq", model.userDetails().phoneNumber()); + Assertions.assertEquals("refovgmkqsleyyvx", model.companyDetails().companyName()); + Assertions.assertEquals("jpkcattpng", model.companyDetails().officeAddress()); + Assertions.assertEquals("rcczsqpjhvmd", model.companyDetails().country()); + Assertions.assertEquals("v", model.companyDetails().domain()); + Assertions.assertEquals("sounqecanoaeu", model.companyDetails().business()); + Assertions.assertEquals(453736827, model.companyDetails().numberOfEmployees()); + Assertions.assertEquals("hltrpmopjmcmatuo", model.existingResourceId()); } // Use "Map.of" if available diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesWithResponseMockTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesWithResponseMockTests.java index 85e179300f05..784047f4b217 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesWithResponseMockTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesWithResponseMockTests.java @@ -1,13 +1,13 @@ // 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.informaticadatamanagement.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -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.informaticadatamanagement.InformaticaDataManagementManager; import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceList; @@ -22,57 +22,57 @@ public final class OrganizationsGetAllServerlessRuntimesWithResponseMockTests { @Test public void testGetAllServerlessRuntimesWithResponse() throws Exception { String responseStr - = "{\"informaticaRuntimeResources\":[{\"name\":\"tkfa\",\"createdTime\":\"nopqgikyzirtx\",\"updatedTime\":\"yuxzejntpsewgi\",\"createdBy\":\"ilqu\",\"updatedBy\":\"rydxtqm\",\"id\":\"eoxorggufhyao\",\"type\":\"SERVERLESS\",\"status\":\"bghhavgrvkf\",\"statusLocalized\":\"ovjzhpjbibgjmfx\",\"statusMessage\":\"mv\",\"serverlessConfigProperties\":{\"subnet\":\"luyovwxnbkfezzx\",\"applicationType\":\"yhwzdgiruj\",\"resourceGroupName\":\"bomvzzbtdcqv\",\"advancedCustomProperties\":\"iyujviylwdshfs\",\"supplementaryFileLocation\":\"rbgyefry\",\"platform\":\"gaojf\",\"tags\":\"nc\",\"vnet\":\"mrfhirctymox\",\"executionTimeout\":\"tpipiwyczuhx\",\"computeUnits\":\"pqjlihhyusps\",\"tenantId\":\"sdvlmfwdgzxulucv\",\"subscriptionId\":\"mrsreuzvxurisjnh\",\"region\":\"txifqj\",\"serverlessArmResourceId\":\"xmrhu\"},\"description\":\"wp\"},{\"name\":\"esutrgjupauutpw\",\"createdTime\":\"qhih\",\"updatedTime\":\"jqgwzp\",\"createdBy\":\"fqntcyp\",\"updatedBy\":\"xjvfoimwksl\",\"id\":\"rcizjxvyd\",\"type\":\"SERVERLESS\",\"status\":\"eacvl\",\"statusLocalized\":\"vygdyft\",\"statusMessage\":\"mrtwna\",\"serverlessConfigProperties\":{\"subnet\":\"slbi\",\"applicationType\":\"ojgcyzt\",\"resourceGroupName\":\"mznbaeqphch\",\"advancedCustomProperties\":\"rn\",\"supplementaryFileLocation\":\"x\",\"platform\":\"uwrykqgaifmvikl\",\"tags\":\"dvk\",\"vnet\":\"ejd\",\"executionTimeout\":\"xcv\",\"computeUnits\":\"rhnj\",\"tenantId\":\"olvtnovqfzge\",\"subscriptionId\":\"dftuljltduce\",\"region\":\"tmczuomejwcwwqi\",\"serverlessArmResourceId\":\"nssxmojmsvpk\"},\"description\":\"rvkwc\"},{\"name\":\"zqljyxgtczh\",\"createdTime\":\"ydbsd\",\"updatedTime\":\"hmkxmaehvbb\",\"createdBy\":\"uripltfnhtba\",\"updatedBy\":\"kgxywr\",\"id\":\"kpyklyhp\",\"type\":\"SERVERLESS\",\"status\":\"odpvruudlgzib\",\"statusLocalized\":\"hostgktstvdxecl\",\"statusMessage\":\"edqbc\",\"serverlessConfigProperties\":{\"subnet\":\"zlhp\",\"applicationType\":\"dqkdlwwqfbu\",\"resourceGroupName\":\"kxtrq\",\"advancedCustomProperties\":\"smlmbtxhwgfwsrta\",\"supplementaryFileLocation\":\"oezbrhubsk\",\"platform\":\"dyg\",\"tags\":\"okkqfqjbvleo\",\"vnet\":\"ml\",\"executionTimeout\":\"qtqzfavyv\",\"computeUnits\":\"qybaryeua\",\"tenantId\":\"kq\",\"subscriptionId\":\"qgzsles\",\"region\":\"bhernntiew\",\"serverlessArmResourceId\":\"cv\"},\"description\":\"uwrbehwagoh\"}]}"; + = "{\"informaticaRuntimeResources\":[{\"name\":\"ybar\",\"createdTime\":\"euayjkqabqgzsles\",\"updatedTime\":\"cbhernntiewdj\",\"createdBy\":\"vbquwr\",\"updatedBy\":\"ehwagoh\",\"id\":\"uffkmrqemvvh\",\"type\":\"SERVERLESS\",\"status\":\"tdrjfutacoebj\",\"statusLocalized\":\"ewzcjznmwcp\",\"statusMessage\":\"guaadraufactkahz\",\"serverlessConfigProperties\":{\"subnet\":\"ajjziuxxpshne\",\"applicationType\":\"ulfgslqu\",\"resourceGroupName\":\"wdlenrdsut\",\"advancedCustomProperties\":\"bazpjuohmi\",\"supplementaryFileLocation\":\"flnorwmduvwp\",\"platform\":\"vxwmygd\",\"tags\":\"gpqch\",\"vnet\":\"zepn\",\"executionTimeout\":\"jcrxgibbdaxcon\",\"computeUnits\":\"zauorsuk\",\"tenantId\":\"wbqpl\",\"subscriptionId\":\"vnuuepzl\",\"region\":\"hw\",\"serverlessArmResourceId\":\"oldweyuqdu\"},\"description\":\"mnnrwr\"},{\"name\":\"i\",\"createdTime\":\"rk\",\"updatedTime\":\"alywjhhgdn\",\"createdBy\":\"xmsivfomiloxggdu\",\"updatedBy\":\"iqndieuzaofj\",\"id\":\"hvcyyysfg\",\"type\":\"SERVERLESS\",\"status\":\"tcubiipuipwoqonm\",\"statusLocalized\":\"cje\",\"statusMessage\":\"nizshqvcim\",\"serverlessConfigProperties\":{\"subnet\":\"vfgmblrrilby\",\"applicationType\":\"xsmiccwrwfscjf\",\"resourceGroupName\":\"nszqujiz\",\"advancedCustomProperties\":\"oqytibyowbblgy\",\"supplementaryFileLocation\":\"utp\",\"platform\":\"joxoism\",\"tags\":\"sbpimlq\",\"vnet\":\"jxkcgxxlxsff\",\"executionTimeout\":\"vizqzdwl\",\"computeUnits\":\"lyoupfgfbkju\",\"tenantId\":\"yhgk\",\"subscriptionId\":\"in\",\"region\":\"owzfttsttkt\",\"serverlessArmResourceId\":\"hbq\"},\"description\":\"tx\"},{\"name\":\"gzukxitmm\",\"createdTime\":\"tg\",\"updatedTime\":\"qqxhrnxrxcpj\",\"createdBy\":\"isavok\",\"updatedBy\":\"dzf\",\"id\":\"azivjlfrqttbajl\",\"type\":\"SERVERLESS\",\"status\":\"tnwxy\",\"statusLocalized\":\"opidkqqfkuv\",\"statusMessage\":\"cxkdmligovi\",\"serverlessConfigProperties\":{\"subnet\":\"xk\",\"applicationType\":\"loazuruocbgoo\",\"resourceGroupName\":\"te\",\"advancedCustomProperties\":\"bfhjxakvvjgsl\",\"supplementaryFileLocation\":\"dilmyww\",\"platform\":\"gkxnyedabg\",\"tags\":\"udtjuewbc\",\"vnet\":\"xuuwhcj\",\"executionTimeout\":\"ccybvp\",\"computeUnits\":\"akkud\",\"tenantId\":\"xgwjplmagstcyoh\",\"subscriptionId\":\"kyrk\",\"region\":\"dg\",\"serverlessArmResourceId\":\"gsj\"},\"description\":\"nwqjnoba\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); InformaticaDataManagementManager manager = InformaticaDataManagementManager.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)); InformaticaServerlessRuntimeResourceList response = manager.organizations() - .getAllServerlessRuntimesWithResponse("z", "ybycnunvj", com.azure.core.util.Context.NONE) + .getAllServerlessRuntimesWithResponse("fqjbvleo", "fmluiqtqzfavyvn", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("tkfa", response.informaticaRuntimeResources().get(0).name()); - Assertions.assertEquals("nopqgikyzirtx", response.informaticaRuntimeResources().get(0).createdTime()); - Assertions.assertEquals("yuxzejntpsewgi", response.informaticaRuntimeResources().get(0).updatedTime()); - Assertions.assertEquals("ilqu", response.informaticaRuntimeResources().get(0).createdBy()); - Assertions.assertEquals("rydxtqm", response.informaticaRuntimeResources().get(0).updatedBy()); - Assertions.assertEquals("eoxorggufhyao", response.informaticaRuntimeResources().get(0).id()); + Assertions.assertEquals("ybar", response.informaticaRuntimeResources().get(0).name()); + Assertions.assertEquals("euayjkqabqgzsles", response.informaticaRuntimeResources().get(0).createdTime()); + Assertions.assertEquals("cbhernntiewdj", response.informaticaRuntimeResources().get(0).updatedTime()); + Assertions.assertEquals("vbquwr", response.informaticaRuntimeResources().get(0).createdBy()); + Assertions.assertEquals("ehwagoh", response.informaticaRuntimeResources().get(0).updatedBy()); + Assertions.assertEquals("uffkmrqemvvh", response.informaticaRuntimeResources().get(0).id()); Assertions.assertEquals(RuntimeType.SERVERLESS, response.informaticaRuntimeResources().get(0).type()); - Assertions.assertEquals("bghhavgrvkf", response.informaticaRuntimeResources().get(0).status()); - Assertions.assertEquals("ovjzhpjbibgjmfx", response.informaticaRuntimeResources().get(0).statusLocalized()); - Assertions.assertEquals("mv", response.informaticaRuntimeResources().get(0).statusMessage()); - Assertions.assertEquals("luyovwxnbkfezzx", + Assertions.assertEquals("tdrjfutacoebj", response.informaticaRuntimeResources().get(0).status()); + Assertions.assertEquals("ewzcjznmwcp", response.informaticaRuntimeResources().get(0).statusLocalized()); + Assertions.assertEquals("guaadraufactkahz", response.informaticaRuntimeResources().get(0).statusMessage()); + Assertions.assertEquals("ajjziuxxpshne", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().subnet()); - Assertions.assertEquals("yhwzdgiruj", + Assertions.assertEquals("ulfgslqu", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().applicationType()); - Assertions.assertEquals("bomvzzbtdcqv", + Assertions.assertEquals("wdlenrdsut", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().resourceGroupName()); - Assertions.assertEquals("iyujviylwdshfs", + Assertions.assertEquals("bazpjuohmi", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().advancedCustomProperties()); - Assertions.assertEquals("rbgyefry", + Assertions.assertEquals("flnorwmduvwp", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().supplementaryFileLocation()); - Assertions.assertEquals("gaojf", + Assertions.assertEquals("vxwmygd", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().platform()); - Assertions.assertEquals("nc", + Assertions.assertEquals("gpqch", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().tags()); - Assertions.assertEquals("mrfhirctymox", + Assertions.assertEquals("zepn", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().vnet()); - Assertions.assertEquals("tpipiwyczuhx", + Assertions.assertEquals("jcrxgibbdaxcon", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("pqjlihhyusps", + Assertions.assertEquals("zauorsuk", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().computeUnits()); - Assertions.assertEquals("sdvlmfwdgzxulucv", + Assertions.assertEquals("wbqpl", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().tenantId()); - Assertions.assertEquals("mrsreuzvxurisjnh", + Assertions.assertEquals("vnuuepzl", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().subscriptionId()); - Assertions.assertEquals("txifqj", + Assertions.assertEquals("hw", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().region()); - Assertions.assertEquals("xmrhu", + Assertions.assertEquals("oldweyuqdu", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().serverlessArmResourceId()); - Assertions.assertEquals("wp", response.informaticaRuntimeResources().get(0).description()); + Assertions.assertEquals("mnnrwr", response.informaticaRuntimeResources().get(0).description()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataWithResponseMockTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataWithResponseMockTests.java index c35d732a4610..84c85296bdb7 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataWithResponseMockTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataWithResponseMockTests.java @@ -1,13 +1,13 @@ // 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.informaticadatamanagement.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -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.informaticadatamanagement.InformaticaDataManagementManager; import com.azure.resourcemanager.informaticadatamanagement.models.PlatformType; @@ -23,87 +23,86 @@ public final class OrganizationsGetServerlessMetadataWithResponseMockTests { @Test public void testGetServerlessMetadataWithResponse() throws Exception { String responseStr - = "{\"type\":\"SERVERLESS\",\"serverlessConfigProperties\":{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"jvewzcjznmwcp\",\"value\":\"uaadraufactkahzo\"},{\"name\":\"jjziuxxpsh\",\"value\":\"e\"},{\"name\":\"lfg\",\"value\":\"qubkw\"}],\"computeUnits\":[{\"name\":\"rds\",\"value\":[\"jbazpjuohminy\",\"lnorwmdu\",\"wpklvxw\",\"ygdxpgpqchis\"]}],\"executionTimeout\":\"pnnbjc\",\"regions\":[{\"id\":\"bbdaxco\",\"name\":\"ozauorsukokwb\"},{\"id\":\"lhlv\",\"name\":\"uepzl\"}]},\"serverlessRuntimeConfigProperties\":{\"cdiConfigProps\":[{\"engineName\":\"zsoldwey\",\"engineVersion\":\"qdunvmnnrwrbior\",\"applicationConfigs\":[{\"type\":\"alywjhhgdn\",\"name\":\"xmsivfomiloxggdu\",\"value\":\"iqndieuzaofj\",\"platform\":\"hvcyyysfg\",\"customized\":\"otcubi\",\"defaultValue\":\"p\"},{\"type\":\"ipwoqonmacjek\",\"name\":\"izsh\",\"value\":\"vcimpev\",\"platform\":\"gmblrri\",\"customized\":\"bywdxsmicc\",\"defaultValue\":\"rwfscjfnynszquj\"},{\"type\":\"zdvoqytibyowbb\",\"name\":\"gyavu\",\"value\":\"pthjoxo\",\"platform\":\"smsks\",\"customized\":\"pi\",\"defaultValue\":\"lqol\"},{\"type\":\"xkcgxxlxsffgcvi\",\"name\":\"qzdwlvwlyoup\",\"value\":\"gfbkjubdyh\",\"platform\":\"kfm\",\"customized\":\"nsgowzfttst\",\"defaultValue\":\"ktlahbqa\"}]},{\"engineName\":\"tx\",\"engineVersion\":\"gzukxitmm\",\"applicationConfigs\":[{\"type\":\"gqqqxh\",\"name\":\"n\",\"value\":\"rxcpjuisavo\",\"platform\":\"qdzfvazivjlfrqtt\",\"customized\":\"ajlkatnw\",\"defaultValue\":\"yiopi\"}]},{\"engineName\":\"kqqfk\",\"engineVersion\":\"vscx\",\"applicationConfigs\":[{\"type\":\"mligov\",\"name\":\"brxk\",\"value\":\"mloazuru\",\"platform\":\"cbgoor\",\"customized\":\"te\",\"defaultValue\":\"ybfhjxa\"},{\"type\":\"vvjgslor\",\"name\":\"il\",\"value\":\"yw\",\"platform\":\"t\",\"customized\":\"gkxnyedabg\",\"defaultValue\":\"vudtjuewbcihx\"},{\"type\":\"uwhcjyxccybv\",\"name\":\"ayakkudzpx\",\"value\":\"wjplma\",\"platform\":\"stcyohpfkyrkdbd\",\"customized\":\"iogsjkmnwq\",\"defaultValue\":\"nobaiyhddviacegf\"}]},{\"engineName\":\"m\",\"engineVersion\":\"tfpmvmemfnczdw\",\"applicationConfigs\":[{\"type\":\"b\",\"name\":\"lxlllchpo\",\"value\":\"bzevwrd\",\"platform\":\"hfuk\",\"customized\":\"vsjcswsmystuluqy\",\"defaultValue\":\"fcvlerch\"},{\"type\":\"qbmfpjbabwidf\",\"name\":\"xsspuunnoxyhk\",\"value\":\"g\",\"platform\":\"ddrihpf\",\"customized\":\"oqcaaewdaomdj\",\"defaultValue\":\"l\"},{\"type\":\"jxxkzbrmsgei\",\"name\":\"siykzkdncjdxonbz\",\"value\":\"ggcula\",\"platform\":\"z\",\"customized\":\"y\",\"defaultValue\":\"pgogtqxepny\"}]}],\"cdieConfigProps\":[{\"engineName\":\"uajlyj\",\"engineVersion\":\"lvofqzhvfcibyfmo\",\"applicationConfigs\":[{\"type\":\"xrkjpvdw\",\"name\":\"fzwiivwzjbhyz\",\"value\":\"xjrk\",\"platform\":\"mbtrnegvmnvu\",\"customized\":\"eqvldspast\",\"defaultValue\":\"bkkd\"},{\"type\":\"flvestmjlxrrilo\",\"name\":\"apeewchpxlkt\",\"value\":\"kuziycsle\",\"platform\":\"ufuztcktyhjtq\",\"customized\":\"dcgzul\",\"defaultValue\":\"mmrqz\"}]},{\"engineName\":\"rr\",\"engineVersion\":\"vpglydz\",\"applicationConfigs\":[{\"type\":\"rvqeevtoepryutn\",\"name\":\"ytp\",\"value\":\"dmovzvfva\",\"platform\":\"wzqa\",\"customized\":\"f\",\"defaultValue\":\"gzuriglaecxndt\"}]}]}}"; + = "{\"type\":\"SERVERLESS\",\"serverlessConfigProperties\":{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"lqwjygvjayvblm\",\"value\":\"k\"},{\"name\":\"hbxvvyhgsopbyrqu\",\"value\":\"g\"}],\"computeUnits\":[{\"name\":\"zfbn\",\"value\":[\"ctlpdngitvgb\",\"hrixkwmy\",\"jejveg\"]}],\"executionTimeout\":\"bpnaixexccbdre\",\"regions\":[{\"id\":\"exdrrvqahqkg\",\"name\":\"pwijnhy\"},{\"id\":\"vfycxzb\",\"name\":\"oowvrv\"},{\"id\":\"gjqppy\",\"name\":\"tronzmyhgfi\"}]},\"serverlessRuntimeConfigProperties\":{\"cdiConfigProps\":[{\"engineName\":\"kmcwaekrrjreafx\",\"engineVersion\":\"sgumhjglikkxwsl\",\"applicationConfigs\":[{\"type\":\"bq\",\"name\":\"vuzlm\",\"value\":\"felfktg\",\"platform\":\"lcrpw\",\"customized\":\"xeznoi\",\"defaultValue\":\"brnjwmw\"},{\"type\":\"pn\",\"name\":\"saz\",\"value\":\"jjoqkagf\",\"platform\":\"sxtta\",\"customized\":\"gzxnfaazpxdtnk\",\"defaultValue\":\"mkqjj\"},{\"type\":\"wuenvr\",\"name\":\"pyouaibrebqaays\",\"value\":\"kixqtnqtt\",\"platform\":\"zlwfffiakp\",\"customized\":\"pqqmted\",\"defaultValue\":\"tmmjihyeozph\"},{\"type\":\"wau\",\"name\":\"qncygupkvi\",\"value\":\"mdscwxqupev\",\"platform\":\"hfstotxhojujbyp\",\"customized\":\"lmcuvhixb\",\"defaultValue\":\"xyfwnylrcool\"}]},{\"engineName\":\"ttpkiwkkbnujrywv\",\"engineVersion\":\"y\",\"applicationConfigs\":[{\"type\":\"fpncurdo\",\"name\":\"wiithtywub\",\"value\":\"cbihwqk\",\"platform\":\"fdntwjchrdgoih\",\"customized\":\"umwctondz\",\"defaultValue\":\"luudfdlwggytsb\"},{\"type\":\"tov\",\"name\":\"tgseinqfiufxqkn\",\"value\":\"irgne\",\"platform\":\"ttwqmsni\",\"customized\":\"fcdmqnrojlpijn\",\"defaultValue\":\"rxfrddhc\"},{\"type\":\"atiz\",\"name\":\"ronasxift\",\"value\":\"zq\",\"platform\":\"zh\",\"customized\":\"tw\",\"defaultValue\":\"sgogczhonnxk\"}]},{\"engineName\":\"lgnyhmo\",\"engineVersion\":\"sxkkg\",\"applicationConfigs\":[{\"type\":\"rrghxjbdhqxvcxgf\",\"name\":\"pdso\",\"value\":\"bshrnsvbuswd\",\"platform\":\"z\",\"customized\":\"ybycnunvj\",\"defaultValue\":\"rtkfawnopq\"}]},{\"engineName\":\"ikyzirtxdy\",\"engineVersion\":\"x\",\"applicationConfigs\":[{\"type\":\"jntpsewgioilqu\",\"name\":\"rydxtqm\",\"value\":\"eoxorggufhyao\",\"platform\":\"tbghhavgrvkf\",\"customized\":\"ovjzhpjbibgjmfx\",\"defaultValue\":\"mv\"}]}],\"cdieConfigProps\":[{\"engineName\":\"uyovw\",\"engineVersion\":\"nbkfezzxscy\",\"applicationConfigs\":[{\"type\":\"zdgiruj\",\"name\":\"zbomvzzbtdcqvpni\",\"value\":\"ujviylwdshfs\",\"platform\":\"n\",\"customized\":\"bgye\",\"defaultValue\":\"rymsgaojfmw\"},{\"type\":\"cotmr\",\"name\":\"hirctymoxoftpipi\",\"value\":\"yczuhxacpq\",\"platform\":\"lihhyuspskasdvlm\",\"customized\":\"wdgzxulucv\",\"defaultValue\":\"amrsreuzv\"},{\"type\":\"urisjnhnytxifqj\",\"name\":\"gxmrhublwp\",\"value\":\"esutrgjupauutpw\",\"platform\":\"qhih\",\"customized\":\"jqgwzp\",\"defaultValue\":\"fqntcyp\"}]},{\"engineName\":\"xjvfoimwksl\",\"engineVersion\":\"rcizjxvyd\",\"applicationConfigs\":[{\"type\":\"eacvl\",\"name\":\"vygdyft\",\"value\":\"mrtwna\",\"platform\":\"jslb\",\"customized\":\"wkojgcyztsfmzn\",\"defaultValue\":\"aeqphchqnr\"},{\"type\":\"rpxeh\",\"name\":\"wrykqgai\",\"value\":\"mvikl\",\"platform\":\"ydv\",\"customized\":\"hbejdznxcvdsrhnj\",\"defaultValue\":\"volvtn\"},{\"type\":\"v\",\"name\":\"fzg\",\"value\":\"mjdftu\",\"platform\":\"jltduceam\",\"customized\":\"mczuo\",\"defaultValue\":\"ejwcwwqiok\"}]},{\"engineName\":\"ssxmojms\",\"engineVersion\":\"p\",\"applicationConfigs\":[{\"type\":\"prvkwcfzqljyxgtc\",\"name\":\"heyd\",\"value\":\"sdshmkxmaehvb\",\"platform\":\"xu\",\"customized\":\"iplt\",\"defaultValue\":\"n\"}]},{\"engineName\":\"tbaxk\",\"engineVersion\":\"xywr\",\"applicationConfigs\":[{\"type\":\"pyklyhpluodpvru\",\"name\":\"dlgzibthostgkt\",\"value\":\"tvdxeclzedqb\",\"platform\":\"vh\",\"customized\":\"lhpl\",\"defaultValue\":\"dqkdlwwqfbu\"},{\"type\":\"lkxt\",\"name\":\"qjfsmlmbtxhw\",\"value\":\"fwsrtawcoezbrhu\",\"platform\":\"skh\",\"customized\":\"dyg\",\"defaultValue\":\"ookk\"}]}]}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); InformaticaDataManagementManager manager = InformaticaDataManagementManager.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)); ServerlessMetadataResponse response = manager.organizations() - .getServerlessMetadataWithResponse("uffkmrqemvvh", "xtdr", com.azure.core.util.Context.NONE) + .getServerlessMetadataWithResponse("atjinrvgoupmfiib", "ggjioolvr", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(RuntimeType.SERVERLESS, response.type()); Assertions.assertEquals(PlatformType.AZURE, response.serverlessConfigProperties().platform()); - Assertions.assertEquals("jvewzcjznmwcp", + Assertions.assertEquals("lqwjygvjayvblm", response.serverlessConfigProperties().applicationTypes().get(0).name()); - Assertions.assertEquals("uaadraufactkahzo", - response.serverlessConfigProperties().applicationTypes().get(0).value()); - Assertions.assertEquals("rds", response.serverlessConfigProperties().computeUnits().get(0).name()); - Assertions.assertEquals("jbazpjuohminy", + Assertions.assertEquals("k", response.serverlessConfigProperties().applicationTypes().get(0).value()); + Assertions.assertEquals("zfbn", response.serverlessConfigProperties().computeUnits().get(0).name()); + Assertions.assertEquals("ctlpdngitvgb", response.serverlessConfigProperties().computeUnits().get(0).value().get(0)); - Assertions.assertEquals("pnnbjc", response.serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("bbdaxco", response.serverlessConfigProperties().regions().get(0).id()); - Assertions.assertEquals("ozauorsukokwb", response.serverlessConfigProperties().regions().get(0).name()); - Assertions.assertEquals("zsoldwey", + Assertions.assertEquals("bpnaixexccbdre", response.serverlessConfigProperties().executionTimeout()); + Assertions.assertEquals("exdrrvqahqkg", response.serverlessConfigProperties().regions().get(0).id()); + Assertions.assertEquals("pwijnhy", response.serverlessConfigProperties().regions().get(0).name()); + Assertions.assertEquals("kmcwaekrrjreafx", response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineName()); - Assertions.assertEquals("qdunvmnnrwrbior", + Assertions.assertEquals("sgumhjglikkxwsl", response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineVersion()); - Assertions.assertEquals("alywjhhgdn", + Assertions.assertEquals("bq", response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("xmsivfomiloxggdu", + Assertions.assertEquals("vuzlm", response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("iqndieuzaofj", + Assertions.assertEquals("felfktg", response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("hvcyyysfg", + Assertions.assertEquals("lcrpw", response.serverlessRuntimeConfigProperties() .cdiConfigProps() .get(0) .applicationConfigs() .get(0) .platform()); - Assertions.assertEquals("otcubi", + Assertions.assertEquals("xeznoi", response.serverlessRuntimeConfigProperties() .cdiConfigProps() .get(0) .applicationConfigs() .get(0) .customized()); - Assertions.assertEquals("p", + Assertions.assertEquals("brnjwmw", response.serverlessRuntimeConfigProperties() .cdiConfigProps() .get(0) .applicationConfigs() .get(0) .defaultValue()); - Assertions.assertEquals("uajlyj", + Assertions.assertEquals("uyovw", response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineName()); - Assertions.assertEquals("lvofqzhvfcibyfmo", + Assertions.assertEquals("nbkfezzxscy", response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineVersion()); - Assertions.assertEquals("xrkjpvdw", + Assertions.assertEquals("zdgiruj", response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("fzwiivwzjbhyz", + Assertions.assertEquals("zbomvzzbtdcqvpni", response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("xjrk", + Assertions.assertEquals("ujviylwdshfs", response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("mbtrnegvmnvu", + Assertions.assertEquals("n", response.serverlessRuntimeConfigProperties() .cdieConfigProps() .get(0) .applicationConfigs() .get(0) .platform()); - Assertions.assertEquals("eqvldspast", + Assertions.assertEquals("bgye", response.serverlessRuntimeConfigProperties() .cdieConfigProps() .get(0) .applicationConfigs() .get(0) .customized()); - Assertions.assertEquals("bkkd", + Assertions.assertEquals("rymsgaojfmw", response.serverlessRuntimeConfigProperties() .cdieConfigProps() .get(0) diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/RegionsMetadataTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/RegionsMetadataTests.java index 6ae783405ff2..8140a8f26dc1 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/RegionsMetadataTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/RegionsMetadataTests.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.informaticadatamanagement.generated; @@ -11,9 +11,9 @@ public final class RegionsMetadataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RegionsMetadata model - = BinaryData.fromString("{\"id\":\"fqka\",\"name\":\"wiipfpub\"}").toObject(RegionsMetadata.class); - Assertions.assertEquals("fqka", model.id()); - Assertions.assertEquals("wiipfpub", model.name()); + RegionsMetadata model = BinaryData.fromString("{\"id\":\"nftguvriuhpr\",\"name\":\"dyvxqtayriww\"}") + .toObject(RegionsMetadata.class); + Assertions.assertEquals("nftguvriuhpr", model.id()); + Assertions.assertEquals("dyvxqtayriww", model.name()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessConfigPropertiesTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessConfigPropertiesTests.java index 6547c8e59db2..75618367f94d 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessConfigPropertiesTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessConfigPropertiesTests.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.informaticadatamanagement.generated; @@ -13,15 +13,15 @@ public final class ServerlessConfigPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessConfigProperties model = BinaryData.fromString( - "{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"smocmbq\",\"value\":\"vmkcx\"},{\"name\":\"apvhelxprgly\",\"value\":\"dd\"}],\"computeUnits\":[{\"name\":\"cuejrjxgci\",\"value\":[\"rhos\"]},{\"name\":\"dqrhzoymib\",\"value\":[\"yiba\"]},{\"name\":\"fluszdtm\",\"value\":[\"wofyyvoqacpiexp\",\"tg\",\"wbwo\"]},{\"name\":\"washr\",\"value\":[\"kcnqxwbpo\",\"ulpiuj\"]}],\"executionTimeout\":\"asipqiio\",\"regions\":[{\"id\":\"erpqlpqwcciuqg\",\"name\":\"butauvfb\"},{\"id\":\"uwhhmhykojoxafn\",\"name\":\"lpichk\"},{\"id\":\"mkcdyhbpkkpwdre\",\"name\":\"ovvqfovljxywsu\"}]}") + "{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"euecivyhzceuoj\",\"value\":\"rw\"},{\"name\":\"eiotwmcdytdx\",\"value\":\"txnrjaw\"}],\"computeUnits\":[{\"name\":\"xhniskxfbkpycgk\",\"value\":[\"dnhjdauwhvylw\",\"btdhxujznbm\"]},{\"name\":\"wuwprzqlv\",\"value\":[\"lupj\",\"khfxobbcswsrt\"]}],\"executionTimeout\":\"iplrbpbewtghfgb\",\"regions\":[{\"id\":\"xzvlvqhjkbegib\",\"name\":\"mxiebw\"}]}") .toObject(ServerlessConfigProperties.class); Assertions.assertEquals(PlatformType.AZURE, model.platform()); - Assertions.assertEquals("smocmbq", model.applicationTypes().get(0).name()); - Assertions.assertEquals("vmkcx", model.applicationTypes().get(0).value()); - Assertions.assertEquals("cuejrjxgci", model.computeUnits().get(0).name()); - Assertions.assertEquals("rhos", model.computeUnits().get(0).value().get(0)); - Assertions.assertEquals("asipqiio", model.executionTimeout()); - Assertions.assertEquals("erpqlpqwcciuqg", model.regions().get(0).id()); - Assertions.assertEquals("butauvfb", model.regions().get(0).name()); + Assertions.assertEquals("euecivyhzceuoj", model.applicationTypes().get(0).name()); + Assertions.assertEquals("rw", model.applicationTypes().get(0).value()); + Assertions.assertEquals("xhniskxfbkpycgk", model.computeUnits().get(0).name()); + Assertions.assertEquals("dnhjdauwhvylw", model.computeUnits().get(0).value().get(0)); + Assertions.assertEquals("iplrbpbewtghfgb", model.executionTimeout()); + Assertions.assertEquals("xzvlvqhjkbegib", model.regions().get(0).id()); + Assertions.assertEquals("mxiebw", model.regions().get(0).name()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessMetadataResponseInnerTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessMetadataResponseInnerTests.java index 6b57472214f9..f90292c3a58f 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessMetadataResponseInnerTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessMetadataResponseInnerTests.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.informaticadatamanagement.generated; @@ -14,58 +14,56 @@ public final class ServerlessMetadataResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessMetadataResponseInner model = BinaryData.fromString( - "{\"type\":\"SERVERLESS\",\"serverlessConfigProperties\":{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"kxfbkpycgklwndn\",\"value\":\"dauwhvylwzbtd\"}],\"computeUnits\":[{\"name\":\"znbmpowuwprzq\",\"value\":[\"ualupjmkh\",\"xobbcswsrt\",\"riplrbpbewtg\"]},{\"name\":\"gblcgwxzvlvq\",\"value\":[\"begibtnmxiebwwa\",\"oayqc\"]}],\"executionTimeout\":\"rtzju\",\"regions\":[{\"id\":\"zmh\",\"name\":\"ongmtsa\"},{\"id\":\"cbpwxqpsrknft\",\"name\":\"vriuhprwmdyvx\"},{\"id\":\"ayriwwroyqbexrm\",\"name\":\"ibycno\"}]},\"serverlessRuntimeConfigProperties\":{\"cdiConfigProps\":[{\"engineName\":\"mefqsgzvahapjyzh\",\"engineVersion\":\"vgqzcjrvxd\",\"applicationConfigs\":[{\"type\":\"lmwlxkvugfhzo\",\"name\":\"awjvzunluthnnp\",\"value\":\"nxipeil\",\"platform\":\"jzuaejxdultskzbb\",\"customized\":\"dzumveekg\",\"defaultValue\":\"wozuhkf\"},{\"type\":\"bsjyofdx\",\"name\":\"uusdttouwa\",\"value\":\"oekqvk\",\"platform\":\"lns\",\"customized\":\"vbxwyjsflhh\",\"defaultValue\":\"aalnjixi\"},{\"type\":\"xyawj\",\"name\":\"yaqcslyjpkiidz\",\"value\":\"exznelixhnr\",\"platform\":\"tfolhbnx\",\"customized\":\"nalaulppg\",\"defaultValue\":\"dtpnapnyiropuhp\"},{\"type\":\"gvpgy\",\"name\":\"gqgitxmedjvcsl\",\"value\":\"n\",\"platform\":\"wwncwzzhxgk\",\"customized\":\"rmgucnap\",\"defaultValue\":\"t\"}]},{\"engineName\":\"oellwp\",\"engineVersion\":\"fdygpfqbuaceopz\",\"applicationConfigs\":[{\"type\":\"rhhuaopppcqeqx\",\"name\":\"lzdahzxctobgbkdm\",\"value\":\"izpost\",\"platform\":\"grcfb\",\"customized\":\"nrmfqjhhk\",\"defaultValue\":\"bpvjymjhx\"},{\"type\":\"j\",\"name\":\"n\",\"value\":\"u\",\"platform\":\"ivkrtsw\",\"customized\":\"xqzvszjfa\",\"defaultValue\":\"vjfdx\"}]},{\"engineName\":\"ivetvtcq\",\"engineVersion\":\"qtdo\",\"applicationConfigs\":[{\"type\":\"cbxvwvxyslqbh\",\"name\":\"fxoblytkb\",\"value\":\"mpew\",\"platform\":\"wfbkrvrns\",\"customized\":\"shqjohxcrsbf\",\"defaultValue\":\"vasrruvwb\"},{\"type\":\"sqfsubcgjbirxb\",\"name\":\"ybsrfbjfdtwss\",\"value\":\"t\",\"platform\":\"tpvjzbexilzznfqq\",\"customized\":\"vwpm\",\"defaultValue\":\"taruoujmkcj\"},{\"type\":\"wqytjrybnwjewgdr\",\"name\":\"ervnaenqpehi\",\"value\":\"doy\",\"platform\":\"mifthnzdnd\",\"customized\":\"l\",\"defaultValue\":\"nayqi\"}]},{\"engineName\":\"ynduha\",\"engineVersion\":\"hqlkthumaqo\",\"applicationConfigs\":[{\"type\":\"gycdu\",\"name\":\"ertgccymva\",\"value\":\"l\",\"platform\":\"ssl\",\"customized\":\"lfmmdnbbglzpswi\",\"defaultValue\":\"d\"},{\"type\":\"cwyhzdxssa\",\"name\":\"bzmnvdfznud\",\"value\":\"od\",\"platform\":\"xzb\",\"customized\":\"cblylpstdbhhxsr\",\"defaultValue\":\"dzu\"},{\"type\":\"erscdntne\",\"name\":\"fiwjmygtdssls\",\"value\":\"tmweriofzpyq\",\"platform\":\"emwabnet\",\"customized\":\"hhszh\",\"defaultValue\":\"d\"},{\"type\":\"lvwiwubmwmbesl\",\"name\":\"nkww\",\"value\":\"pp\",\"platform\":\"flcxoga\",\"customized\":\"konzmnsik\",\"defaultValue\":\"mkqzeqqkdltfzxmh\"}]}],\"cdieConfigProps\":[{\"engineName\":\"gureodkwobdag\",\"engineVersion\":\"tibqdxbxwakb\",\"applicationConfigs\":[{\"type\":\"qxn\",\"name\":\"lkzgxhuriplbp\",\"value\":\"dxunkbebxmubyyn\",\"platform\":\"wlrbqtkoievseo\",\"customized\":\"gqrlltmuwla\",\"defaultValue\":\"wzizxbmpgcjefuzm\"},{\"type\":\"vpbttd\",\"name\":\"morppxebmnzbtbh\",\"value\":\"pglkf\",\"platform\":\"ohdneuel\",\"customized\":\"phsdyhto\",\"defaultValue\":\"fikdowwqu\"},{\"type\":\"v\",\"name\":\"zx\",\"value\":\"lvithhqzonosgg\",\"platform\":\"hcohfwdsjnk\",\"customized\":\"ljuti\",\"defaultValue\":\"swacffgdkzz\"},{\"type\":\"wkfvhqcrailvp\",\"name\":\"ppfufl\",\"value\":\"wdmhdlxyjrxs\",\"platform\":\"gafcnihgwqapnedg\",\"customized\":\"bcvkcvqvpkeq\",\"defaultValue\":\"cvdrhvoodsot\"}]},{\"engineName\":\"obzdopcjwvnhdl\",\"engineVersion\":\"wmgxcxrsl\",\"applicationConfigs\":[{\"type\":\"utwu\",\"name\":\"egrpkhj\",\"value\":\"niyqslui\",\"platform\":\"pdggkzzlvm\",\"customized\":\"mpaxmodfvuefywsb\",\"defaultValue\":\"fvmwy\"},{\"type\":\"rfouyftaakcpw\",\"name\":\"yzvqt\",\"value\":\"nubexk\",\"platform\":\"zksmondj\",\"customized\":\"quxvypomgkop\",\"defaultValue\":\"whojvp\"}]}]}}") + "{\"type\":\"SERVERLESS\",\"serverlessConfigProperties\":{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"unmmq\",\"value\":\"yxzk\"}],\"computeUnits\":[{\"name\":\"uko\",\"value\":[\"axuconuq\",\"zf\",\"beypewrmjmw\",\"vjektcxsenh\"]},{\"name\":\"rsffrzpwvlqdqgbi\",\"value\":[\"ihkaetcktvfc\",\"vf\",\"nkymuctqhjfbebrj\",\"xerf\"]},{\"name\":\"utttxfvjrbirp\",\"value\":[\"pcyvahfnljkyqx\",\"vuujq\",\"idokgjlj\"]}],\"executionTimeout\":\"xgvcl\",\"regions\":[{\"id\":\"ncghkje\",\"name\":\"zhbijhtxfv\"},{\"id\":\"bfs\",\"name\":\"nehmpvecx\"},{\"id\":\"debfqkkrbmpukgri\",\"name\":\"lzlfbxzpuz\"}]},\"serverlessRuntimeConfigProperties\":{\"cdiConfigProps\":[{\"engineName\":\"pnq\",\"engineVersion\":\"ahmgkbrp\",\"applicationConfigs\":[{\"type\":\"dhibnuq\",\"name\":\"kpikadrgvt\",\"value\":\"agnb\",\"platform\":\"ynhijggme\",\"customized\":\"fsiarbutr\",\"defaultValue\":\"vpnazzm\"}]},{\"engineName\":\"jrunmpxtt\",\"engineVersion\":\"bh\",\"applicationConfigs\":[{\"type\":\"nlankxmyskpb\",\"name\":\"enbtkcxywny\",\"value\":\"nrs\",\"platform\":\"nlqidybyxczf\",\"customized\":\"lhaaxdbabp\",\"defaultValue\":\"lwrq\"},{\"type\":\"fkts\",\"name\":\"hsucoc\",\"value\":\"nyyazttbtwwrqpue\",\"platform\":\"ckzywbiexzfeyue\",\"customized\":\"xibxujwbhqwalm\",\"defaultValue\":\"zyoxaepdkzjan\"},{\"type\":\"ux\",\"name\":\"hdwbavxbniwdjs\",\"value\":\"zt\",\"platform\":\"dbpgnxytxhp\",\"customized\":\"xbzpfzab\",\"defaultValue\":\"lcuhxwtctyqiklb\"},{\"type\":\"ovplw\",\"name\":\"bhvgy\",\"value\":\"gu\",\"platform\":\"svmkfssxquk\",\"customized\":\"fpl\",\"defaultValue\":\"mg\"}]},{\"engineName\":\"xnkjzkdesl\",\"engineVersion\":\"vlopwiyighx\",\"applicationConfigs\":[{\"type\":\"dwzbaiue\",\"name\":\"baumnyqupedeoj\",\"value\":\"a\",\"platform\":\"ckhsmtxpsieb\",\"customized\":\"fhvpesaps\",\"defaultValue\":\"rdqmhjjdhtldwkyz\"},{\"type\":\"uutkncw\",\"name\":\"cwsvlxotog\",\"value\":\"wrupqsxvnmicykvc\",\"platform\":\"o\",\"customized\":\"eil\",\"defaultValue\":\"vnotyfjfcnj\"},{\"type\":\"k\",\"name\":\"nxdhbt\",\"value\":\"kphywpnvjto\",\"platform\":\"nermcl\",\"customized\":\"plpho\",\"defaultValue\":\"uscrpabgyepsb\"},{\"type\":\"tazqugxywpmueefj\",\"name\":\"wfqkquj\",\"value\":\"dsuyonobgla\",\"platform\":\"cq\",\"customized\":\"tcc\",\"defaultValue\":\"g\"}]}],\"cdieConfigProps\":[{\"engineName\":\"xy\",\"engineVersion\":\"lmoyrx\",\"applicationConfigs\":[{\"type\":\"fudwpznt\",\"name\":\"hdzhlrqj\",\"value\":\"hckfrlhrx\",\"platform\":\"bkyvp\",\"customized\":\"ca\",\"defaultValue\":\"uzbpzkafku\"},{\"type\":\"b\",\"name\":\"rnwb\",\"value\":\"ehhseyvjusrts\",\"platform\":\"hspkdeemao\",\"customized\":\"mx\",\"defaultValue\":\"gkvtmelmqkrhah\"},{\"type\":\"ljuahaquhcdh\",\"name\":\"duala\",\"value\":\"xqpvfadmw\",\"platform\":\"rcrgvx\",\"customized\":\"vgomz\",\"defaultValue\":\"fmisg\"},{\"type\":\"bnbbeldawkz\",\"name\":\"ali\",\"value\":\"urqhaka\",\"platform\":\"hashsfwxosow\",\"customized\":\"xcug\",\"defaultValue\":\"cjooxdjebwpucwwf\"}]}]}}") .toObject(ServerlessMetadataResponseInner.class); Assertions.assertEquals(RuntimeType.SERVERLESS, model.type()); Assertions.assertEquals(PlatformType.AZURE, model.serverlessConfigProperties().platform()); - Assertions.assertEquals("kxfbkpycgklwndn", model.serverlessConfigProperties().applicationTypes().get(0).name()); - Assertions.assertEquals("dauwhvylwzbtd", model.serverlessConfigProperties().applicationTypes().get(0).value()); - Assertions.assertEquals("znbmpowuwprzq", model.serverlessConfigProperties().computeUnits().get(0).name()); - Assertions.assertEquals("ualupjmkh", model.serverlessConfigProperties().computeUnits().get(0).value().get(0)); - Assertions.assertEquals("rtzju", model.serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("zmh", model.serverlessConfigProperties().regions().get(0).id()); - Assertions.assertEquals("ongmtsa", model.serverlessConfigProperties().regions().get(0).name()); - Assertions.assertEquals("mefqsgzvahapjyzh", - model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineName()); - Assertions.assertEquals("vgqzcjrvxd", + Assertions.assertEquals("unmmq", model.serverlessConfigProperties().applicationTypes().get(0).name()); + Assertions.assertEquals("yxzk", model.serverlessConfigProperties().applicationTypes().get(0).value()); + Assertions.assertEquals("uko", model.serverlessConfigProperties().computeUnits().get(0).name()); + Assertions.assertEquals("axuconuq", model.serverlessConfigProperties().computeUnits().get(0).value().get(0)); + Assertions.assertEquals("xgvcl", model.serverlessConfigProperties().executionTimeout()); + Assertions.assertEquals("ncghkje", model.serverlessConfigProperties().regions().get(0).id()); + Assertions.assertEquals("zhbijhtxfv", model.serverlessConfigProperties().regions().get(0).name()); + Assertions.assertEquals("pnq", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineName()); + Assertions.assertEquals("ahmgkbrp", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineVersion()); - Assertions.assertEquals("lmwlxkvugfhzo", + Assertions.assertEquals("dhibnuq", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("awjvzunluthnnp", + Assertions.assertEquals("kpikadrgvt", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("nxipeil", + Assertions.assertEquals("agnb", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("jzuaejxdultskzbb", + Assertions.assertEquals("ynhijggme", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("dzumveekg", + Assertions.assertEquals("fsiarbutr", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("wozuhkf", + Assertions.assertEquals("vpnazzm", model.serverlessRuntimeConfigProperties() .cdiConfigProps() .get(0) .applicationConfigs() .get(0) .defaultValue()); - Assertions.assertEquals("gureodkwobdag", - model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineName()); - Assertions.assertEquals("tibqdxbxwakb", + Assertions.assertEquals("xy", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineName()); + Assertions.assertEquals("lmoyrx", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineVersion()); - Assertions.assertEquals("qxn", + Assertions.assertEquals("fudwpznt", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("lkzgxhuriplbp", + Assertions.assertEquals("hdzhlrqj", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("dxunkbebxmubyyn", + Assertions.assertEquals("hckfrlhrx", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("wlrbqtkoievseo", + Assertions.assertEquals("bkyvp", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("gqrlltmuwla", + Assertions.assertEquals("ca", model.serverlessRuntimeConfigProperties() .cdieConfigProps() .get(0) .applicationConfigs() .get(0) .customized()); - Assertions.assertEquals("wzizxbmpgcjefuzm", + Assertions.assertEquals("uzbpzkafku", model.serverlessRuntimeConfigProperties() .cdieConfigProps() .get(0) diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesTests.java index 67c6291b59d9..5bbefbc6a4f0 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesTests.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.informaticadatamanagement.generated; @@ -15,113 +15,136 @@ public final class ServerlessRuntimeConfigPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessRuntimeConfigProperties model = BinaryData.fromString( - "{\"cdiConfigProps\":[{\"engineName\":\"wwiftohqkvpuv\",\"engineVersion\":\"sgplsakn\",\"applicationConfigs\":[{\"type\":\"fsynljphuop\",\"name\":\"odlqiyntor\",\"value\":\"ihleos\",\"platform\":\"swsrms\",\"customized\":\"yzrpzbchckqqzq\",\"defaultValue\":\"ox\"}]},{\"engineName\":\"ysuiizynkedya\",\"engineVersion\":\"rwyhqmibzyhwitsm\",\"applicationConfigs\":[{\"type\":\"yynpcdpumnzgmwz\",\"name\":\"mabiknsorgjhxb\",\"value\":\"dtlwwrlkd\",\"platform\":\"tncvokot\",\"customized\":\"lxdy\",\"defaultValue\":\"gsyocogj\"}]}],\"cdieConfigProps\":[{\"engineName\":\"tbnnha\",\"engineVersion\":\"oocrkvcikhnv\",\"applicationConfigs\":[{\"type\":\"mqg\",\"name\":\"qqu\",\"value\":\"zikywgg\",\"platform\":\"kallatmel\",\"customized\":\"uipiccjzk\",\"defaultValue\":\"ivgvvcna\"},{\"type\":\"rhyrnxxmueed\",\"name\":\"drd\",\"value\":\"stkwqqtch\",\"platform\":\"alm\",\"customized\":\"mtdaa\",\"defaultValue\":\"gdv\"},{\"type\":\"vgpiohgwxrt\",\"name\":\"udxepxgyqagv\",\"value\":\"vmnpkukghimdblx\",\"platform\":\"wi\",\"customized\":\"fnjhfjxwmszkkfo\",\"defaultValue\":\"rey\"},{\"type\":\"kzikfjawneaivxwc\",\"name\":\"elpcirelsfeaenwa\",\"value\":\"fatkld\",\"platform\":\"xbjhwuaanozjosph\",\"customized\":\"oulpjrv\",\"defaultValue\":\"ag\"}]},{\"engineName\":\"rvimjwosytxitcsk\",\"engineVersion\":\"cktqumiekkezzi\",\"applicationConfigs\":[{\"type\":\"ly\",\"name\":\"jhdgqggebdunyga\",\"value\":\"qidbqfatpxllrxcy\",\"platform\":\"moadsuvarmy\",\"customized\":\"dmjsjqb\",\"defaultValue\":\"hhyxxrw\"},{\"type\":\"yc\",\"name\":\"duhpk\",\"value\":\"kgymareqnajxqug\",\"platform\":\"hky\",\"customized\":\"ubeddg\",\"defaultValue\":\"sofwqmzqalkrmnji\"},{\"type\":\"pxacqqudfn\",\"name\":\"yxbaaabjyvayf\",\"value\":\"imrzrtuzqog\",\"platform\":\"exn\",\"customized\":\"vfdnwnwmewzsyyce\",\"defaultValue\":\"zsoibjudpfrxtr\"}]}]}") + "{\"cdiConfigProps\":[{\"engineName\":\"qbex\",\"engineVersion\":\"mcqibycnojv\",\"applicationConfigs\":[{\"type\":\"mefqsgzvahapjyzh\",\"name\":\"vgqzcjrvxd\",\"value\":\"zlmwlxkvugfhz\",\"platform\":\"vawjvzunlu\",\"customized\":\"hnnpr\",\"defaultValue\":\"xipeilpjzuaejx\"},{\"type\":\"ultskzbbtdz\",\"name\":\"mv\",\"value\":\"ekg\",\"platform\":\"wozuhkf\",\"customized\":\"bsjyofdx\",\"defaultValue\":\"uusdttouwa\"},{\"type\":\"oekqvk\",\"name\":\"lns\",\"value\":\"vbxwyjsflhh\",\"platform\":\"aalnjixi\",\"customized\":\"xyawj\",\"defaultValue\":\"yaqcslyjpkiidz\"},{\"type\":\"exznelixhnr\",\"name\":\"tfolhbnx\",\"value\":\"nalaulppg\",\"platform\":\"dtpnapnyiropuhp\",\"customized\":\"gvpgy\",\"defaultValue\":\"gqgitxmedjvcsl\"}]},{\"engineName\":\"n\",\"engineVersion\":\"wwncwzzhxgk\",\"applicationConfigs\":[{\"type\":\"mgucna\",\"name\":\"kteo\",\"value\":\"llwptfdy\",\"platform\":\"pfqbuaceopzf\",\"customized\":\"rhhuaopppcqeqx\",\"defaultValue\":\"lzdahzxctobgbkdm\"},{\"type\":\"izpost\",\"name\":\"grcfb\",\"value\":\"nrmfqjhhk\",\"platform\":\"bpvjymjhx\",\"customized\":\"j\",\"defaultValue\":\"n\"}]},{\"engineName\":\"u\",\"engineVersion\":\"ivkrtsw\",\"applicationConfigs\":[{\"type\":\"qzvszjf\",\"name\":\"uvjfdxxive\",\"value\":\"vtcqaqtdo\",\"platform\":\"mcbxvwvxysl\",\"customized\":\"bhsfxob\",\"defaultValue\":\"ytkblmpew\"},{\"type\":\"wfbkrvrns\",\"name\":\"shqjohxcrsbf\",\"value\":\"vasrruvwb\",\"platform\":\"sqfsubcgjbirxb\",\"customized\":\"ybsrfbjfdtwss\",\"defaultValue\":\"t\"},{\"type\":\"tpvjzbexilzznfqq\",\"name\":\"vwpm\",\"value\":\"taruoujmkcj\",\"platform\":\"wqytjrybnwjewgdr\",\"customized\":\"ervnaenqpehi\",\"defaultValue\":\"doy\"}]},{\"engineName\":\"mifthnzdnd\",\"engineVersion\":\"l\",\"applicationConfigs\":[{\"type\":\"ayqigynduhav\",\"name\":\"qlkth\",\"value\":\"maqolbgycduie\",\"platform\":\"tgccymvaolpss\",\"customized\":\"qlfmmdnbb\",\"defaultValue\":\"lzpswiydm\"},{\"type\":\"wyhzdx\",\"name\":\"sadbz\",\"value\":\"nvdfznuda\",\"platform\":\"dvxzbncblylpst\",\"customized\":\"bhhxsrzdzuc\",\"defaultValue\":\"rsc\"}]}],\"cdieConfigProps\":[{\"engineName\":\"nevf\",\"engineVersion\":\"wjmy\",\"applicationConfigs\":[{\"type\":\"dsslswt\",\"name\":\"weriofzpyqsem\",\"value\":\"abnetshh\",\"platform\":\"zhedplvwiw\",\"customized\":\"bmwmbesldnkw\",\"defaultValue\":\"tppjflcx\"}]}]}") .toObject(ServerlessRuntimeConfigProperties.class); - Assertions.assertEquals("wwiftohqkvpuv", model.cdiConfigProps().get(0).engineName()); - Assertions.assertEquals("sgplsakn", model.cdiConfigProps().get(0).engineVersion()); - Assertions.assertEquals("fsynljphuop", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("odlqiyntor", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("ihleos", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("swsrms", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("yzrpzbchckqqzq", - model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("ox", model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); - Assertions.assertEquals("tbnnha", model.cdieConfigProps().get(0).engineName()); - Assertions.assertEquals("oocrkvcikhnv", model.cdieConfigProps().get(0).engineVersion()); - Assertions.assertEquals("mqg", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("qqu", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("zikywgg", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("kallatmel", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("uipiccjzk", model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("ivgvvcna", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("qbex", model.cdiConfigProps().get(0).engineName()); + Assertions.assertEquals("mcqibycnojv", model.cdiConfigProps().get(0).engineVersion()); + Assertions.assertEquals("mefqsgzvahapjyzh", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("vgqzcjrvxd", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("zlmwlxkvugfhz", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("vawjvzunlu", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("hnnpr", model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("xipeilpjzuaejx", + model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("nevf", model.cdieConfigProps().get(0).engineName()); + Assertions.assertEquals("wjmy", model.cdieConfigProps().get(0).engineVersion()); + Assertions.assertEquals("dsslswt", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("weriofzpyqsem", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("abnetshh", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("zhedplvwiw", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("bmwmbesldnkw", + model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("tppjflcx", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ServerlessRuntimeConfigProperties model = new ServerlessRuntimeConfigProperties() .withCdiConfigProps(Arrays.asList( - new CdiConfigProps().withEngineName("wwiftohqkvpuv") - .withEngineVersion("sgplsakn") - .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("fsynljphuop") - .withName("odlqiyntor") - .withValue("ihleos") - .withPlatform("swsrms") - .withCustomized("yzrpzbchckqqzq") - .withDefaultValue("ox"))), - new CdiConfigProps().withEngineName("ysuiizynkedya") - .withEngineVersion("rwyhqmibzyhwitsm") - .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("yynpcdpumnzgmwz") - .withName("mabiknsorgjhxb") - .withValue("dtlwwrlkd") - .withPlatform("tncvokot") - .withCustomized("lxdy") - .withDefaultValue("gsyocogj"))))) - .withCdieConfigProps(Arrays.asList( - new CdiConfigProps().withEngineName("tbnnha") - .withEngineVersion("oocrkvcikhnv") + new CdiConfigProps().withEngineName("qbex") + .withEngineVersion("mcqibycnojv") .withApplicationConfigs(Arrays.asList( - new ApplicationConfigs().withType("mqg") - .withName("qqu") - .withValue("zikywgg") - .withPlatform("kallatmel") - .withCustomized("uipiccjzk") - .withDefaultValue("ivgvvcna"), - new ApplicationConfigs().withType("rhyrnxxmueed") - .withName("drd") - .withValue("stkwqqtch") - .withPlatform("alm") - .withCustomized("mtdaa") - .withDefaultValue("gdv"), - new ApplicationConfigs().withType("vgpiohgwxrt") - .withName("udxepxgyqagv") - .withValue("vmnpkukghimdblx") - .withPlatform("wi") - .withCustomized("fnjhfjxwmszkkfo") - .withDefaultValue("rey"), - new ApplicationConfigs().withType("kzikfjawneaivxwc") - .withName("elpcirelsfeaenwa") - .withValue("fatkld") - .withPlatform("xbjhwuaanozjosph") - .withCustomized("oulpjrv") - .withDefaultValue("ag"))), - new CdiConfigProps().withEngineName("rvimjwosytxitcsk") - .withEngineVersion("cktqumiekkezzi") + new ApplicationConfigs().withType("mefqsgzvahapjyzh") + .withName("vgqzcjrvxd") + .withValue("zlmwlxkvugfhz") + .withPlatform("vawjvzunlu") + .withCustomized("hnnpr") + .withDefaultValue("xipeilpjzuaejx"), + new ApplicationConfigs().withType("ultskzbbtdz") + .withName("mv") + .withValue("ekg") + .withPlatform("wozuhkf") + .withCustomized("bsjyofdx") + .withDefaultValue("uusdttouwa"), + new ApplicationConfigs().withType("oekqvk") + .withName("lns") + .withValue("vbxwyjsflhh") + .withPlatform("aalnjixi") + .withCustomized("xyawj") + .withDefaultValue("yaqcslyjpkiidz"), + new ApplicationConfigs().withType("exznelixhnr") + .withName("tfolhbnx") + .withValue("nalaulppg") + .withPlatform("dtpnapnyiropuhp") + .withCustomized("gvpgy") + .withDefaultValue("gqgitxmedjvcsl"))), + new CdiConfigProps().withEngineName("n") + .withEngineVersion("wwncwzzhxgk") .withApplicationConfigs(Arrays.asList( - new ApplicationConfigs().withType("ly") - .withName("jhdgqggebdunyga") - .withValue("qidbqfatpxllrxcy") - .withPlatform("moadsuvarmy") - .withCustomized("dmjsjqb") - .withDefaultValue("hhyxxrw"), - new ApplicationConfigs().withType("yc") - .withName("duhpk") - .withValue("kgymareqnajxqug") - .withPlatform("hky") - .withCustomized("ubeddg") - .withDefaultValue("sofwqmzqalkrmnji"), - new ApplicationConfigs().withType("pxacqqudfn") - .withName("yxbaaabjyvayf") - .withValue("imrzrtuzqog") - .withPlatform("exn") - .withCustomized("vfdnwnwmewzsyyce") - .withDefaultValue("zsoibjudpfrxtr"))))); + new ApplicationConfigs().withType("mgucna") + .withName("kteo") + .withValue("llwptfdy") + .withPlatform("pfqbuaceopzf") + .withCustomized("rhhuaopppcqeqx") + .withDefaultValue("lzdahzxctobgbkdm"), + new ApplicationConfigs().withType("izpost") + .withName("grcfb") + .withValue("nrmfqjhhk") + .withPlatform("bpvjymjhx") + .withCustomized("j") + .withDefaultValue("n"))), + new CdiConfigProps().withEngineName("u") + .withEngineVersion("ivkrtsw") + .withApplicationConfigs(Arrays.asList( + new ApplicationConfigs().withType("qzvszjf") + .withName("uvjfdxxive") + .withValue("vtcqaqtdo") + .withPlatform("mcbxvwvxysl") + .withCustomized("bhsfxob") + .withDefaultValue("ytkblmpew"), + new ApplicationConfigs().withType("wfbkrvrns") + .withName("shqjohxcrsbf") + .withValue("vasrruvwb") + .withPlatform("sqfsubcgjbirxb") + .withCustomized("ybsrfbjfdtwss") + .withDefaultValue("t"), + new ApplicationConfigs().withType("tpvjzbexilzznfqq") + .withName("vwpm") + .withValue("taruoujmkcj") + .withPlatform("wqytjrybnwjewgdr") + .withCustomized("ervnaenqpehi") + .withDefaultValue("doy"))), + new CdiConfigProps().withEngineName("mifthnzdnd") + .withEngineVersion("l") + .withApplicationConfigs(Arrays.asList( + new ApplicationConfigs().withType("ayqigynduhav") + .withName("qlkth") + .withValue("maqolbgycduie") + .withPlatform("tgccymvaolpss") + .withCustomized("qlfmmdnbb") + .withDefaultValue("lzpswiydm"), + new ApplicationConfigs().withType("wyhzdx") + .withName("sadbz") + .withValue("nvdfznuda") + .withPlatform("dvxzbncblylpst") + .withCustomized("bhhxsrzdzuc") + .withDefaultValue("rsc"))))) + .withCdieConfigProps(Arrays.asList(new CdiConfigProps().withEngineName("nevf") + .withEngineVersion("wjmy") + .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("dsslswt") + .withName("weriofzpyqsem") + .withValue("abnetshh") + .withPlatform("zhedplvwiw") + .withCustomized("bmwmbesldnkw") + .withDefaultValue("tppjflcx"))))); model = BinaryData.fromObject(model).toObject(ServerlessRuntimeConfigProperties.class); - Assertions.assertEquals("wwiftohqkvpuv", model.cdiConfigProps().get(0).engineName()); - Assertions.assertEquals("sgplsakn", model.cdiConfigProps().get(0).engineVersion()); - Assertions.assertEquals("fsynljphuop", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("odlqiyntor", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("ihleos", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("swsrms", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("yzrpzbchckqqzq", - model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("ox", model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); - Assertions.assertEquals("tbnnha", model.cdieConfigProps().get(0).engineName()); - Assertions.assertEquals("oocrkvcikhnv", model.cdieConfigProps().get(0).engineVersion()); - Assertions.assertEquals("mqg", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("qqu", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("zikywgg", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("kallatmel", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("uipiccjzk", model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("ivgvvcna", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("qbex", model.cdiConfigProps().get(0).engineName()); + Assertions.assertEquals("mcqibycnojv", model.cdiConfigProps().get(0).engineVersion()); + Assertions.assertEquals("mefqsgzvahapjyzh", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("vgqzcjrvxd", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("zlmwlxkvugfhz", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("vawjvzunlu", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("hnnpr", model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("xipeilpjzuaejx", + model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("nevf", model.cdieConfigProps().get(0).engineName()); + Assertions.assertEquals("wjmy", model.cdieConfigProps().get(0).engineVersion()); + Assertions.assertEquals("dsslswt", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("weriofzpyqsem", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("abnetshh", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("zhedplvwiw", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("bmwmbesldnkw", + model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("tppjflcx", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesUpdateTests.java index 50d32ebd0479..1e8ee28411aa 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesUpdateTests.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.informaticadatamanagement.generated; @@ -15,39 +15,124 @@ public final class ServerlessRuntimeConfigPropertiesUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessRuntimeConfigPropertiesUpdate model = BinaryData.fromString( - "{\"cdiConfigProps\":[{\"engineName\":\"htwdwrftswibyrcd\",\"engineVersion\":\"bhshfwpracstwity\",\"applicationConfigs\":[{\"type\":\"evxccedcp\",\"name\":\"md\",\"value\":\"odn\",\"platform\":\"zxltjcvn\",\"customized\":\"ltiugcxnavv\",\"defaultValue\":\"xqi\"},{\"type\":\"y\",\"name\":\"unyowxwl\",\"value\":\"djrkvfgbvfvpd\",\"platform\":\"odacizs\",\"customized\":\"q\",\"defaultValue\":\"hkr\"}]},{\"engineName\":\"ibdeibq\",\"engineVersion\":\"p\",\"applicationConfigs\":[{\"type\":\"ghvxndzwmkrefa\",\"name\":\"pjorwkqnyhg\",\"value\":\"ij\",\"platform\":\"jivfxzsjabib\",\"customized\":\"ystawfsdjpvkvp\",\"defaultValue\":\"jxbkzbzkdvn\"}]},{\"engineName\":\"jabudurgkakmo\",\"engineVersion\":\"zhjjklffhmouwq\",\"applicationConfigs\":[{\"type\":\"zrfze\",\"name\":\"yebizikayuh\",\"value\":\"lbjbsyb\",\"platform\":\"qwrvtldgmfp\",\"customized\":\"vm\",\"defaultValue\":\"ipaslthaqfxssmwu\"}]}],\"cdieConfigProps\":[{\"engineName\":\"dsrezpdrhneuyow\",\"engineVersion\":\"kdw\",\"applicationConfigs\":[{\"type\":\"i\",\"name\":\"ib\",\"value\":\"rcgp\",\"platform\":\"kpzi\",\"customized\":\"ejzanlfz\",\"defaultValue\":\"iavrm\"}]},{\"engineName\":\"zonokixrjqci\",\"engineVersion\":\"gzpfrla\",\"applicationConfigs\":[{\"type\":\"zrnw\",\"name\":\"iin\",\"value\":\"fpwpjylwbt\",\"platform\":\"h\",\"customized\":\"lsj\",\"defaultValue\":\"dhszfjv\"},{\"type\":\"bgofeljag\",\"name\":\"qmqhldvriii\",\"value\":\"jnalghf\",\"platform\":\"vtvsexsowueluq\",\"customized\":\"hahhxvrhmzkwpj\",\"defaultValue\":\"wws\"}]}]}") + "{\"cdiConfigProps\":[{\"engineName\":\"ebwnujhe\",\"engineVersion\":\"msbvdkcrodtjinf\",\"applicationConfigs\":[{\"type\":\"lfltka\",\"name\":\"jvefkdlfoakggkfp\",\"value\":\"gaowpulpqblylsyx\",\"platform\":\"qjnsjervtia\",\"customized\":\"xsdszuempsb\",\"defaultValue\":\"kfzbeyvpnqicvi\"},{\"type\":\"v\",\"name\":\"jjxd\",\"value\":\"rbuukzclewyhmlwp\",\"platform\":\"ztzp\",\"customized\":\"fn\",\"defaultValue\":\"ckw\"},{\"type\":\"fz\",\"name\":\"whxxbuyqax\",\"value\":\"feqztppriol\",\"platform\":\"or\",\"customized\":\"altol\",\"defaultValue\":\"ncwsob\"},{\"type\":\"wcsdbnwdcfhucq\",\"name\":\"pfuvglsbjjca\",\"value\":\"vxb\",\"platform\":\"t\",\"customized\":\"udutnco\",\"defaultValue\":\"mr\"}]},{\"engineName\":\"xqtvcofu\",\"engineVersion\":\"f\",\"applicationConfigs\":[{\"type\":\"kgjubgdknnqvsazn\",\"name\":\"n\",\"value\":\"orudsgsa\",\"platform\":\"mkycgra\",\"customized\":\"wjue\",\"defaultValue\":\"aeburuvdmo\"}]},{\"engineName\":\"s\",\"engineVersion\":\"zlxwabmqoefkifr\",\"applicationConfigs\":[{\"type\":\"puqujmqlgkfbtn\",\"name\":\"oaongbjc\",\"value\":\"tujitcjedft\",\"platform\":\"waezkojvd\",\"customized\":\"pzfoqoui\",\"defaultValue\":\"ybxarzgszu\"},{\"type\":\"oxciqopidoamcio\",\"name\":\"hkh\",\"value\":\"zxkhnzbonlwnto\",\"platform\":\"gokdwbwhks\",\"customized\":\"zcmrvexztvb\",\"defaultValue\":\"qgsfraoyzkoow\"}]}],\"cdieConfigProps\":[{\"engineName\":\"nguxawqaldsy\",\"engineVersion\":\"uximerqfobw\",\"applicationConfigs\":[{\"type\":\"nkbykutwpfhp\",\"name\":\"gmhrskdsnfdsdoak\",\"value\":\"tdlmkkzevd\",\"platform\":\"hewpusdsttwv\",\"customized\":\"gvbbejdcng\",\"defaultValue\":\"qmoa\"},{\"type\":\"ufgmjzrwrdg\",\"name\":\"twaenuuzko\",\"value\":\"bminrfdwoyuhhzi\",\"platform\":\"iefozbhdmsml\",\"customized\":\"zqhof\",\"defaultValue\":\"rmaequ\"},{\"type\":\"ah\",\"name\":\"icslfaoq\",\"value\":\"piyylhalnswhccsp\",\"platform\":\"kaivwit\",\"customized\":\"scywuggwoluhc\",\"defaultValue\":\"bwemhairs\"},{\"type\":\"rgzdwmsweyp\",\"name\":\"w\",\"value\":\"xggicccnxqhuexmk\",\"platform\":\"tlstvlzywem\",\"customized\":\"zrncsdt\",\"defaultValue\":\"lusiy\"}]},{\"engineName\":\"bsfgytguslfea\",\"engineVersion\":\"cy\",\"applicationConfigs\":[{\"type\":\"ukyhejhzis\",\"name\":\"gfpelolppvksrpqv\",\"value\":\"jzraehtwdwrf\",\"platform\":\"swibyr\",\"customized\":\"dl\",\"defaultValue\":\"h\"},{\"type\":\"hfwpracstwit\",\"name\":\"khevxccedc\",\"value\":\"nmdyodnwzxl\",\"platform\":\"jc\",\"customized\":\"nhltiugcxn\",\"defaultValue\":\"vvwxqi\"},{\"type\":\"y\",\"name\":\"unyowxwl\",\"value\":\"djrkvfgbvfvpd\",\"platform\":\"odacizs\",\"customized\":\"q\",\"defaultValue\":\"hkr\"}]},{\"engineName\":\"ibdeibq\",\"engineVersion\":\"p\",\"applicationConfigs\":[{\"type\":\"ghvxndzwmkrefa\",\"name\":\"pjorwkqnyhg\",\"value\":\"ij\",\"platform\":\"jivfxzsjabib\",\"customized\":\"ystawfsdjpvkvp\",\"defaultValue\":\"jxbkzbzkdvn\"}]},{\"engineName\":\"jabudurgkakmo\",\"engineVersion\":\"zhjjklffhmouwq\",\"applicationConfigs\":[{\"type\":\"zrfze\",\"name\":\"yebizikayuh\",\"value\":\"lbjbsyb\",\"platform\":\"qwrvtldgmfp\",\"customized\":\"vm\",\"defaultValue\":\"ipaslthaqfxssmwu\"}]}]}") .toObject(ServerlessRuntimeConfigPropertiesUpdate.class); - Assertions.assertEquals("htwdwrftswibyrcd", model.cdiConfigProps().get(0).engineName()); - Assertions.assertEquals("bhshfwpracstwity", model.cdiConfigProps().get(0).engineVersion()); - Assertions.assertEquals("evxccedcp", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("md", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("odn", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("zxltjcvn", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("ltiugcxnavv", model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("xqi", model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); - Assertions.assertEquals("dsrezpdrhneuyow", model.cdieConfigProps().get(0).engineName()); - Assertions.assertEquals("kdw", model.cdieConfigProps().get(0).engineVersion()); - Assertions.assertEquals("i", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("ib", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("rcgp", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("kpzi", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("ejzanlfz", model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("iavrm", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("ebwnujhe", model.cdiConfigProps().get(0).engineName()); + Assertions.assertEquals("msbvdkcrodtjinf", model.cdiConfigProps().get(0).engineVersion()); + Assertions.assertEquals("lfltka", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("jvefkdlfoakggkfp", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("gaowpulpqblylsyx", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("qjnsjervtia", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("xsdszuempsb", model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("kfzbeyvpnqicvi", + model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("nguxawqaldsy", model.cdieConfigProps().get(0).engineName()); + Assertions.assertEquals("uximerqfobw", model.cdieConfigProps().get(0).engineVersion()); + Assertions.assertEquals("nkbykutwpfhp", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("gmhrskdsnfdsdoak", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("tdlmkkzevd", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("hewpusdsttwv", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("gvbbejdcng", model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("qmoa", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ServerlessRuntimeConfigPropertiesUpdate model = new ServerlessRuntimeConfigPropertiesUpdate() .withCdiConfigProps(Arrays.asList( - new CdiConfigProps().withEngineName("htwdwrftswibyrcd") - .withEngineVersion("bhshfwpracstwity") + new CdiConfigProps().withEngineName("ebwnujhe") + .withEngineVersion("msbvdkcrodtjinf") .withApplicationConfigs(Arrays.asList( - new ApplicationConfigs().withType("evxccedcp") - .withName("md") - .withValue("odn") - .withPlatform("zxltjcvn") - .withCustomized("ltiugcxnavv") - .withDefaultValue("xqi"), + new ApplicationConfigs().withType("lfltka") + .withName("jvefkdlfoakggkfp") + .withValue("gaowpulpqblylsyx") + .withPlatform("qjnsjervtia") + .withCustomized("xsdszuempsb") + .withDefaultValue("kfzbeyvpnqicvi"), + new ApplicationConfigs().withType("v") + .withName("jjxd") + .withValue("rbuukzclewyhmlwp") + .withPlatform("ztzp") + .withCustomized("fn") + .withDefaultValue("ckw"), + new ApplicationConfigs().withType("fz") + .withName("whxxbuyqax") + .withValue("feqztppriol") + .withPlatform("or") + .withCustomized("altol") + .withDefaultValue("ncwsob"), + new ApplicationConfigs().withType("wcsdbnwdcfhucq") + .withName("pfuvglsbjjca") + .withValue("vxb") + .withPlatform("t") + .withCustomized("udutnco") + .withDefaultValue("mr"))), + new CdiConfigProps().withEngineName("xqtvcofu") + .withEngineVersion("f") + .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("kgjubgdknnqvsazn") + .withName("n") + .withValue("orudsgsa") + .withPlatform("mkycgra") + .withCustomized("wjue") + .withDefaultValue("aeburuvdmo"))), + new CdiConfigProps().withEngineName("s") + .withEngineVersion("zlxwabmqoefkifr") + .withApplicationConfigs(Arrays.asList( + new ApplicationConfigs().withType("puqujmqlgkfbtn") + .withName("oaongbjc") + .withValue("tujitcjedft") + .withPlatform("waezkojvd") + .withCustomized("pzfoqoui") + .withDefaultValue("ybxarzgszu"), + new ApplicationConfigs().withType("oxciqopidoamcio") + .withName("hkh") + .withValue("zxkhnzbonlwnto") + .withPlatform("gokdwbwhks") + .withCustomized("zcmrvexztvb") + .withDefaultValue("qgsfraoyzkoow"))))) + .withCdieConfigProps(Arrays.asList( + new CdiConfigProps().withEngineName("nguxawqaldsy") + .withEngineVersion("uximerqfobw") + .withApplicationConfigs(Arrays.asList( + new ApplicationConfigs().withType("nkbykutwpfhp") + .withName("gmhrskdsnfdsdoak") + .withValue("tdlmkkzevd") + .withPlatform("hewpusdsttwv") + .withCustomized("gvbbejdcng") + .withDefaultValue("qmoa"), + new ApplicationConfigs().withType("ufgmjzrwrdg") + .withName("twaenuuzko") + .withValue("bminrfdwoyuhhzi") + .withPlatform("iefozbhdmsml") + .withCustomized("zqhof") + .withDefaultValue("rmaequ"), + new ApplicationConfigs().withType("ah") + .withName("icslfaoq") + .withValue("piyylhalnswhccsp") + .withPlatform("kaivwit") + .withCustomized("scywuggwoluhc") + .withDefaultValue("bwemhairs"), + new ApplicationConfigs().withType("rgzdwmsweyp") + .withName("w") + .withValue("xggicccnxqhuexmk") + .withPlatform("tlstvlzywem") + .withCustomized("zrncsdt") + .withDefaultValue("lusiy"))), + new CdiConfigProps().withEngineName("bsfgytguslfea") + .withEngineVersion("cy") + .withApplicationConfigs(Arrays.asList( + new ApplicationConfigs().withType("ukyhejhzis") + .withName("gfpelolppvksrpqv") + .withValue("jzraehtwdwrf") + .withPlatform("swibyr") + .withCustomized("dl") + .withDefaultValue("h"), + new ApplicationConfigs().withType("hfwpracstwit") + .withName("khevxccedc") + .withValue("nmdyodnwzxl") + .withPlatform("jc") + .withCustomized("nhltiugcxn") + .withDefaultValue("vvwxqi"), new ApplicationConfigs().withType("y") .withName("unyowxwl") .withValue("djrkvfgbvfvpd") @@ -69,47 +154,24 @@ public void testSerialize() throws Exception { .withValue("lbjbsyb") .withPlatform("qwrvtldgmfp") .withCustomized("vm") - .withDefaultValue("ipaslthaqfxssmwu"))))) - .withCdieConfigProps(Arrays.asList( - new CdiConfigProps().withEngineName("dsrezpdrhneuyow") - .withEngineVersion("kdw") - .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("i") - .withName("ib") - .withValue("rcgp") - .withPlatform("kpzi") - .withCustomized("ejzanlfz") - .withDefaultValue("iavrm"))), - new CdiConfigProps().withEngineName("zonokixrjqci") - .withEngineVersion("gzpfrla") - .withApplicationConfigs(Arrays.asList( - new ApplicationConfigs().withType("zrnw") - .withName("iin") - .withValue("fpwpjylwbt") - .withPlatform("h") - .withCustomized("lsj") - .withDefaultValue("dhszfjv"), - new ApplicationConfigs().withType("bgofeljag") - .withName("qmqhldvriii") - .withValue("jnalghf") - .withPlatform("vtvsexsowueluq") - .withCustomized("hahhxvrhmzkwpj") - .withDefaultValue("wws"))))); + .withDefaultValue("ipaslthaqfxssmwu"))))); model = BinaryData.fromObject(model).toObject(ServerlessRuntimeConfigPropertiesUpdate.class); - Assertions.assertEquals("htwdwrftswibyrcd", model.cdiConfigProps().get(0).engineName()); - Assertions.assertEquals("bhshfwpracstwity", model.cdiConfigProps().get(0).engineVersion()); - Assertions.assertEquals("evxccedcp", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("md", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("odn", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("zxltjcvn", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("ltiugcxnavv", model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("xqi", model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); - Assertions.assertEquals("dsrezpdrhneuyow", model.cdieConfigProps().get(0).engineName()); - Assertions.assertEquals("kdw", model.cdieConfigProps().get(0).engineVersion()); - Assertions.assertEquals("i", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("ib", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("rcgp", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("kpzi", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("ejzanlfz", model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("iavrm", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("ebwnujhe", model.cdiConfigProps().get(0).engineName()); + Assertions.assertEquals("msbvdkcrodtjinf", model.cdiConfigProps().get(0).engineVersion()); + Assertions.assertEquals("lfltka", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("jvefkdlfoakggkfp", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("gaowpulpqblylsyx", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("qjnsjervtia", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("xsdszuempsb", model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("kfzbeyvpnqicvi", + model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("nguxawqaldsy", model.cdieConfigProps().get(0).engineName()); + Assertions.assertEquals("uximerqfobw", model.cdieConfigProps().get(0).engineVersion()); + Assertions.assertEquals("nkbykutwpfhp", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("gmhrskdsnfdsdoak", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("tdlmkkzevd", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("hewpusdsttwv", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("gvbbejdcng", model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("qmoa", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeDependencyTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeDependencyTests.java index b08e3bc4733b..77169d97e190 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeDependencyTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeDependencyTests.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.informaticadatamanagement.generated; @@ -12,13 +12,13 @@ public final class ServerlessRuntimeDependencyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessRuntimeDependency model = BinaryData.fromString( - "{\"id\":\"lvdnkfx\",\"appContextId\":\"semdwzrmu\",\"path\":\"apfcqdpsq\",\"documentType\":\"qvpsvuoymg\",\"description\":\"celve\",\"lastUpdatedTime\":\"rypqlmfeo\"}") + "{\"id\":\"rgz\",\"appContextId\":\"frl\",\"path\":\"zszrnwoiindfpw\",\"documentType\":\"jylwbtlhflsj\",\"description\":\"dhszfjv\",\"lastUpdatedTime\":\"bgofeljag\"}") .toObject(ServerlessRuntimeDependency.class); - Assertions.assertEquals("lvdnkfx", model.id()); - Assertions.assertEquals("semdwzrmu", model.appContextId()); - Assertions.assertEquals("apfcqdpsq", model.path()); - Assertions.assertEquals("qvpsvuoymg", model.documentType()); - Assertions.assertEquals("celve", model.description()); - Assertions.assertEquals("rypqlmfeo", model.lastUpdatedTime()); + Assertions.assertEquals("rgz", model.id()); + Assertions.assertEquals("frl", model.appContextId()); + Assertions.assertEquals("zszrnwoiindfpw", model.path()); + Assertions.assertEquals("jylwbtlhflsj", model.documentType()); + Assertions.assertEquals("dhszfjv", model.description()); + Assertions.assertEquals("bgofeljag", model.lastUpdatedTime()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileTests.java index 8b5cae191b44..ddf99fa6a242 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileTests.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.informaticadatamanagement.generated; @@ -13,22 +13,22 @@ public final class ServerlessRuntimeNetworkProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessRuntimeNetworkProfile model = BinaryData.fromString( - "{\"networkInterfaceConfiguration\":{\"vnetId\":\"kszzcmrvexztv\",\"subnetId\":\"t\",\"vnetResourceGuid\":\"sfraoyzko\"}}") + "{\"networkInterfaceConfiguration\":{\"vnetId\":\"ohgwxrtfudxepxg\",\"subnetId\":\"qagvrvm\",\"vnetResourceGuid\":\"k\"}}") .toObject(ServerlessRuntimeNetworkProfile.class); - Assertions.assertEquals("kszzcmrvexztv", model.networkInterfaceConfiguration().vnetId()); - Assertions.assertEquals("t", model.networkInterfaceConfiguration().subnetId()); - Assertions.assertEquals("sfraoyzko", model.networkInterfaceConfiguration().vnetResourceGuid()); + Assertions.assertEquals("ohgwxrtfudxepxg", model.networkInterfaceConfiguration().vnetId()); + Assertions.assertEquals("qagvrvm", model.networkInterfaceConfiguration().subnetId()); + Assertions.assertEquals("k", model.networkInterfaceConfiguration().vnetResourceGuid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ServerlessRuntimeNetworkProfile model = new ServerlessRuntimeNetworkProfile() - .withNetworkInterfaceConfiguration(new NetworkInterfaceConfiguration().withVnetId("kszzcmrvexztv") - .withSubnetId("t") - .withVnetResourceGuid("sfraoyzko")); + .withNetworkInterfaceConfiguration(new NetworkInterfaceConfiguration().withVnetId("ohgwxrtfudxepxg") + .withSubnetId("qagvrvm") + .withVnetResourceGuid("k")); model = BinaryData.fromObject(model).toObject(ServerlessRuntimeNetworkProfile.class); - Assertions.assertEquals("kszzcmrvexztv", model.networkInterfaceConfiguration().vnetId()); - Assertions.assertEquals("t", model.networkInterfaceConfiguration().subnetId()); - Assertions.assertEquals("sfraoyzko", model.networkInterfaceConfiguration().vnetResourceGuid()); + Assertions.assertEquals("ohgwxrtfudxepxg", model.networkInterfaceConfiguration().vnetId()); + Assertions.assertEquals("qagvrvm", model.networkInterfaceConfiguration().subnetId()); + Assertions.assertEquals("k", model.networkInterfaceConfiguration().vnetResourceGuid()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileUpdateTests.java index 99d7ccd92abd..9dad4e2c80ea 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileUpdateTests.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.informaticadatamanagement.generated; @@ -13,22 +13,22 @@ public final class ServerlessRuntimeNetworkProfileUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessRuntimeNetworkProfileUpdate model = BinaryData.fromString( - "{\"networkInterfaceConfiguration\":{\"vnetId\":\"stvlzywemhzrnc\",\"subnetId\":\"tclusiypbsfgy\",\"vnetResourceGuid\":\"uslfead\"}}") + "{\"networkInterfaceConfiguration\":{\"vnetId\":\"oaxoruzfgsqu\",\"subnetId\":\"xrxxlep\",\"vnetResourceGuid\":\"amxjezwlw\"}}") .toObject(ServerlessRuntimeNetworkProfileUpdate.class); - Assertions.assertEquals("stvlzywemhzrnc", model.networkInterfaceConfiguration().vnetId()); - Assertions.assertEquals("tclusiypbsfgy", model.networkInterfaceConfiguration().subnetId()); - Assertions.assertEquals("uslfead", model.networkInterfaceConfiguration().vnetResourceGuid()); + Assertions.assertEquals("oaxoruzfgsqu", model.networkInterfaceConfiguration().vnetId()); + Assertions.assertEquals("xrxxlep", model.networkInterfaceConfiguration().subnetId()); + Assertions.assertEquals("amxjezwlw", model.networkInterfaceConfiguration().vnetResourceGuid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ServerlessRuntimeNetworkProfileUpdate model = new ServerlessRuntimeNetworkProfileUpdate() - .withNetworkInterfaceConfiguration(new NetworkInterfaceConfigurationUpdate().withVnetId("stvlzywemhzrnc") - .withSubnetId("tclusiypbsfgy") - .withVnetResourceGuid("uslfead")); + .withNetworkInterfaceConfiguration(new NetworkInterfaceConfigurationUpdate().withVnetId("oaxoruzfgsqu") + .withSubnetId("xrxxlep") + .withVnetResourceGuid("amxjezwlw")); model = BinaryData.fromObject(model).toObject(ServerlessRuntimeNetworkProfileUpdate.class); - Assertions.assertEquals("stvlzywemhzrnc", model.networkInterfaceConfiguration().vnetId()); - Assertions.assertEquals("tclusiypbsfgy", model.networkInterfaceConfiguration().subnetId()); - Assertions.assertEquals("uslfead", model.networkInterfaceConfiguration().vnetResourceGuid()); + Assertions.assertEquals("oaxoruzfgsqu", model.networkInterfaceConfiguration().vnetId()); + Assertions.assertEquals("xrxxlep", model.networkInterfaceConfiguration().subnetId()); + Assertions.assertEquals("amxjezwlw", model.networkInterfaceConfiguration().vnetResourceGuid()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeTagTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeTagTests.java index b7a1ac0742c6..d73379643d76 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeTagTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeTagTests.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.informaticadatamanagement.generated; @@ -12,16 +12,16 @@ public final class ServerlessRuntimeTagTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessRuntimeTag model - = BinaryData.fromString("{\"name\":\"a\",\"value\":\"hrskdsnfd\"}").toObject(ServerlessRuntimeTag.class); + = BinaryData.fromString("{\"name\":\"a\",\"value\":\"xwczelpcire\"}").toObject(ServerlessRuntimeTag.class); Assertions.assertEquals("a", model.name()); - Assertions.assertEquals("hrskdsnfd", model.value()); + Assertions.assertEquals("xwczelpcire", model.value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServerlessRuntimeTag model = new ServerlessRuntimeTag().withName("a").withValue("hrskdsnfd"); + ServerlessRuntimeTag model = new ServerlessRuntimeTag().withName("a").withValue("xwczelpcire"); model = BinaryData.fromObject(model).toObject(ServerlessRuntimeTag.class); Assertions.assertEquals("a", model.name()); - Assertions.assertEquals("hrskdsnfd", model.value()); + Assertions.assertEquals("xwczelpcire", model.value()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesWithResponseMockTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesWithResponseMockTests.java index e3a94c46c5a9..65fb5fc8bb23 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesWithResponseMockTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesWithResponseMockTests.java @@ -1,13 +1,13 @@ // 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.informaticadatamanagement.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -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.informaticadatamanagement.InformaticaDataManagementManager; import com.azure.resourcemanager.informaticadatamanagement.models.CheckDependenciesResponse; @@ -21,27 +21,26 @@ public final class ServerlessRuntimesCheckDependenciesWithResponseMockTests { @Test public void testCheckDependenciesWithResponse() throws Exception { String responseStr - = "{\"count\":1050448632,\"id\":\"o\",\"references\":[{\"id\":\"jhf\",\"appContextId\":\"mvec\",\"path\":\"ctxmwoteyowcluq\",\"documentType\":\"vekqvgqo\",\"description\":\"wifzmp\",\"lastUpdatedTime\":\"wyivqikf\"},{\"id\":\"cvhrfsp\",\"appContextId\":\"uagrttikteusqc\",\"path\":\"kvyklxubyjaffmm\",\"documentType\":\"bl\",\"description\":\"qcuubgqibrta\",\"lastUpdatedTime\":\"metttwgd\"},{\"id\":\"lqxihhrmooiz\",\"appContextId\":\"seypxiutcxapz\",\"path\":\"y\",\"documentType\":\"petogebjox\",\"description\":\"lhvnhlab\",\"lastUpdatedTime\":\"q\"},{\"id\":\"kkzjcjbtrga\",\"appContextId\":\"hvv\",\"path\":\"brxjjsto\",\"documentType\":\"beitpkx\",\"description\":\"tmo\",\"lastUpdatedTime\":\"bklftidgfcwqmpim\"}]}"; + = "{\"count\":1584203762,\"id\":\"z\",\"references\":[{\"id\":\"iglaecx\",\"appContextId\":\"dticokpvzml\",\"path\":\"t\",\"documentType\":\"ld\",\"description\":\"x\",\"lastUpdatedTime\":\"bf\"},{\"id\":\"rclnpkc\",\"appContextId\":\"ayzri\",\"path\":\"khyawfvjlboxqv\",\"documentType\":\"jlmxhomdynhd\",\"description\":\"digumbnr\",\"lastUpdatedTime\":\"auzzptjazysd\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); InformaticaDataManagementManager manager = InformaticaDataManagementManager.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)); CheckDependenciesResponse response = manager.serverlessRuntimes() - .checkDependenciesWithResponse("pe", "ojyqdhcuplcplcw", "hihihlhzdsqtzbsr", - com.azure.core.util.Context.NONE) + .checkDependenciesWithResponse("dmovzvfva", "wzqa", "f", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(1050448632, response.count()); - Assertions.assertEquals("o", response.id()); - Assertions.assertEquals("jhf", response.references().get(0).id()); - Assertions.assertEquals("mvec", response.references().get(0).appContextId()); - Assertions.assertEquals("ctxmwoteyowcluq", response.references().get(0).path()); - Assertions.assertEquals("vekqvgqo", response.references().get(0).documentType()); - Assertions.assertEquals("wifzmp", response.references().get(0).description()); - Assertions.assertEquals("wyivqikf", response.references().get(0).lastUpdatedTime()); + Assertions.assertEquals(1584203762, response.count()); + Assertions.assertEquals("z", response.id()); + Assertions.assertEquals("iglaecx", response.references().get(0).id()); + Assertions.assertEquals("dticokpvzml", response.references().get(0).appContextId()); + Assertions.assertEquals("t", response.references().get(0).path()); + Assertions.assertEquals("ld", response.references().get(0).documentType()); + Assertions.assertEquals("x", response.references().get(0).description()); + Assertions.assertEquals("bf", response.references().get(0).lastUpdatedTime()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeWitMockTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeWitMockTests.java index 4c2f3b33e0f2..f83bccc0daa1 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeWitMockTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeWitMockTests.java @@ -1,13 +1,13 @@ // 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.informaticadatamanagement.generated; import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -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.informaticadatamanagement.InformaticaDataManagementManager; import java.nio.charset.StandardCharsets; @@ -25,10 +25,11 @@ public void testStartFailedServerlessRuntimeWithResponse() throws Exception { InformaticaDataManagementManager manager = InformaticaDataManagementManager.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)); manager.serverlessRuntimes() - .startFailedServerlessRuntimeWithResponse("epgfew", "twly", "gncxykxhdj", com.azure.core.util.Context.NONE); + .startFailedServerlessRuntimeWithResponse("hezwwvaiq", "uvvfonkp", "hqyikvy", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsTests.java index bf6655620f5d..bb04db020e2e 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/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.informaticadatamanagement.generated; @@ -12,27 +12,27 @@ public final class UserDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserDetails model = BinaryData.fromString( - "{\"firstName\":\"eju\",\"lastName\":\"qawrlyxwj\",\"emailAddress\":\"prbnwbxgjvtbv\",\"upn\":\"sszdnru\",\"phoneNumber\":\"guhmuouqfpr\"}") + "{\"firstName\":\"wyiftyhxhur\",\"lastName\":\"ftyxolniw\",\"emailAddress\":\"cukjf\",\"upn\":\"iawxklry\",\"phoneNumber\":\"wckbasyypnd\"}") .toObject(UserDetails.class); - Assertions.assertEquals("eju", model.firstName()); - Assertions.assertEquals("qawrlyxwj", model.lastName()); - Assertions.assertEquals("prbnwbxgjvtbv", model.emailAddress()); - Assertions.assertEquals("sszdnru", model.upn()); - Assertions.assertEquals("guhmuouqfpr", model.phoneNumber()); + Assertions.assertEquals("wyiftyhxhur", model.firstName()); + Assertions.assertEquals("ftyxolniw", model.lastName()); + Assertions.assertEquals("cukjf", model.emailAddress()); + Assertions.assertEquals("iawxklry", model.upn()); + Assertions.assertEquals("wckbasyypnd", model.phoneNumber()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UserDetails model = new UserDetails().withFirstName("eju") - .withLastName("qawrlyxwj") - .withEmailAddress("prbnwbxgjvtbv") - .withUpn("sszdnru") - .withPhoneNumber("guhmuouqfpr"); + UserDetails model = new UserDetails().withFirstName("wyiftyhxhur") + .withLastName("ftyxolniw") + .withEmailAddress("cukjf") + .withUpn("iawxklry") + .withPhoneNumber("wckbasyypnd"); model = BinaryData.fromObject(model).toObject(UserDetails.class); - Assertions.assertEquals("eju", model.firstName()); - Assertions.assertEquals("qawrlyxwj", model.lastName()); - Assertions.assertEquals("prbnwbxgjvtbv", model.emailAddress()); - Assertions.assertEquals("sszdnru", model.upn()); - Assertions.assertEquals("guhmuouqfpr", model.phoneNumber()); + Assertions.assertEquals("wyiftyhxhur", model.firstName()); + Assertions.assertEquals("ftyxolniw", model.lastName()); + Assertions.assertEquals("cukjf", model.emailAddress()); + Assertions.assertEquals("iawxklry", model.upn()); + Assertions.assertEquals("wckbasyypnd", model.phoneNumber()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsUpdateTests.java index 153f9e460ae3..d4133e8b2ac3 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsUpdateTests.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.informaticadatamanagement.generated; @@ -12,27 +12,27 @@ public final class UserDetailsUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserDetailsUpdate model = BinaryData.fromString( - "{\"firstName\":\"pbuxwgipwhon\",\"lastName\":\"kgshwa\",\"emailAddress\":\"ixzbinjeputtmryw\",\"upn\":\"zoqftiyqzrnkcqvy\",\"phoneNumber\":\"whzlsicohoq\"}") + "{\"firstName\":\"j\",\"lastName\":\"ovm\",\"emailAddress\":\"kacspkw\",\"upn\":\"zdobpxjmflbvvnch\",\"phoneNumber\":\"cciw\"}") .toObject(UserDetailsUpdate.class); - Assertions.assertEquals("pbuxwgipwhon", model.firstName()); - Assertions.assertEquals("kgshwa", model.lastName()); - Assertions.assertEquals("ixzbinjeputtmryw", model.emailAddress()); - Assertions.assertEquals("zoqftiyqzrnkcqvy", model.upn()); - Assertions.assertEquals("whzlsicohoq", model.phoneNumber()); + Assertions.assertEquals("j", model.firstName()); + Assertions.assertEquals("ovm", model.lastName()); + Assertions.assertEquals("kacspkw", model.emailAddress()); + Assertions.assertEquals("zdobpxjmflbvvnch", model.upn()); + Assertions.assertEquals("cciw", model.phoneNumber()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UserDetailsUpdate model = new UserDetailsUpdate().withFirstName("pbuxwgipwhon") - .withLastName("kgshwa") - .withEmailAddress("ixzbinjeputtmryw") - .withUpn("zoqftiyqzrnkcqvy") - .withPhoneNumber("whzlsicohoq"); + UserDetailsUpdate model = new UserDetailsUpdate().withFirstName("j") + .withLastName("ovm") + .withEmailAddress("kacspkw") + .withUpn("zdobpxjmflbvvnch") + .withPhoneNumber("cciw"); model = BinaryData.fromObject(model).toObject(UserDetailsUpdate.class); - Assertions.assertEquals("pbuxwgipwhon", model.firstName()); - Assertions.assertEquals("kgshwa", model.lastName()); - Assertions.assertEquals("ixzbinjeputtmryw", model.emailAddress()); - Assertions.assertEquals("zoqftiyqzrnkcqvy", model.upn()); - Assertions.assertEquals("whzlsicohoq", model.phoneNumber()); + Assertions.assertEquals("j", model.firstName()); + Assertions.assertEquals("ovm", model.lastName()); + Assertions.assertEquals("kacspkw", model.emailAddress()); + Assertions.assertEquals("zdobpxjmflbvvnch", model.upn()); + Assertions.assertEquals("cciw", model.phoneNumber()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/tsp-location.yaml b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/tsp-location.yaml new file mode 100644 index 000000000000..778b917cfc7c --- /dev/null +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/informatica/Informatica.DataManagement.Management +commit: ba18c1e2e317e81a3146339bdc992b8ec589c8bc +repo: Azure/azure-rest-api-specs +additionalDirectories: