From e05ac239f463c919cd794cc0621997d720483c20 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 27 Jun 2024 04:05:14 +0000 Subject: [PATCH] CodeGen from PR 29598 in Azure/azure-rest-api-specs Merge f9eee8ad793d729ecf8fc0b5a6b31cce6698535a into 43f10d3b8bacd5fc6b01254b5050c613f26c3573 --- .../CHANGELOG.md | 4 +- .../README.md | 15 +- .../SAMPLE.md | 261 +++++- .../pom.xml | 6 +- .../InformaticaDataManagementManager.java | 18 +- ...nt.java => InformaticaDataManagement.java} | 24 +- .../fluent/OperationsClient.java | 2 +- .../fluent/OrganizationsClient.java | 132 +-- .../fluent/ServerlessRuntimesClient.java | 146 +-- .../CheckDependenciesResponseInner.java | 2 +- .../InformaticaOrganizationResourceInner.java | 2 +- ...rmaticaServerlessRuntimeResourceInner.java | 2 +- ...icaServerlessRuntimeResourceListInner.java | 12 +- .../fluent/models/OperationInner.java | 17 +- .../ServerlessMetadataResponseInner.java | 2 +- .../fluent/models/package-info.java | 3 +- .../fluent/package-info.java | 3 +- .../CheckDependenciesResponseImpl.java | 2 +- ... => InformaticaDataManagementBuilder.java} | 63 +- ...ava => InformaticaDataManagementImpl.java} | 60 +- .../InformaticaOrganizationResourceImpl.java | 18 +- ...ormaticaServerlessRuntimeResourceImpl.java | 22 +- ...ticaServerlessRuntimeResourceListImpl.java | 8 +- .../implementation/OperationImpl.java | 2 +- .../implementation/OperationsClientImpl.java | 22 +- .../implementation/OperationsImpl.java | 2 +- .../OrganizationsClientImpl.java | 850 +++++++++--------- .../implementation/OrganizationsImpl.java | 94 +- .../implementation/ResourceManagerUtils.java | 2 +- .../ServerlessMetadataResponseImpl.java | 2 +- .../ServerlessRuntimesClientImpl.java | 774 ++++++++-------- .../ServerlessRuntimesImpl.java | 58 +- .../implementation/package-info.java | 3 +- .../models/ActionType.java | 4 +- .../models/AdvancedCustomProperties.java | 2 +- .../models/ApplicationConfigs.java | 2 +- .../models/ApplicationType.java | 2 +- .../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 +- ...rmaticaOrganizationResourceListResult.java | 4 +- ...InformaticaOrganizationResourceUpdate.java | 2 +- .../models/InformaticaProperties.java | 2 +- ...nformaticaServerlessRuntimeProperties.java | 2 +- .../InformaticaServerlessRuntimeResource.java | 24 +- ...ormaticaServerlessRuntimeResourceList.java | 4 +- ...caServerlessRuntimeResourceListResult.java | 4 +- ...maticaServerlessRuntimeResourceUpdate.java | 2 +- .../models/LinkOrganization.java | 2 +- .../models/MarketplaceDetails.java | 15 +- .../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 | 8 +- .../models/OperationListResult.java | 23 +- .../models/Operations.java | 2 +- .../models/OrganizationProperties.java | 2 +- .../OrganizationPropertiesCustomUpdate.java | 2 +- .../models/Organizations.java | 102 +-- .../models/Origin.java | 2 +- .../models/PlatformType.java | 2 +- .../models/ProvisioningState.java | 2 +- .../models/RegionsMetadata.java | 2 +- .../models/RuntimeType.java | 2 +- .../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 +- .../generated/OperationsListSamples.java | 20 +- .../OrganizationsCreateOrUpdateSamples.java | 24 +- .../generated/OrganizationsDeleteSamples.java | 20 +- ...ationsGetAllServerlessRuntimesSamples.java | 21 +- ...rganizationsGetByResourceGroupSamples.java | 20 +- ...nizationsGetServerlessMetadataSamples.java | 20 +- ...ganizationsListByResourceGroupSamples.java | 20 +- .../generated/OrganizationsListSamples.java | 20 +- .../generated/OrganizationsUpdateSamples.java | 23 +- ...rlessRuntimesCheckDependenciesSamples.java | 21 +- ...rverlessRuntimesCreateOrUpdateSamples.java | 20 +- .../ServerlessRuntimesDeleteSamples.java | 6 +- .../ServerlessRuntimesGetSamples.java | 21 +- ...istByInformaticaOrganizationResourceS.java | 5 +- ...RuntimesServerlessResourceByIdSamples.java | 5 +- ...esStartFailedServerlessRuntimeSamples.java | 5 +- .../ServerlessRuntimesUpdateSamples.java | 24 +- .../generated/ApplicationConfigsTests.java | 41 - .../ApplicationTypeMetadataTests.java | 19 - .../generated/CdiConfigPropsTests.java | 56 -- .../CheckDependenciesResponseInnerTests.java | 26 - .../generated/CompanyDetailsTests.java | 41 - .../generated/CompanyDetailsUpdateTests.java | 41 - .../generated/ComputeUnitsMetadataTests.java | 19 - ...InfaRuntimeResourceFetchMetaDataTests.java | 44 - ...aServerlessFetchConfigPropertiesTests.java | 32 - ...maticaOrganizationResourceUpdateTests.java | 314 ------- .../generated/InformaticaPropertiesTests.java | 35 - ...rverlessRuntimeResourceListInnerTests.java | 57 -- .../generated/MarketplaceDetailsTests.java | 45 - .../MarketplaceDetailsUpdateTests.java | 45 - .../NetworkInterfaceConfigurationTests.java | 33 - ...workInterfaceConfigurationUpdateTests.java | 32 - .../generated/OfferDetailsTests.java | 41 - .../generated/OfferDetailsUpdateTests.java | 41 - .../generated/OperationDisplayTests.java | 22 - .../generated/OperationInnerTests.java | 24 - .../generated/OperationListResultTests.java | 25 - .../generated/OperationsListMockTests.java | 43 - ...ganizationPropertiesCustomUpdateTests.java | 427 --------- ...rverlessRuntimesWithResponseMockTests.java | 78 -- ...rverlessMetadataWithResponseMockTests.java | 113 --- .../generated/RegionsMetadataTests.java | 19 - .../ServerlessConfigPropertiesTests.java | 27 - .../ServerlessMetadataResponseInnerTests.java | 74 -- ...erverlessRuntimeConfigPropertiesTests.java | 150 ---- ...essRuntimeConfigPropertiesUpdateTests.java | 177 ---- .../ServerlessRuntimeDependencyTests.java | 24 - .../ServerlessRuntimeNetworkProfileTests.java | 34 - ...rlessRuntimeNetworkProfileUpdateTests.java | 34 - .../generated/ServerlessRuntimeTagTests.java | 27 - ...heckDependenciesWithResponseMockTests.java | 46 - .../generated/UserDetailsTests.java | 38 - .../generated/UserDetailsUpdateTests.java | 38 - 144 files changed, 1915 insertions(+), 3872 deletions(-) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/{DataManagementClient.java => InformaticaDataManagement.java} (83%) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/{DataManagementClientBuilder.java => InformaticaDataManagementBuilder.java} (62%) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/{DataManagementClientImpl.java => InformaticaDataManagementImpl.java} (91%) rename sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/{InfaRuntimeResourceFetchMetaData.java => InfaRuntimeResourceFetchMetadata.java} (82%) 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%) delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationConfigsTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationTypeMetadataTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CdiConfigPropsTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CheckDependenciesResponseInnerTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsUpdateTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ComputeUnitsMetadataTests.java delete 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/InfaServerlessFetchConfigPropertiesTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaOrganizationResourceUpdateTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaPropertiesTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaServerlessRuntimeResourceListInnerTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsUpdateTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationUpdateTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsUpdateTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationDisplayTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationInnerTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationListResultTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationsListMockTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationPropertiesCustomUpdateTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesWithResponseMockTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataWithResponseMockTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/RegionsMetadataTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessConfigPropertiesTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessMetadataResponseInnerTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesUpdateTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeDependencyTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileUpdateTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeTagTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesWithResponseMockTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsUpdateTests.java diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md index 76263d57ae3a5..2c03cef82c4fd 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2024-06-27) + +- 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). ### Features Added diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md index 17043e0b23172..5f7fbc7c95cf1 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. 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. 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). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-informaticadatamanagement - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) @@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen ### Authentication -By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables. +Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package. -- `AZURE_CLIENT_ID` for Azure client ID. -- `AZURE_TENANT_ID` for Azure tenant ID. -- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. +Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. - -With above configuration, `azure` client can be authenticated using the following code: +Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -97,6 +93,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/SAMPLE.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/SAMPLE.md index 5d99d7b294caf..430fa36e9085f 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/SAMPLE.md +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/SAMPLE.md @@ -35,7 +35,8 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/Operations_List_MaximumSet_Gen.json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Operations_List_MaximumSet_Gen.json */ /** * Sample code: Operations_List. @@ -46,6 +47,21 @@ public final class OperationsListSamples { 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/ + * Operations_List_MinimumSet_Gen.json + */ + /** + * Sample code: Operations_List_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void operationsListMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } } ``` @@ -67,7 +83,8 @@ import java.util.Map; */ public final class OrganizationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * Organizations_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -114,6 +131,25 @@ public final class OrganizationsCreateOrUpdateSamples { .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) { @@ -137,7 +173,8 @@ public final class OrganizationsCreateOrUpdateSamples { public final class OrganizationsDeleteSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/Organizations_Delete_MaximumSet_Gen.json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Organizations_Delete_MaximumSet_Gen.json */ /** * Sample code: Organizations_Delete. @@ -148,6 +185,21 @@ public final class OrganizationsDeleteSamples { 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); + } } ``` @@ -159,7 +211,24 @@ public final class OrganizationsDeleteSamples { */ public final class OrganizationsGetAllServerlessRuntimesSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json + */ + /** + * Sample code: Organizations_GetAllServerlessRuntimes_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void organizationsGetAllServerlessRuntimesMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.organizations() + .getAllServerlessRuntimesWithResponse("rgopenapi", "0", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json */ /** @@ -184,7 +253,23 @@ public final class OrganizationsGetAllServerlessRuntimesSamples { public final class OrganizationsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/Organizations_Get_MaximumSet_Gen.json + * 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); + } + + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Organizations_Get_MaximumSet_Gen.json */ /** * Sample code: Organizations_Get. @@ -206,7 +291,23 @@ public final class OrganizationsGetByResourceGroupSamples { */ public final class OrganizationsGetServerlessMetadataSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * 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); + } + + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * Organizations_GetServerlessMetadata_MaximumSet_Gen.json */ /** @@ -230,7 +331,8 @@ public final class OrganizationsGetServerlessMetadataSamples { */ public final class OrganizationsListSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * Organizations_ListBySubscription_MaximumSet_Gen.json */ /** @@ -242,6 +344,21 @@ public final class OrganizationsListSamples { 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); + } } ``` @@ -253,7 +370,23 @@ public final class OrganizationsListSamples { */ public final class OrganizationsListByResourceGroupSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * 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 */ /** @@ -286,7 +419,8 @@ import java.util.Map; public final class OrganizationsUpdateSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/Organizations_Update_MaximumSet_Gen.json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Organizations_Update_MaximumSet_Gen.json */ /** * Sample code: Organizations_Update. @@ -326,6 +460,24 @@ public final class OrganizationsUpdateSamples { .apply(); } + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Organizations_Update_MinimumSet_Gen.json + */ + /** + * Sample code: Organizations_Update_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void organizationsUpdateMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + InformaticaOrganizationResource resource = manager.organizations() + .getByResourceGroupWithResponse("rgopenapi", "-", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { @@ -348,7 +500,24 @@ public final class OrganizationsUpdateSamples { */ public final class ServerlessRuntimesCheckDependenciesSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * 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 */ /** @@ -385,7 +554,8 @@ import java.util.Arrays; */ public final class ServerlessRuntimesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -436,6 +606,21 @@ public final class ServerlessRuntimesCreateOrUpdateSamples { new ServerlessRuntimeUserContextProperties().withUserContextToken("fakeTokenPlaceholder"))) .create(); } + + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json + */ + /** + * Sample code: ServerlessRuntimes_CreateOrUpdate_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void serverlessRuntimesCreateOrUpdateMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.serverlessRuntimes().define("J").withExistingOrganization("rgopenapi", "-4Z__7").create(); + } } ``` @@ -448,8 +633,8 @@ public final class ServerlessRuntimesCreateOrUpdateSamples { public final class ServerlessRuntimesDeleteSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/ServerlessRuntimes_Delete_MaximumSet_Gen - * .json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * ServerlessRuntimes_Delete_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Delete. @@ -473,8 +658,8 @@ public final class ServerlessRuntimesDeleteSamples { public final class ServerlessRuntimesGetSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/ServerlessRuntimes_Get_MaximumSet_Gen. - * json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * ServerlessRuntimes_Get_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Get. @@ -485,6 +670,21 @@ public final class ServerlessRuntimesGetSamples { com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { 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/ + * ServerlessRuntimes_Get_MinimumSet_Gen.json + */ + /** + * Sample code: ServerlessRuntimes_Get_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void serverlessRuntimesGetMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.serverlessRuntimes().getWithResponse("rgopenapi", "YC", "___", com.azure.core.util.Context.NONE); + } } ``` @@ -496,7 +696,8 @@ public final class ServerlessRuntimesGetSamples { */ public final class ServerlessRuntimesListByInformaticaOrganizationResourceS { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json */ /** @@ -520,7 +721,8 @@ public final class ServerlessRuntimesListByInformaticaOrganizationResourceS { */ public final class ServerlessRuntimesServerlessResourceByIdSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json */ /** @@ -545,7 +747,8 @@ public final class ServerlessRuntimesServerlessResourceByIdSamples { */ public final class ServerlessRuntimesStartFailedServerlessRuntimeSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json */ /** @@ -584,8 +787,26 @@ import java.util.Arrays; public final class ServerlessRuntimesUpdateSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/ServerlessRuntimes_Update_MaximumSet_Gen - * .json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * ServerlessRuntimes_Update_MinimumSet_Gen.json + */ + /** + * Sample code: ServerlessRuntimes_Update_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void serverlessRuntimesUpdateMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + InformaticaServerlessRuntimeResource resource = manager.serverlessRuntimes() + .getWithResponse("rgopenapi", "_f--", "8Zr__", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * ServerlessRuntimes_Update_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Update. diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml index 385b065896c4e..9381f671f65f8 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 @@ Code generated by Microsoft (R) TypeSpec Code Generator. 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. + 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. https://github.com/Azure/azure-sdk-for-java 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 778eb7a840c20..ebee9183c92bb 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement; @@ -23,8 +23,8 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.informaticadatamanagement.fluent.DataManagementClient; -import com.azure.resourcemanager.informaticadatamanagement.implementation.DataManagementClientBuilder; +import com.azure.resourcemanager.informaticadatamanagement.fluent.InformaticaDataManagement; +import com.azure.resourcemanager.informaticadatamanagement.implementation.InformaticaDataManagementBuilder; import com.azure.resourcemanager.informaticadatamanagement.implementation.OperationsImpl; import com.azure.resourcemanager.informaticadatamanagement.implementation.OrganizationsImpl; import com.azure.resourcemanager.informaticadatamanagement.implementation.ServerlessRuntimesImpl; @@ -48,13 +48,13 @@ public final class InformaticaDataManagementManager { private ServerlessRuntimes serverlessRuntimes; - private final DataManagementClient clientObject; + private final InformaticaDataManagement 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 DataManagementClientBuilder().pipeline(httpPipeline) + this.clientObject = new InformaticaDataManagementBuilder().pipeline(httpPipeline) .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) .subscriptionId(profile.getSubscriptionId()) .defaultPollInterval(defaultPollInterval) @@ -297,12 +297,12 @@ public ServerlessRuntimes serverlessRuntimes() { } /** - * Gets wrapped service client DataManagementClient providing direct access to the underlying auto-generated API - * implementation, based on Azure REST API. + * Gets wrapped service client InformaticaDataManagement providing direct access to the underlying auto-generated + * API implementation, based on Azure REST API. * - * @return Wrapped service client DataManagementClient. + * @return Wrapped service client InformaticaDataManagement. */ - public DataManagementClient serviceClient() { + public InformaticaDataManagement serviceClient() { return this.clientObject; } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/DataManagementClient.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagement.java similarity index 83% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/DataManagementClient.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagement.java index e380763921731..557cfd925f4af 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/DataManagementClient.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagement.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.fluent; @@ -8,29 +8,29 @@ import java.time.Duration; /** - * The interface for DataManagementClient class. + * The interface for InformaticaDataManagement class. */ -public interface DataManagementClient { +public interface InformaticaDataManagement { /** - * Gets Server parameter. + * Gets The ID of the target subscription. * - * @return the endpoint value. + * @return the subscriptionId value. */ - String getEndpoint(); + String getSubscriptionId(); /** - * Gets Version parameter. + * Gets server parameter. * - * @return the apiVersion value. + * @return the endpoint value. */ - String getApiVersion(); + String getEndpoint(); /** - * Gets The ID of the target subscription. The value must be an UUID. + * Gets Api Version. * - * @return the subscriptionId value. + * @return the apiVersion value. */ - String getSubscriptionId(); + String getApiVersion(); /** * 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 525914b91993d..5957196a03021 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 26cb98c0083ad..c1f0775c1548d 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.fluent; @@ -20,6 +20,57 @@ * 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. * @@ -196,55 +247,34 @@ InformaticaOrganizationResourceInner update(String resourceGroupName, String org void delete(String resourceGroupName, String organizationName, 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. + * 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 the response of a InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. - */ - @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}. + * @return all serverless runtime resources in a given informatica organization resource along with + * {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + @ServiceMethod(returns = ReturnType.SINGLE) + Response + getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context); /** - * List InformaticaOrganizationResource resources by subscription ID. + * Gets all serverless runtime resources in a given informatica organization resource. * - * @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 all serverless runtime resources in a given informatica organization resource. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(String resourceGroupName, + String organizationName); /** * Gets Metadata of the serverless runtime environment. @@ -273,34 +303,4 @@ 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 243750fd868a6..2be74e3d4dbfd 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.fluent; @@ -19,6 +19,37 @@ * 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. * @@ -119,48 +150,38 @@ InformaticaServerlessRuntimeResourceInner createOrUpdate(String resourceGroupNam String serverlessRuntimeName, InformaticaServerlessRuntimeResourceInner resource, Context 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 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); - - /** - * 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 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. + * @return a Serverless Runtime environment resource by Informatica along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + 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 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); + InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName, + String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties); /** * Delete a InformaticaServerlessRuntimeResource. @@ -168,78 +189,57 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, 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 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 the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable - listByInformaticaOrganizationResource(String resourceGroupName, String organizationName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, + String serverlessRuntimeName); /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * 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 the response of a InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable - listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, + String serverlessRuntimeName, 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse(String resourceGroupName, - String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, - Context context); + void delete(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. */ @ServiceMethod(returns = ReturnType.SINGLE) - InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName, - String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties); + void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context); /** * Checks all dependencies for a serverless runtime resource. @@ -274,7 +274,7 @@ CheckDependenciesResponseInner checkDependencies(String resourceGroupName, Strin 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. @@ -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 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. @@ -298,12 +298,14 @@ 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); /** - * 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. @@ -312,14 +314,14 @@ 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 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. @@ -327,9 +329,7 @@ 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); } 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 c67f9f22c7aa0..b181dd2d5f97a 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 2664749c18cab..9f58ec160829d 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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/InformaticaServerlessRuntimeResourceInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceInner.java index 95e319cc1d48f..e2f10d9cfced8 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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/InformaticaServerlessRuntimeResourceListInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceListInner.java index 3a595f9e86eb1..9e8c35c922306 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 c6dc89bfda3bb..9c31cf04b99c9 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.fluent.models; @@ -15,6 +15,8 @@ import java.io.IOException; /** + * REST API Operation + * * Details of a REST API operation, returned from the Resource Provider Operations API. */ @Immutable @@ -26,8 +28,8 @@ public final class OperationInner implements JsonSerializable { private String name; /* - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure - * Resource Manager/control-plane operations. + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for + * ARM/control-plane operations. */ private Boolean isDataAction; @@ -43,7 +45,7 @@ public final class OperationInner implements JsonSerializable { private Origin origin; /* - * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ private ActionType actionType; @@ -65,7 +67,7 @@ public String name() { /** * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane - * operations and "false" for Azure Resource Manager/control-plane operations. + * operations and "false" for ARM/control-plane operations. * * @return the isDataAction value. */ @@ -93,8 +95,8 @@ public Origin origin() { } /** - * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are - * for internal only APIs. + * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal + * only APIs. * * @return the actionType value. */ @@ -120,7 +122,6 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("display", this.display); - jsonWriter.writeStringField("actionType", this.actionType == null ? null : this.actionType.toString()); return jsonWriter.writeEndObject(); } 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 a39a33daadec6..dfdf06fab9329 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 b2a4a44de77bb..70ef22300cce0 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,8 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 b4dfb8670fe7e..c6adef6daac0a 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,8 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 510c8ac7d81d6..7cffd6a118f1d 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.implementation; diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientBuilder.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementBuilder.java similarity index 62% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientBuilder.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementBuilder.java index d0f36fab9e8a5..603397f65fcdb 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientBuilder.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementBuilder.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 DataManagementClientImpl type. + * A builder for creating a new instance of the InformaticaDataManagementImpl type. */ -@ServiceClientBuilder(serviceClients = { DataManagementClientImpl.class }) -public final class DataManagementClientBuilder { +@ServiceClientBuilder(serviceClients = { InformaticaDataManagementImpl.class }) +public final class InformaticaDataManagementBuilder { /* - * Server parameter + * The ID of the target subscription. */ - private String endpoint; + private String subscriptionId; /** - * Sets Server parameter. + * Sets The ID of the target subscription. * - * @param endpoint the endpoint value. - * @return the DataManagementClientBuilder. + * @param subscriptionId the subscriptionId value. + * @return the InformaticaDataManagementBuilder. */ - public DataManagementClientBuilder endpoint(String endpoint) { - this.endpoint = endpoint; + public InformaticaDataManagementBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; return this; } /* - * The ID of the target subscription. The value must be an UUID. + * server parameter */ - private String subscriptionId; + private String endpoint; /** - * Sets The ID of the target subscription. The value must be an UUID. + * Sets server parameter. * - * @param subscriptionId the subscriptionId value. - * @return the DataManagementClientBuilder. + * @param endpoint the endpoint value. + * @return the InformaticaDataManagementBuilder. */ - public DataManagementClientBuilder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; + public InformaticaDataManagementBuilder endpoint(String endpoint) { + this.endpoint = endpoint; return this; } @@ -60,9 +60,9 @@ public DataManagementClientBuilder subscriptionId(String subscriptionId) { * Sets The environment to connect to. * * @param environment the environment value. - * @return the DataManagementClientBuilder. + * @return the InformaticaDataManagementBuilder. */ - public DataManagementClientBuilder environment(AzureEnvironment environment) { + public InformaticaDataManagementBuilder environment(AzureEnvironment environment) { this.environment = environment; return this; } @@ -76,9 +76,9 @@ public DataManagementClientBuilder environment(AzureEnvironment environment) { * Sets The HTTP pipeline to send requests through. * * @param pipeline the pipeline value. - * @return the DataManagementClientBuilder. + * @return the InformaticaDataManagementBuilder. */ - public DataManagementClientBuilder pipeline(HttpPipeline pipeline) { + public InformaticaDataManagementBuilder pipeline(HttpPipeline pipeline) { this.pipeline = pipeline; return this; } @@ -92,9 +92,9 @@ public DataManagementClientBuilder pipeline(HttpPipeline pipeline) { * Sets The default poll interval for long-running operation. * * @param defaultPollInterval the defaultPollInterval value. - * @return the DataManagementClientBuilder. + * @return the InformaticaDataManagementBuilder. */ - public DataManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { + public InformaticaDataManagementBuilder defaultPollInterval(Duration defaultPollInterval) { this.defaultPollInterval = defaultPollInterval; return this; } @@ -108,19 +108,20 @@ public DataManagementClientBuilder defaultPollInterval(Duration defaultPollInter * Sets The serializer to serialize an object into a string. * * @param serializerAdapter the serializerAdapter value. - * @return the DataManagementClientBuilder. + * @return the InformaticaDataManagementBuilder. */ - public DataManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { + public InformaticaDataManagementBuilder serializerAdapter(SerializerAdapter serializerAdapter) { this.serializerAdapter = serializerAdapter; return this; } /** - * Builds an instance of DataManagementClientImpl with the provided parameters. + * Builds an instance of InformaticaDataManagementImpl with the provided parameters. * - * @return an instance of DataManagementClientImpl. + * @return an instance of InformaticaDataManagementImpl. */ - public DataManagementClientImpl buildClient() { + public InformaticaDataManagementImpl buildClient() { + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; HttpPipeline localPipeline = (pipeline != null) ? pipeline @@ -130,8 +131,8 @@ public DataManagementClientImpl buildClient() { SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); - DataManagementClientImpl client = new DataManagementClientImpl(localPipeline, localSerializerAdapter, - localDefaultPollInterval, localEnvironment, this.endpoint, this.subscriptionId); + InformaticaDataManagementImpl client = new InformaticaDataManagementImpl(localPipeline, localSerializerAdapter, + localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); return client; } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementImpl.java similarity index 91% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientImpl.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementImpl.java index 75c8bbc06a067..16c9622828598 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientImpl.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.implementation; @@ -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.DataManagementClient; +import com.azure.resourcemanager.informaticadatamanagement.fluent.InformaticaDataManagement; import com.azure.resourcemanager.informaticadatamanagement.fluent.OperationsClient; import com.azure.resourcemanager.informaticadatamanagement.fluent.OrganizationsClient; import com.azure.resourcemanager.informaticadatamanagement.fluent.ServerlessRuntimesClient; @@ -37,50 +37,50 @@ import reactor.core.publisher.Mono; /** - * Initializes a new instance of the DataManagementClientImpl type. + * Initializes a new instance of the InformaticaDataManagementImpl type. */ -@ServiceClient(builder = DataManagementClientBuilder.class) -public final class DataManagementClientImpl implements DataManagementClient { +@ServiceClient(builder = InformaticaDataManagementBuilder.class) +public final class InformaticaDataManagementImpl implements InformaticaDataManagement { /** - * Server parameter. + * The ID of the target subscription. */ - private final String endpoint; + private final String subscriptionId; /** - * Gets Server parameter. + * Gets The ID of the target subscription. * - * @return the endpoint value. + * @return the subscriptionId value. */ - public String getEndpoint() { - return this.endpoint; + public String getSubscriptionId() { + return this.subscriptionId; } /** - * Version parameter. + * server parameter. */ - private final String apiVersion; + private final String endpoint; /** - * Gets Version parameter. + * Gets server parameter. * - * @return the apiVersion value. + * @return the endpoint value. */ - public String getApiVersion() { - return this.apiVersion; + public String getEndpoint() { + return this.endpoint; } /** - * The ID of the target subscription. The value must be an UUID. + * Api Version. */ - private final String subscriptionId; + private final String apiVersion; /** - * Gets The ID of the target subscription. The value must be an UUID. + * Gets Api Version. * - * @return the subscriptionId value. + * @return the apiVersion value. */ - public String getSubscriptionId() { - return this.subscriptionId; + public String getApiVersion() { + return this.apiVersion; } /** @@ -168,22 +168,22 @@ public ServerlessRuntimesClient getServerlessRuntimes() { } /** - * Initializes an instance of DataManagementClient client. + * Initializes an instance of InformaticaDataManagement 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 endpoint Server parameter. - * @param subscriptionId The ID of the target subscription. The value must be an UUID. + * @param subscriptionId The ID of the target subscription. + * @param endpoint server parameter. */ - DataManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, - Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) { + InformaticaDataManagementImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, + Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; - this.endpoint = endpoint; this.subscriptionId = subscriptionId; + this.endpoint = endpoint; 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(DataManagementClientImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(InformaticaDataManagementImpl.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 6e07956d7fb0d..3d3589d8094ae 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.implementation; @@ -154,22 +154,22 @@ public InformaticaOrganizationResource refresh(Context context) { return this; } - 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 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 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 4ac47d44fabc3..a3b6a200e6704 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.implementation; @@ -146,6 +146,16 @@ 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, @@ -157,16 +167,6 @@ 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 2d648c05bbcd4..4d36bb77a8bbe 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 41d2bcadf75f2..1eea487edee4e 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 7ebfa6f3ffbce..bd3d31cc0e3cb 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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.implementation.models.OperationListResult; +import com.azure.resourcemanager.informaticadatamanagement.models.OperationListResult; import reactor.core.publisher.Mono; /** @@ -42,39 +42,39 @@ public final class OperationsClientImpl implements OperationsClient { /** * The service client containing this operation class. */ - private final DataManagementClientImpl client; + private final InformaticaDataManagementImpl client; /** * Initializes an instance of OperationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - OperationsClientImpl(DataManagementClientImpl client) { + OperationsClientImpl(InformaticaDataManagementImpl client) { this.service = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for DataManagementClientOperations to be used by the proxy service to - * perform REST calls. + * The interface defining all the services for InformaticaDataManagementOperations to be used by the proxy service + * to perform REST calls. */ - @Host("{endpoint}") - @ServiceInterface(name = "DataManagementClient") + @Host("{$host}") + @ServiceInterface(name = "InformaticaDataManag") public interface OperationsService { @Headers({ "Content-Type: application/json" }) @Get("/providers/Informatica.DataManagement/operations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept, Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); + @HostParam("$host") 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 bc36b43e19496..7a4e8878fd280 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 e2e22115b8b5b..a8392838f0b8b 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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.implementation.models.InformaticaOrganizationResourceListResult; +import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaOrganizationResourceListResult; import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaOrganizationResourceUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -55,120 +55,371 @@ public final class OrganizationsClientImpl implements OrganizationsClient { /** * The service client containing this operation class. */ - private final DataManagementClientImpl client; + private final InformaticaDataManagementImpl client; /** * Initializes an instance of OrganizationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - OrganizationsClientImpl(DataManagementClientImpl client) { + OrganizationsClientImpl(InformaticaDataManagementImpl client) { this.service = RestProxy.create(OrganizationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for DataManagementClientOrganizations to be used by the proxy service to - * perform REST calls. + * The interface defining all the services for InformaticaDataManagementOrganizations to be used by the proxy + * service to perform REST calls. */ - @Host("{endpoint}") - @ServiceInterface(name = "DataManagementClient") + @Host("{$host}") + @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("endpoint") String endpoint, + Mono> getByResourceGroup(@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, + @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("endpoint") String endpoint, + Mono>> createOrUpdate(@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, - @BodyParam("application/json") InformaticaOrganizationResourceInner resource, Context context); + @PathParam("organizationName") String organizationName, + @BodyParam("application/json") InformaticaOrganizationResourceInner resource, + @HeaderParam("Accept") String accept, 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("endpoint") String endpoint, + Mono> update(@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, - @BodyParam("application/json") InformaticaOrganizationResourceUpdate properties, Context context); + @PathParam("organizationName") String organizationName, + @BodyParam("application/json") InformaticaOrganizationResourceUpdate properties, + @HeaderParam("Accept") String accept, 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("endpoint") String endpoint, + Mono>> delete(@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, + @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getAllServerlessRuntimes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( - @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + Mono> getAllServerlessRuntimes( + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Informatica.DataManagement/organizations") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getServerlessMetadata") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getServerlessMetadata(@HostParam("endpoint") String endpoint, + Mono> getServerlessMetadata(@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, + @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("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - 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); + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context 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); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") 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); + /** + * 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)); + } + + /** + * 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)); } /** @@ -331,7 +582,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, resource, context)) + this.client.getSubscriptionId(), resourceGroupName, organizationName, resource, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -375,7 +626,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, resource, context); + this.client.getSubscriptionId(), resourceGroupName, organizationName, resource, accept, context); } /** @@ -572,7 +823,7 @@ private Mono> updateWithResponseA final String accept = "application/json"; return FluxUtil .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, properties, context)) + this.client.getSubscriptionId(), resourceGroupName, organizationName, properties, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -616,7 +867,7 @@ private Mono> updateWithResponseA final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, organizationName, accept, properties, context); + resourceGroupName, organizationName, properties, accept, context); } /** @@ -752,392 +1003,143 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, organizationName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * 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)); + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, organizationName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * 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 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 the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, 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); } /** - * List InformaticaOrganizationResource resources by subscription ID. + * 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 response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @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())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName) { + return this.beginDeleteAsync(resourceGroupName, organizationName).getSyncPoller(); } /** - * List InformaticaOrganizationResource resources by subscription ID. + * 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 response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @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)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, organizationName, context).getSyncPoller(); } /** - * List InformaticaOrganizationResource resources by subscription ID. + * 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 response of a InformaticaOrganizationResource list operation as paginated response with - * {@link PagedFlux}. + * @return A {@link Mono} that completes when a successful response is received. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String organizationName) { + return beginDeleteAsync(resourceGroupName, organizationName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * List InformaticaOrganizationResource resources by subscription ID. + * 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 response of a InformaticaOrganizationResource list operation as paginated response with - * {@link PagedFlux}. + * @return A {@link Mono} that completes when a successful response is received. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String organizationName, Context context) { + return beginDeleteAsync(resourceGroupName, organizationName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * List InformaticaOrganizationResource resources by subscription ID. + * 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 response of a InformaticaOrganizationResource list operation as paginated response with - * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String organizationName) { + deleteAsync(resourceGroupName, organizationName).block(); } /** - * List InformaticaOrganizationResource resources by subscription ID. + * 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 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)); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String organizationName, Context context) { + deleteAsync(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 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.")); @@ -1157,13 +1159,13 @@ public PagedIterable list(Context context) 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. @@ -1171,12 +1173,12 @@ public PagedIterable list(Context context) * @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.")); @@ -1195,29 +1197,30 @@ public PagedIterable list(Context context) } 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. @@ -1225,43 +1228,45 @@ 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(); } /** - * 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.")); @@ -1281,13 +1286,13 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou 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. @@ -1295,12 +1300,12 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou * @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.")); @@ -1319,30 +1324,29 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou } 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. @@ -1350,29 +1354,27 @@ 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(); } /** @@ -1387,7 +1389,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St */ @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.")); } @@ -1398,7 +1400,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St 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())); @@ -1417,7 +1419,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St */ @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.")); } @@ -1427,7 +1429,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St } 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)); } @@ -1444,7 +1446,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St */ @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.")); } @@ -1455,7 +1457,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St 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())); @@ -1474,7 +1476,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St */ @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.")); } @@ -1484,7 +1486,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St } 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)); } 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 d25941b0a0078..089838a6f65dd 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.implementation; @@ -31,34 +31,16 @@ public OrganizationsImpl(OrganizationsClient innerClient, this.serviceManager = serviceManager; } - public Response getByResourceGroupWithResponse(String resourceGroupName, - String organizationName, Context context) { - Response inner - = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, organizationName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new InformaticaOrganizationResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public InformaticaOrganizationResource getByResourceGroup(String resourceGroupName, String organizationName) { - InformaticaOrganizationResourceInner inner - = this.serviceClient().getByResourceGroup(resourceGroupName, organizationName); - if (inner != null) { - return new InformaticaOrganizationResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public void deleteByResourceGroup(String resourceGroupName, String organizationName) { - this.serviceClient().delete(resourceGroupName, organizationName); + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager())); } - public void delete(String resourceGroupName, String organizationName, Context context) { - this.serviceClient().delete(resourceGroupName, organizationName, context); + 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) { @@ -76,40 +58,36 @@ public PagedIterable listByResourceGroup(String 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, + public Response getByResourceGroupWithResponse(String resourceGroupName, String organizationName, Context context) { - Response inner - = this.serviceClient().getServerlessMetadataWithResponse(resourceGroupName, organizationName, context); + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, organizationName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ServerlessMetadataResponseImpl(inner.getValue(), this.manager())); + new InformaticaOrganizationResourceImpl(inner.getValue(), this.manager())); } else { return null; } } - public ServerlessMetadataResponse getServerlessMetadata(String resourceGroupName, String organizationName) { - ServerlessMetadataResponseInner inner - = this.serviceClient().getServerlessMetadata(resourceGroupName, organizationName); + public InformaticaOrganizationResource getByResourceGroup(String resourceGroupName, String organizationName) { + InformaticaOrganizationResourceInner inner + = this.serviceClient().getByResourceGroup(resourceGroupName, organizationName); if (inner != null) { - return new ServerlessMetadataResponseImpl(inner, this.manager()); + return new InformaticaOrganizationResourceImpl(inner, this.manager()); } else { return null; } } + public void deleteByResourceGroup(String resourceGroupName, String organizationName) { + this.serviceClient().delete(resourceGroupName, organizationName); + } + + public void delete(String resourceGroupName, String organizationName, Context context) { + this.serviceClient().delete(resourceGroupName, organizationName, context); + } + public Response getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context) { Response inner @@ -133,6 +111,28 @@ public InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes(String } } + public Response getServerlessMetadataWithResponse(String resourceGroupName, + String organizationName, Context context) { + Response inner + = this.serviceClient().getServerlessMetadataWithResponse(resourceGroupName, organizationName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ServerlessMetadataResponseImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public ServerlessMetadataResponse getServerlessMetadata(String resourceGroupName, String organizationName) { + ServerlessMetadataResponseInner inner + = this.serviceClient().getServerlessMetadata(resourceGroupName, organizationName); + if (inner != null) { + return new ServerlessMetadataResponseImpl(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 b1c44273eed60..a4996de0485a3 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 3d1014eb10b5a..041b804975a7f 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 278684882cea7..c7337d7e3bb55 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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.implementation.models.InformaticaServerlessRuntimeResourceListResult; +import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceListResult; import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -54,113 +54,115 @@ public final class ServerlessRuntimesClientImpl implements ServerlessRuntimesCli /** * The service client containing this operation class. */ - private final DataManagementClientImpl client; + private final InformaticaDataManagementImpl client; /** * Initializes an instance of ServerlessRuntimesClientImpl. * * @param client the instance of the service client containing this operation class. */ - ServerlessRuntimesClientImpl(DataManagementClientImpl client) { + ServerlessRuntimesClientImpl(InformaticaDataManagementImpl client) { this.service = RestProxy.create(ServerlessRuntimesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for DataManagementClientServerlessRuntimes to be used by the proxy + * The interface defining all the services for InformaticaDataManagementServerlessRuntimes to be used by the proxy * service to perform REST calls. */ - @Host("{endpoint}") - @ServiceInterface(name = "DataManagementClient") + @Host("{$host}") + @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("endpoint") String endpoint, + Mono> get(@HostParam("$host") 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, + @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("endpoint") String endpoint, + Mono>> createOrUpdate(@HostParam("$host") 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, - @BodyParam("application/json") InformaticaServerlessRuntimeResourceInner resource, Context context); + @PathParam("serverlessRuntimeName") String serverlessRuntimeName, + @BodyParam("application/json") InformaticaServerlessRuntimeResourceInner resource, + @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 }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("endpoint") String endpoint, + Mono> update(@HostParam("$host") 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, + @BodyParam("application/json") InformaticaServerlessRuntimeResourceUpdate properties, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes") - @ExpectedResponses({ 200 }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByInformaticaOrganizationResource( - @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@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, + @PathParam("organizationName") String organizationName, + @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/checkDependencies") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("endpoint") String endpoint, + Mono> checkDependencies(@HostParam("$host") 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, - @BodyParam("application/json") InformaticaServerlessRuntimeResourceUpdate properties, Context context); + @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}/checkDependencies") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/serverlessResourceById") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkDependencies(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + Mono> serverlessResourceById( + @HostParam("$host") 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, + @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 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> startFailedServerlessRuntime(@HostParam("endpoint") String endpoint, + Mono> startFailedServerlessRuntime(@HostParam("$host") 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}/serverlessResourceById") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - 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, + @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -168,8 +170,165 @@ Mono> serverlessResourceById @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByInformaticaOrganizationResourceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("accept") String accept, Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") 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)); } /** @@ -354,8 +513,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept, - resource, context)) + this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, resource, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -405,8 +564,8 @@ private Mono>> createOrUpdateWithResponseAsync(String 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, accept, - resource, context); + this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, resource, + accept, context); } /** @@ -581,19 +740,21 @@ public InformaticaServerlessRuntimeResourceInner createOrUpdate(String resourceG } /** - * 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 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>> deleteWithResponseAsync(String resourceGroupName, String organizationName, - String serverlessRuntimeName) { + 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.")); @@ -614,29 +775,37 @@ private Mono>> deleteWithResponseAsync(String resource 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.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, properties, + accept, 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 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>> deleteWithResponseAsync(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context) { + private Mono> updateWithResponseAsync(String resourceGroupName, + String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -657,139 +826,74 @@ private Mono>> deleteWithResponseAsync(String resource 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.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, organizationName, serverlessRuntimeName, accept, context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, organizationName, serverlessRuntimeName, properties, accept, 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 the {@link PollerFlux} for polling of long-running operation. + * @return a Serverless Runtime environment resource by Informatica on successful completion of {@link Mono}. */ - @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.SINGLE) + 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. - * - * @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. - */ - @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) - private Mono deleteAsync(String resourceGroupName, String organizationName, String serverlessRuntimeName) { - return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String organizationName, String serverlessRuntimeName, + public Response updateWithResponse(String resourceGroupName, + String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, Context context) { - return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + return updateWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, properties, context) + .block(); } /** - * 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. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName) { - deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).block(); + public InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName, + String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) { + return updateWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, properties, Context.NONE) + .getValue(); } /** @@ -798,31 +902,14 @@ public void delete(String resourceGroupName, String organizationName, String ser * @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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByInformaticaOrganizationResourceSinglePageAsync(String resourceGroupName, String organizationName) { + 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.")); @@ -839,33 +926,33 @@ public void delete(String resourceGroupName, String organizationName, String ser 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.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)) + .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())); } /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * 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 response of a InformaticaServerlessRuntimeResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByInformaticaOrganizationResourceSinglePageAsync(String resourceGroupName, String organizationName, - 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.")); @@ -882,245 +969,160 @@ public void delete(String resourceGroupName, String organizationName, String ser 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 - .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)); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, organizationName, serverlessRuntimeName, accept, context); } /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * 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 response of a InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux - listByInformaticaOrganizationResourceAsync(String resourceGroupName, String organizationName) { - return new PagedFlux<>( - () -> listByInformaticaOrganizationResourceSinglePageAsync(resourceGroupName, organizationName), - nextLink -> listByInformaticaOrganizationResourceNextSinglePageAsync(nextLink)); + @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()); } /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * 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 response of a InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux - listByInformaticaOrganizationResourceAsync(String resourceGroupName, String organizationName, Context context) { - return new PagedFlux<>( - () -> listByInformaticaOrganizationResourceSinglePageAsync(resourceGroupName, organizationName, context), - nextLink -> listByInformaticaOrganizationResourceNextSinglePageAsync(nextLink, context)); + @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); } /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * 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 response of a InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable - listByInformaticaOrganizationResource(String resourceGroupName, String organizationName) { - return new PagedIterable<>(listByInformaticaOrganizationResourceAsync(resourceGroupName, organizationName)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName, + String serverlessRuntimeName) { + return this.beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).getSyncPoller(); } /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * 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 response of a InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable - listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context) { - return new PagedIterable<>( - listByInformaticaOrganizationResourceAsync(resourceGroupName, organizationName, context)); + @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(); } /** - * 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 A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - 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 accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept, - properties, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + private Mono deleteAsync(String resourceGroupName, String organizationName, String serverlessRuntimeName) { + return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).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. * @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 A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, + private Mono deleteAsync(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.")); - } - 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 accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, organizationName, serverlessRuntimeName, accept, properties, context); + 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 on successful completion of {@link Mono}. */ @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())); + public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName) { + deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).block(); } /** - * 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String resourceGroupName, - String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties, + public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context) { - 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(); + deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).block(); } /** @@ -1267,7 +1269,7 @@ public CheckDependenciesResponseInner checkDependencies(String resourceGroupName } /** - * 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. @@ -1275,11 +1277,12 @@ 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 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.")); @@ -1302,14 +1305,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. @@ -1318,11 +1321,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.")); @@ -1345,13 +1349,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. @@ -1359,17 +1363,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. @@ -1378,17 +1382,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. @@ -1396,16 +1400,17 @@ 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(); } /** - * 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. @@ -1413,12 +1418,11 @@ public void startFailedServerlessRuntime(String resourceGroupName, String organi * @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.")); @@ -1441,14 +1445,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. @@ -1457,12 +1461,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.")); @@ -1485,13 +1488,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. @@ -1499,17 +1502,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. @@ -1518,17 +1521,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. @@ -1536,13 +1539,12 @@ 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); } /** 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 e21405f56f113..68c93f7482270 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.implementation; @@ -29,6 +29,22 @@ 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 @@ -61,22 +77,6 @@ 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,18 +100,6 @@ 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() @@ -135,6 +123,18 @@ 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/implementation/package-info.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/package-info.java index 12e27d4eec8f2..326e751be365b 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,8 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 9de2eaa9d39a5..6839ced26a504 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; @@ -8,7 +8,7 @@ import java.util.Collection; /** - * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ public final class ActionType extends ExpandableStringEnum { /** 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 07048ecf79408..192cd0c00dff6 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 9972895993176..7bb803c3b03b4 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 44e6134d58ba2..cf7638ec1e4fe 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; 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 9452fefd6386a..8d81efd5e4859 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 7f33b17b76888..d433dc15a2682 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 3067d6eae20ec..a5786048723b4 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 241a275178e20..28a3352ebf1ee 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 5c3cad33455f4..62636b4f74e41 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 2bd75b9257b5c..32881a84671fe 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 4377325c40af7..98b92c014464d 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 b56261c00ea2c..c8e02b7e842c6 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 0e8b246c49067..faa0fa4758288 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; @@ -268,43 +268,43 @@ interface WithProperties { InformaticaOrganizationResource refresh(Context context); /** - * 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(); /** - * 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(); } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaOrganizationResourceListResult.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceListResult.java similarity index 96% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaOrganizationResourceListResult.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceListResult.java index 4e71eb07a1c57..24e4d28f33327 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaOrganizationResourceListResult.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceListResult.java @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.resourcemanager.informaticadatamanagement.implementation.models; +package com.azure.resourcemanager.informaticadatamanagement.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/InformaticaOrganizationResourceUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaOrganizationResourceUpdate.java index 312de72f90148..8836bfb80b66a 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 5640e05b2d030..ea7a90fdad5ec 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 fcfc7a637f6ab..5e39b727194d7 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 51c06f3ec48d8..47e19727e6fd2 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; @@ -214,41 +214,41 @@ interface WithProperties { CheckDependenciesResponse checkDependencies(); /** - * 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(); /** - * 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(); } 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 fbcbe3fee529c..00009a0f5d53d 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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/implementation/models/InformaticaServerlessRuntimeResourceListResult.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceListResult.java similarity index 96% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaServerlessRuntimeResourceListResult.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceListResult.java index e07beed493920..f91d417e560f6 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/InformaticaServerlessRuntimeResourceListResult.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceListResult.java @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.resourcemanager.informaticadatamanagement.implementation.models; +package com.azure.resourcemanager.informaticadatamanagement.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/InformaticaServerlessRuntimeResourceUpdate.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/InformaticaServerlessRuntimeResourceUpdate.java index 83ee20fc8f319..bebbfe69a0098 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 4ad8fba88c6fc..b9798cece9eea 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 a7082f3a8cbdb..55e6722d4d6a9 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; @@ -79,11 +79,6 @@ public MarketplaceDetails withOfferDetails(OfferDetails offerDetails) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (marketplaceSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property marketplaceSubscriptionId in model MarketplaceDetails")); - } if (offerDetails() == null) { throw LOGGER.atError() .log( @@ -101,8 +96,8 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("marketplaceSubscriptionId", this.marketplaceSubscriptionId); jsonWriter.writeJsonField("offerDetails", this.offerDetails); + jsonWriter.writeStringField("marketplaceSubscriptionId", this.marketplaceSubscriptionId); return jsonWriter.writeEndObject(); } @@ -122,10 +117,10 @@ public static MarketplaceDetails fromJson(JsonReader jsonReader) throws IOExcept String fieldName = reader.getFieldName(); reader.nextToken(); - if ("marketplaceSubscriptionId".equals(fieldName)) { - deserializedMarketplaceDetails.marketplaceSubscriptionId = reader.getString(); - } else if ("offerDetails".equals(fieldName)) { + if ("offerDetails".equals(fieldName)) { deserializedMarketplaceDetails.offerDetails = OfferDetails.fromJson(reader); + } else if ("marketplaceSubscriptionId".equals(fieldName)) { + deserializedMarketplaceDetails.marketplaceSubscriptionId = reader.getString(); } else { reader.skipChildren(); } 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 e280f107ad1ea..d65bdab3f77ab 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 3452f6c3fe725..0b303207425ae 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 06561b37aa027..ef0dd161a9e69 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 1161453eb1274..8bd53e6b6d3b2 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 d592071c210ac..6ae828f8cb54b 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 20861e613a2c4..6a694e98f3706 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 Azure Resource Manager/control-plane operations. + * operations and "false" for ARM/control-plane operations. * * @return the isDataAction value. */ @@ -42,8 +42,8 @@ public interface Operation { Origin origin(); /** - * Gets the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are - * for internal only APIs. + * Gets the actionType property: 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 f4a9c83caab89..c79922652ed70 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; @@ -12,7 +12,7 @@ import java.io.IOException; /** - * Localized display information for and operation. + * Localized display information for this particular operation. */ @Immutable public final class OperationDisplay implements JsonSerializable { @@ -99,10 +99,6 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("provider", this.provider); - jsonWriter.writeStringField("resource", this.resource); - jsonWriter.writeStringField("operation", this.operation); - jsonWriter.writeStringField("description", this.description); return jsonWriter.writeEndObject(); } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/OperationListResult.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OperationListResult.java similarity index 74% rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/OperationListResult.java rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OperationListResult.java index fa3f258554869..80e8069449f64 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/models/OperationListResult.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/OperationListResult.java @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.resourcemanager.informaticadatamanagement.implementation.models; +package com.azure.resourcemanager.informaticadatamanagement.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; @@ -21,12 +20,12 @@ @Immutable public final class OperationListResult implements JsonSerializable { /* - * The Operation items on this page + * List of operations supported by the resource provider */ private List value; /* - * The link to the next page of items + * URL to get the next set of operation list results (if there are any). */ private String nextLink; @@ -37,7 +36,7 @@ private OperationListResult() { } /** - * Get the value property: The Operation items on this page. + * Get the value property: List of operations supported by the resource provider. * * @return the value value. */ @@ -46,7 +45,7 @@ public List value() { } /** - * Get the nextLink property: The link to the next page of items. + * Get the nextLink property: URL to get the next set of operation list results (if there are any). * * @return the nextLink value. */ @@ -60,24 +59,17 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property value in model OperationListResult")); - } else { + if (value() != null) { 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(); } @@ -87,7 +79,6 @@ 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/models/Operations.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/models/Operations.java index 711733f4ceb49..f7d9dae81c1a8 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 5f2d9b84a7e14..d1a57acc579b1 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 c2d53566eb510..8f61c885bc44c 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 09635b3646654..c2acee1bf8780 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; @@ -13,103 +13,103 @@ */ public interface Organizations { /** - * Get 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 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 list(); /** - * Get 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 a InformaticaOrganizationResource. + * @return the response of a InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - InformaticaOrganizationResource getByResourceGroup(String resourceGroupName, String organizationName); + PagedIterable list(Context context); /** - * Delete 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. * @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 listByResourceGroup(String resourceGroupName); /** - * Delete 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 the response of a InformaticaOrganizationResource list operation as paginated response with + * {@link PagedIterable}. */ - void delete(String resourceGroupName, String organizationName, Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * List InformaticaOrganizationResource resources by resource group. + * 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 listByResourceGroup(String resourceGroupName); + Response getByResourceGroupWithResponse(String resourceGroupName, + String organizationName, Context context); /** - * List InformaticaOrganizationResource resources by resource group. + * Get a InformaticaOrganizationResource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. + * @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 listByResourceGroup(String resourceGroupName, Context context); + InformaticaOrganizationResource getByResourceGroup(String resourceGroupName, String organizationName); /** - * List InformaticaOrganizationResource resources by subscription ID. + * 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 list(); + void deleteByResourceGroup(String resourceGroupName, String organizationName); /** - * List InformaticaOrganizationResource resources by subscription ID. + * 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 list(Context context); + void delete(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. @@ -117,25 +117,27 @@ 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 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); /** - * 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. @@ -143,24 +145,22 @@ Response getServerlessMetadataWithResponse(String re * @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); /** * 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 a87cf69e8ccec..6bcf005d00462 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; 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 9cbb398890935..93463c8730598 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; 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 45620bd6508eb..8946102a435d3 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; 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 0375a65a8f1e7..4b0c6c136128c 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 0393d3a5b3246..78a1cca9c59aa 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; 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 71786da1941e2..9e757ca46042a 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 a05df839bfda7..ae0c851452c2d 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 192c316a3f395..b357951bae672 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 ea92949324000..db2b67b3f74e9 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 3cd24a8931203..99d689c410530 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 e4f860b8eb99d..73bdf60fcef5c 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 62bf0f48f1295..5005f6e28ae6a 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,11 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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; @@ -56,17 +55,11 @@ public NetworkInterfaceConfigurationUpdate networkInterfaceConfiguration() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (networkInterfaceConfiguration() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property networkInterfaceConfiguration in model ServerlessRuntimeNetworkProfileUpdate")); - } else { + if (networkInterfaceConfiguration() != null) { networkInterfaceConfiguration().validate(); } } - private static final ClientLogger LOGGER = new ClientLogger(ServerlessRuntimeNetworkProfileUpdate.class); - /** * {@inheritDoc} */ @@ -83,7 +76,6 @@ 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 6d59348e2496f..5421e22cae09e 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 5090f38e4ce53..7d63e285354db 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 f14f19c2464fe..5ba4c12f02593 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 b6a5ecf6add55..83cfc89a77f03 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 56ee66d6b18ef..8139cbc761b60 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.models; @@ -13,87 +13,87 @@ */ public interface ServerlessRuntimes { /** - * Get 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 a InformaticaServerlessRuntimeResource along with {@link Response}. + * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with + * {@link PagedIterable}. */ - Response getWithResponse(String resourceGroupName, String organizationName, - String serverlessRuntimeName, Context context); + PagedIterable listByInformaticaOrganizationResource(String resourceGroupName, + String organizationName); /** - * Get 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 a InformaticaServerlessRuntimeResource. + * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with + * {@link PagedIterable}. */ - InformaticaServerlessRuntimeResource get(String resourceGroupName, String organizationName, - String serverlessRuntimeName); + PagedIterable listByInformaticaOrganizationResource(String resourceGroupName, + String organizationName, Context context); /** - * Delete a InformaticaServerlessRuntimeResource. + * 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 a InformaticaServerlessRuntimeResource along with {@link Response}. */ - void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName); + Response getWithResponse(String resourceGroupName, String organizationName, + String serverlessRuntimeName, Context context); /** - * Delete a InformaticaServerlessRuntimeResource. + * 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 a InformaticaServerlessRuntimeResource. */ - void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context); + InformaticaServerlessRuntimeResource get(String resourceGroupName, String organizationName, + String serverlessRuntimeName); /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * 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 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}. */ - PagedIterable listByInformaticaOrganizationResource(String resourceGroupName, - String organizationName); + void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName); /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource. + * 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 the response of a InformaticaServerlessRuntimeResource list operation as paginated response with - * {@link PagedIterable}. */ - PagedIterable listByInformaticaOrganizationResource(String resourceGroupName, - String organizationName, Context context); + void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context); /** * Checks all dependencies for a serverless runtime resource. @@ -126,7 +126,7 @@ CheckDependenciesResponse checkDependencies(String resourceGroupName, String org 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. @@ -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 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. @@ -149,11 +149,13 @@ 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); /** - * 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. @@ -162,13 +164,13 @@ 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 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. @@ -176,10 +178,8 @@ 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); /** * 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 cb300927a3bcb..3cdbde2d41823 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 1af39a0e33cfe..d20e09cf2aa94 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 c77c1d9d8fbe0..1ac27f11ea241 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,8 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 a0f5aea89e9ea..1ae65630fa8b8 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,8 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest 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 20c39e65b38d6..df6aac822f2c4 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. module com.azure.resourcemanager.informaticadatamanagement { requires transitive com.azure.core.management; @@ -10,5 +10,4 @@ exports com.azure.resourcemanager.informaticadatamanagement.models; opens com.azure.resourcemanager.informaticadatamanagement.fluent.models to com.azure.core, com.fasterxml.jackson.databind; opens com.azure.resourcemanager.informaticadatamanagement.models to com.azure.core, com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.informaticadatamanagement.implementation.models to com.azure.core, com.fasterxml.jackson.databind; } \ No newline at end of file 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 319084c23aa47..accc4089ec090 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -10,7 +10,8 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/Operations_List_MaximumSet_Gen.json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Operations_List_MaximumSet_Gen.json */ /** * Sample code: Operations_List. @@ -21,4 +22,19 @@ public final class OperationsListSamples { 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/ + * Operations_List_MinimumSet_Gen.json + */ + /** + * Sample code: Operations_List_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void operationsListMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } } 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 9d526f55c9aa3..4032dff9bc6dd 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -19,7 +19,8 @@ */ public final class OrganizationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * Organizations_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -66,6 +67,25 @@ public static void organizationsCreateOrUpdate( .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) { 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 6d543e256920d..6079c5782dcd4 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -10,7 +10,8 @@ public final class OrganizationsDeleteSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/Organizations_Delete_MaximumSet_Gen.json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Organizations_Delete_MaximumSet_Gen.json */ /** * Sample code: Organizations_Delete. @@ -21,4 +22,19 @@ 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); + } } 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 ea1ed52cf72d5..fd4f2696281db 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -9,7 +9,24 @@ */ public final class OrganizationsGetAllServerlessRuntimesSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json + */ + /** + * Sample code: Organizations_GetAllServerlessRuntimes_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void organizationsGetAllServerlessRuntimesMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.organizations() + .getAllServerlessRuntimesWithResponse("rgopenapi", "0", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json */ /** 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 47fd4a9aa0e28..1f9866f39b037 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -10,7 +10,23 @@ public final class OrganizationsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/Organizations_Get_MaximumSet_Gen.json + * 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); + } + + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * 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 6dca7df5d4344..6cfdab5b9f451 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -9,7 +9,23 @@ */ public final class OrganizationsGetServerlessMetadataSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * 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); + } + + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * Organizations_GetServerlessMetadata_MaximumSet_Gen.json */ /** 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 index 720f8e5b15e78..2ebdd2d9f816a 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -9,7 +9,23 @@ */ public final class OrganizationsListByResourceGroupSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * 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 */ /** 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 index 2d00fdcaa30f9..bbddefc11a159 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -9,7 +9,8 @@ */ public final class OrganizationsListSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * Organizations_ListBySubscription_MaximumSet_Gen.json */ /** @@ -21,4 +22,19 @@ 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 bf7a3dae6ed41..deed287216213 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -19,7 +19,8 @@ public final class OrganizationsUpdateSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/Organizations_Update_MaximumSet_Gen.json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Organizations_Update_MaximumSet_Gen.json */ /** * Sample code: Organizations_Update. @@ -59,6 +60,24 @@ public static void organizationsUpdate( .apply(); } + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * Organizations_Update_MinimumSet_Gen.json + */ + /** + * Sample code: Organizations_Update_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void organizationsUpdateMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + InformaticaOrganizationResource resource = manager.organizations() + .getByResourceGroupWithResponse("rgopenapi", "-", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { 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 7295e775eaae4..d39c1f0bf188f 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -9,7 +9,24 @@ */ public final class ServerlessRuntimesCheckDependenciesSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * 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 */ /** 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 d127ba37f5185..431fbe7642f93 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -22,7 +22,8 @@ */ public final class ServerlessRuntimesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -73,4 +74,19 @@ public static void serverlessRuntimesCreateOrUpdate( new ServerlessRuntimeUserContextProperties().withUserContextToken("fakeTokenPlaceholder"))) .create(); } + + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json + */ + /** + * Sample code: ServerlessRuntimes_CreateOrUpdate_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void serverlessRuntimesCreateOrUpdateMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.serverlessRuntimes().define("J").withExistingOrganization("rgopenapi", "-4Z__7").create(); + } } 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 2950e934188b0..7ea525b7a7119 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -10,8 +10,8 @@ public final class ServerlessRuntimesDeleteSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/ServerlessRuntimes_Delete_MaximumSet_Gen - * .json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * 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 58233e0f7ab7f..325f03a8daf60 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -10,8 +10,8 @@ public final class ServerlessRuntimesGetSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/ServerlessRuntimes_Get_MaximumSet_Gen. - * json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * ServerlessRuntimes_Get_MaximumSet_Gen.json */ /** * Sample code: ServerlessRuntimes_Get. @@ -22,4 +22,19 @@ public static void serverlessRuntimesGet( com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { 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/ + * ServerlessRuntimes_Get_MinimumSet_Gen.json + */ + /** + * Sample code: ServerlessRuntimes_Get_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void serverlessRuntimesGetMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + manager.serverlessRuntimes().getWithResponse("rgopenapi", "YC", "___", com.azure.core.util.Context.NONE); + } } 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 index 165aa4d1dfc10..93cd37651dad5 100644 --- 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -9,7 +9,8 @@ */ public final class ServerlessRuntimesListByInformaticaOrganizationResourceS { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json */ /** 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 693570f541eaf..644136f7ca0e2 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -9,7 +9,8 @@ */ public final class ServerlessRuntimesServerlessResourceByIdSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json */ /** 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 91b2fcb9502d1..7259821429bd2 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -9,7 +9,8 @@ */ public final class ServerlessRuntimesStartFailedServerlessRuntimeSamples { /* - * x-ms-original-file: specification/informatica/Informatica.DataManagement/examples/2024-05-08/ + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ * ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json */ /** 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 7d42d8038e8a6..8d6176effc4a8 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) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -24,8 +24,26 @@ public final class ServerlessRuntimesUpdateSamples { /* * x-ms-original-file: - * specification/informatica/Informatica.DataManagement/examples/2024-05-08/ServerlessRuntimes_Update_MaximumSet_Gen - * .json + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * ServerlessRuntimes_Update_MinimumSet_Gen.json + */ + /** + * Sample code: ServerlessRuntimes_Update_Min. + * + * @param manager Entry point to InformaticaDataManagementManager. + */ + public static void serverlessRuntimesUpdateMin( + com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager manager) { + InformaticaServerlessRuntimeResource resource = manager.serverlessRuntimes() + .getWithResponse("rgopenapi", "_f--", "8Zr__", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + + /* + * x-ms-original-file: + * specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ + * 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 deleted file mode 100644 index 2fc49a8fc58a1..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationConfigsTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.ApplicationConfigs; -import org.junit.jupiter.api.Assertions; - -public final class ApplicationConfigsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApplicationConfigs model = BinaryData.fromString( - "{\"type\":\"cjefuzmu\",\"name\":\"pbttdum\",\"value\":\"rp\",\"platform\":\"xe\",\"customized\":\"mnzb\",\"defaultValue\":\"bhjpglkfgohdne\"}") - .toObject(ApplicationConfigs.class); - 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("cjefuzmu") - .withName("pbttdum") - .withValue("rp") - .withPlatform("xe") - .withCustomized("mnzb") - .withDefaultValue("bhjpglkfgohdne"); - model = BinaryData.fromObject(model).toObject(ApplicationConfigs.class); - 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 deleted file mode 100644 index 3c88f0f7ada1a..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationTypeMetadataTests.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.ApplicationTypeMetadata; -import org.junit.jupiter.api.Assertions; - -public final class ApplicationTypeMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ApplicationTypeMetadata model = BinaryData.fromString("{\"name\":\"loayqcgw\",\"value\":\"zjuzgwyz\"}") - .toObject(ApplicationTypeMetadata.class); - 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 deleted file mode 100644 index 03771ba883477..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CdiConfigPropsTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.ApplicationConfigs; -import com.azure.resourcemanager.informaticadatamanagement.models.CdiConfigProps; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CdiConfigPropsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CdiConfigProps model = BinaryData.fromString( - "{\"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("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("gaokonzmnsikv") - .withEngineVersion("kqze") - .withApplicationConfigs(Arrays.asList( - 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("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 deleted file mode 100644 index 73ae923eb922e..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CheckDependenciesResponseInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.fluent.models.CheckDependenciesResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class CheckDependenciesResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckDependenciesResponseInner model = BinaryData.fromString( - "{\"count\":82609235,\"id\":\"rhneuyowq\",\"references\":[{\"id\":\"wyt\",\"appContextId\":\"sibircgpi\",\"path\":\"pzimejzanlfzxi\",\"documentType\":\"vrmbzono\",\"description\":\"i\",\"lastUpdatedTime\":\"rjqc\"}]}") - .toObject(CheckDependenciesResponseInner.class); - 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 deleted file mode 100644 index 6b58df40adae7..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.CompanyDetails; -import org.junit.jupiter.api.Assertions; - -public final class CompanyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CompanyDetails model = BinaryData.fromString( - "{\"companyName\":\"sgcbac\",\"officeAddress\":\"ejk\",\"country\":\"ynqgoulzndlikwyq\",\"domain\":\"fgibmadgakeq\",\"business\":\"xybz\",\"numberOfEmployees\":161045800}") - .toObject(CompanyDetails.class); - 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("sgcbac") - .withOfficeAddress("ejk") - .withCountry("ynqgoulzndlikwyq") - .withDomain("fgibmadgakeq") - .withBusiness("xybz") - .withNumberOfEmployees(161045800); - model = BinaryData.fromObject(model).toObject(CompanyDetails.class); - 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 deleted file mode 100644 index b6b4af6151397..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsUpdateTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.CompanyDetailsUpdate; -import org.junit.jupiter.api.Assertions; - -public final class CompanyDetailsUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CompanyDetailsUpdate model = BinaryData.fromString( - "{\"companyName\":\"juqk\",\"officeAddress\":\"sa\",\"country\":\"wkuofoskghsauu\",\"domain\":\"jmvxie\",\"business\":\"ugidyjrr\",\"numberOfEmployees\":207335442}") - .toObject(CompanyDetailsUpdate.class); - 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("juqk") - .withOfficeAddress("sa") - .withCountry("wkuofoskghsauu") - .withDomain("jmvxie") - .withBusiness("ugidyjrr") - .withNumberOfEmployees(207335442); - model = BinaryData.fromObject(model).toObject(CompanyDetailsUpdate.class); - 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 deleted file mode 100644 index cc6580902d325..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ComputeUnitsMetadataTests.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.ComputeUnitsMetadata; -import org.junit.jupiter.api.Assertions; - -public final class ComputeUnitsMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - 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 deleted file mode 100644 index 95acf8582aebc..0000000000000 --- 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) 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/InfaServerlessFetchConfigPropertiesTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaServerlessFetchConfigPropertiesTests.java deleted file mode 100644 index 7074f2611808c..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaServerlessFetchConfigPropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.InfaServerlessFetchConfigProperties; -import org.junit.jupiter.api.Assertions; - -public final class InfaServerlessFetchConfigPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InfaServerlessFetchConfigProperties model = BinaryData.fromString( - "{\"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("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 deleted file mode 100644 index 41dd13de9b8e1..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaOrganizationResourceUpdateTests.java +++ /dev/null @@ -1,314 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.CompanyDetailsUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaOrganizationResourceUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.MarketplaceDetailsUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.OfferDetailsUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.OrganizationPropertiesCustomUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.UserDetailsUpdate; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class InformaticaOrganizationResourceUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformaticaOrganizationResourceUpdate model = BinaryData.fromString( - "{\"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("flmmnk", model.tags().get("smodmgloug")); - Assertions.assertEquals("pwgcuertu", - model.properties().informaticaOrganizationProperties().tags().get("kdosvqw")); - Assertions.assertEquals("qux", - model.properties() - .informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .tags() - .get("gjyjgzjaoyfhrtxi")); - Assertions.assertEquals("fqawrlyxw", - model.properties() - .informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .existingResourceId()); - Assertions.assertEquals("prbnwbxgjvtbv", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .marketplaceSubscriptionId()); - Assertions.assertEquals("szdnr", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .publisherId()); - Assertions.assertEquals("qguhmuo", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .offerId()); - Assertions.assertEquals("f", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .planId()); - Assertions.assertEquals("wzwbnguitn", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .planName()); - Assertions.assertEquals("izgazxu", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .termUnit()); - Assertions.assertEquals("zuckyfi", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .termId()); - Assertions.assertEquals("idf", - model.properties().informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("wdzuhtymwisd", - model.properties().informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("thwxmnteiwaopvkm", - model.properties().informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("c", - model.properties().informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("xdcu", - model.properties().informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("srp", - model.properties().informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("zidnsezcxtbzsgfy", - model.properties().informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("sne", - model.properties().informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("dwzjeiach", - model.properties().informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("osfln", - model.properties().informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(13730136, - model.properties().informaticaOrganizationProperties().properties().companyDetails().numberOfEmployees()); - Assertions.assertEquals("qpteeh", - model.properties().informaticaOrganizationProperties().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("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("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("flmmnk", model.tags().get("smodmgloug")); - Assertions.assertEquals("pwgcuertu", - model.properties().informaticaOrganizationProperties().tags().get("kdosvqw")); - Assertions.assertEquals("qux", - model.properties() - .informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .tags() - .get("gjyjgzjaoyfhrtxi")); - Assertions.assertEquals("fqawrlyxw", - model.properties() - .informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .existingResourceId()); - Assertions.assertEquals("prbnwbxgjvtbv", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .marketplaceSubscriptionId()); - Assertions.assertEquals("szdnr", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .publisherId()); - Assertions.assertEquals("qguhmuo", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .offerId()); - Assertions.assertEquals("f", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .planId()); - Assertions.assertEquals("wzwbnguitn", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .planName()); - Assertions.assertEquals("izgazxu", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .termUnit()); - Assertions.assertEquals("zuckyfi", - model.properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .offerDetails() - .termId()); - Assertions.assertEquals("idf", - model.properties().informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("wdzuhtymwisd", - model.properties().informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("thwxmnteiwaopvkm", - model.properties().informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("c", - model.properties().informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("xdcu", - model.properties().informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("srp", - model.properties().informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("zidnsezcxtbzsgfy", - model.properties().informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("sne", - model.properties().informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("dwzjeiach", - model.properties().informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("osfln", - model.properties().informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(13730136, - model.properties().informaticaOrganizationProperties().properties().companyDetails().numberOfEmployees()); - Assertions.assertEquals("qpteeh", - model.properties().informaticaOrganizationProperties().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 - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/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 deleted file mode 100644 index 5bfc197ae2714..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaPropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaProperties; -import org.junit.jupiter.api.Assertions; - -public final class InformaticaPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformaticaProperties model = BinaryData.fromString( - "{\"organizationId\":\"ubljofxqe\",\"organizationName\":\"jaeq\",\"informaticaRegion\":\"qjbasvms\",\"singleSignOnUrl\":\"qulngsntnbybkzgc\"}") - .toObject(InformaticaProperties.class); - Assertions.assertEquals("ubljofxqe", model.organizationId()); - Assertions.assertEquals("jaeq", model.organizationName()); - Assertions.assertEquals("qjbasvms", model.informaticaRegion()); - Assertions.assertEquals("qulngsntnbybkzgc", model.singleSignOnUrl()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InformaticaProperties model = new InformaticaProperties().withOrganizationId("ubljofxqe") - .withOrganizationName("jaeq") - .withInformaticaRegion("qjbasvms") - .withSingleSignOnUrl("qulngsntnbybkzgc"); - model = BinaryData.fromObject(model).toObject(InformaticaProperties.class); - Assertions.assertEquals("ubljofxqe", model.organizationId()); - Assertions.assertEquals("jaeq", model.organizationName()); - Assertions.assertEquals("qjbasvms", model.informaticaRegion()); - Assertions.assertEquals("qulngsntnbybkzgc", 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 deleted file mode 100644 index b279f54814062..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaServerlessRuntimeResourceListInnerTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.fluent.models.InformaticaServerlessRuntimeResourceListInner; -import com.azure.resourcemanager.informaticadatamanagement.models.RuntimeType; -import org.junit.jupiter.api.Assertions; - -public final class InformaticaServerlessRuntimeResourceListInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InformaticaServerlessRuntimeResourceListInner model = BinaryData.fromString( - "{\"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("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("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("qapnedgfbcv", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().applicationType()); - Assertions.assertEquals("vq", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().resourceGroupName()); - Assertions.assertEquals("keqdcvdrhvoods", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().advancedCustomProperties()); - Assertions.assertEquals("bobzdopcjwvnhd", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().supplementaryFileLocation()); - Assertions.assertEquals("wmgxcxrsl", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().platform()); - Assertions.assertEquals("utwu", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().tags()); - Assertions.assertEquals("grpkhjwniyqs", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().vnet()); - Assertions.assertEquals("i", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("dggkzzlvmbmpa", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().computeUnits()); - Assertions.assertEquals("odfvuefywsbp", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().tenantId()); - Assertions.assertEquals("mwyhr", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().subscriptionId()); - Assertions.assertEquals("uyfta", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().region()); - Assertions.assertEquals("cpwi", - model.informaticaRuntimeResources().get(0).serverlessConfigProperties().serverlessArmResourceId()); - 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 deleted file mode 100644 index 566e85e22e57d..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.MarketplaceDetails; -import com.azure.resourcemanager.informaticadatamanagement.models.OfferDetails; -import org.junit.jupiter.api.Assertions; - -public final class MarketplaceDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MarketplaceDetails model = BinaryData.fromString( - "{\"marketplaceSubscriptionId\":\"rwclxxwrljdo\",\"offerDetails\":{\"publisherId\":\"skcqvkocrcjd\",\"offerId\":\"wtnhxbnjbiksqr\",\"planId\":\"lssai\",\"planName\":\"qpjwnzlljfm\",\"termUnit\":\"eebvmgxsab\",\"termId\":\"yqduujit\"}}") - .toObject(MarketplaceDetails.class); - Assertions.assertEquals("rwclxxwrljdo", model.marketplaceSubscriptionId()); - Assertions.assertEquals("skcqvkocrcjd", model.offerDetails().publisherId()); - Assertions.assertEquals("wtnhxbnjbiksqr", model.offerDetails().offerId()); - Assertions.assertEquals("lssai", model.offerDetails().planId()); - Assertions.assertEquals("qpjwnzlljfm", model.offerDetails().planName()); - Assertions.assertEquals("eebvmgxsab", model.offerDetails().termUnit()); - Assertions.assertEquals("yqduujit", model.offerDetails().termId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MarketplaceDetails model = new MarketplaceDetails().withMarketplaceSubscriptionId("rwclxxwrljdo") - .withOfferDetails(new OfferDetails().withPublisherId("skcqvkocrcjd") - .withOfferId("wtnhxbnjbiksqr") - .withPlanId("lssai") - .withPlanName("qpjwnzlljfm") - .withTermUnit("eebvmgxsab") - .withTermId("yqduujit")); - model = BinaryData.fromObject(model).toObject(MarketplaceDetails.class); - Assertions.assertEquals("rwclxxwrljdo", model.marketplaceSubscriptionId()); - Assertions.assertEquals("skcqvkocrcjd", model.offerDetails().publisherId()); - Assertions.assertEquals("wtnhxbnjbiksqr", model.offerDetails().offerId()); - Assertions.assertEquals("lssai", model.offerDetails().planId()); - Assertions.assertEquals("qpjwnzlljfm", model.offerDetails().planName()); - Assertions.assertEquals("eebvmgxsab", 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 deleted file mode 100644 index ae61de3e39996..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsUpdateTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.MarketplaceDetailsUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.OfferDetailsUpdate; -import org.junit.jupiter.api.Assertions; - -public final class MarketplaceDetailsUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MarketplaceDetailsUpdate model = BinaryData.fromString( - "{\"marketplaceSubscriptionId\":\"hfuiuaodsfc\",\"offerDetails\":{\"publisherId\":\"xodpuozmyzydagfu\",\"offerId\":\"bezy\",\"planId\":\"okktwhrdxw\",\"planName\":\"wqsmbsur\",\"termUnit\":\"imoryocfsfksym\",\"termId\":\"ys\"}}") - .toObject(MarketplaceDetailsUpdate.class); - 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("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("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 deleted file mode 100644 index bd090b30b7e58..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.NetworkInterfaceConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class NetworkInterfaceConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkInterfaceConfiguration model = BinaryData - .fromString( - "{\"vnetId\":\"kghimdblxgwimfnj\",\"subnetId\":\"fjxwmsz\",\"vnetResourceGuid\":\"foqreyfkzik\"}") - .toObject(NetworkInterfaceConfiguration.class); - 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("kghimdblxgwimfnj") - .withSubnetId("fjxwmsz") - .withVnetResourceGuid("foqreyfkzik"); - model = BinaryData.fromObject(model).toObject(NetworkInterfaceConfiguration.class); - 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 deleted file mode 100644 index e57bb6012b28c..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationUpdateTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.NetworkInterfaceConfigurationUpdate; -import org.junit.jupiter.api.Assertions; - -public final class NetworkInterfaceConfigurationUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - 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("xuqlcvydypat") - .withSubnetId("oa") - .withVnetResourceGuid("kniod"); - model = BinaryData.fromObject(model).toObject(NetworkInterfaceConfigurationUpdate.class); - 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 deleted file mode 100644 index c42fef7fbc0c4..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.OfferDetails; -import org.junit.jupiter.api.Assertions; - -public final class OfferDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OfferDetails model = BinaryData.fromString( - "{\"publisherId\":\"jczdzevndh\",\"offerId\":\"rwpdappdsbdkvwrw\",\"planId\":\"feusnhut\",\"planName\":\"eltmrldhugjzzdat\",\"termUnit\":\"hocdgeab\",\"termId\":\"gphuticndvka\"}") - .toObject(OfferDetails.class); - 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("jczdzevndh") - .withOfferId("rwpdappdsbdkvwrw") - .withPlanId("feusnhut") - .withPlanName("eltmrldhugjzzdat") - .withTermUnit("hocdgeab") - .withTermId("gphuticndvka"); - model = BinaryData.fromObject(model).toObject(OfferDetails.class); - 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 deleted file mode 100644 index 50bf303a191dd..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsUpdateTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.OfferDetailsUpdate; -import org.junit.jupiter.api.Assertions; - -public final class OfferDetailsUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OfferDetailsUpdate model = BinaryData.fromString( - "{\"publisherId\":\"i\",\"offerId\":\"xhqyudxorrqnb\",\"planId\":\"czvyifq\",\"planName\":\"kdvjsll\",\"termUnit\":\"vvdfwatkpnpul\",\"termId\":\"xbczwtruwiqz\"}") - .toObject(OfferDetailsUpdate.class); - 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("i") - .withOfferId("xhqyudxorrqnb") - .withPlanId("czvyifq") - .withPlanName("kdvjsll") - .withTermUnit("vvdfwatkpnpul") - .withTermId("xbczwtruwiqz"); - model = BinaryData.fromObject(model).toObject(OfferDetailsUpdate.class); - 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 deleted file mode 100644 index 65f98b0761fad..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationDisplayTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"cdm\",\"resource\":\"rcryuanzwuxzdxta\",\"operation\":\"lhmwhfpmrqobm\",\"description\":\"kknryrtihf\"}") - .toObject(OperationDisplay.class); - Assertions.assertEquals("cdm", model.provider()); - Assertions.assertEquals("rcryuanzwuxzdxta", model.resource()); - Assertions.assertEquals("lhmwhfpmrqobm", model.operation()); - Assertions.assertEquals("kknryrtihf", model.description()); - } -} 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 deleted file mode 100644 index 73011963ce85b..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.fluent.models.OperationInner; -import com.azure.resourcemanager.informaticadatamanagement.models.ActionType; -import org.junit.jupiter.api.Assertions; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"nygj\",\"isDataAction\":true,\"display\":{\"provider\":\"eqsrdeupewnwreit\",\"resource\":\"yflusarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") - .toObject(OperationInner.class); - Assertions.assertEquals("eqsrdeupewnwreit", model.display().provider()); - Assertions.assertEquals("yflusarhmofc", model.display().resource()); - Assertions.assertEquals("smy", model.display().operation()); - Assertions.assertEquals("kdtmlxhekuk", model.display().description()); - Assertions.assertEquals(ActionType.INTERNAL, model.actionType()); - } -} 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 deleted file mode 100644 index 612ee41929cd8..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.implementation.models.OperationListResult; -import com.azure.resourcemanager.informaticadatamanagement.models.ActionType; -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\":\"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("pybczmehmtzopb", model.value().get(0).display().provider()); - Assertions.assertEquals("h", model.value().get(0).display().resource()); - Assertions.assertEquals("pidgsybbejhphoyc", model.value().get(0).display().operation()); - Assertions.assertEquals("xaobhdxbmtqioqjz", model.value().get(0).display().description()); - Assertions.assertEquals(ActionType.INTERNAL, model.value().get(0).actionType()); - 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 deleted file mode 100644 index d068fe8d37bec..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationsListMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.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.test.http.MockHttpResponse; -import com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager; -import com.azure.resourcemanager.informaticadatamanagement.models.ActionType; -import com.azure.resourcemanager.informaticadatamanagement.models.Operation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"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)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lg", response.iterator().next().display().provider()); - Assertions.assertEquals("kvtvsexso", response.iterator().next().display().resource()); - Assertions.assertEquals("el", response.iterator().next().display().operation()); - Assertions.assertEquals("hhahhxvrhmzkwpjg", response.iterator().next().display().description()); - Assertions.assertEquals(ActionType.INTERNAL, response.iterator().next().actionType()); - } -} 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 deleted file mode 100644 index 12ba1cc8b4857..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationPropertiesCustomUpdateTests.java +++ /dev/null @@ -1,427 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.CompanyDetailsUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaOrganizationResourceUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.MarketplaceDetailsUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.OfferDetailsUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.OrganizationPropertiesCustomUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.UserDetailsUpdate; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class OrganizationPropertiesCustomUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OrganizationPropertiesCustomUpdate model = BinaryData.fromString( - "{\"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("onpimexgstxg", model.informaticaOrganizationProperties().tags().get("po")); - Assertions.assertEquals("k", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .tags() - .get("ukdkexxppofmxa")); - Assertions.assertEquals("eojnxqbzvddn", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .tags() - .get("wndeicbtwnp")); - Assertions.assertEquals("u", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .marketplaceSubscriptionId()); - Assertions.assertEquals("hrzayvvtpgvdf", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .userDetails() - .firstName()); - Assertions.assertEquals("otkftutqxlngx", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .userDetails() - .lastName()); - Assertions.assertEquals("fgugnxkrxdqmid", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .userDetails() - .emailAddress()); - Assertions.assertEquals("hzrvqd", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .userDetails() - .upn()); - Assertions.assertEquals("bhj", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .userDetails() - .phoneNumber()); - Assertions.assertEquals("gehoqfbowskany", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .companyName()); - Assertions.assertEquals("zlcuiywgqywgndrv", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .officeAddress()); - Assertions.assertEquals("hzgpphrcgyncocpe", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .country()); - Assertions.assertEquals("vmmcoofs", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .domain()); - Assertions.assertEquals("zevgb", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .business()); - Assertions.assertEquals(2005133060, - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .numberOfEmployees()); - Assertions.assertEquals("abcypmivk", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .existingResourceId()); - Assertions.assertEquals("uvcc", - model.informaticaOrganizationProperties().properties().marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("fnba", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().publisherId()); - Assertions.assertEquals("ionle", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().offerId()); - Assertions.assertEquals("etqgtzxdpnq", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planId()); - Assertions.assertEquals("qwxrjfeallnw", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planName()); - Assertions.assertEquals("bisnja", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termUnit()); - Assertions.assertEquals("mngnzscxaqw", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termId()); - Assertions.assertEquals("hcbonqvpkvlr", - model.informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("jease", - model.informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("heoflokeyyienjbd", - model.informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("tgrhpdjpjumas", - model.informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("zj", - model.informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("e", - model.informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("alhbx", - model.informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("e", model.informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("zzvdudgwds", - model.informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("hotwmcynpwlbjnp", - model.informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(1690822953, - model.informaticaOrganizationProperties().properties().companyDetails().numberOfEmployees()); - 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("po", "onpimexgstxg", "djwzrlov", "gmaajrm", "qsqsy", "clwhijcoejctbz")) - .withProperties(new OrganizationPropertiesCustomUpdate() - .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() - .withTags(mapOf("ukdkexxppofmxa", "k", "jpgd", "c", "j", "toc", "hd", "hvpmoue")) - .withProperties(new OrganizationPropertiesCustomUpdate() - .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() - .withTags(mapOf("wndeicbtwnp", "eojnxqbzvddn", "hcffcyddglmjthjq", "aoqvuh", "hix", - "wpyeicxmqciwqvh", "og", "igdtopbob")) - .withProperties(new OrganizationPropertiesCustomUpdate())) - .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("u") - .withOfferDetails(new OfferDetailsUpdate())) - .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("onpimexgstxg", model.informaticaOrganizationProperties().tags().get("po")); - Assertions.assertEquals("k", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .tags() - .get("ukdkexxppofmxa")); - Assertions.assertEquals("eojnxqbzvddn", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .tags() - .get("wndeicbtwnp")); - Assertions.assertEquals("u", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .marketplaceDetails() - .marketplaceSubscriptionId()); - Assertions.assertEquals("hrzayvvtpgvdf", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .userDetails() - .firstName()); - Assertions.assertEquals("otkftutqxlngx", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .userDetails() - .lastName()); - Assertions.assertEquals("fgugnxkrxdqmid", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .userDetails() - .emailAddress()); - Assertions.assertEquals("hzrvqd", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .userDetails() - .upn()); - Assertions.assertEquals("bhj", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .userDetails() - .phoneNumber()); - Assertions.assertEquals("gehoqfbowskany", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .companyName()); - Assertions.assertEquals("zlcuiywgqywgndrv", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .officeAddress()); - Assertions.assertEquals("hzgpphrcgyncocpe", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .country()); - Assertions.assertEquals("vmmcoofs", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .domain()); - Assertions.assertEquals("zevgb", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .business()); - Assertions.assertEquals(2005133060, - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .companyDetails() - .numberOfEmployees()); - Assertions.assertEquals("abcypmivk", - model.informaticaOrganizationProperties() - .properties() - .informaticaOrganizationProperties() - .properties() - .existingResourceId()); - Assertions.assertEquals("uvcc", - model.informaticaOrganizationProperties().properties().marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("fnba", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().publisherId()); - Assertions.assertEquals("ionle", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().offerId()); - Assertions.assertEquals("etqgtzxdpnq", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planId()); - Assertions.assertEquals("qwxrjfeallnw", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planName()); - Assertions.assertEquals("bisnja", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termUnit()); - Assertions.assertEquals("mngnzscxaqw", - model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termId()); - Assertions.assertEquals("hcbonqvpkvlr", - model.informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("jease", - model.informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("heoflokeyyienjbd", - model.informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("tgrhpdjpjumas", - model.informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("zj", - model.informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("e", - model.informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("alhbx", - model.informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("e", model.informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("zzvdudgwds", - model.informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("hotwmcynpwlbjnp", - model.informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(1690822953, - model.informaticaOrganizationProperties().properties().companyDetails().numberOfEmployees()); - 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 - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/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 deleted file mode 100644 index d90749282cf26..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesWithResponseMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.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.test.http.MockHttpResponse; -import com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager; -import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceList; -import com.azure.resourcemanager.informaticadatamanagement.models.RuntimeType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OrganizationsGetAllServerlessRuntimesWithResponseMockTests { - @Test - public void testGetAllServerlessRuntimesWithResponse() throws Exception { - String responseStr - = "{\"informaticaRuntimeResources\":[{\"name\":\"nmwcpmgu\",\"createdTime\":\"adraufactkahzo\",\"updatedTime\":\"ajjziuxxpshne\",\"createdBy\":\"kulfg\",\"updatedBy\":\"lqubkwdlen\",\"id\":\"d\",\"type\":\"SERVERLESS\",\"status\":\"tujbazpju\",\"statusLocalized\":\"hminyflnorwmduv\",\"statusMessage\":\"pklvxw\",\"serverlessConfigProperties\":{\"subnet\":\"gdxpg\",\"applicationType\":\"chisze\",\"resourceGroupName\":\"nb\",\"advancedCustomProperties\":\"rxgibbd\",\"supplementaryFileLocation\":\"confozauors\",\"platform\":\"okwbqplh\",\"tags\":\"nuuepzlrp\",\"vnet\":\"zsoldwey\",\"executionTimeout\":\"dunvmnnrwrbiorkt\",\"computeUnits\":\"ywjhhgdnhx\",\"tenantId\":\"ivfomiloxgg\",\"subscriptionId\":\"fi\",\"region\":\"dieuzaofj\",\"serverlessArmResourceId\":\"vcyy\"},\"description\":\"fgdo\"},{\"name\":\"cubiipuipw\",\"createdTime\":\"qonmacj\",\"updatedTime\":\"k\",\"createdBy\":\"izsh\",\"updatedBy\":\"vcimpev\",\"id\":\"gmblrri\",\"type\":\"SERVERLESS\",\"status\":\"ywdxsmic\",\"statusLocalized\":\"wrwfscjfnyns\",\"statusMessage\":\"qujizdvo\",\"serverlessConfigProperties\":{\"subnet\":\"tiby\",\"applicationType\":\"bblgyavut\",\"resourceGroupName\":\"hjoxo\",\"advancedCustomProperties\":\"msksbp\",\"supplementaryFileLocation\":\"lqol\",\"platform\":\"kcgxxlxsffgcvi\",\"tags\":\"zdwlvwlyoupfgfb\",\"vnet\":\"ubdyhgk\",\"executionTimeout\":\"in\",\"computeUnits\":\"owzfttsttkt\",\"tenantId\":\"hbq\",\"subscriptionId\":\"tx\",\"region\":\"zukxitmmqtgqq\",\"serverlessArmResourceId\":\"hrnxrxc\"},\"description\":\"uisavokq\"}]}"; - - 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)); - - InformaticaServerlessRuntimeResourceList response = manager.organizations() - .getAllServerlessRuntimesWithResponse("xtdr", "futacoebjvewzc", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("nmwcpmgu", response.informaticaRuntimeResources().get(0).name()); - Assertions.assertEquals("adraufactkahzo", response.informaticaRuntimeResources().get(0).createdTime()); - Assertions.assertEquals("ajjziuxxpshne", response.informaticaRuntimeResources().get(0).updatedTime()); - Assertions.assertEquals("kulfg", response.informaticaRuntimeResources().get(0).createdBy()); - Assertions.assertEquals("lqubkwdlen", response.informaticaRuntimeResources().get(0).updatedBy()); - Assertions.assertEquals("d", response.informaticaRuntimeResources().get(0).id()); - Assertions.assertEquals(RuntimeType.SERVERLESS, response.informaticaRuntimeResources().get(0).type()); - Assertions.assertEquals("tujbazpju", response.informaticaRuntimeResources().get(0).status()); - Assertions.assertEquals("hminyflnorwmduv", response.informaticaRuntimeResources().get(0).statusLocalized()); - Assertions.assertEquals("pklvxw", response.informaticaRuntimeResources().get(0).statusMessage()); - Assertions.assertEquals("gdxpg", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().subnet()); - Assertions.assertEquals("chisze", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().applicationType()); - Assertions.assertEquals("nb", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().resourceGroupName()); - Assertions.assertEquals("rxgibbd", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().advancedCustomProperties()); - Assertions.assertEquals("confozauors", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().supplementaryFileLocation()); - Assertions.assertEquals("okwbqplh", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().platform()); - Assertions.assertEquals("nuuepzlrp", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().tags()); - Assertions.assertEquals("zsoldwey", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().vnet()); - Assertions.assertEquals("dunvmnnrwrbiorkt", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("ywjhhgdnhx", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().computeUnits()); - Assertions.assertEquals("ivfomiloxgg", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().tenantId()); - Assertions.assertEquals("fi", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().subscriptionId()); - Assertions.assertEquals("dieuzaofj", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().region()); - Assertions.assertEquals("vcyy", - response.informaticaRuntimeResources().get(0).serverlessConfigProperties().serverlessArmResourceId()); - Assertions.assertEquals("fgdo", 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 deleted file mode 100644 index a4e89d3f219c1..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataWithResponseMockTests.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.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.test.http.MockHttpResponse; -import com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager; -import com.azure.resourcemanager.informaticadatamanagement.models.PlatformType; -import com.azure.resourcemanager.informaticadatamanagement.models.RuntimeType; -import com.azure.resourcemanager.informaticadatamanagement.models.ServerlessMetadataResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OrganizationsGetServerlessMetadataWithResponseMockTests { - @Test - public void testGetServerlessMetadataWithResponse() throws Exception { - String responseStr - = "{\"type\":\"SERVERLESS\",\"serverlessConfigProperties\":{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"bihwqknfdnt\",\"value\":\"chrdgoihxumwcto\"},{\"name\":\"zj\",\"value\":\"udfdlwgg\"}],\"computeUnits\":[{\"name\":\"wtovvtgsein\",\"value\":[\"ufxqknpirgnepttw\",\"msniffc\",\"mqnrojlpijnkr\"]}],\"executionTimeout\":\"rddh\",\"regions\":[{\"id\":\"izzronasxiftozqy\",\"name\":\"f\"}]},\"serverlessRuntimeConfigProperties\":{\"cdiConfigProps\":[{\"engineName\":\"gogczhonnxkrlgny\",\"engineVersion\":\"mossxkkgthrrghxj\",\"applicationConfigs\":[{\"type\":\"hqxvcxgfrpdsofbs\",\"name\":\"rnsvbuswd\",\"value\":\"z\",\"platform\":\"ybycnunvj\",\"customized\":\"rtkfawnopq\",\"defaultValue\":\"ikyzirtxdy\"},{\"type\":\"x\",\"name\":\"ejnt\",\"value\":\"sewgioilqukr\",\"platform\":\"dxtqmieoxo\",\"customized\":\"ggufhyaomtb\",\"defaultValue\":\"hhavgrvkffovjz\"}]},{\"engineName\":\"pjbi\",\"engineVersion\":\"gjmfxumvfcl\",\"applicationConfigs\":[{\"type\":\"ovwxnbkfezzxsc\",\"name\":\"hwzdgirujbz\",\"value\":\"omvzzbtd\",\"platform\":\"qvpn\",\"customized\":\"yujviylwdshfssn\",\"defaultValue\":\"bgye\"}]},{\"engineName\":\"rymsgaojfmw\",\"engineVersion\":\"cotmr\",\"applicationConfigs\":[{\"type\":\"irctymoxoftpipiw\",\"name\":\"czuhxacpqjlihh\",\"value\":\"usps\",\"platform\":\"asdvl\",\"customized\":\"fwdgzxulucvp\",\"defaultValue\":\"mrsreuzvxurisjnh\"},{\"type\":\"ytxifqjzgxmrh\",\"name\":\"blwpcesutrgj\",\"value\":\"pauutpw\",\"platform\":\"qhih\",\"customized\":\"jqgwzp\",\"defaultValue\":\"fqntcyp\"},{\"type\":\"xjvfoimwksl\",\"name\":\"rcizjxvyd\",\"value\":\"ceacvlhvygdy\",\"platform\":\"t\",\"customized\":\"mrtwna\",\"defaultValue\":\"jslb\"},{\"type\":\"wkojgcyztsfmzn\",\"name\":\"aeqphchqnr\",\"value\":\"rpxeh\",\"platform\":\"wrykqgai\",\"customized\":\"mvikl\",\"defaultValue\":\"ydv\"}]}],\"cdieConfigProps\":[{\"engineName\":\"ejd\",\"engineVersion\":\"nxcvds\",\"applicationConfigs\":[{\"type\":\"njivolvtnovq\",\"name\":\"zgemjdftuljlt\",\"value\":\"ucea\",\"platform\":\"tmczuomejwcwwqi\",\"customized\":\"knssxmojm\",\"defaultValue\":\"vpkjpr\"},{\"type\":\"kwcf\",\"name\":\"ql\",\"value\":\"yxgtczh\",\"platform\":\"ydbsd\",\"customized\":\"hmkxmaehvbb\",\"defaultValue\":\"uripltfnhtba\"}]},{\"engineName\":\"kgxywr\",\"engineVersion\":\"kpyklyhp\",\"applicationConfigs\":[{\"type\":\"odpvruudlgzib\",\"name\":\"hostgktstvdxecl\",\"value\":\"edqbc\",\"platform\":\"hzlhplodqkdlww\",\"customized\":\"fbumlkx\",\"defaultValue\":\"rqjfsmlm\"},{\"type\":\"txhwgfws\",\"name\":\"tawc\",\"value\":\"ezbrhubskh\",\"platform\":\"dyg\",\"customized\":\"ookk\",\"defaultValue\":\"fqjbvleo\"}]},{\"engineName\":\"fmluiqtqzfavyvn\",\"engineVersion\":\"qybaryeua\",\"applicationConfigs\":[{\"type\":\"kq\",\"name\":\"bqgzslesjcbhern\",\"value\":\"tiewdj\",\"platform\":\"vbquwr\",\"customized\":\"ehwagoh\",\"defaultValue\":\"uffkmrqemvvh\"}]}]}}"; - - 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)); - - ServerlessMetadataResponse response = manager.organizations() - .getServerlessMetadataWithResponse("rd", "iwii", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(RuntimeType.SERVERLESS, response.type()); - Assertions.assertEquals(PlatformType.AZURE, response.serverlessConfigProperties().platform()); - Assertions.assertEquals("bihwqknfdnt", response.serverlessConfigProperties().applicationTypes().get(0).name()); - Assertions.assertEquals("chrdgoihxumwcto", - response.serverlessConfigProperties().applicationTypes().get(0).value()); - Assertions.assertEquals("wtovvtgsein", response.serverlessConfigProperties().computeUnits().get(0).name()); - Assertions.assertEquals("ufxqknpirgnepttw", - response.serverlessConfigProperties().computeUnits().get(0).value().get(0)); - Assertions.assertEquals("rddh", response.serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("izzronasxiftozqy", response.serverlessConfigProperties().regions().get(0).id()); - Assertions.assertEquals("f", response.serverlessConfigProperties().regions().get(0).name()); - Assertions.assertEquals("gogczhonnxkrlgny", - response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineName()); - Assertions.assertEquals("mossxkkgthrrghxj", - response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineVersion()); - Assertions.assertEquals("hqxvcxgfrpdsofbs", - response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("rnsvbuswd", - response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("z", - response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("ybycnunvj", - response.serverlessRuntimeConfigProperties() - .cdiConfigProps() - .get(0) - .applicationConfigs() - .get(0) - .platform()); - Assertions.assertEquals("rtkfawnopq", - response.serverlessRuntimeConfigProperties() - .cdiConfigProps() - .get(0) - .applicationConfigs() - .get(0) - .customized()); - Assertions.assertEquals("ikyzirtxdy", - response.serverlessRuntimeConfigProperties() - .cdiConfigProps() - .get(0) - .applicationConfigs() - .get(0) - .defaultValue()); - Assertions.assertEquals("ejd", - response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineName()); - Assertions.assertEquals("nxcvds", - response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineVersion()); - Assertions.assertEquals("njivolvtnovq", - response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("zgemjdftuljlt", - response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("ucea", - response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("tmczuomejwcwwqi", - response.serverlessRuntimeConfigProperties() - .cdieConfigProps() - .get(0) - .applicationConfigs() - .get(0) - .platform()); - Assertions.assertEquals("knssxmojm", - response.serverlessRuntimeConfigProperties() - .cdieConfigProps() - .get(0) - .applicationConfigs() - .get(0) - .customized()); - Assertions.assertEquals("vpkjpr", - response.serverlessRuntimeConfigProperties() - .cdieConfigProps() - .get(0) - .applicationConfigs() - .get(0) - .defaultValue()); - } -} 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 deleted file mode 100644 index 8140a8f26dc17..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/RegionsMetadataTests.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.RegionsMetadata; -import org.junit.jupiter.api.Assertions; - -public final class RegionsMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - 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 deleted file mode 100644 index 75618367f94da..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessConfigPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.PlatformType; -import com.azure.resourcemanager.informaticadatamanagement.models.ServerlessConfigProperties; -import org.junit.jupiter.api.Assertions; - -public final class ServerlessConfigPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerlessConfigProperties model = BinaryData.fromString( - "{\"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("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 deleted file mode 100644 index f90292c3a58fd..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessMetadataResponseInnerTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.fluent.models.ServerlessMetadataResponseInner; -import com.azure.resourcemanager.informaticadatamanagement.models.PlatformType; -import com.azure.resourcemanager.informaticadatamanagement.models.RuntimeType; -import org.junit.jupiter.api.Assertions; - -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\":\"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("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("dhibnuq", - model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("kpikadrgvt", - model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("agnb", - model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("ynhijggme", - model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("fsiarbutr", - model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("vpnazzm", - model.serverlessRuntimeConfigProperties() - .cdiConfigProps() - .get(0) - .applicationConfigs() - .get(0) - .defaultValue()); - Assertions.assertEquals("xy", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineName()); - Assertions.assertEquals("lmoyrx", - model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineVersion()); - Assertions.assertEquals("fudwpznt", - model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("hdzhlrqj", - model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("hckfrlhrx", - model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("bkyvp", - model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("ca", - model.serverlessRuntimeConfigProperties() - .cdieConfigProps() - .get(0) - .applicationConfigs() - .get(0) - .customized()); - Assertions.assertEquals("uzbpzkafku", - model.serverlessRuntimeConfigProperties() - .cdieConfigProps() - .get(0) - .applicationConfigs() - .get(0) - .defaultValue()); - } -} 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 deleted file mode 100644 index 5bbefbc6a4f02..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesTests.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.ApplicationConfigs; -import com.azure.resourcemanager.informaticadatamanagement.models.CdiConfigProps; -import com.azure.resourcemanager.informaticadatamanagement.models.ServerlessRuntimeConfigProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ServerlessRuntimeConfigPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerlessRuntimeConfigProperties model = BinaryData.fromString( - "{\"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("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("qbex") - .withEngineVersion("mcqibycnojv") - .withApplicationConfigs(Arrays.asList( - 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("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("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 deleted file mode 100644 index 1e8ee28411aae..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesUpdateTests.java +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.ApplicationConfigs; -import com.azure.resourcemanager.informaticadatamanagement.models.CdiConfigProps; -import com.azure.resourcemanager.informaticadatamanagement.models.ServerlessRuntimeConfigPropertiesUpdate; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ServerlessRuntimeConfigPropertiesUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerlessRuntimeConfigPropertiesUpdate model = BinaryData.fromString( - "{\"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("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("ebwnujhe") - .withEngineVersion("msbvdkcrodtjinf") - .withApplicationConfigs(Arrays.asList( - 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") - .withPlatform("odacizs") - .withCustomized("q") - .withDefaultValue("hkr"))), - new CdiConfigProps().withEngineName("ibdeibq") - .withEngineVersion("p") - .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("ghvxndzwmkrefa") - .withName("pjorwkqnyhg") - .withValue("ij") - .withPlatform("jivfxzsjabib") - .withCustomized("ystawfsdjpvkvp") - .withDefaultValue("jxbkzbzkdvn"))), - new CdiConfigProps().withEngineName("jabudurgkakmo") - .withEngineVersion("zhjjklffhmouwq") - .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("zrfze") - .withName("yebizikayuh") - .withValue("lbjbsyb") - .withPlatform("qwrvtldgmfp") - .withCustomized("vm") - .withDefaultValue("ipaslthaqfxssmwu"))))); - model = BinaryData.fromObject(model).toObject(ServerlessRuntimeConfigPropertiesUpdate.class); - 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 deleted file mode 100644 index 77169d97e1904..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeDependencyTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.ServerlessRuntimeDependency; -import org.junit.jupiter.api.Assertions; - -public final class ServerlessRuntimeDependencyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerlessRuntimeDependency model = BinaryData.fromString( - "{\"id\":\"rgz\",\"appContextId\":\"frl\",\"path\":\"zszrnwoiindfpw\",\"documentType\":\"jylwbtlhflsj\",\"description\":\"dhszfjv\",\"lastUpdatedTime\":\"bgofeljag\"}") - .toObject(ServerlessRuntimeDependency.class); - 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 deleted file mode 100644 index ddf99fa6a2421..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.NetworkInterfaceConfiguration; -import com.azure.resourcemanager.informaticadatamanagement.models.ServerlessRuntimeNetworkProfile; -import org.junit.jupiter.api.Assertions; - -public final class ServerlessRuntimeNetworkProfileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerlessRuntimeNetworkProfile model = BinaryData.fromString( - "{\"networkInterfaceConfiguration\":{\"vnetId\":\"ohgwxrtfudxepxg\",\"subnetId\":\"qagvrvm\",\"vnetResourceGuid\":\"k\"}}") - .toObject(ServerlessRuntimeNetworkProfile.class); - 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("ohgwxrtfudxepxg") - .withSubnetId("qagvrvm") - .withVnetResourceGuid("k")); - model = BinaryData.fromObject(model).toObject(ServerlessRuntimeNetworkProfile.class); - 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 deleted file mode 100644 index 9dad4e2c80ea5..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileUpdateTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.NetworkInterfaceConfigurationUpdate; -import com.azure.resourcemanager.informaticadatamanagement.models.ServerlessRuntimeNetworkProfileUpdate; -import org.junit.jupiter.api.Assertions; - -public final class ServerlessRuntimeNetworkProfileUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerlessRuntimeNetworkProfileUpdate model = BinaryData.fromString( - "{\"networkInterfaceConfiguration\":{\"vnetId\":\"oaxoruzfgsqu\",\"subnetId\":\"xrxxlep\",\"vnetResourceGuid\":\"amxjezwlw\"}}") - .toObject(ServerlessRuntimeNetworkProfileUpdate.class); - 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("oaxoruzfgsqu") - .withSubnetId("xrxxlep") - .withVnetResourceGuid("amxjezwlw")); - model = BinaryData.fromObject(model).toObject(ServerlessRuntimeNetworkProfileUpdate.class); - 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 deleted file mode 100644 index d73379643d76d..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeTagTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.ServerlessRuntimeTag; -import org.junit.jupiter.api.Assertions; - -public final class ServerlessRuntimeTagTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerlessRuntimeTag model - = BinaryData.fromString("{\"name\":\"a\",\"value\":\"xwczelpcire\"}").toObject(ServerlessRuntimeTag.class); - Assertions.assertEquals("a", model.name()); - Assertions.assertEquals("xwczelpcire", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServerlessRuntimeTag model = new ServerlessRuntimeTag().withName("a").withValue("xwczelpcire"); - model = BinaryData.fromObject(model).toObject(ServerlessRuntimeTag.class); - Assertions.assertEquals("a", model.name()); - 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 deleted file mode 100644 index 4c9db014dbc8e..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesWithResponseMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.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.test.http.MockHttpResponse; -import com.azure.resourcemanager.informaticadatamanagement.InformaticaDataManagementManager; -import com.azure.resourcemanager.informaticadatamanagement.models.CheckDependenciesResponse; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ServerlessRuntimesCheckDependenciesWithResponseMockTests { - @Test - public void testCheckDependenciesWithResponse() throws Exception { - String responseStr - = "{\"count\":1199003595,\"id\":\"mmrqz\",\"references\":[{\"id\":\"rjvpglydzgkrvqee\",\"appContextId\":\"toepryu\",\"path\":\"nwy\",\"documentType\":\"pzdm\",\"description\":\"vzvfvaawzqadfl\",\"lastUpdatedTime\":\"z\"}]}"; - - 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)); - - CheckDependenciesResponse response = manager.serverlessRuntimes() - .checkDependenciesWithResponse("wk", "ziycslevufuztck", "yhjtqedcgzu", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(1199003595, response.count()); - Assertions.assertEquals("mmrqz", response.id()); - Assertions.assertEquals("rjvpglydzgkrvqee", response.references().get(0).id()); - Assertions.assertEquals("toepryu", response.references().get(0).appContextId()); - Assertions.assertEquals("nwy", response.references().get(0).path()); - Assertions.assertEquals("pzdm", response.references().get(0).documentType()); - Assertions.assertEquals("vzvfvaawzqadfl", response.references().get(0).description()); - Assertions.assertEquals("z", response.references().get(0).lastUpdatedTime()); - } -} 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 deleted file mode 100644 index bb04db020e2e1..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.UserDetails; -import org.junit.jupiter.api.Assertions; - -public final class UserDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserDetails model = BinaryData.fromString( - "{\"firstName\":\"wyiftyhxhur\",\"lastName\":\"ftyxolniw\",\"emailAddress\":\"cukjf\",\"upn\":\"iawxklry\",\"phoneNumber\":\"wckbasyypnd\"}") - .toObject(UserDetails.class); - 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("wyiftyhxhur") - .withLastName("ftyxolniw") - .withEmailAddress("cukjf") - .withUpn("iawxklry") - .withPhoneNumber("wckbasyypnd"); - model = BinaryData.fromObject(model).toObject(UserDetails.class); - 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 deleted file mode 100644 index d4133e8b2ac36..0000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsUpdateTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.UserDetailsUpdate; -import org.junit.jupiter.api.Assertions; - -public final class UserDetailsUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserDetailsUpdate model = BinaryData.fromString( - "{\"firstName\":\"j\",\"lastName\":\"ovm\",\"emailAddress\":\"kacspkw\",\"upn\":\"zdobpxjmflbvvnch\",\"phoneNumber\":\"cciw\"}") - .toObject(UserDetailsUpdate.class); - 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("j") - .withLastName("ovm") - .withEmailAddress("kacspkw") - .withUpn("zdobpxjmflbvvnch") - .withPhoneNumber("cciw"); - model = BinaryData.fromObject(model).toObject(UserDetailsUpdate.class); - 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()); - } -}