From 9ecee3287fcda521a07d0f553c25aecffd0b8e12 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 15 Jul 2024 01:07:29 -0400 Subject: [PATCH] [Automation] Generate Fluent Lite from Swagger informatica#package-2024-05-08 (#41142) * [Automation] External Change * [Automation] Generate Fluent Lite from Swagger informatica#package-2024-05-08 * remove tsp-location.yaml as generated from swagger --------- Co-authored-by: XiaofeiCao --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 201 ++++- .../README.md | 15 +- .../SAMPLE.md | 349 +++++-- .../pom.xml | 9 +- .../InformaticaDataManagementManager.java | 20 +- ...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 | 26 +- .../generated/OrganizationsDeleteSamples.java | 20 +- ...ationsGetAllServerlessRuntimesSamples.java | 21 +- ...rganizationsGetByResourceGroupSamples.java | 20 +- ...nizationsGetServerlessMetadataSamples.java | 20 +- ...ganizationsListByResourceGroupSamples.java | 20 +- .../generated/OrganizationsListSamples.java | 20 +- .../generated/OrganizationsUpdateSamples.java | 26 +- ...rlessRuntimesCheckDependenciesSamples.java | 21 +- ...rverlessRuntimesCreateOrUpdateSamples.java | 26 +- .../ServerlessRuntimesDeleteSamples.java | 6 +- .../ServerlessRuntimesGetSamples.java | 21 +- ...istByInformaticaOrganizationResourceS.java | 5 +- ...RuntimesServerlessResourceByIdSamples.java | 5 +- ...esStartFailedServerlessRuntimeSamples.java | 5 +- .../ServerlessRuntimesUpdateSamples.java | 101 ++- .../generated/ApplicationConfigsTests.java | 40 +- .../ApplicationTypeMetadataTests.java | 8 +- .../generated/CdiConfigPropsTests.java | 76 +- .../CheckDependenciesResponseInnerTests.java | 20 +- .../generated/CompanyDetailsTests.java | 40 +- .../generated/CompanyDetailsUpdateTests.java | 40 +- .../generated/ComputeUnitsMetadataTests.java | 10 +- ...InfaRuntimeResourceFetchMetaDataTests.java | 44 - ...InfaRuntimeResourceFetchMetadataTests.java | 44 + ...aServerlessFetchConfigPropertiesTests.java | 32 +- ...maticaOrganizationResourceUpdateTests.java | 290 +++--- .../generated/InformaticaPropertiesTests.java | 28 +- ...rverlessRuntimeResourceListInnerTests.java | 52 +- .../generated/MarketplaceDetailsTests.java | 46 +- .../MarketplaceDetailsUpdateTests.java | 46 +- .../NetworkInterfaceConfigurationTests.java | 23 +- ...workInterfaceConfigurationUpdateTests.java | 26 +- .../generated/OfferDetailsTests.java | 40 +- .../generated/OfferDetailsUpdateTests.java | 40 +- .../generated/OperationDisplayTests.java | 9 +- .../generated/OperationInnerTests.java | 11 +- .../generated/OperationListResultTests.java | 14 +- .../generated/OperationsListMockTests.java | 11 +- ...ganizationPropertiesCustomUpdateTests.java | 346 +++---- ...rverlessRuntimesWithResponseMockTests.java | 54 +- ...rverlessMetadataWithResponseMockTests.java | 53 +- .../generated/RegionsMetadataTests.java | 10 +- .../ServerlessConfigPropertiesTests.java | 18 +- .../ServerlessMetadataResponseInnerTests.java | 52 +- ...erverlessRuntimeConfigPropertiesTests.java | 221 ++--- ...essRuntimeConfigPropertiesUpdateTests.java | 196 ++-- .../ServerlessRuntimeDependencyTests.java | 16 +- .../ServerlessRuntimeNetworkProfileTests.java | 22 +- ...rlessRuntimeNetworkProfileUpdateTests.java | 22 +- .../generated/ServerlessRuntimeTagTests.java | 10 +- ...heckDependenciesWithResponseMockTests.java | 23 +- ...rtFailedServerlessRuntimeWitMockTests.java | 4 +- .../generated/UserDetailsTests.java | 34 +- .../generated/UserDetailsUpdateTests.java | 34 +- .../tsp-location.yaml | 4 - 148 files changed, 3209 insertions(+), 2685 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/InfaRuntimeResourceFetchMetaDataTests.java create mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetadataTests.java delete mode 100644 sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/tsp-location.yaml diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 60390e67ae55..e4dca1d73d0b 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -462,7 +462,7 @@ com.azure.resourcemanager:azure-resourcemanager-standbypool;1.0.0-beta.1;1.0.0-b com.azure.resourcemanager:azure-resourcemanager-edgezones;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-devopsinfrastructure;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-oracledatabase;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-informaticadatamanagement;1.0.0-beta.1;1.0.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-informaticadatamanagement;1.0.0-beta.1;1.0.0 com.azure.resourcemanager:azure-resourcemanager-mongocluster;1.0.0-beta.1;1.0.0-beta.2 com.azure.tools:azure-sdk-archetype;1.0.0;1.2.0-beta.1 com.azure.tools:azure-sdk-build-tool;1.0.0;1.1.0-beta.1 diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md index 76263d57ae3a..151402257813 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md @@ -1,14 +1,207 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0 (2024-07-15) -### Features Added +- 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). ### Breaking Changes -### Bugs Fixed +* `implementation.models.InformaticaOrganizationResourceListResult` was removed + +* `implementation.models.PagedOperation` was removed + +* `models.InfaRuntimeResourceFetchMetaData` was removed + +* `implementation.models.InformaticaServerlessRuntimeResourceListResult` was removed + +#### `InformaticaDataManagementManager` was modified + +* `fluent.DataManagementClient serviceClient()` -> `fluent.InformaticaDataManagement serviceClient()` + +### Features Added + +* `models.OperationListResult` was added + +* `models.InformaticaOrganizationResourceListResult` was added + +* `models.InformaticaServerlessRuntimeResourceListResult` was added + +* `models.InfaRuntimeResourceFetchMetadata` was added + +#### `models.MarketplaceDetails` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.RegionsMetadata` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.InformaticaProperties` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ServerlessRuntimeUserContextProperties` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.NetworkInterfaceConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.LinkOrganization` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.InformaticaServerlessRuntimeResourceUpdate` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ServerlessRuntimeTag` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ServerlessRuntimeNetworkProfile` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.MarketplaceDetailsUpdate` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.InfaServerlessFetchConfigProperties` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.CompanyDetailsUpdate` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.OfferDetailsUpdate` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ServerlessRuntimeUserContextPropertiesUpdate` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ServerlessConfigProperties` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ServerlessRuntimeConfigProperties` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.OrganizationPropertiesCustomUpdate` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ApplicationTypeMetadata` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.CompanyDetails` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.OperationDisplay` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ServerlessRuntimeConfigPropertiesUpdate` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.UserDetails` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.CdiConfigProps` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.InformaticaOrganizationResourceUpdate` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.UserDetailsUpdate` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.InformaticaServerlessRuntimeProperties` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ServerlessRuntimeNetworkProfileUpdate` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.OrganizationProperties` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ServerlessRuntimeDependency` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ApplicationConfigs` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.NetworkInterfaceConfigurationUpdate` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ComputeUnitsMetadata` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.OfferDetails` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AdvancedCustomProperties` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ServerlessRuntimePropertiesCustomUpdate` was modified -### Other Changes +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added ## 1.0.0-beta.1 (2024-06-03) diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md index 17043e0b2317..96aa0a594b2e 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 ``` [//]: # ({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 5d99d7b294ca..62c27a0d64ed 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 */ /** @@ -87,7 +104,7 @@ public final class OrganizationsCreateOrUpdateSamples { new InformaticaProperties().withOrganizationId("wtdmhlwhkvgqdumaehgfgiqcxgnqpx") .withOrganizationName("nomzbvwe") .withInformaticaRegion("zfqodqpbeflhedypiijdkc") - .withSingleSignOnUrl("espcbzjhtmgwfdkckhqk")) + .withSingleSignOnUrl("https://contoso.com/singlesignon")) .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("ovenlecocg") .withOfferDetails(new OfferDetails() .withPublisherId( @@ -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. @@ -322,10 +456,29 @@ public final class OrganizationsUpdateSamples { .withDomain("dponvwnrdrnzahcurqssesukbsokdd") .withBusiness("mwqblnruflwpolgbxpqbqneve") .withNumberOfEmployees(22)) - .withExistingResourceId("uvwlcphdfkqnhrtddpsiacbowcxxo")) + .withExistingResourceId( + "/subscriptions/subid/resourceGroups/rg1/providers/Informatica.DataManagement/organizations/org1/serverlessRuntimes/serverlessRuntimeName")) .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 +501,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 +555,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 */ /** @@ -405,8 +576,10 @@ public final class ServerlessRuntimesCreateOrUpdateSamples { .withExecutionTimeout("ruiougpypny") .withServerlessAccountLocation("bkxdfopapbqucyhduewrubjpaei") .withServerlessRuntimeNetworkProfile(new ServerlessRuntimeNetworkProfile() - .withNetworkInterfaceConfiguration(new NetworkInterfaceConfiguration().withVnetId("uaqjvtubxccjs") - .withSubnetId("s") + .withNetworkInterfaceConfiguration(new NetworkInterfaceConfiguration().withVnetId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1") + .withSubnetId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/subnet1") .withVnetResourceGuid("5328d299-1462-4be0-bef1-303a28e556a0"))) .withAdvancedCustomProperties(Arrays.asList( new AdvancedCustomProperties().withKey("fakeTokenPlaceholder").withValue("unraxmnohdmvutt"))) @@ -436,6 +609,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 +636,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 +661,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 +673,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 +699,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 +724,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 +750,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 +790,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. @@ -598,44 +822,45 @@ public final class ServerlessRuntimesUpdateSamples { .getWithResponse("rgopenapi", "W5", "t_", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withProperties( - new ServerlessRuntimePropertiesCustomUpdate().withDescription("ocprslpljoikxyduackzqnkuhyzrh") - .withPlatform(PlatformType.AZURE) - .withApplicationType(ApplicationType.CDI) - .withComputeUnits("uncwbpu") - .withExecutionTimeout("tjyfytuywriabt") - .withServerlessAccountLocation("goaugkyfanqfnvcmntreibqrswfpis") - .withServerlessRuntimeNetworkProfile( - new ServerlessRuntimeNetworkProfileUpdate().withNetworkInterfaceConfiguration( - new NetworkInterfaceConfigurationUpdate().withVnetId("tnsqwwoxydeqqffumdnxlkkb") - .withSubnetId("dctcuhgttxhcarwcrgdmsfwksyrzj") - .withVnetResourceGuid("5328d299-1462-4be0-bef1-303a28e556a0"))) - .withAdvancedCustomProperties(Arrays.asList( - new AdvancedCustomProperties().withKey("fakeTokenPlaceholder").withValue("unraxmnohdmvutt"))) - .withSupplementaryFileLocation("csxaqzpxu") - .withServerlessRuntimeConfig(new ServerlessRuntimeConfigPropertiesUpdate() - .withCdiConfigProps( - Arrays.asList(new CdiConfigProps().withEngineName("hngsdqvtjdhwqlbqfotipaiwjuys") - .withEngineVersion("zlrlbg") - .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("lw") - .withName("upfvjrqcrwwedfujkmsodeinw") - .withValue("mozgsetpwjmtyl") - .withPlatform("dixfyeobngivyvf") - .withCustomized("j") - .withDefaultValue("zvgkqwmi"))))) - .withCdieConfigProps( - Arrays.asList(new CdiConfigProps().withEngineName("hngsdqvtjdhwqlbqfotipaiwjuys") - .withEngineVersion("zlrlbg") - .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("lw") - .withName("upfvjrqcrwwedfujkmsodeinw") - .withValue("mozgsetpwjmtyl") - .withPlatform("dixfyeobngivyvf") - .withCustomized("j") - .withDefaultValue("zvgkqwmi")))))) - .withServerlessRuntimeTags( - Arrays.asList(new ServerlessRuntimeTag().withName("korveuycuwhs").withValue("uyiuegxnkgp"))) - .withServerlessRuntimeUserContextProperties(new ServerlessRuntimeUserContextPropertiesUpdate() - .withUserContextToken("fakeTokenPlaceholder"))) + .withProperties(new ServerlessRuntimePropertiesCustomUpdate() + .withDescription("ocprslpljoikxyduackzqnkuhyzrh") + .withPlatform(PlatformType.AZURE) + .withApplicationType(ApplicationType.CDI) + .withComputeUnits("uncwbpu") + .withExecutionTimeout("tjyfytuywriabt") + .withServerlessAccountLocation("goaugkyfanqfnvcmntreibqrswfpis") + .withServerlessRuntimeNetworkProfile(new ServerlessRuntimeNetworkProfileUpdate() + .withNetworkInterfaceConfiguration(new NetworkInterfaceConfigurationUpdate().withVnetId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1") + .withSubnetId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/subnet1") + .withVnetResourceGuid("5328d299-1462-4be0-bef1-303a28e556a0"))) + .withAdvancedCustomProperties(Arrays.asList( + new AdvancedCustomProperties().withKey("fakeTokenPlaceholder").withValue("unraxmnohdmvutt"))) + .withSupplementaryFileLocation("csxaqzpxu") + .withServerlessRuntimeConfig(new ServerlessRuntimeConfigPropertiesUpdate() + .withCdiConfigProps( + Arrays.asList(new CdiConfigProps().withEngineName("hngsdqvtjdhwqlbqfotipaiwjuys") + .withEngineVersion("zlrlbg") + .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("lw") + .withName("upfvjrqcrwwedfujkmsodeinw") + .withValue("mozgsetpwjmtyl") + .withPlatform("dixfyeobngivyvf") + .withCustomized("j") + .withDefaultValue("zvgkqwmi"))))) + .withCdieConfigProps( + Arrays.asList(new CdiConfigProps().withEngineName("hngsdqvtjdhwqlbqfotipaiwjuys") + .withEngineVersion("zlrlbg") + .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("lw") + .withName("upfvjrqcrwwedfujkmsodeinw") + .withValue("mozgsetpwjmtyl") + .withPlatform("dixfyeobngivyvf") + .withCustomized("j") + .withDefaultValue("zvgkqwmi")))))) + .withServerlessRuntimeTags( + Arrays.asList(new ServerlessRuntimeTag().withName("korveuycuwhs").withValue("uyiuegxnkgp"))) + .withServerlessRuntimeUserContextProperties( + new ServerlessRuntimeUserContextPropertiesUpdate().withUserContextToken("fakeTokenPlaceholder"))) .apply(); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml index 385b065896c4..5b0e4c030e61 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml @@ -1,7 +1,7 @@ 4.0.0 @@ -14,11 +14,11 @@ Code generated by Microsoft (R) TypeSpec Code Generator. com.azure.resourcemanager azure-resourcemanager-informaticadatamanagement - 1.0.0-beta.2 + 1.0.0 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 @@ -45,7 +45,6 @@ Code generated by Microsoft (R) TypeSpec Code Generator. UTF-8 0 0 - true 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 778eb7a840c2..86613c62a976 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) @@ -214,7 +214,7 @@ public InformaticaDataManagementManager authenticate(TokenCredential credential, .append("-") .append("com.azure.resourcemanager.informaticadatamanagement") .append("/") - .append("1.0.0-beta.1"); + .append("1.0.0"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -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 e38076392173..557cfd925f4a 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 525914b91993..5957196a0302 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 26cb98c0083a..c1f0775c1548 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 243750fd868a..2be74e3d4dbf 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 c67f9f22c7aa..b181dd2d5f97 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 2664749c18ca..9f58ec160829 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 95e319cc1d48..e2f10d9cfced 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 3a595f9e86eb..9e8c35c92230 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 c6dc89bfda3b..9c31cf04b99c 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 a39a33daadec..dfdf06fab932 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 b2a4a44de77b..70ef22300cce 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 b4dfb8670fe7..c6adef6daac0 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 510c8ac7d81d..7cffd6a118f1 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 d0f36fab9e8a..603397f65fcd 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 75c8bbc06a06..16c962282859 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 6e07956d7fb0..3d3589d8094a 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 4ac47d44fabc..a3b6a200e670 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 2d648c05bbcd..4d36bb77a8bb 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 41d2bcadf75f..1eea487edee4 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 7ebfa6f3ffbc..bd3d31cc0e3c 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 bc36b43e1949..7a4e8878fd28 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 e2e22115b8b5..a8392838f0b8 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 d25941b0a007..089838a6f65d 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 b1c44273eed6..a4996de0485a 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 3d1014eb10b5..041b804975a7 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 278684882cea..c7337d7e3bb5 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 e21405f56f11..68c93f748227 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 12e27d4eec8f..326e751be365 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 9de2eaa9d39a..6839ced26a50 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 07048ecf7940..192cd0c00dff 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 997289599317..7bb803c3b03b 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 44e6134d58ba..cf7638ec1e4f 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 9452fefd6386..8d81efd5e485 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 7f33b17b7688..d433dc15a268 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 3067d6eae20e..a5786048723b 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 241a275178e2..28a3352ebf1e 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 5c3cad33455f..62636b4f74e4 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 2bd75b9257b5..32881a84671f 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 4377325c40af..98b92c014464 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 b56261c00ea2..c8e02b7e842c 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 0e8b246c4906..faa0fa475828 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 4e71eb07a1c5..24e4d28f3332 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 312de72f9014..8836bfb80b66 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 5640e05b2d03..ea7a90fdad5e 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 fcfc7a637f6a..5e39b727194d 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 51c06f3ec48d..47e19727e6fd 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 fbcbe3fee529..00009a0f5d53 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 e07beed49392..f91d417e560f 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 83ee20fc8f31..bebbfe69a009 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 4ad8fba88c6f..b9798cece9ee 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 a7082f3a8cbd..55e6722d4d6a 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 e280f107ad1e..d65bdab3f77a 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 3452f6c3fe72..0b303207425a 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 06561b37aa02..ef0dd161a9e6 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 1161453eb127..8bd53e6b6d3b 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 d592071c210a..6ae828f8cb54 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 20861e613a2c..6a694e98f370 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 f4a9c83caab8..c79922652ed7 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 fa3f25855486..80e8069449f6 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 711733f4ceb4..f7d9dae81c1a 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 5f2d9b84a7e1..d1a57acc579b 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 c2d53566eb51..8f61c885bc44 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 09635b364665..c2acee1bf878 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 a87cf69e8cce..6bcf005d0046 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 9cbb39889093..93463c873059 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 45620bd6508e..8946102a435d 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 0375a65a8f1e..4b0c6c136128 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 0393d3a5b324..78a1cca9c59a 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 71786da1941e..9e757ca46042 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 a05df839bfda..ae0c851452c2 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 192c316a3f39..b357951bae67 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 ea9294932400..db2b67b3f74e 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 3cd24a893120..99d689c41053 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 e4f860b8eb99..73bdf60fcef5 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 62bf0f48f129..5005f6e28ae6 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 6d59348e2496..5421e22cae09 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 5090f38e4ce5..7d63e285354d 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 f14f19c2464f..5ba4c12f0259 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 b6a5ecf6add5..83cfc89a77f0 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 56ee66d6b18e..8139cbc761b6 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 cb300927a3bc..3cdbde2d4182 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 1af39a0e33cf..d20e09cf2aa9 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 c77c1d9d8fbe..1ac27f11ea24 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 a0f5aea89e9e..1ae65630fa8b 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 c8f5d0e2d2cf..fd0b5db71f71 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; opens com.azure.resourcemanager.informaticadatamanagement.models to com.azure.core; - opens com.azure.resourcemanager.informaticadatamanagement.implementation.models to com.azure.core; } \ 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 319084c23aa4..accc4089ec09 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 9d526f55c9aa..8831345b8101 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 */ /** @@ -39,7 +40,7 @@ public static void organizationsCreateOrUpdate( new InformaticaProperties().withOrganizationId("wtdmhlwhkvgqdumaehgfgiqcxgnqpx") .withOrganizationName("nomzbvwe") .withInformaticaRegion("zfqodqpbeflhedypiijdkc") - .withSingleSignOnUrl("espcbzjhtmgwfdkckhqk")) + .withSingleSignOnUrl("https://contoso.com/singlesignon")) .withMarketplaceDetails(new MarketplaceDetails().withMarketplaceSubscriptionId("ovenlecocg") .withOfferDetails(new OfferDetails() .withPublisherId( @@ -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 6d543e256920..6079c5782dcd 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 ea1ed52cf72d..fd4f2696281d 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 47fd4a9aa0e2..1f9866f39b03 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 6dca7df5d434..6cfdab5b9f45 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 720f8e5b15e7..2ebdd2d9f816 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 2d00fdcaa30f..bbddefc11a15 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 bf7a3dae6ed4..85237fb57002 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. @@ -55,10 +56,29 @@ public static void organizationsUpdate( .withDomain("dponvwnrdrnzahcurqssesukbsokdd") .withBusiness("mwqblnruflwpolgbxpqbqneve") .withNumberOfEmployees(22)) - .withExistingResourceId("uvwlcphdfkqnhrtddpsiacbowcxxo")) + .withExistingResourceId( + "/subscriptions/subid/resourceGroups/rg1/providers/Informatica.DataManagement/organizations/org1/serverlessRuntimes/serverlessRuntimeName")) .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 7295e775eaae..d39c1f0bf188 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 d127ba37f518..9af54ecd8a34 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 */ /** @@ -42,8 +43,10 @@ public static void serverlessRuntimesCreateOrUpdate( .withExecutionTimeout("ruiougpypny") .withServerlessAccountLocation("bkxdfopapbqucyhduewrubjpaei") .withServerlessRuntimeNetworkProfile(new ServerlessRuntimeNetworkProfile() - .withNetworkInterfaceConfiguration(new NetworkInterfaceConfiguration().withVnetId("uaqjvtubxccjs") - .withSubnetId("s") + .withNetworkInterfaceConfiguration(new NetworkInterfaceConfiguration().withVnetId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1") + .withSubnetId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/subnet1") .withVnetResourceGuid("5328d299-1462-4be0-bef1-303a28e556a0"))) .withAdvancedCustomProperties(Arrays.asList( new AdvancedCustomProperties().withKey("fakeTokenPlaceholder").withValue("unraxmnohdmvutt"))) @@ -73,4 +76,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 2950e934188b..7ea525b7a711 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 58233e0f7ab7..325f03a8daf6 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 165aa4d1dfc1..93cd37651dad 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 693570f541ea..644136f7ca0e 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 91b2fcb9502d..7259821429bd 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 7d42d8038e8a..510280c22030 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. @@ -38,44 +56,45 @@ public static void serverlessRuntimesUpdate( .getWithResponse("rgopenapi", "W5", "t_", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withProperties( - new ServerlessRuntimePropertiesCustomUpdate().withDescription("ocprslpljoikxyduackzqnkuhyzrh") - .withPlatform(PlatformType.AZURE) - .withApplicationType(ApplicationType.CDI) - .withComputeUnits("uncwbpu") - .withExecutionTimeout("tjyfytuywriabt") - .withServerlessAccountLocation("goaugkyfanqfnvcmntreibqrswfpis") - .withServerlessRuntimeNetworkProfile( - new ServerlessRuntimeNetworkProfileUpdate().withNetworkInterfaceConfiguration( - new NetworkInterfaceConfigurationUpdate().withVnetId("tnsqwwoxydeqqffumdnxlkkb") - .withSubnetId("dctcuhgttxhcarwcrgdmsfwksyrzj") - .withVnetResourceGuid("5328d299-1462-4be0-bef1-303a28e556a0"))) - .withAdvancedCustomProperties(Arrays.asList( - new AdvancedCustomProperties().withKey("fakeTokenPlaceholder").withValue("unraxmnohdmvutt"))) - .withSupplementaryFileLocation("csxaqzpxu") - .withServerlessRuntimeConfig(new ServerlessRuntimeConfigPropertiesUpdate() - .withCdiConfigProps( - Arrays.asList(new CdiConfigProps().withEngineName("hngsdqvtjdhwqlbqfotipaiwjuys") - .withEngineVersion("zlrlbg") - .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("lw") - .withName("upfvjrqcrwwedfujkmsodeinw") - .withValue("mozgsetpwjmtyl") - .withPlatform("dixfyeobngivyvf") - .withCustomized("j") - .withDefaultValue("zvgkqwmi"))))) - .withCdieConfigProps( - Arrays.asList(new CdiConfigProps().withEngineName("hngsdqvtjdhwqlbqfotipaiwjuys") - .withEngineVersion("zlrlbg") - .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("lw") - .withName("upfvjrqcrwwedfujkmsodeinw") - .withValue("mozgsetpwjmtyl") - .withPlatform("dixfyeobngivyvf") - .withCustomized("j") - .withDefaultValue("zvgkqwmi")))))) - .withServerlessRuntimeTags( - Arrays.asList(new ServerlessRuntimeTag().withName("korveuycuwhs").withValue("uyiuegxnkgp"))) - .withServerlessRuntimeUserContextProperties(new ServerlessRuntimeUserContextPropertiesUpdate() - .withUserContextToken("fakeTokenPlaceholder"))) + .withProperties(new ServerlessRuntimePropertiesCustomUpdate() + .withDescription("ocprslpljoikxyduackzqnkuhyzrh") + .withPlatform(PlatformType.AZURE) + .withApplicationType(ApplicationType.CDI) + .withComputeUnits("uncwbpu") + .withExecutionTimeout("tjyfytuywriabt") + .withServerlessAccountLocation("goaugkyfanqfnvcmntreibqrswfpis") + .withServerlessRuntimeNetworkProfile(new ServerlessRuntimeNetworkProfileUpdate() + .withNetworkInterfaceConfiguration(new NetworkInterfaceConfigurationUpdate().withVnetId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1") + .withSubnetId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/subnet1") + .withVnetResourceGuid("5328d299-1462-4be0-bef1-303a28e556a0"))) + .withAdvancedCustomProperties(Arrays.asList( + new AdvancedCustomProperties().withKey("fakeTokenPlaceholder").withValue("unraxmnohdmvutt"))) + .withSupplementaryFileLocation("csxaqzpxu") + .withServerlessRuntimeConfig(new ServerlessRuntimeConfigPropertiesUpdate() + .withCdiConfigProps( + Arrays.asList(new CdiConfigProps().withEngineName("hngsdqvtjdhwqlbqfotipaiwjuys") + .withEngineVersion("zlrlbg") + .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("lw") + .withName("upfvjrqcrwwedfujkmsodeinw") + .withValue("mozgsetpwjmtyl") + .withPlatform("dixfyeobngivyvf") + .withCustomized("j") + .withDefaultValue("zvgkqwmi"))))) + .withCdieConfigProps( + Arrays.asList(new CdiConfigProps().withEngineName("hngsdqvtjdhwqlbqfotipaiwjuys") + .withEngineVersion("zlrlbg") + .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("lw") + .withName("upfvjrqcrwwedfujkmsodeinw") + .withValue("mozgsetpwjmtyl") + .withPlatform("dixfyeobngivyvf") + .withCustomized("j") + .withDefaultValue("zvgkqwmi")))))) + .withServerlessRuntimeTags( + Arrays.asList(new ServerlessRuntimeTag().withName("korveuycuwhs").withValue("uyiuegxnkgp"))) + .withServerlessRuntimeUserContextProperties( + new ServerlessRuntimeUserContextPropertiesUpdate().withUserContextToken("fakeTokenPlaceholder"))) .apply(); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationConfigsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationConfigsTests.java index 2fc49a8fc58a..e32963025c99 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationConfigsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationConfigsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,30 +12,30 @@ public final class ApplicationConfigsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationConfigs model = BinaryData.fromString( - "{\"type\":\"cjefuzmu\",\"name\":\"pbttdum\",\"value\":\"rp\",\"platform\":\"xe\",\"customized\":\"mnzb\",\"defaultValue\":\"bhjpglkfgohdne\"}") + "{\"type\":\"ztzp\",\"name\":\"fn\",\"value\":\"ckw\",\"platform\":\"fz\",\"customized\":\"whxxbuyqax\",\"defaultValue\":\"feqztppriol\"}") .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()); + Assertions.assertEquals("ztzp", model.type()); + Assertions.assertEquals("fn", model.name()); + Assertions.assertEquals("ckw", model.value()); + Assertions.assertEquals("fz", model.platform()); + Assertions.assertEquals("whxxbuyqax", model.customized()); + Assertions.assertEquals("feqztppriol", model.defaultValue()); } @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"); + ApplicationConfigs model = new ApplicationConfigs().withType("ztzp") + .withName("fn") + .withValue("ckw") + .withPlatform("fz") + .withCustomized("whxxbuyqax") + .withDefaultValue("feqztppriol"); 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()); + Assertions.assertEquals("ztzp", model.type()); + Assertions.assertEquals("fn", model.name()); + Assertions.assertEquals("ckw", model.value()); + Assertions.assertEquals("fz", model.platform()); + Assertions.assertEquals("whxxbuyqax", model.customized()); + Assertions.assertEquals("feqztppriol", model.defaultValue()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationTypeMetadataTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationTypeMetadataTests.java index 3c88f0f7ada1..e4d596d8a25a 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationTypeMetadataTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ApplicationTypeMetadataTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -11,9 +11,9 @@ public final class ApplicationTypeMetadataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ApplicationTypeMetadata model = BinaryData.fromString("{\"name\":\"loayqcgw\",\"value\":\"zjuzgwyz\"}") + ApplicationTypeMetadata model = BinaryData.fromString("{\"name\":\"yrs\",\"value\":\"sytgadgvraea\"}") .toObject(ApplicationTypeMetadata.class); - Assertions.assertEquals("loayqcgw", model.name()); - Assertions.assertEquals("zjuzgwyz", model.value()); + Assertions.assertEquals("yrs", model.name()); + Assertions.assertEquals("sytgadgvraea", model.value()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CdiConfigPropsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CdiConfigPropsTests.java index 03771ba88347..7a5d61e8ad0a 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CdiConfigPropsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CdiConfigPropsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -14,43 +14,55 @@ 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\"}]}") + "{\"engineName\":\"hzv\",\"engineVersion\":\"ytdw\",\"applicationConfigs\":[{\"type\":\"brqubp\",\"name\":\"xhexiilivpdti\",\"value\":\"r\",\"platform\":\"tdqoaxoruzfgsq\",\"customized\":\"yfxrx\",\"defaultValue\":\"l\"},{\"type\":\"ptramxj\",\"name\":\"zwl\",\"value\":\"nwxuqlcvydyp\",\"platform\":\"tdooaoj\",\"customized\":\"niodkooeb\",\"defaultValue\":\"nuj\"},{\"type\":\"emmsbvdkc\",\"name\":\"odtji\",\"value\":\"fw\",\"platform\":\"lfltka\",\"customized\":\"jvefkdlfoakggkfp\",\"defaultValue\":\"gaowpulpqblylsyx\"},{\"type\":\"qjnsjervtia\",\"name\":\"xsdszuempsb\",\"value\":\"kfzbeyvpnqicvi\",\"platform\":\"v\",\"customized\":\"jjxd\",\"defaultValue\":\"rbuukzclewyhmlwp\"}]}") .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()); + Assertions.assertEquals("hzv", model.engineName()); + Assertions.assertEquals("ytdw", model.engineVersion()); + Assertions.assertEquals("brqubp", model.applicationConfigs().get(0).type()); + Assertions.assertEquals("xhexiilivpdti", model.applicationConfigs().get(0).name()); + Assertions.assertEquals("r", model.applicationConfigs().get(0).value()); + Assertions.assertEquals("tdqoaxoruzfgsq", model.applicationConfigs().get(0).platform()); + Assertions.assertEquals("yfxrx", model.applicationConfigs().get(0).customized()); + Assertions.assertEquals("l", model.applicationConfigs().get(0).defaultValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CdiConfigProps model = new CdiConfigProps().withEngineName("gaokonzmnsikv") - .withEngineVersion("kqze") + CdiConfigProps model = new CdiConfigProps().withEngineName("hzv") + .withEngineVersion("ytdw") .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"))); + new ApplicationConfigs().withType("brqubp") + .withName("xhexiilivpdti") + .withValue("r") + .withPlatform("tdqoaxoruzfgsq") + .withCustomized("yfxrx") + .withDefaultValue("l"), + new ApplicationConfigs().withType("ptramxj") + .withName("zwl") + .withValue("nwxuqlcvydyp") + .withPlatform("tdooaoj") + .withCustomized("niodkooeb") + .withDefaultValue("nuj"), + new ApplicationConfigs().withType("emmsbvdkc") + .withName("odtji") + .withValue("fw") + .withPlatform("lfltka") + .withCustomized("jvefkdlfoakggkfp") + .withDefaultValue("gaowpulpqblylsyx"), + new ApplicationConfigs().withType("qjnsjervtia") + .withName("xsdszuempsb") + .withValue("kfzbeyvpnqicvi") + .withPlatform("v") + .withCustomized("jjxd") + .withDefaultValue("rbuukzclewyhmlwp"))); 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()); + Assertions.assertEquals("hzv", model.engineName()); + Assertions.assertEquals("ytdw", model.engineVersion()); + Assertions.assertEquals("brqubp", model.applicationConfigs().get(0).type()); + Assertions.assertEquals("xhexiilivpdti", model.applicationConfigs().get(0).name()); + Assertions.assertEquals("r", model.applicationConfigs().get(0).value()); + Assertions.assertEquals("tdqoaxoruzfgsq", model.applicationConfigs().get(0).platform()); + Assertions.assertEquals("yfxrx", model.applicationConfigs().get(0).customized()); + Assertions.assertEquals("l", model.applicationConfigs().get(0).defaultValue()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CheckDependenciesResponseInnerTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CheckDependenciesResponseInnerTests.java index 73ae923eb922..fe2323bf2a1c 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CheckDependenciesResponseInnerTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CheckDependenciesResponseInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,15 +12,15 @@ public final class CheckDependenciesResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CheckDependenciesResponseInner model = BinaryData.fromString( - "{\"count\":82609235,\"id\":\"rhneuyowq\",\"references\":[{\"id\":\"wyt\",\"appContextId\":\"sibircgpi\",\"path\":\"pzimejzanlfzxi\",\"documentType\":\"vrmbzono\",\"description\":\"i\",\"lastUpdatedTime\":\"rjqc\"}]}") + "{\"count\":1485711526,\"id\":\"xdigrjg\",\"references\":[{\"id\":\"fzdm\",\"appContextId\":\"yqtfihwh\",\"path\":\"otzi\",\"documentType\":\"gamv\",\"description\":\"phoszqz\",\"lastUpdatedTime\":\"dphqamv\"},{\"id\":\"kfwynw\",\"appContextId\":\"vtbvkayh\",\"path\":\"tnvyqiatkzwp\",\"documentType\":\"npwzcjaes\",\"description\":\"vvsccyajguq\",\"lastUpdatedTime\":\"hwyg\"}]}") .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()); + Assertions.assertEquals(1485711526, model.count()); + Assertions.assertEquals("xdigrjg", model.id()); + Assertions.assertEquals("fzdm", model.references().get(0).id()); + Assertions.assertEquals("yqtfihwh", model.references().get(0).appContextId()); + Assertions.assertEquals("otzi", model.references().get(0).path()); + Assertions.assertEquals("gamv", model.references().get(0).documentType()); + Assertions.assertEquals("phoszqz", model.references().get(0).description()); + Assertions.assertEquals("dphqamv", model.references().get(0).lastUpdatedTime()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsTests.java index 6b58df40adae..42b444eed2c8 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,30 +12,30 @@ public final class CompanyDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CompanyDetails model = BinaryData.fromString( - "{\"companyName\":\"sgcbac\",\"officeAddress\":\"ejk\",\"country\":\"ynqgoulzndlikwyq\",\"domain\":\"fgibmadgakeq\",\"business\":\"xybz\",\"numberOfEmployees\":161045800}") + "{\"companyName\":\"wbnguitnwui\",\"officeAddress\":\"a\",\"country\":\"ufizuckyf\",\"domain\":\"rfidfvzwdz\",\"business\":\"tymw\",\"numberOfEmployees\":396497881}") .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()); + Assertions.assertEquals("wbnguitnwui", model.companyName()); + Assertions.assertEquals("a", model.officeAddress()); + Assertions.assertEquals("ufizuckyf", model.country()); + Assertions.assertEquals("rfidfvzwdz", model.domain()); + Assertions.assertEquals("tymw", model.business()); + Assertions.assertEquals(396497881, model.numberOfEmployees()); } @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); + CompanyDetails model = new CompanyDetails().withCompanyName("wbnguitnwui") + .withOfficeAddress("a") + .withCountry("ufizuckyf") + .withDomain("rfidfvzwdz") + .withBusiness("tymw") + .withNumberOfEmployees(396497881); 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()); + Assertions.assertEquals("wbnguitnwui", model.companyName()); + Assertions.assertEquals("a", model.officeAddress()); + Assertions.assertEquals("ufizuckyf", model.country()); + Assertions.assertEquals("rfidfvzwdz", model.domain()); + Assertions.assertEquals("tymw", model.business()); + Assertions.assertEquals(396497881, model.numberOfEmployees()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsUpdateTests.java index b6b4af615139..d4dce4fd26f9 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/CompanyDetailsUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,30 +12,30 @@ public final class CompanyDetailsUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CompanyDetailsUpdate model = BinaryData.fromString( - "{\"companyName\":\"juqk\",\"officeAddress\":\"sa\",\"country\":\"wkuofoskghsauu\",\"domain\":\"jmvxie\",\"business\":\"ugidyjrr\",\"numberOfEmployees\":207335442}") + "{\"companyName\":\"wvl\",\"officeAddress\":\"avwhheunm\",\"country\":\"hgyxzkonoc\",\"domain\":\"oklyaxuconuq\",\"business\":\"fkbey\",\"numberOfEmployees\":1315033601}") .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()); + Assertions.assertEquals("wvl", model.companyName()); + Assertions.assertEquals("avwhheunm", model.officeAddress()); + Assertions.assertEquals("hgyxzkonoc", model.country()); + Assertions.assertEquals("oklyaxuconuq", model.domain()); + Assertions.assertEquals("fkbey", model.business()); + Assertions.assertEquals(1315033601, model.numberOfEmployees()); } @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); + CompanyDetailsUpdate model = new CompanyDetailsUpdate().withCompanyName("wvl") + .withOfficeAddress("avwhheunm") + .withCountry("hgyxzkonoc") + .withDomain("oklyaxuconuq") + .withBusiness("fkbey") + .withNumberOfEmployees(1315033601); 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()); + Assertions.assertEquals("wvl", model.companyName()); + Assertions.assertEquals("avwhheunm", model.officeAddress()); + Assertions.assertEquals("hgyxzkonoc", model.country()); + Assertions.assertEquals("oklyaxuconuq", model.domain()); + Assertions.assertEquals("fkbey", model.business()); + Assertions.assertEquals(1315033601, model.numberOfEmployees()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ComputeUnitsMetadataTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ComputeUnitsMetadataTests.java index cc6580902d32..8dfe3e3a7564 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ComputeUnitsMetadataTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ComputeUnitsMetadataTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -11,9 +11,9 @@ public final class ComputeUnitsMetadataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ComputeUnitsMetadata model = BinaryData.fromString("{\"name\":\"txon\",\"value\":[\"savjcbpwxqps\"]}") - .toObject(ComputeUnitsMetadata.class); - Assertions.assertEquals("txon", model.name()); - Assertions.assertEquals("savjcbpwxqps", model.value().get(0)); + ComputeUnitsMetadata model + = BinaryData.fromString("{\"name\":\"e\",\"value\":[\"arrwlquu\"]}").toObject(ComputeUnitsMetadata.class); + Assertions.assertEquals("e", model.name()); + Assertions.assertEquals("arrwlquu", 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 95acf8582aeb..000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetaDataTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.informaticadatamanagement.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetaData; -import com.azure.resourcemanager.informaticadatamanagement.models.RuntimeType; -import org.junit.jupiter.api.Assertions; - -public final class InfaRuntimeResourceFetchMetaDataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InfaRuntimeResourceFetchMetaData model = BinaryData.fromString( - "{\"name\":\"xkp\",\"createdTime\":\"ksmond\",\"updatedTime\":\"mquxvypo\",\"createdBy\":\"gkopkwhojvpajqgx\",\"updatedBy\":\"smocmbq\",\"id\":\"qvmkcxo\",\"type\":\"SERVERLESS\",\"status\":\"pvhelxprg\",\"statusLocalized\":\"yat\",\"statusMessage\":\"dckcbc\",\"serverlessConfigProperties\":{\"subnet\":\"jrjxgciqibrhosx\",\"applicationType\":\"qrhzoymibmrqyib\",\"resourceGroupName\":\"wfluszdt\",\"advancedCustomProperties\":\"rkwofyyvoqa\",\"supplementaryFileLocation\":\"iexpbtgiwbwo\",\"platform\":\"washr\",\"tags\":\"tkcnqxwb\",\"vnet\":\"kulpiujwaasi\",\"executionTimeout\":\"i\",\"computeUnits\":\"byuqerpqlp\",\"tenantId\":\"cciuqgbdbutau\",\"subscriptionId\":\"btkuwhh\",\"region\":\"ykojoxafnndlpic\",\"serverlessArmResourceId\":\"o\"},\"description\":\"kcdyhbpk\"}") - .toObject(InfaRuntimeResourceFetchMetaData.class); - Assertions.assertEquals("xkp", model.name()); - Assertions.assertEquals("ksmond", model.createdTime()); - Assertions.assertEquals("mquxvypo", model.updatedTime()); - Assertions.assertEquals("gkopkwhojvpajqgx", model.createdBy()); - Assertions.assertEquals("smocmbq", model.updatedBy()); - Assertions.assertEquals("qvmkcxo", model.id()); - Assertions.assertEquals(RuntimeType.SERVERLESS, model.type()); - Assertions.assertEquals("pvhelxprg", model.status()); - Assertions.assertEquals("yat", model.statusLocalized()); - Assertions.assertEquals("dckcbc", model.statusMessage()); - Assertions.assertEquals("jrjxgciqibrhosx", model.serverlessConfigProperties().subnet()); - Assertions.assertEquals("qrhzoymibmrqyib", model.serverlessConfigProperties().applicationType()); - Assertions.assertEquals("wfluszdt", model.serverlessConfigProperties().resourceGroupName()); - Assertions.assertEquals("rkwofyyvoqa", model.serverlessConfigProperties().advancedCustomProperties()); - Assertions.assertEquals("iexpbtgiwbwo", model.serverlessConfigProperties().supplementaryFileLocation()); - Assertions.assertEquals("washr", model.serverlessConfigProperties().platform()); - Assertions.assertEquals("tkcnqxwb", model.serverlessConfigProperties().tags()); - Assertions.assertEquals("kulpiujwaasi", model.serverlessConfigProperties().vnet()); - Assertions.assertEquals("i", model.serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("byuqerpqlp", model.serverlessConfigProperties().computeUnits()); - Assertions.assertEquals("cciuqgbdbutau", model.serverlessConfigProperties().tenantId()); - Assertions.assertEquals("btkuwhh", model.serverlessConfigProperties().subscriptionId()); - Assertions.assertEquals("ykojoxafnndlpic", model.serverlessConfigProperties().region()); - Assertions.assertEquals("o", model.serverlessConfigProperties().serverlessArmResourceId()); - Assertions.assertEquals("kcdyhbpk", model.description()); - } -} diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetadataTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetadataTests.java new file mode 100644 index 000000000000..e1e16f7876d4 --- /dev/null +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaRuntimeResourceFetchMetadataTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.informaticadatamanagement.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetadata; +import com.azure.resourcemanager.informaticadatamanagement.models.RuntimeType; +import org.junit.jupiter.api.Assertions; + +public final class InfaRuntimeResourceFetchMetadataTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + InfaRuntimeResourceFetchMetadata model = BinaryData.fromString( + "{\"name\":\"wfqkquj\",\"createdTime\":\"dsuyonobgla\",\"updatedTime\":\"cq\",\"createdBy\":\"tcc\",\"updatedBy\":\"g\",\"id\":\"udxytlmoyrx\",\"type\":\"SERVERLESS\",\"status\":\"fudwpznt\",\"statusLocalized\":\"hdzhlrqj\",\"statusMessage\":\"hckfrlhrx\",\"serverlessConfigProperties\":{\"subnet\":\"kyv\",\"applicationType\":\"ca\",\"resourceGroupName\":\"z\",\"advancedCustomProperties\":\"zka\",\"supplementaryFileLocation\":\"uwbc\",\"platform\":\"wbme\",\"tags\":\"seyvj\",\"vnet\":\"rts\",\"executionTimeout\":\"spkdee\",\"computeUnits\":\"ofmxagkvtmelmqkr\",\"tenantId\":\"hvljuahaquh\",\"subscriptionId\":\"hmdua\",\"region\":\"exq\",\"serverlessArmResourceId\":\"fadmws\"},\"description\":\"r\"}") + .toObject(InfaRuntimeResourceFetchMetadata.class); + Assertions.assertEquals("wfqkquj", model.name()); + Assertions.assertEquals("dsuyonobgla", model.createdTime()); + Assertions.assertEquals("cq", model.updatedTime()); + Assertions.assertEquals("tcc", model.createdBy()); + Assertions.assertEquals("g", model.updatedBy()); + Assertions.assertEquals("udxytlmoyrx", model.id()); + Assertions.assertEquals(RuntimeType.SERVERLESS, model.type()); + Assertions.assertEquals("fudwpznt", model.status()); + Assertions.assertEquals("hdzhlrqj", model.statusLocalized()); + Assertions.assertEquals("hckfrlhrx", model.statusMessage()); + Assertions.assertEquals("kyv", model.serverlessConfigProperties().subnet()); + Assertions.assertEquals("ca", model.serverlessConfigProperties().applicationType()); + Assertions.assertEquals("z", model.serverlessConfigProperties().resourceGroupName()); + Assertions.assertEquals("zka", model.serverlessConfigProperties().advancedCustomProperties()); + Assertions.assertEquals("uwbc", model.serverlessConfigProperties().supplementaryFileLocation()); + Assertions.assertEquals("wbme", model.serverlessConfigProperties().platform()); + Assertions.assertEquals("seyvj", model.serverlessConfigProperties().tags()); + Assertions.assertEquals("rts", model.serverlessConfigProperties().vnet()); + Assertions.assertEquals("spkdee", model.serverlessConfigProperties().executionTimeout()); + Assertions.assertEquals("ofmxagkvtmelmqkr", model.serverlessConfigProperties().computeUnits()); + Assertions.assertEquals("hvljuahaquh", model.serverlessConfigProperties().tenantId()); + Assertions.assertEquals("hmdua", model.serverlessConfigProperties().subscriptionId()); + Assertions.assertEquals("exq", model.serverlessConfigProperties().region()); + Assertions.assertEquals("fadmws", model.serverlessConfigProperties().serverlessArmResourceId()); + Assertions.assertEquals("r", model.description()); + } +} diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaServerlessFetchConfigPropertiesTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaServerlessFetchConfigPropertiesTests.java index 7074f2611808..19bef8080aee 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaServerlessFetchConfigPropertiesTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InfaServerlessFetchConfigPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,21 +12,21 @@ public final class InfaServerlessFetchConfigPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InfaServerlessFetchConfigProperties model = BinaryData.fromString( - "{\"subnet\":\"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\"}") + "{\"subnet\":\"xpvgo\",\"applicationType\":\"lf\",\"resourceGroupName\":\"sgwbnbbeld\",\"advancedCustomProperties\":\"k\",\"supplementaryFileLocation\":\"ali\",\"platform\":\"rqhakauha\",\"tags\":\"sfwxosowzxc\",\"vnet\":\"i\",\"executionTimeout\":\"ooxdjebwpuc\",\"computeUnits\":\"fvovbvmeuecivy\",\"tenantId\":\"ce\",\"subscriptionId\":\"jgjrwjueiotwm\",\"region\":\"ytdxwit\",\"serverlessArmResourceId\":\"rjaw\"}") .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()); + Assertions.assertEquals("xpvgo", model.subnet()); + Assertions.assertEquals("lf", model.applicationType()); + Assertions.assertEquals("sgwbnbbeld", model.resourceGroupName()); + Assertions.assertEquals("k", model.advancedCustomProperties()); + Assertions.assertEquals("ali", model.supplementaryFileLocation()); + Assertions.assertEquals("rqhakauha", model.platform()); + Assertions.assertEquals("sfwxosowzxc", model.tags()); + Assertions.assertEquals("i", model.vnet()); + Assertions.assertEquals("ooxdjebwpuc", model.executionTimeout()); + Assertions.assertEquals("fvovbvmeuecivy", model.computeUnits()); + Assertions.assertEquals("ce", model.tenantId()); + Assertions.assertEquals("jgjrwjueiotwm", model.subscriptionId()); + Assertions.assertEquals("ytdxwit", model.region()); + Assertions.assertEquals("rjaw", model.serverlessArmResourceId()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaOrganizationResourceUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaOrganizationResourceUpdateTests.java index 41dd13de9b8e..2ef551068421 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaOrganizationResourceUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaOrganizationResourceUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -19,285 +19,287 @@ 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\"}}") + "{\"tags\":{\"jcmmxdcufufsrp\":\"km\",\"sgfyccsnew\":\"mzidnsezcxtb\",\"oosflnr\":\"dwzjeiach\",\"vypyqrimzinpv\":\"sfqpteehz\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"ckwhds\":\"irsoodqxhcrmnohj\",\"znorcj\":\"ifiyipjxsqwpgrj\",\"xqabnmocpcysh\":\"vsnb\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"j\":\"bl\"},\"properties\":{\"informaticaOrganizationProperties\":{},\"marketplaceDetails\":{},\"userDetails\":{},\"companyDetails\":{},\"existingResourceId\":\"jmkljavbqidtqajz\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"pku\",\"offerDetails\":{\"publisherId\":\"rlkhbzhfepgzgq\",\"offerId\":\"zloc\",\"planId\":\"c\",\"planName\":\"ierhhbcsglummaj\",\"termUnit\":\"aodxo\",\"termId\":\"bdxkqpxokaj\"}},\"userDetails\":{\"firstName\":\"pimexgstxgcpodg\",\"lastName\":\"ajrmvdjwzrlovmc\",\"emailAddress\":\"hijco\",\"upn\":\"ctbzaq\",\"phoneNumber\":\"sycbkbfk\"},\"companyDetails\":{\"companyName\":\"dkexxppofm\",\"officeAddress\":\"x\",\"country\":\"jpgd\",\"domain\":\"ocjjxhvpmouexh\",\"business\":\"xibqeojnx\",\"numberOfEmployees\":2010157167},\"existingResourceId\":\"ddntwndei\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"w\",\"offerDetails\":{\"publisherId\":\"aoqvuh\",\"offerId\":\"cffcyddglmj\",\"planId\":\"jqkwpyeicx\",\"planName\":\"ciwqvhk\",\"termUnit\":\"xuigdtopbobj\",\"termId\":\"hm\"}},\"userDetails\":{\"firstName\":\"a\",\"lastName\":\"uhrzayvvt\",\"emailAddress\":\"vdfgiotk\",\"upn\":\"utqxlngx\",\"phoneNumber\":\"fgugnxkrxdqmid\"},\"companyDetails\":{\"companyName\":\"zrvqdr\",\"officeAddress\":\"hjybigehoqfbo\",\"country\":\"kanyktzlcuiywg\",\"domain\":\"wgndrvynhzgpp\",\"business\":\"cgyncocpecf\",\"numberOfEmployees\":925016585},\"existingResourceId\":\"oo\"}}") .toObject(InformaticaOrganizationResourceUpdate.class); - Assertions.assertEquals("flmmnk", model.tags().get("smodmgloug")); - Assertions.assertEquals("pwgcuertu", - model.properties().informaticaOrganizationProperties().tags().get("kdosvqw")); - Assertions.assertEquals("qux", + Assertions.assertEquals("km", model.tags().get("jcmmxdcufufsrp")); + Assertions.assertEquals("irsoodqxhcrmnohj", + model.properties().informaticaOrganizationProperties().tags().get("ckwhds")); + Assertions.assertEquals("bl", model.properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("gjyjgzjaoyfhrtxi")); - Assertions.assertEquals("fqawrlyxw", + .get("j")); + Assertions.assertEquals("jmkljavbqidtqajz", model.properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .existingResourceId()); - Assertions.assertEquals("prbnwbxgjvtbv", + Assertions.assertEquals("pku", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .marketplaceSubscriptionId()); - Assertions.assertEquals("szdnr", + Assertions.assertEquals("rlkhbzhfepgzgq", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .publisherId()); - Assertions.assertEquals("qguhmuo", + Assertions.assertEquals("zloc", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .offerId()); - Assertions.assertEquals("f", + Assertions.assertEquals("c", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .planId()); - Assertions.assertEquals("wzwbnguitn", + Assertions.assertEquals("ierhhbcsglummaj", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .planName()); - Assertions.assertEquals("izgazxu", + Assertions.assertEquals("aodxo", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .termUnit()); - Assertions.assertEquals("zuckyfi", + Assertions.assertEquals("bdxkqpxokaj", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .termId()); - Assertions.assertEquals("idf", + Assertions.assertEquals("pimexgstxgcpodg", model.properties().informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("wdzuhtymwisd", + Assertions.assertEquals("ajrmvdjwzrlovmc", model.properties().informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("thwxmnteiwaopvkm", + Assertions.assertEquals("hijco", model.properties().informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("c", + Assertions.assertEquals("ctbzaq", model.properties().informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("xdcu", + Assertions.assertEquals("sycbkbfk", model.properties().informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("srp", + Assertions.assertEquals("dkexxppofm", model.properties().informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("zidnsezcxtbzsgfy", + Assertions.assertEquals("x", model.properties().informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("sne", + Assertions.assertEquals("jpgd", model.properties().informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("dwzjeiach", + Assertions.assertEquals("ocjjxhvpmouexh", model.properties().informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("osfln", + Assertions.assertEquals("xibqeojnx", model.properties().informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(13730136, + Assertions.assertEquals(2010157167, model.properties().informaticaOrganizationProperties().properties().companyDetails().numberOfEmployees()); - Assertions.assertEquals("qpteeh", + Assertions.assertEquals("ddntwndei", 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()); + Assertions.assertEquals("w", model.properties().marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("aoqvuh", model.properties().marketplaceDetails().offerDetails().publisherId()); + Assertions.assertEquals("cffcyddglmj", model.properties().marketplaceDetails().offerDetails().offerId()); + Assertions.assertEquals("jqkwpyeicx", model.properties().marketplaceDetails().offerDetails().planId()); + Assertions.assertEquals("ciwqvhk", model.properties().marketplaceDetails().offerDetails().planName()); + Assertions.assertEquals("xuigdtopbobj", model.properties().marketplaceDetails().offerDetails().termUnit()); + Assertions.assertEquals("hm", model.properties().marketplaceDetails().offerDetails().termId()); + Assertions.assertEquals("a", model.properties().userDetails().firstName()); + Assertions.assertEquals("uhrzayvvt", model.properties().userDetails().lastName()); + Assertions.assertEquals("vdfgiotk", model.properties().userDetails().emailAddress()); + Assertions.assertEquals("utqxlngx", model.properties().userDetails().upn()); + Assertions.assertEquals("fgugnxkrxdqmid", model.properties().userDetails().phoneNumber()); + Assertions.assertEquals("zrvqdr", model.properties().companyDetails().companyName()); + Assertions.assertEquals("hjybigehoqfbo", model.properties().companyDetails().officeAddress()); + Assertions.assertEquals("kanyktzlcuiywg", model.properties().companyDetails().country()); + Assertions.assertEquals("wgndrvynhzgpp", model.properties().companyDetails().domain()); + Assertions.assertEquals("cgyncocpecf", model.properties().companyDetails().business()); + Assertions.assertEquals(925016585, model.properties().companyDetails().numberOfEmployees()); + Assertions.assertEquals("oo", model.properties().existingResourceId()); } @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"))) + = new InformaticaOrganizationResourceUpdate() + .withTags(mapOf("jcmmxdcufufsrp", "km", "sgfyccsnew", "mzidnsezcxtb", "oosflnr", "dwzjeiach", + "vypyqrimzinpv", "sfqpteehz")) + .withProperties(new OrganizationPropertiesCustomUpdate() + .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() + .withTags(mapOf("ckwhds", "irsoodqxhcrmnohj", "znorcj", "ifiyipjxsqwpgrj", "xqabnmocpcysh", + "vsnb")) + .withProperties( + new OrganizationPropertiesCustomUpdate() + .withInformaticaOrganizationProperties( + new InformaticaOrganizationResourceUpdate().withTags(mapOf("j", "bl")) + .withProperties(new OrganizationPropertiesCustomUpdate() + .withInformaticaOrganizationProperties( + new InformaticaOrganizationResourceUpdate()) + .withMarketplaceDetails(new MarketplaceDetailsUpdate()) + .withUserDetails(new UserDetailsUpdate()) + .withCompanyDetails(new CompanyDetailsUpdate()) + .withExistingResourceId("jmkljavbqidtqajz"))) .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")); + new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("pku") + .withOfferDetails(new OfferDetailsUpdate().withPublisherId("rlkhbzhfepgzgq") + .withOfferId("zloc") + .withPlanId("c") + .withPlanName("ierhhbcsglummaj") + .withTermUnit("aodxo") + .withTermId("bdxkqpxokaj"))) + .withUserDetails(new UserDetailsUpdate().withFirstName("pimexgstxgcpodg") + .withLastName("ajrmvdjwzrlovmc") + .withEmailAddress("hijco") + .withUpn("ctbzaq") + .withPhoneNumber("sycbkbfk")) + .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("dkexxppofm") + .withOfficeAddress("x") + .withCountry("jpgd") + .withDomain("ocjjxhvpmouexh") + .withBusiness("xibqeojnx") + .withNumberOfEmployees(2010157167)) + .withExistingResourceId("ddntwndei"))) + .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("w") + .withOfferDetails(new OfferDetailsUpdate().withPublisherId("aoqvuh") + .withOfferId("cffcyddglmj") + .withPlanId("jqkwpyeicx") + .withPlanName("ciwqvhk") + .withTermUnit("xuigdtopbobj") + .withTermId("hm"))) + .withUserDetails(new UserDetailsUpdate().withFirstName("a") + .withLastName("uhrzayvvt") + .withEmailAddress("vdfgiotk") + .withUpn("utqxlngx") + .withPhoneNumber("fgugnxkrxdqmid")) + .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("zrvqdr") + .withOfficeAddress("hjybigehoqfbo") + .withCountry("kanyktzlcuiywg") + .withDomain("wgndrvynhzgpp") + .withBusiness("cgyncocpecf") + .withNumberOfEmployees(925016585)) + .withExistingResourceId("oo")); 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", + Assertions.assertEquals("km", model.tags().get("jcmmxdcufufsrp")); + Assertions.assertEquals("irsoodqxhcrmnohj", + model.properties().informaticaOrganizationProperties().tags().get("ckwhds")); + Assertions.assertEquals("bl", model.properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("gjyjgzjaoyfhrtxi")); - Assertions.assertEquals("fqawrlyxw", + .get("j")); + Assertions.assertEquals("jmkljavbqidtqajz", model.properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .existingResourceId()); - Assertions.assertEquals("prbnwbxgjvtbv", + Assertions.assertEquals("pku", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .marketplaceSubscriptionId()); - Assertions.assertEquals("szdnr", + Assertions.assertEquals("rlkhbzhfepgzgq", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .publisherId()); - Assertions.assertEquals("qguhmuo", + Assertions.assertEquals("zloc", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .offerId()); - Assertions.assertEquals("f", + Assertions.assertEquals("c", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .planId()); - Assertions.assertEquals("wzwbnguitn", + Assertions.assertEquals("ierhhbcsglummaj", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .planName()); - Assertions.assertEquals("izgazxu", + Assertions.assertEquals("aodxo", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .termUnit()); - Assertions.assertEquals("zuckyfi", + Assertions.assertEquals("bdxkqpxokaj", model.properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .offerDetails() .termId()); - Assertions.assertEquals("idf", + Assertions.assertEquals("pimexgstxgcpodg", model.properties().informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("wdzuhtymwisd", + Assertions.assertEquals("ajrmvdjwzrlovmc", model.properties().informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("thwxmnteiwaopvkm", + Assertions.assertEquals("hijco", model.properties().informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("c", + Assertions.assertEquals("ctbzaq", model.properties().informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("xdcu", + Assertions.assertEquals("sycbkbfk", model.properties().informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("srp", + Assertions.assertEquals("dkexxppofm", model.properties().informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("zidnsezcxtbzsgfy", + Assertions.assertEquals("x", model.properties().informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("sne", + Assertions.assertEquals("jpgd", model.properties().informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("dwzjeiach", + Assertions.assertEquals("ocjjxhvpmouexh", model.properties().informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("osfln", + Assertions.assertEquals("xibqeojnx", model.properties().informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(13730136, + Assertions.assertEquals(2010157167, model.properties().informaticaOrganizationProperties().properties().companyDetails().numberOfEmployees()); - Assertions.assertEquals("qpteeh", + Assertions.assertEquals("ddntwndei", 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()); + Assertions.assertEquals("w", model.properties().marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("aoqvuh", model.properties().marketplaceDetails().offerDetails().publisherId()); + Assertions.assertEquals("cffcyddglmj", model.properties().marketplaceDetails().offerDetails().offerId()); + Assertions.assertEquals("jqkwpyeicx", model.properties().marketplaceDetails().offerDetails().planId()); + Assertions.assertEquals("ciwqvhk", model.properties().marketplaceDetails().offerDetails().planName()); + Assertions.assertEquals("xuigdtopbobj", model.properties().marketplaceDetails().offerDetails().termUnit()); + Assertions.assertEquals("hm", model.properties().marketplaceDetails().offerDetails().termId()); + Assertions.assertEquals("a", model.properties().userDetails().firstName()); + Assertions.assertEquals("uhrzayvvt", model.properties().userDetails().lastName()); + Assertions.assertEquals("vdfgiotk", model.properties().userDetails().emailAddress()); + Assertions.assertEquals("utqxlngx", model.properties().userDetails().upn()); + Assertions.assertEquals("fgugnxkrxdqmid", model.properties().userDetails().phoneNumber()); + Assertions.assertEquals("zrvqdr", model.properties().companyDetails().companyName()); + Assertions.assertEquals("hjybigehoqfbo", model.properties().companyDetails().officeAddress()); + Assertions.assertEquals("kanyktzlcuiywg", model.properties().companyDetails().country()); + Assertions.assertEquals("wgndrvynhzgpp", model.properties().companyDetails().domain()); + Assertions.assertEquals("cgyncocpecf", model.properties().companyDetails().business()); + Assertions.assertEquals(925016585, model.properties().companyDetails().numberOfEmployees()); + Assertions.assertEquals("oo", model.properties().existingResourceId()); } // Use "Map.of" if available diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaPropertiesTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaPropertiesTests.java index 5bfc197ae271..6e5ec9aadbbf 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaPropertiesTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,24 +12,24 @@ public final class InformaticaPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InformaticaProperties model = BinaryData.fromString( - "{\"organizationId\":\"ubljofxqe\",\"organizationName\":\"jaeq\",\"informaticaRegion\":\"qjbasvms\",\"singleSignOnUrl\":\"qulngsntnbybkzgc\"}") + "{\"organizationId\":\"yqkgfg\",\"organizationName\":\"madgakeqsrxyb\",\"informaticaRegion\":\"qedqytbciqfoufl\",\"singleSignOnUrl\":\"nkzsmodmglou\"}") .toObject(InformaticaProperties.class); - Assertions.assertEquals("ubljofxqe", model.organizationId()); - Assertions.assertEquals("jaeq", model.organizationName()); - Assertions.assertEquals("qjbasvms", model.informaticaRegion()); - Assertions.assertEquals("qulngsntnbybkzgc", model.singleSignOnUrl()); + Assertions.assertEquals("yqkgfg", model.organizationId()); + Assertions.assertEquals("madgakeqsrxyb", model.organizationName()); + Assertions.assertEquals("qedqytbciqfoufl", model.informaticaRegion()); + Assertions.assertEquals("nkzsmodmglou", model.singleSignOnUrl()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - InformaticaProperties model = new InformaticaProperties().withOrganizationId("ubljofxqe") - .withOrganizationName("jaeq") - .withInformaticaRegion("qjbasvms") - .withSingleSignOnUrl("qulngsntnbybkzgc"); + InformaticaProperties model = new InformaticaProperties().withOrganizationId("yqkgfg") + .withOrganizationName("madgakeqsrxyb") + .withInformaticaRegion("qedqytbciqfoufl") + .withSingleSignOnUrl("nkzsmodmglou"); 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()); + Assertions.assertEquals("yqkgfg", model.organizationId()); + Assertions.assertEquals("madgakeqsrxyb", model.organizationName()); + Assertions.assertEquals("qedqytbciqfoufl", model.informaticaRegion()); + Assertions.assertEquals("nkzsmodmglou", model.singleSignOnUrl()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaServerlessRuntimeResourceListInnerTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaServerlessRuntimeResourceListInnerTests.java index b279f5481406..24611b818852 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaServerlessRuntimeResourceListInnerTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/InformaticaServerlessRuntimeResourceListInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -13,45 +13,45 @@ public final class InformaticaServerlessRuntimeResourceListInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InformaticaServerlessRuntimeResourceListInner model = BinaryData.fromString( - "{\"informaticaRuntimeResources\":[{\"name\":\"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\"}]}") + "{\"informaticaRuntimeResources\":[{\"name\":\"mjmwvvjektcx\",\"createdTime\":\"enhwlrs\",\"updatedTime\":\"frzpwvlqdqgb\",\"createdBy\":\"qylihkaetckt\",\"updatedBy\":\"fcivfsnkym\",\"id\":\"ctq\",\"type\":\"SERVERLESS\",\"status\":\"fbebrjcxer\",\"statusLocalized\":\"uwutttxfvjrbi\",\"statusMessage\":\"phxepcyvahf\",\"serverlessConfigProperties\":{\"subnet\":\"jky\",\"applicationType\":\"j\",\"resourceGroupName\":\"ujqgidok\",\"advancedCustomProperties\":\"ljyoxgvcltb\",\"supplementaryFileLocation\":\"ncghkje\",\"platform\":\"zhbijhtxfv\",\"tags\":\"bfs\",\"vnet\":\"nehmpvecx\",\"executionTimeout\":\"debfqkkrbmpukgri\",\"computeUnits\":\"lzlfbxzpuz\",\"tenantId\":\"ispnqzahmgkbrp\",\"subscriptionId\":\"dhibnuq\",\"region\":\"pikad\",\"serverlessArmResourceId\":\"vtq\"},\"description\":\"n\"},{\"name\":\"uynhijg\",\"createdTime\":\"mebf\",\"updatedTime\":\"iarbutrcvpna\",\"createdBy\":\"zmhjrunmp\",\"updatedBy\":\"ttdbhrbnl\",\"id\":\"nkxmyskpbhenbtk\",\"type\":\"SERVERLESS\",\"status\":\"ywn\",\"statusLocalized\":\"tnrsyn\",\"statusMessage\":\"qidybyx\",\"serverlessConfigProperties\":{\"subnet\":\"fclhaaxdbabphlwr\",\"applicationType\":\"fkts\",\"resourceGroupName\":\"sucocmnyyazttbtw\",\"advancedCustomProperties\":\"qpuedckzywbiex\",\"supplementaryFileLocation\":\"eyueaxibxujwb\",\"platform\":\"walm\",\"tags\":\"yoxa\",\"vnet\":\"dkzjancuxrh\",\"executionTimeout\":\"bavxbniwdjswzt\",\"computeUnits\":\"bpg\",\"tenantId\":\"ytxhp\",\"subscriptionId\":\"bzpfzab\",\"region\":\"cuh\",\"serverlessArmResourceId\":\"tcty\"},\"description\":\"klbb\"},{\"name\":\"vplwzbhv\",\"createdTime\":\"yuguosvmkfssx\",\"updatedTime\":\"ukkfplgmgs\",\"createdBy\":\"nkjzkdeslpvlop\",\"updatedBy\":\"i\",\"id\":\"ighxpk\",\"type\":\"SERVERLESS\",\"status\":\"zb\",\"statusLocalized\":\"iuebbaumny\",\"statusMessage\":\"upedeojnabckhs\",\"serverlessConfigProperties\":{\"subnet\":\"xpsiebtfhvpes\",\"applicationType\":\"skrdqmhjj\",\"resourceGroupName\":\"tldwkyzxuutk\",\"advancedCustomProperties\":\"ws\",\"supplementaryFileLocation\":\"svlxotogtwrup\",\"platform\":\"xvnmicykvceov\",\"tags\":\"lo\",\"vnet\":\"oty\",\"executionTimeout\":\"fcnj\",\"computeUnits\":\"cn\",\"tenantId\":\"hbttkphyw\",\"subscriptionId\":\"vjtoqnermclfp\",\"region\":\"hoxus\",\"serverlessArmResourceId\":\"pabgyeps\"},\"description\":\"tazqugxywpmueefj\"}]}") .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("mjmwvvjektcx", model.informaticaRuntimeResources().get(0).name()); + Assertions.assertEquals("enhwlrs", model.informaticaRuntimeResources().get(0).createdTime()); + Assertions.assertEquals("frzpwvlqdqgb", model.informaticaRuntimeResources().get(0).updatedTime()); + Assertions.assertEquals("qylihkaetckt", model.informaticaRuntimeResources().get(0).createdBy()); + Assertions.assertEquals("fcivfsnkym", model.informaticaRuntimeResources().get(0).updatedBy()); + Assertions.assertEquals("ctq", model.informaticaRuntimeResources().get(0).id()); Assertions.assertEquals(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", + Assertions.assertEquals("fbebrjcxer", model.informaticaRuntimeResources().get(0).status()); + Assertions.assertEquals("uwutttxfvjrbi", model.informaticaRuntimeResources().get(0).statusLocalized()); + Assertions.assertEquals("phxepcyvahf", model.informaticaRuntimeResources().get(0).statusMessage()); + Assertions.assertEquals("jky", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().subnet()); - Assertions.assertEquals("qapnedgfbcv", + Assertions.assertEquals("j", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().applicationType()); - Assertions.assertEquals("vq", + Assertions.assertEquals("ujqgidok", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().resourceGroupName()); - Assertions.assertEquals("keqdcvdrhvoods", + Assertions.assertEquals("ljyoxgvcltb", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().advancedCustomProperties()); - Assertions.assertEquals("bobzdopcjwvnhd", + Assertions.assertEquals("ncghkje", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().supplementaryFileLocation()); - Assertions.assertEquals("wmgxcxrsl", + Assertions.assertEquals("zhbijhtxfv", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().platform()); - Assertions.assertEquals("utwu", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().tags()); - Assertions.assertEquals("grpkhjwniyqs", + Assertions.assertEquals("bfs", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().tags()); + Assertions.assertEquals("nehmpvecx", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().vnet()); - Assertions.assertEquals("i", + Assertions.assertEquals("debfqkkrbmpukgri", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("dggkzzlvmbmpa", + Assertions.assertEquals("lzlfbxzpuz", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().computeUnits()); - Assertions.assertEquals("odfvuefywsbp", + Assertions.assertEquals("ispnqzahmgkbrp", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().tenantId()); - Assertions.assertEquals("mwyhr", + Assertions.assertEquals("dhibnuq", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().subscriptionId()); - Assertions.assertEquals("uyfta", + Assertions.assertEquals("pikad", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().region()); - Assertions.assertEquals("cpwi", + Assertions.assertEquals("vtq", model.informaticaRuntimeResources().get(0).serverlessConfigProperties().serverlessArmResourceId()); - Assertions.assertEquals("vqtmnub", model.informaticaRuntimeResources().get(0).description()); + Assertions.assertEquals("n", model.informaticaRuntimeResources().get(0).description()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsTests.java index 566e85e22e57..e3ead5c60bc8 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -13,33 +13,33 @@ public final class MarketplaceDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MarketplaceDetails model = BinaryData.fromString( - "{\"marketplaceSubscriptionId\":\"rwclxxwrljdo\",\"offerDetails\":{\"publisherId\":\"skcqvkocrcjd\",\"offerId\":\"wtnhxbnjbiksqr\",\"planId\":\"lssai\",\"planName\":\"qpjwnzlljfm\",\"termUnit\":\"eebvmgxsab\",\"termId\":\"yqduujit\"}}") + "{\"marketplaceSubscriptionId\":\"b\",\"offerDetails\":{\"publisherId\":\"wtmutduq\",\"offerId\":\"ta\",\"planId\":\"spwgcuertumkdosv\",\"planName\":\"whbmd\",\"termUnit\":\"bjf\",\"termId\":\"dgmb\"}}") .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()); + Assertions.assertEquals("b", model.marketplaceSubscriptionId()); + Assertions.assertEquals("wtmutduq", model.offerDetails().publisherId()); + Assertions.assertEquals("ta", model.offerDetails().offerId()); + Assertions.assertEquals("spwgcuertumkdosv", model.offerDetails().planId()); + Assertions.assertEquals("whbmd", model.offerDetails().planName()); + Assertions.assertEquals("bjf", model.offerDetails().termUnit()); + Assertions.assertEquals("dgmb", model.offerDetails().termId()); } @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")); + MarketplaceDetails model = new MarketplaceDetails().withMarketplaceSubscriptionId("b") + .withOfferDetails(new OfferDetails().withPublisherId("wtmutduq") + .withOfferId("ta") + .withPlanId("spwgcuertumkdosv") + .withPlanName("whbmd") + .withTermUnit("bjf") + .withTermId("dgmb")); 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()); + Assertions.assertEquals("b", model.marketplaceSubscriptionId()); + Assertions.assertEquals("wtmutduq", model.offerDetails().publisherId()); + Assertions.assertEquals("ta", model.offerDetails().offerId()); + Assertions.assertEquals("spwgcuertumkdosv", model.offerDetails().planId()); + Assertions.assertEquals("whbmd", model.offerDetails().planName()); + Assertions.assertEquals("bjf", model.offerDetails().termUnit()); + Assertions.assertEquals("dgmb", model.offerDetails().termId()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsUpdateTests.java index ae61de3e3999..d90705861b58 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/MarketplaceDetailsUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -13,33 +13,33 @@ public final class MarketplaceDetailsUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MarketplaceDetailsUpdate model = BinaryData.fromString( - "{\"marketplaceSubscriptionId\":\"hfuiuaodsfc\",\"offerDetails\":{\"publisherId\":\"xodpuozmyzydagfu\",\"offerId\":\"bezy\",\"planId\":\"okktwhrdxw\",\"planName\":\"wqsmbsur\",\"termUnit\":\"imoryocfsfksym\",\"termId\":\"ys\"}}") + "{\"marketplaceSubscriptionId\":\"gigr\",\"offerDetails\":{\"publisherId\":\"ur\",\"offerId\":\"xxjnspydptk\",\"planId\":\"nkoukn\",\"planName\":\"dwtiukbldngkp\",\"termUnit\":\"ipazyxoegukgjnpi\",\"termId\":\"gygev\"}}") .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()); + Assertions.assertEquals("gigr", model.marketplaceSubscriptionId()); + Assertions.assertEquals("ur", model.offerDetails().publisherId()); + Assertions.assertEquals("xxjnspydptk", model.offerDetails().offerId()); + Assertions.assertEquals("nkoukn", model.offerDetails().planId()); + Assertions.assertEquals("dwtiukbldngkp", model.offerDetails().planName()); + Assertions.assertEquals("ipazyxoegukgjnpi", model.offerDetails().termUnit()); + Assertions.assertEquals("gygev", model.offerDetails().termId()); } @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")); + MarketplaceDetailsUpdate model = new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("gigr") + .withOfferDetails(new OfferDetailsUpdate().withPublisherId("ur") + .withOfferId("xxjnspydptk") + .withPlanId("nkoukn") + .withPlanName("dwtiukbldngkp") + .withTermUnit("ipazyxoegukgjnpi") + .withTermId("gygev")); 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()); + Assertions.assertEquals("gigr", model.marketplaceSubscriptionId()); + Assertions.assertEquals("ur", model.offerDetails().publisherId()); + Assertions.assertEquals("xxjnspydptk", model.offerDetails().offerId()); + Assertions.assertEquals("nkoukn", model.offerDetails().planId()); + Assertions.assertEquals("dwtiukbldngkp", model.offerDetails().planName()); + Assertions.assertEquals("ipazyxoegukgjnpi", model.offerDetails().termUnit()); + Assertions.assertEquals("gygev", model.offerDetails().termId()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationTests.java index bd090b30b7e5..eea5e4946139 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,22 +12,21 @@ public final class NetworkInterfaceConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkInterfaceConfiguration model = BinaryData - .fromString( - "{\"vnetId\":\"kghimdblxgwimfnj\",\"subnetId\":\"fjxwmsz\",\"vnetResourceGuid\":\"foqreyfkzik\"}") + .fromString("{\"vnetId\":\"wtl\",\"subnetId\":\"nguxawqaldsy\",\"vnetResourceGuid\":\"ximerqfobwyznk\"}") .toObject(NetworkInterfaceConfiguration.class); - Assertions.assertEquals("kghimdblxgwimfnj", model.vnetId()); - Assertions.assertEquals("fjxwmsz", model.subnetId()); - Assertions.assertEquals("foqreyfkzik", model.vnetResourceGuid()); + Assertions.assertEquals("wtl", model.vnetId()); + Assertions.assertEquals("nguxawqaldsy", model.subnetId()); + Assertions.assertEquals("ximerqfobwyznk", model.vnetResourceGuid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NetworkInterfaceConfiguration model = new NetworkInterfaceConfiguration().withVnetId("kghimdblxgwimfnj") - .withSubnetId("fjxwmsz") - .withVnetResourceGuid("foqreyfkzik"); + NetworkInterfaceConfiguration model = new NetworkInterfaceConfiguration().withVnetId("wtl") + .withSubnetId("nguxawqaldsy") + .withVnetResourceGuid("ximerqfobwyznk"); model = BinaryData.fromObject(model).toObject(NetworkInterfaceConfiguration.class); - Assertions.assertEquals("kghimdblxgwimfnj", model.vnetId()); - Assertions.assertEquals("fjxwmsz", model.subnetId()); - Assertions.assertEquals("foqreyfkzik", model.vnetResourceGuid()); + Assertions.assertEquals("wtl", model.vnetId()); + Assertions.assertEquals("nguxawqaldsy", model.subnetId()); + Assertions.assertEquals("ximerqfobwyznk", model.vnetResourceGuid()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationUpdateTests.java index e57bb6012b28..6e957cdbfbdf 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/NetworkInterfaceConfigurationUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -11,22 +11,22 @@ public final class NetworkInterfaceConfigurationUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NetworkInterfaceConfigurationUpdate model - = BinaryData.fromString("{\"vnetId\":\"xuqlcvydypat\",\"subnetId\":\"oa\",\"vnetResourceGuid\":\"kniod\"}") - .toObject(NetworkInterfaceConfigurationUpdate.class); - Assertions.assertEquals("xuqlcvydypat", model.vnetId()); - Assertions.assertEquals("oa", model.subnetId()); - Assertions.assertEquals("kniod", model.vnetResourceGuid()); + NetworkInterfaceConfigurationUpdate model = BinaryData + .fromString("{\"vnetId\":\"gq\",\"subnetId\":\"yhejhzisxgfp\",\"vnetResourceGuid\":\"olppvksrpqvujz\"}") + .toObject(NetworkInterfaceConfigurationUpdate.class); + Assertions.assertEquals("gq", model.vnetId()); + Assertions.assertEquals("yhejhzisxgfp", model.subnetId()); + Assertions.assertEquals("olppvksrpqvujz", model.vnetResourceGuid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NetworkInterfaceConfigurationUpdate model = new NetworkInterfaceConfigurationUpdate().withVnetId("xuqlcvydypat") - .withSubnetId("oa") - .withVnetResourceGuid("kniod"); + NetworkInterfaceConfigurationUpdate model = new NetworkInterfaceConfigurationUpdate().withVnetId("gq") + .withSubnetId("yhejhzisxgfp") + .withVnetResourceGuid("olppvksrpqvujz"); model = BinaryData.fromObject(model).toObject(NetworkInterfaceConfigurationUpdate.class); - Assertions.assertEquals("xuqlcvydypat", model.vnetId()); - Assertions.assertEquals("oa", model.subnetId()); - Assertions.assertEquals("kniod", model.vnetResourceGuid()); + Assertions.assertEquals("gq", model.vnetId()); + Assertions.assertEquals("yhejhzisxgfp", model.subnetId()); + Assertions.assertEquals("olppvksrpqvujz", model.vnetResourceGuid()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsTests.java index c42fef7fbc0c..e698c2ff0f05 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,30 +12,30 @@ public final class OfferDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OfferDetails model = BinaryData.fromString( - "{\"publisherId\":\"jczdzevndh\",\"offerId\":\"rwpdappdsbdkvwrw\",\"planId\":\"feusnhut\",\"planName\":\"eltmrldhugjzzdat\",\"termUnit\":\"hocdgeab\",\"termId\":\"gphuticndvka\"}") + "{\"publisherId\":\"bexppb\",\"offerId\":\"tq\",\"planId\":\"rolfpfp\",\"planName\":\"algbquxigjyjg\",\"termUnit\":\"aoyfhrtxilnerkuj\",\"termId\":\"s\"}") .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()); + Assertions.assertEquals("bexppb", model.publisherId()); + Assertions.assertEquals("tq", model.offerId()); + Assertions.assertEquals("rolfpfp", model.planId()); + Assertions.assertEquals("algbquxigjyjg", model.planName()); + Assertions.assertEquals("aoyfhrtxilnerkuj", model.termUnit()); + Assertions.assertEquals("s", model.termId()); } @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"); + OfferDetails model = new OfferDetails().withPublisherId("bexppb") + .withOfferId("tq") + .withPlanId("rolfpfp") + .withPlanName("algbquxigjyjg") + .withTermUnit("aoyfhrtxilnerkuj") + .withTermId("s"); 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()); + Assertions.assertEquals("bexppb", model.publisherId()); + Assertions.assertEquals("tq", model.offerId()); + Assertions.assertEquals("rolfpfp", model.planId()); + Assertions.assertEquals("algbquxigjyjg", model.planName()); + Assertions.assertEquals("aoyfhrtxilnerkuj", model.termUnit()); + Assertions.assertEquals("s", model.termId()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsUpdateTests.java index 50bf303a191d..1d3200eda554 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OfferDetailsUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,30 +12,30 @@ public final class OfferDetailsUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OfferDetailsUpdate model = BinaryData.fromString( - "{\"publisherId\":\"i\",\"offerId\":\"xhqyudxorrqnb\",\"planId\":\"czvyifq\",\"planName\":\"kdvjsll\",\"termUnit\":\"vvdfwatkpnpul\",\"termId\":\"xbczwtruwiqz\"}") + "{\"publisherId\":\"ntypmrbpizcdrqj\",\"offerId\":\"pyd\",\"planId\":\"yhxdeoejzicwi\",\"planName\":\"jttgzf\",\"termUnit\":\"shcbkhajdeyeamdp\",\"termId\":\"g\"}") .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()); + Assertions.assertEquals("ntypmrbpizcdrqj", model.publisherId()); + Assertions.assertEquals("pyd", model.offerId()); + Assertions.assertEquals("yhxdeoejzicwi", model.planId()); + Assertions.assertEquals("jttgzf", model.planName()); + Assertions.assertEquals("shcbkhajdeyeamdp", model.termUnit()); + Assertions.assertEquals("g", model.termId()); } @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"); + OfferDetailsUpdate model = new OfferDetailsUpdate().withPublisherId("ntypmrbpizcdrqj") + .withOfferId("pyd") + .withPlanId("yhxdeoejzicwi") + .withPlanName("jttgzf") + .withTermUnit("shcbkhajdeyeamdp") + .withTermId("g"); 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()); + Assertions.assertEquals("ntypmrbpizcdrqj", model.publisherId()); + Assertions.assertEquals("pyd", model.offerId()); + Assertions.assertEquals("yhxdeoejzicwi", model.planId()); + Assertions.assertEquals("jttgzf", model.planName()); + Assertions.assertEquals("shcbkhajdeyeamdp", model.termUnit()); + Assertions.assertEquals("g", model.termId()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationDisplayTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationDisplayTests.java index 65f98b0761fa..592ea65a13a1 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationDisplayTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationDisplayTests.java @@ -1,22 +1,17 @@ // 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; 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\"}") + "{\"provider\":\"yrtih\",\"resource\":\"tijbpzvgnwzsymgl\",\"operation\":\"fcyzkohdbihanufh\",\"description\":\"bj\"}") .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 index 73011963ce85..645cb4e60ae7 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationInnerTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationInnerTests.java @@ -1,24 +1,17 @@ // 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; 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\"}") + "{\"name\":\"usarhmofc\",\"isDataAction\":false,\"display\":{\"provider\":\"urkdtmlx\",\"resource\":\"kuksjtxukcdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"},\"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 index 612ee41929cd..f8576afdac9f 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationListResultTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationListResultTests.java @@ -1,25 +1,17 @@ // 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; 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; +import com.azure.resourcemanager.informaticadatamanagement.models.OperationListResult; 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\"}") + "{\"value\":[{\"name\":\"quvgjxpybczme\",\"isDataAction\":true,\"display\":{\"provider\":\"pbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"izhwlrxy\",\"isDataAction\":false,\"display\":{\"provider\":\"ijgkdm\",\"resource\":\"azlobcufpdznrbt\",\"operation\":\"qjnqglhqgnufoooj\",\"description\":\"ifsqesaagdfmg\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"rifkwm\",\"isDataAction\":true,\"display\":{\"provider\":\"izntocipao\",\"resource\":\"jpsq\",\"operation\":\"mpoyfd\",\"description\":\"ogknygjofjdd\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"upewnwreitjzy\"}") .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 index d068fe8d37be..0893cf6ca774 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationsListMockTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OperationsListMockTests.java @@ -1,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; @@ -11,11 +11,9 @@ 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; @@ -23,7 +21,7 @@ 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\"}]}"; + = "{\"value\":[{\"name\":\"rqwky\",\"isDataAction\":false,\"display\":{\"provider\":\"pg\",\"resource\":\"dkow\",\"operation\":\"bqpc\",\"description\":\"kbwcc\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,10 +32,5 @@ public void testList() throws Exception { 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 index 12ba1cc8b485..a58377e298b7 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationPropertiesCustomUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationPropertiesCustomUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -19,398 +19,398 @@ public final class OrganizationPropertiesCustomUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OrganizationPropertiesCustomUpdate model = BinaryData.fromString( - "{\"informaticaOrganizationProperties\":{\"tags\":{\"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\"}") + "{\"informaticaOrganizationProperties\":{\"tags\":{\"qjqabcypmivkwl\":\"zevgb\",\"wnfnbacf\":\"uvcc\",\"bqqwxrj\":\"onlebxetqgtzxdpn\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"mpmngnzscxaqwoo\":\"nwsubisnj\",\"njeaseipheofloke\":\"hcbonqvpkvlr\",\"enjbdlwtgrhp\":\"y\"},\"properties\":{\"informaticaOrganizationProperties\":{\"tags\":{\"lhbxxhejjzzvdud\":\"masxazjpqyegu\",\"pwlbjnpg\":\"wdslfhotwmcy\",\"nltyfsoppusuesnz\":\"cftadeh\"},\"properties\":{}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"bavo\",\"offerDetails\":{}},\"userDetails\":{\"firstName\":\"mohctb\",\"lastName\":\"udwxdndnvowguj\",\"emailAddress\":\"gwdkcglhsl\",\"upn\":\"jdyggdtji\",\"phoneNumber\":\"b\"},\"companyDetails\":{\"companyName\":\"fqweykhmene\",\"officeAddress\":\"yexfwh\",\"country\":\"cibvyvdcsitynn\",\"domain\":\"mdectehfiqscjey\",\"business\":\"hezrkgq\",\"numberOfEmployees\":1290040732},\"existingResourceId\":\"efovgmk\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"eyyvxyqjpkcat\",\"offerDetails\":{\"publisherId\":\"gjcrcczsqpjhvm\",\"offerId\":\"jvnysounqe\",\"planId\":\"noae\",\"planName\":\"fhyhltrpmopjmcma\",\"termUnit\":\"okth\",\"termId\":\"iuaod\"}},\"userDetails\":{\"firstName\":\"pk\",\"lastName\":\"odpuozmyzydag\",\"emailAddress\":\"axbezyiuo\",\"upn\":\"twhrdxwzywqsm\",\"phoneNumber\":\"ureximoryocfs\"},\"companyDetails\":{\"companyName\":\"ymddys\",\"officeAddress\":\"i\",\"country\":\"xhqyudxorrqnb\",\"domain\":\"czvyifq\",\"business\":\"kdvjsll\",\"numberOfEmployees\":1321349224},\"existingResourceId\":\"d\"}},\"marketplaceDetails\":{\"marketplaceSubscriptionId\":\"t\",\"offerDetails\":{\"publisherId\":\"pulexxbczw\",\"offerId\":\"uwiqzb\",\"planId\":\"vsovmyokac\",\"planName\":\"kwlhzdo\",\"termUnit\":\"xjmflbvv\",\"termId\":\"hrk\"}},\"userDetails\":{\"firstName\":\"wwzjuqkhrsajiwku\",\"lastName\":\"oskg\",\"emailAddress\":\"auu\",\"upn\":\"jmvxie\",\"phoneNumber\":\"ugidyjrr\"},\"companyDetails\":{\"companyName\":\"aos\",\"officeAddress\":\"xc\",\"country\":\"npc\",\"domain\":\"ocohslkevleg\",\"business\":\"fbuhfmvfaxkffe\",\"numberOfEmployees\":517393984},\"existingResourceId\":\"lvmezyvshxmzsbbz\"}") .toObject(OrganizationPropertiesCustomUpdate.class); - Assertions.assertEquals("onpimexgstxg", model.informaticaOrganizationProperties().tags().get("po")); - Assertions.assertEquals("k", + Assertions.assertEquals("zevgb", model.informaticaOrganizationProperties().tags().get("qjqabcypmivkwl")); + Assertions.assertEquals("nwsubisnj", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("ukdkexxppofmxa")); - Assertions.assertEquals("eojnxqbzvddn", + .get("mpmngnzscxaqwoo")); + Assertions.assertEquals("masxazjpqyegu", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("wndeicbtwnp")); - Assertions.assertEquals("u", + .get("lhbxxhejjzzvdud")); + Assertions.assertEquals("bavo", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .marketplaceSubscriptionId()); - Assertions.assertEquals("hrzayvvtpgvdf", + Assertions.assertEquals("mohctb", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .firstName()); - Assertions.assertEquals("otkftutqxlngx", + Assertions.assertEquals("udwxdndnvowguj", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .lastName()); - Assertions.assertEquals("fgugnxkrxdqmid", + Assertions.assertEquals("gwdkcglhsl", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .emailAddress()); - Assertions.assertEquals("hzrvqd", + Assertions.assertEquals("jdyggdtji", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .upn()); - Assertions.assertEquals("bhj", + Assertions.assertEquals("b", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .phoneNumber()); - Assertions.assertEquals("gehoqfbowskany", + Assertions.assertEquals("fqweykhmene", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .companyName()); - Assertions.assertEquals("zlcuiywgqywgndrv", + Assertions.assertEquals("yexfwh", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .officeAddress()); - Assertions.assertEquals("hzgpphrcgyncocpe", + Assertions.assertEquals("cibvyvdcsitynn", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .country()); - Assertions.assertEquals("vmmcoofs", + Assertions.assertEquals("mdectehfiqscjey", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .domain()); - Assertions.assertEquals("zevgb", + Assertions.assertEquals("hezrkgq", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .business()); - Assertions.assertEquals(2005133060, + Assertions.assertEquals(1290040732, model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .numberOfEmployees()); - Assertions.assertEquals("abcypmivk", + Assertions.assertEquals("efovgmk", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .existingResourceId()); - Assertions.assertEquals("uvcc", + Assertions.assertEquals("eyyvxyqjpkcat", model.informaticaOrganizationProperties().properties().marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("fnba", + Assertions.assertEquals("gjcrcczsqpjhvm", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().publisherId()); - Assertions.assertEquals("ionle", + Assertions.assertEquals("jvnysounqe", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().offerId()); - Assertions.assertEquals("etqgtzxdpnq", + Assertions.assertEquals("noae", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planId()); - Assertions.assertEquals("qwxrjfeallnw", + Assertions.assertEquals("fhyhltrpmopjmcma", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planName()); - Assertions.assertEquals("bisnja", + Assertions.assertEquals("okth", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termUnit()); - Assertions.assertEquals("mngnzscxaqw", + Assertions.assertEquals("iuaod", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termId()); - Assertions.assertEquals("hcbonqvpkvlr", - model.informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("jease", + Assertions.assertEquals("pk", model.informaticaOrganizationProperties().properties().userDetails().firstName()); + Assertions.assertEquals("odpuozmyzydag", model.informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("heoflokeyyienjbd", + Assertions.assertEquals("axbezyiuo", model.informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("tgrhpdjpjumas", + Assertions.assertEquals("twhrdxwzywqsm", model.informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("zj", + Assertions.assertEquals("ureximoryocfs", model.informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("e", + Assertions.assertEquals("ymddys", model.informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("alhbx", + Assertions.assertEquals("i", model.informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("e", model.informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("zzvdudgwds", + Assertions.assertEquals("xhqyudxorrqnb", + model.informaticaOrganizationProperties().properties().companyDetails().country()); + Assertions.assertEquals("czvyifq", model.informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("hotwmcynpwlbjnp", + Assertions.assertEquals("kdvjsll", model.informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(1690822953, + Assertions.assertEquals(1321349224, 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()); + Assertions.assertEquals("d", model.informaticaOrganizationProperties().properties().existingResourceId()); + Assertions.assertEquals("t", model.marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("pulexxbczw", model.marketplaceDetails().offerDetails().publisherId()); + Assertions.assertEquals("uwiqzb", model.marketplaceDetails().offerDetails().offerId()); + Assertions.assertEquals("vsovmyokac", model.marketplaceDetails().offerDetails().planId()); + Assertions.assertEquals("kwlhzdo", model.marketplaceDetails().offerDetails().planName()); + Assertions.assertEquals("xjmflbvv", model.marketplaceDetails().offerDetails().termUnit()); + Assertions.assertEquals("hrk", model.marketplaceDetails().offerDetails().termId()); + Assertions.assertEquals("wwzjuqkhrsajiwku", model.userDetails().firstName()); + Assertions.assertEquals("oskg", model.userDetails().lastName()); + Assertions.assertEquals("auu", model.userDetails().emailAddress()); + Assertions.assertEquals("jmvxie", model.userDetails().upn()); + Assertions.assertEquals("ugidyjrr", model.userDetails().phoneNumber()); + Assertions.assertEquals("aos", model.companyDetails().companyName()); + Assertions.assertEquals("xc", model.companyDetails().officeAddress()); + Assertions.assertEquals("npc", model.companyDetails().country()); + Assertions.assertEquals("ocohslkevleg", model.companyDetails().domain()); + Assertions.assertEquals("fbuhfmvfaxkffe", model.companyDetails().business()); + Assertions.assertEquals(517393984, model.companyDetails().numberOfEmployees()); + Assertions.assertEquals("lvmezyvshxmzsbbz", model.existingResourceId()); } @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")) + .withTags(mapOf("qjqabcypmivkwl", "zevgb", "wnfnbacf", "uvcc", "bqqwxrj", "onlebxetqgtzxdpn")) .withProperties(new OrganizationPropertiesCustomUpdate() .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() - .withTags(mapOf("ukdkexxppofmxa", "k", "jpgd", "c", "j", "toc", "hd", "hvpmoue")) + .withTags(mapOf("mpmngnzscxaqwoo", "nwsubisnj", "njeaseipheofloke", "hcbonqvpkvlr", + "enjbdlwtgrhp", "y")) .withProperties(new OrganizationPropertiesCustomUpdate() .withInformaticaOrganizationProperties(new InformaticaOrganizationResourceUpdate() - .withTags(mapOf("wndeicbtwnp", "eojnxqbzvddn", "hcffcyddglmjthjq", "aoqvuh", "hix", - "wpyeicxmqciwqvh", "og", "igdtopbob")) + .withTags(mapOf("lhbxxhejjzzvdud", "masxazjpqyegu", "pwlbjnpg", "wdslfhotwmcy", + "nltyfsoppusuesnz", "cftadeh")) .withProperties(new OrganizationPropertiesCustomUpdate())) - .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("u") + .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("bavo") .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"); + .withUserDetails(new UserDetailsUpdate().withFirstName("mohctb") + .withLastName("udwxdndnvowguj") + .withEmailAddress("gwdkcglhsl") + .withUpn("jdyggdtji") + .withPhoneNumber("b")) + .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("fqweykhmene") + .withOfficeAddress("yexfwh") + .withCountry("cibvyvdcsitynn") + .withDomain("mdectehfiqscjey") + .withBusiness("hezrkgq") + .withNumberOfEmployees(1290040732)) + .withExistingResourceId("efovgmk"))) + .withMarketplaceDetails( + new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("eyyvxyqjpkcat") + .withOfferDetails(new OfferDetailsUpdate().withPublisherId("gjcrcczsqpjhvm") + .withOfferId("jvnysounqe") + .withPlanId("noae") + .withPlanName("fhyhltrpmopjmcma") + .withTermUnit("okth") + .withTermId("iuaod"))) + .withUserDetails(new UserDetailsUpdate().withFirstName("pk") + .withLastName("odpuozmyzydag") + .withEmailAddress("axbezyiuo") + .withUpn("twhrdxwzywqsm") + .withPhoneNumber("ureximoryocfs")) + .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("ymddys") + .withOfficeAddress("i") + .withCountry("xhqyudxorrqnb") + .withDomain("czvyifq") + .withBusiness("kdvjsll") + .withNumberOfEmployees(1321349224)) + .withExistingResourceId("d"))) + .withMarketplaceDetails(new MarketplaceDetailsUpdate().withMarketplaceSubscriptionId("t") + .withOfferDetails(new OfferDetailsUpdate().withPublisherId("pulexxbczw") + .withOfferId("uwiqzb") + .withPlanId("vsovmyokac") + .withPlanName("kwlhzdo") + .withTermUnit("xjmflbvv") + .withTermId("hrk"))) + .withUserDetails(new UserDetailsUpdate().withFirstName("wwzjuqkhrsajiwku") + .withLastName("oskg") + .withEmailAddress("auu") + .withUpn("jmvxie") + .withPhoneNumber("ugidyjrr")) + .withCompanyDetails(new CompanyDetailsUpdate().withCompanyName("aos") + .withOfficeAddress("xc") + .withCountry("npc") + .withDomain("ocohslkevleg") + .withBusiness("fbuhfmvfaxkffe") + .withNumberOfEmployees(517393984)) + .withExistingResourceId("lvmezyvshxmzsbbz"); model = BinaryData.fromObject(model).toObject(OrganizationPropertiesCustomUpdate.class); - Assertions.assertEquals("onpimexgstxg", model.informaticaOrganizationProperties().tags().get("po")); - Assertions.assertEquals("k", + Assertions.assertEquals("zevgb", model.informaticaOrganizationProperties().tags().get("qjqabcypmivkwl")); + Assertions.assertEquals("nwsubisnj", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("ukdkexxppofmxa")); - Assertions.assertEquals("eojnxqbzvddn", + .get("mpmngnzscxaqwoo")); + Assertions.assertEquals("masxazjpqyegu", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .tags() - .get("wndeicbtwnp")); - Assertions.assertEquals("u", + .get("lhbxxhejjzzvdud")); + Assertions.assertEquals("bavo", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .marketplaceDetails() .marketplaceSubscriptionId()); - Assertions.assertEquals("hrzayvvtpgvdf", + Assertions.assertEquals("mohctb", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .firstName()); - Assertions.assertEquals("otkftutqxlngx", + Assertions.assertEquals("udwxdndnvowguj", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .lastName()); - Assertions.assertEquals("fgugnxkrxdqmid", + Assertions.assertEquals("gwdkcglhsl", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .emailAddress()); - Assertions.assertEquals("hzrvqd", + Assertions.assertEquals("jdyggdtji", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .upn()); - Assertions.assertEquals("bhj", + Assertions.assertEquals("b", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .userDetails() .phoneNumber()); - Assertions.assertEquals("gehoqfbowskany", + Assertions.assertEquals("fqweykhmene", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .companyName()); - Assertions.assertEquals("zlcuiywgqywgndrv", + Assertions.assertEquals("yexfwh", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .officeAddress()); - Assertions.assertEquals("hzgpphrcgyncocpe", + Assertions.assertEquals("cibvyvdcsitynn", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .country()); - Assertions.assertEquals("vmmcoofs", + Assertions.assertEquals("mdectehfiqscjey", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .domain()); - Assertions.assertEquals("zevgb", + Assertions.assertEquals("hezrkgq", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .business()); - Assertions.assertEquals(2005133060, + Assertions.assertEquals(1290040732, model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .companyDetails() .numberOfEmployees()); - Assertions.assertEquals("abcypmivk", + Assertions.assertEquals("efovgmk", model.informaticaOrganizationProperties() .properties() .informaticaOrganizationProperties() .properties() .existingResourceId()); - Assertions.assertEquals("uvcc", + Assertions.assertEquals("eyyvxyqjpkcat", model.informaticaOrganizationProperties().properties().marketplaceDetails().marketplaceSubscriptionId()); - Assertions.assertEquals("fnba", + Assertions.assertEquals("gjcrcczsqpjhvm", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().publisherId()); - Assertions.assertEquals("ionle", + Assertions.assertEquals("jvnysounqe", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().offerId()); - Assertions.assertEquals("etqgtzxdpnq", + Assertions.assertEquals("noae", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planId()); - Assertions.assertEquals("qwxrjfeallnw", + Assertions.assertEquals("fhyhltrpmopjmcma", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().planName()); - Assertions.assertEquals("bisnja", + Assertions.assertEquals("okth", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termUnit()); - Assertions.assertEquals("mngnzscxaqw", + Assertions.assertEquals("iuaod", model.informaticaOrganizationProperties().properties().marketplaceDetails().offerDetails().termId()); - Assertions.assertEquals("hcbonqvpkvlr", - model.informaticaOrganizationProperties().properties().userDetails().firstName()); - Assertions.assertEquals("jease", + Assertions.assertEquals("pk", model.informaticaOrganizationProperties().properties().userDetails().firstName()); + Assertions.assertEquals("odpuozmyzydag", model.informaticaOrganizationProperties().properties().userDetails().lastName()); - Assertions.assertEquals("heoflokeyyienjbd", + Assertions.assertEquals("axbezyiuo", model.informaticaOrganizationProperties().properties().userDetails().emailAddress()); - Assertions.assertEquals("tgrhpdjpjumas", + Assertions.assertEquals("twhrdxwzywqsm", model.informaticaOrganizationProperties().properties().userDetails().upn()); - Assertions.assertEquals("zj", + Assertions.assertEquals("ureximoryocfs", model.informaticaOrganizationProperties().properties().userDetails().phoneNumber()); - Assertions.assertEquals("e", + Assertions.assertEquals("ymddys", model.informaticaOrganizationProperties().properties().companyDetails().companyName()); - Assertions.assertEquals("alhbx", + Assertions.assertEquals("i", model.informaticaOrganizationProperties().properties().companyDetails().officeAddress()); - Assertions.assertEquals("e", model.informaticaOrganizationProperties().properties().companyDetails().country()); - Assertions.assertEquals("zzvdudgwds", + Assertions.assertEquals("xhqyudxorrqnb", + model.informaticaOrganizationProperties().properties().companyDetails().country()); + Assertions.assertEquals("czvyifq", model.informaticaOrganizationProperties().properties().companyDetails().domain()); - Assertions.assertEquals("hotwmcynpwlbjnp", + Assertions.assertEquals("kdvjsll", model.informaticaOrganizationProperties().properties().companyDetails().business()); - Assertions.assertEquals(1690822953, + Assertions.assertEquals(1321349224, 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()); + Assertions.assertEquals("d", model.informaticaOrganizationProperties().properties().existingResourceId()); + Assertions.assertEquals("t", model.marketplaceDetails().marketplaceSubscriptionId()); + Assertions.assertEquals("pulexxbczw", model.marketplaceDetails().offerDetails().publisherId()); + Assertions.assertEquals("uwiqzb", model.marketplaceDetails().offerDetails().offerId()); + Assertions.assertEquals("vsovmyokac", model.marketplaceDetails().offerDetails().planId()); + Assertions.assertEquals("kwlhzdo", model.marketplaceDetails().offerDetails().planName()); + Assertions.assertEquals("xjmflbvv", model.marketplaceDetails().offerDetails().termUnit()); + Assertions.assertEquals("hrk", model.marketplaceDetails().offerDetails().termId()); + Assertions.assertEquals("wwzjuqkhrsajiwku", model.userDetails().firstName()); + Assertions.assertEquals("oskg", model.userDetails().lastName()); + Assertions.assertEquals("auu", model.userDetails().emailAddress()); + Assertions.assertEquals("jmvxie", model.userDetails().upn()); + Assertions.assertEquals("ugidyjrr", model.userDetails().phoneNumber()); + Assertions.assertEquals("aos", model.companyDetails().companyName()); + Assertions.assertEquals("xc", model.companyDetails().officeAddress()); + Assertions.assertEquals("npc", model.companyDetails().country()); + Assertions.assertEquals("ocohslkevleg", model.companyDetails().domain()); + Assertions.assertEquals("fbuhfmvfaxkffe", model.companyDetails().business()); + Assertions.assertEquals(517393984, model.companyDetails().numberOfEmployees()); + Assertions.assertEquals("lvmezyvshxmzsbbz", model.existingResourceId()); } // Use "Map.of" if available diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesWithResponseMockTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesWithResponseMockTests.java index d90749282cf2..85e179300f05 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesWithResponseMockTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetAllServerlessRuntimesWithResponseMockTests.java @@ -1,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,7 @@ 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\"}]}"; + = "{\"informaticaRuntimeResources\":[{\"name\":\"tkfa\",\"createdTime\":\"nopqgikyzirtx\",\"updatedTime\":\"yuxzejntpsewgi\",\"createdBy\":\"ilqu\",\"updatedBy\":\"rydxtqm\",\"id\":\"eoxorggufhyao\",\"type\":\"SERVERLESS\",\"status\":\"bghhavgrvkf\",\"statusLocalized\":\"ovjzhpjbibgjmfx\",\"statusMessage\":\"mv\",\"serverlessConfigProperties\":{\"subnet\":\"luyovwxnbkfezzx\",\"applicationType\":\"yhwzdgiruj\",\"resourceGroupName\":\"bomvzzbtdcqv\",\"advancedCustomProperties\":\"iyujviylwdshfs\",\"supplementaryFileLocation\":\"rbgyefry\",\"platform\":\"gaojf\",\"tags\":\"nc\",\"vnet\":\"mrfhirctymox\",\"executionTimeout\":\"tpipiwyczuhx\",\"computeUnits\":\"pqjlihhyusps\",\"tenantId\":\"sdvlmfwdgzxulucv\",\"subscriptionId\":\"mrsreuzvxurisjnh\",\"region\":\"txifqj\",\"serverlessArmResourceId\":\"xmrhu\"},\"description\":\"wp\"},{\"name\":\"esutrgjupauutpw\",\"createdTime\":\"qhih\",\"updatedTime\":\"jqgwzp\",\"createdBy\":\"fqntcyp\",\"updatedBy\":\"xjvfoimwksl\",\"id\":\"rcizjxvyd\",\"type\":\"SERVERLESS\",\"status\":\"eacvl\",\"statusLocalized\":\"vygdyft\",\"statusMessage\":\"mrtwna\",\"serverlessConfigProperties\":{\"subnet\":\"slbi\",\"applicationType\":\"ojgcyzt\",\"resourceGroupName\":\"mznbaeqphch\",\"advancedCustomProperties\":\"rn\",\"supplementaryFileLocation\":\"x\",\"platform\":\"uwrykqgaifmvikl\",\"tags\":\"dvk\",\"vnet\":\"ejd\",\"executionTimeout\":\"xcv\",\"computeUnits\":\"rhnj\",\"tenantId\":\"olvtnovqfzge\",\"subscriptionId\":\"dftuljltduce\",\"region\":\"tmczuomejwcwwqi\",\"serverlessArmResourceId\":\"nssxmojmsvpk\"},\"description\":\"rvkwc\"},{\"name\":\"zqljyxgtczh\",\"createdTime\":\"ydbsd\",\"updatedTime\":\"hmkxmaehvbb\",\"createdBy\":\"uripltfnhtba\",\"updatedBy\":\"kgxywr\",\"id\":\"kpyklyhp\",\"type\":\"SERVERLESS\",\"status\":\"odpvruudlgzib\",\"statusLocalized\":\"hostgktstvdxecl\",\"statusMessage\":\"edqbc\",\"serverlessConfigProperties\":{\"subnet\":\"zlhp\",\"applicationType\":\"dqkdlwwqfbu\",\"resourceGroupName\":\"kxtrq\",\"advancedCustomProperties\":\"smlmbtxhwgfwsrta\",\"supplementaryFileLocation\":\"oezbrhubsk\",\"platform\":\"dyg\",\"tags\":\"okkqfqjbvleo\",\"vnet\":\"ml\",\"executionTimeout\":\"qtqzfavyv\",\"computeUnits\":\"qybaryeua\",\"tenantId\":\"kq\",\"subscriptionId\":\"qgzsles\",\"region\":\"bhernntiew\",\"serverlessArmResourceId\":\"cv\"},\"description\":\"uwrbehwagoh\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,47 +32,47 @@ public void testGetAllServerlessRuntimesWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); InformaticaServerlessRuntimeResourceList response = manager.organizations() - .getAllServerlessRuntimesWithResponse("xtdr", "futacoebjvewzc", com.azure.core.util.Context.NONE) + .getAllServerlessRuntimesWithResponse("z", "ybycnunvj", 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("tkfa", response.informaticaRuntimeResources().get(0).name()); + Assertions.assertEquals("nopqgikyzirtx", response.informaticaRuntimeResources().get(0).createdTime()); + Assertions.assertEquals("yuxzejntpsewgi", response.informaticaRuntimeResources().get(0).updatedTime()); + Assertions.assertEquals("ilqu", response.informaticaRuntimeResources().get(0).createdBy()); + Assertions.assertEquals("rydxtqm", response.informaticaRuntimeResources().get(0).updatedBy()); + Assertions.assertEquals("eoxorggufhyao", response.informaticaRuntimeResources().get(0).id()); Assertions.assertEquals(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", + Assertions.assertEquals("bghhavgrvkf", response.informaticaRuntimeResources().get(0).status()); + Assertions.assertEquals("ovjzhpjbibgjmfx", response.informaticaRuntimeResources().get(0).statusLocalized()); + Assertions.assertEquals("mv", response.informaticaRuntimeResources().get(0).statusMessage()); + Assertions.assertEquals("luyovwxnbkfezzx", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().subnet()); - Assertions.assertEquals("chisze", + Assertions.assertEquals("yhwzdgiruj", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().applicationType()); - Assertions.assertEquals("nb", + Assertions.assertEquals("bomvzzbtdcqv", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().resourceGroupName()); - Assertions.assertEquals("rxgibbd", + Assertions.assertEquals("iyujviylwdshfs", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().advancedCustomProperties()); - Assertions.assertEquals("confozauors", + Assertions.assertEquals("rbgyefry", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().supplementaryFileLocation()); - Assertions.assertEquals("okwbqplh", + Assertions.assertEquals("gaojf", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().platform()); - Assertions.assertEquals("nuuepzlrp", + Assertions.assertEquals("nc", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().tags()); - Assertions.assertEquals("zsoldwey", + Assertions.assertEquals("mrfhirctymox", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().vnet()); - Assertions.assertEquals("dunvmnnrwrbiorkt", + Assertions.assertEquals("tpipiwyczuhx", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().executionTimeout()); - Assertions.assertEquals("ywjhhgdnhx", + Assertions.assertEquals("pqjlihhyusps", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().computeUnits()); - Assertions.assertEquals("ivfomiloxgg", + Assertions.assertEquals("sdvlmfwdgzxulucv", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().tenantId()); - Assertions.assertEquals("fi", + Assertions.assertEquals("mrsreuzvxurisjnh", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().subscriptionId()); - Assertions.assertEquals("dieuzaofj", + Assertions.assertEquals("txifqj", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().region()); - Assertions.assertEquals("vcyy", + Assertions.assertEquals("xmrhu", response.informaticaRuntimeResources().get(0).serverlessConfigProperties().serverlessArmResourceId()); - Assertions.assertEquals("fgdo", response.informaticaRuntimeResources().get(0).description()); + Assertions.assertEquals("wp", response.informaticaRuntimeResources().get(0).description()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataWithResponseMockTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataWithResponseMockTests.java index a4e89d3f219c..c35d732a4610 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataWithResponseMockTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/OrganizationsGetServerlessMetadataWithResponseMockTests.java @@ -1,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; @@ -23,7 +23,7 @@ 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\"}]}]}}"; + = "{\"type\":\"SERVERLESS\",\"serverlessConfigProperties\":{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"jvewzcjznmwcp\",\"value\":\"uaadraufactkahzo\"},{\"name\":\"jjziuxxpsh\",\"value\":\"e\"},{\"name\":\"lfg\",\"value\":\"qubkw\"}],\"computeUnits\":[{\"name\":\"rds\",\"value\":[\"jbazpjuohminy\",\"lnorwmdu\",\"wpklvxw\",\"ygdxpgpqchis\"]}],\"executionTimeout\":\"pnnbjc\",\"regions\":[{\"id\":\"bbdaxco\",\"name\":\"ozauorsukokwb\"},{\"id\":\"lhlv\",\"name\":\"uepzl\"}]},\"serverlessRuntimeConfigProperties\":{\"cdiConfigProps\":[{\"engineName\":\"zsoldwey\",\"engineVersion\":\"qdunvmnnrwrbior\",\"applicationConfigs\":[{\"type\":\"alywjhhgdn\",\"name\":\"xmsivfomiloxggdu\",\"value\":\"iqndieuzaofj\",\"platform\":\"hvcyyysfg\",\"customized\":\"otcubi\",\"defaultValue\":\"p\"},{\"type\":\"ipwoqonmacjek\",\"name\":\"izsh\",\"value\":\"vcimpev\",\"platform\":\"gmblrri\",\"customized\":\"bywdxsmicc\",\"defaultValue\":\"rwfscjfnynszquj\"},{\"type\":\"zdvoqytibyowbb\",\"name\":\"gyavu\",\"value\":\"pthjoxo\",\"platform\":\"smsks\",\"customized\":\"pi\",\"defaultValue\":\"lqol\"},{\"type\":\"xkcgxxlxsffgcvi\",\"name\":\"qzdwlvwlyoup\",\"value\":\"gfbkjubdyh\",\"platform\":\"kfm\",\"customized\":\"nsgowzfttst\",\"defaultValue\":\"ktlahbqa\"}]},{\"engineName\":\"tx\",\"engineVersion\":\"gzukxitmm\",\"applicationConfigs\":[{\"type\":\"gqqqxh\",\"name\":\"n\",\"value\":\"rxcpjuisavo\",\"platform\":\"qdzfvazivjlfrqtt\",\"customized\":\"ajlkatnw\",\"defaultValue\":\"yiopi\"}]},{\"engineName\":\"kqqfk\",\"engineVersion\":\"vscx\",\"applicationConfigs\":[{\"type\":\"mligov\",\"name\":\"brxk\",\"value\":\"mloazuru\",\"platform\":\"cbgoor\",\"customized\":\"te\",\"defaultValue\":\"ybfhjxa\"},{\"type\":\"vvjgslor\",\"name\":\"il\",\"value\":\"yw\",\"platform\":\"t\",\"customized\":\"gkxnyedabg\",\"defaultValue\":\"vudtjuewbcihx\"},{\"type\":\"uwhcjyxccybv\",\"name\":\"ayakkudzpx\",\"value\":\"wjplma\",\"platform\":\"stcyohpfkyrkdbd\",\"customized\":\"iogsjkmnwq\",\"defaultValue\":\"nobaiyhddviacegf\"}]},{\"engineName\":\"m\",\"engineVersion\":\"tfpmvmemfnczdw\",\"applicationConfigs\":[{\"type\":\"b\",\"name\":\"lxlllchpo\",\"value\":\"bzevwrd\",\"platform\":\"hfuk\",\"customized\":\"vsjcswsmystuluqy\",\"defaultValue\":\"fcvlerch\"},{\"type\":\"qbmfpjbabwidf\",\"name\":\"xsspuunnoxyhk\",\"value\":\"g\",\"platform\":\"ddrihpf\",\"customized\":\"oqcaaewdaomdj\",\"defaultValue\":\"l\"},{\"type\":\"jxxkzbrmsgei\",\"name\":\"siykzkdncjdxonbz\",\"value\":\"ggcula\",\"platform\":\"z\",\"customized\":\"y\",\"defaultValue\":\"pgogtqxepny\"}]}],\"cdieConfigProps\":[{\"engineName\":\"uajlyj\",\"engineVersion\":\"lvofqzhvfcibyfmo\",\"applicationConfigs\":[{\"type\":\"xrkjpvdw\",\"name\":\"fzwiivwzjbhyz\",\"value\":\"xjrk\",\"platform\":\"mbtrnegvmnvu\",\"customized\":\"eqvldspast\",\"defaultValue\":\"bkkd\"},{\"type\":\"flvestmjlxrrilo\",\"name\":\"apeewchpxlkt\",\"value\":\"kuziycsle\",\"platform\":\"ufuztcktyhjtq\",\"customized\":\"dcgzul\",\"defaultValue\":\"mmrqz\"}]},{\"engineName\":\"rr\",\"engineVersion\":\"vpglydz\",\"applicationConfigs\":[{\"type\":\"rvqeevtoepryutn\",\"name\":\"ytp\",\"value\":\"dmovzvfva\",\"platform\":\"wzqa\",\"customized\":\"f\",\"defaultValue\":\"gzuriglaecxndt\"}]}]}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,76 +33,77 @@ public void testGetServerlessMetadataWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ServerlessMetadataResponse response = manager.organizations() - .getServerlessMetadataWithResponse("rd", "iwii", com.azure.core.util.Context.NONE) + .getServerlessMetadataWithResponse("uffkmrqemvvh", "xtdr", 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", + Assertions.assertEquals("jvewzcjznmwcp", + response.serverlessConfigProperties().applicationTypes().get(0).name()); + Assertions.assertEquals("uaadraufactkahzo", response.serverlessConfigProperties().applicationTypes().get(0).value()); - Assertions.assertEquals("wtovvtgsein", response.serverlessConfigProperties().computeUnits().get(0).name()); - Assertions.assertEquals("ufxqknpirgnepttw", + Assertions.assertEquals("rds", response.serverlessConfigProperties().computeUnits().get(0).name()); + Assertions.assertEquals("jbazpjuohminy", 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", + Assertions.assertEquals("pnnbjc", response.serverlessConfigProperties().executionTimeout()); + Assertions.assertEquals("bbdaxco", response.serverlessConfigProperties().regions().get(0).id()); + Assertions.assertEquals("ozauorsukokwb", response.serverlessConfigProperties().regions().get(0).name()); + Assertions.assertEquals("zsoldwey", response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineName()); - Assertions.assertEquals("mossxkkgthrrghxj", + Assertions.assertEquals("qdunvmnnrwrbior", response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineVersion()); - Assertions.assertEquals("hqxvcxgfrpdsofbs", + Assertions.assertEquals("alywjhhgdn", response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("rnsvbuswd", + Assertions.assertEquals("xmsivfomiloxggdu", response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("z", + Assertions.assertEquals("iqndieuzaofj", response.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("ybycnunvj", + Assertions.assertEquals("hvcyyysfg", response.serverlessRuntimeConfigProperties() .cdiConfigProps() .get(0) .applicationConfigs() .get(0) .platform()); - Assertions.assertEquals("rtkfawnopq", + Assertions.assertEquals("otcubi", response.serverlessRuntimeConfigProperties() .cdiConfigProps() .get(0) .applicationConfigs() .get(0) .customized()); - Assertions.assertEquals("ikyzirtxdy", + Assertions.assertEquals("p", response.serverlessRuntimeConfigProperties() .cdiConfigProps() .get(0) .applicationConfigs() .get(0) .defaultValue()); - Assertions.assertEquals("ejd", + Assertions.assertEquals("uajlyj", response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineName()); - Assertions.assertEquals("nxcvds", + Assertions.assertEquals("lvofqzhvfcibyfmo", response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineVersion()); - Assertions.assertEquals("njivolvtnovq", + Assertions.assertEquals("xrkjpvdw", response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("zgemjdftuljlt", + Assertions.assertEquals("fzwiivwzjbhyz", response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("ucea", + Assertions.assertEquals("xjrk", response.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("tmczuomejwcwwqi", + Assertions.assertEquals("mbtrnegvmnvu", response.serverlessRuntimeConfigProperties() .cdieConfigProps() .get(0) .applicationConfigs() .get(0) .platform()); - Assertions.assertEquals("knssxmojm", + Assertions.assertEquals("eqvldspast", response.serverlessRuntimeConfigProperties() .cdieConfigProps() .get(0) .applicationConfigs() .get(0) .customized()); - Assertions.assertEquals("vpkjpr", + Assertions.assertEquals("bkkd", response.serverlessRuntimeConfigProperties() .cdieConfigProps() .get(0) diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/RegionsMetadataTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/RegionsMetadataTests.java index 8140a8f26dc1..6ae783405ff2 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/RegionsMetadataTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/RegionsMetadataTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -11,9 +11,9 @@ public final class RegionsMetadataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RegionsMetadata model = BinaryData.fromString("{\"id\":\"nftguvriuhpr\",\"name\":\"dyvxqtayriww\"}") - .toObject(RegionsMetadata.class); - Assertions.assertEquals("nftguvriuhpr", model.id()); - Assertions.assertEquals("dyvxqtayriww", model.name()); + RegionsMetadata model + = BinaryData.fromString("{\"id\":\"fqka\",\"name\":\"wiipfpub\"}").toObject(RegionsMetadata.class); + Assertions.assertEquals("fqka", model.id()); + Assertions.assertEquals("wiipfpub", model.name()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessConfigPropertiesTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessConfigPropertiesTests.java index 75618367f94d..6547c8e59db2 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessConfigPropertiesTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessConfigPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -13,15 +13,15 @@ public final class ServerlessConfigPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessConfigProperties model = BinaryData.fromString( - "{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"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\"}]}") + "{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"smocmbq\",\"value\":\"vmkcx\"},{\"name\":\"apvhelxprgly\",\"value\":\"dd\"}],\"computeUnits\":[{\"name\":\"cuejrjxgci\",\"value\":[\"rhos\"]},{\"name\":\"dqrhzoymib\",\"value\":[\"yiba\"]},{\"name\":\"fluszdtm\",\"value\":[\"wofyyvoqacpiexp\",\"tg\",\"wbwo\"]},{\"name\":\"washr\",\"value\":[\"kcnqxwbpo\",\"ulpiuj\"]}],\"executionTimeout\":\"asipqiio\",\"regions\":[{\"id\":\"erpqlpqwcciuqg\",\"name\":\"butauvfb\"},{\"id\":\"uwhhmhykojoxafn\",\"name\":\"lpichk\"},{\"id\":\"mkcdyhbpkkpwdre\",\"name\":\"ovvqfovljxywsu\"}]}") .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()); + Assertions.assertEquals("smocmbq", model.applicationTypes().get(0).name()); + Assertions.assertEquals("vmkcx", model.applicationTypes().get(0).value()); + Assertions.assertEquals("cuejrjxgci", model.computeUnits().get(0).name()); + Assertions.assertEquals("rhos", model.computeUnits().get(0).value().get(0)); + Assertions.assertEquals("asipqiio", model.executionTimeout()); + Assertions.assertEquals("erpqlpqwcciuqg", model.regions().get(0).id()); + Assertions.assertEquals("butauvfb", model.regions().get(0).name()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessMetadataResponseInnerTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessMetadataResponseInnerTests.java index f90292c3a58f..6b57472214f9 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessMetadataResponseInnerTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessMetadataResponseInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -14,56 +14,58 @@ 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\"}]}]}}") + "{\"type\":\"SERVERLESS\",\"serverlessConfigProperties\":{\"platform\":\"AZURE\",\"applicationTypes\":[{\"name\":\"kxfbkpycgklwndn\",\"value\":\"dauwhvylwzbtd\"}],\"computeUnits\":[{\"name\":\"znbmpowuwprzq\",\"value\":[\"ualupjmkh\",\"xobbcswsrt\",\"riplrbpbewtg\"]},{\"name\":\"gblcgwxzvlvq\",\"value\":[\"begibtnmxiebwwa\",\"oayqc\"]}],\"executionTimeout\":\"rtzju\",\"regions\":[{\"id\":\"zmh\",\"name\":\"ongmtsa\"},{\"id\":\"cbpwxqpsrknft\",\"name\":\"vriuhprwmdyvx\"},{\"id\":\"ayriwwroyqbexrm\",\"name\":\"ibycno\"}]},\"serverlessRuntimeConfigProperties\":{\"cdiConfigProps\":[{\"engineName\":\"mefqsgzvahapjyzh\",\"engineVersion\":\"vgqzcjrvxd\",\"applicationConfigs\":[{\"type\":\"lmwlxkvugfhzo\",\"name\":\"awjvzunluthnnp\",\"value\":\"nxipeil\",\"platform\":\"jzuaejxdultskzbb\",\"customized\":\"dzumveekg\",\"defaultValue\":\"wozuhkf\"},{\"type\":\"bsjyofdx\",\"name\":\"uusdttouwa\",\"value\":\"oekqvk\",\"platform\":\"lns\",\"customized\":\"vbxwyjsflhh\",\"defaultValue\":\"aalnjixi\"},{\"type\":\"xyawj\",\"name\":\"yaqcslyjpkiidz\",\"value\":\"exznelixhnr\",\"platform\":\"tfolhbnx\",\"customized\":\"nalaulppg\",\"defaultValue\":\"dtpnapnyiropuhp\"},{\"type\":\"gvpgy\",\"name\":\"gqgitxmedjvcsl\",\"value\":\"n\",\"platform\":\"wwncwzzhxgk\",\"customized\":\"rmgucnap\",\"defaultValue\":\"t\"}]},{\"engineName\":\"oellwp\",\"engineVersion\":\"fdygpfqbuaceopz\",\"applicationConfigs\":[{\"type\":\"rhhuaopppcqeqx\",\"name\":\"lzdahzxctobgbkdm\",\"value\":\"izpost\",\"platform\":\"grcfb\",\"customized\":\"nrmfqjhhk\",\"defaultValue\":\"bpvjymjhx\"},{\"type\":\"j\",\"name\":\"n\",\"value\":\"u\",\"platform\":\"ivkrtsw\",\"customized\":\"xqzvszjfa\",\"defaultValue\":\"vjfdx\"}]},{\"engineName\":\"ivetvtcq\",\"engineVersion\":\"qtdo\",\"applicationConfigs\":[{\"type\":\"cbxvwvxyslqbh\",\"name\":\"fxoblytkb\",\"value\":\"mpew\",\"platform\":\"wfbkrvrns\",\"customized\":\"shqjohxcrsbf\",\"defaultValue\":\"vasrruvwb\"},{\"type\":\"sqfsubcgjbirxb\",\"name\":\"ybsrfbjfdtwss\",\"value\":\"t\",\"platform\":\"tpvjzbexilzznfqq\",\"customized\":\"vwpm\",\"defaultValue\":\"taruoujmkcj\"},{\"type\":\"wqytjrybnwjewgdr\",\"name\":\"ervnaenqpehi\",\"value\":\"doy\",\"platform\":\"mifthnzdnd\",\"customized\":\"l\",\"defaultValue\":\"nayqi\"}]},{\"engineName\":\"ynduha\",\"engineVersion\":\"hqlkthumaqo\",\"applicationConfigs\":[{\"type\":\"gycdu\",\"name\":\"ertgccymva\",\"value\":\"l\",\"platform\":\"ssl\",\"customized\":\"lfmmdnbbglzpswi\",\"defaultValue\":\"d\"},{\"type\":\"cwyhzdxssa\",\"name\":\"bzmnvdfznud\",\"value\":\"od\",\"platform\":\"xzb\",\"customized\":\"cblylpstdbhhxsr\",\"defaultValue\":\"dzu\"},{\"type\":\"erscdntne\",\"name\":\"fiwjmygtdssls\",\"value\":\"tmweriofzpyq\",\"platform\":\"emwabnet\",\"customized\":\"hhszh\",\"defaultValue\":\"d\"},{\"type\":\"lvwiwubmwmbesl\",\"name\":\"nkww\",\"value\":\"pp\",\"platform\":\"flcxoga\",\"customized\":\"konzmnsik\",\"defaultValue\":\"mkqzeqqkdltfzxmh\"}]}],\"cdieConfigProps\":[{\"engineName\":\"gureodkwobdag\",\"engineVersion\":\"tibqdxbxwakb\",\"applicationConfigs\":[{\"type\":\"qxn\",\"name\":\"lkzgxhuriplbp\",\"value\":\"dxunkbebxmubyyn\",\"platform\":\"wlrbqtkoievseo\",\"customized\":\"gqrlltmuwla\",\"defaultValue\":\"wzizxbmpgcjefuzm\"},{\"type\":\"vpbttd\",\"name\":\"morppxebmnzbtbh\",\"value\":\"pglkf\",\"platform\":\"ohdneuel\",\"customized\":\"phsdyhto\",\"defaultValue\":\"fikdowwqu\"},{\"type\":\"v\",\"name\":\"zx\",\"value\":\"lvithhqzonosgg\",\"platform\":\"hcohfwdsjnk\",\"customized\":\"ljuti\",\"defaultValue\":\"swacffgdkzz\"},{\"type\":\"wkfvhqcrailvp\",\"name\":\"ppfufl\",\"value\":\"wdmhdlxyjrxs\",\"platform\":\"gafcnihgwqapnedg\",\"customized\":\"bcvkcvqvpkeq\",\"defaultValue\":\"cvdrhvoodsot\"}]},{\"engineName\":\"obzdopcjwvnhdl\",\"engineVersion\":\"wmgxcxrsl\",\"applicationConfigs\":[{\"type\":\"utwu\",\"name\":\"egrpkhj\",\"value\":\"niyqslui\",\"platform\":\"pdggkzzlvm\",\"customized\":\"mpaxmodfvuefywsb\",\"defaultValue\":\"fvmwy\"},{\"type\":\"rfouyftaakcpw\",\"name\":\"yzvqt\",\"value\":\"nubexk\",\"platform\":\"zksmondj\",\"customized\":\"quxvypomgkop\",\"defaultValue\":\"whojvp\"}]}]}}") .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", + Assertions.assertEquals("kxfbkpycgklwndn", model.serverlessConfigProperties().applicationTypes().get(0).name()); + Assertions.assertEquals("dauwhvylwzbtd", model.serverlessConfigProperties().applicationTypes().get(0).value()); + Assertions.assertEquals("znbmpowuwprzq", model.serverlessConfigProperties().computeUnits().get(0).name()); + Assertions.assertEquals("ualupjmkh", model.serverlessConfigProperties().computeUnits().get(0).value().get(0)); + Assertions.assertEquals("rtzju", model.serverlessConfigProperties().executionTimeout()); + Assertions.assertEquals("zmh", model.serverlessConfigProperties().regions().get(0).id()); + Assertions.assertEquals("ongmtsa", model.serverlessConfigProperties().regions().get(0).name()); + Assertions.assertEquals("mefqsgzvahapjyzh", + model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineName()); + Assertions.assertEquals("vgqzcjrvxd", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).engineVersion()); - Assertions.assertEquals("dhibnuq", + Assertions.assertEquals("lmwlxkvugfhzo", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("kpikadrgvt", + Assertions.assertEquals("awjvzunluthnnp", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("agnb", + Assertions.assertEquals("nxipeil", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("ynhijggme", + Assertions.assertEquals("jzuaejxdultskzbb", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("fsiarbutr", + Assertions.assertEquals("dzumveekg", model.serverlessRuntimeConfigProperties().cdiConfigProps().get(0).applicationConfigs().get(0).customized()); - Assertions.assertEquals("vpnazzm", + Assertions.assertEquals("wozuhkf", model.serverlessRuntimeConfigProperties() .cdiConfigProps() .get(0) .applicationConfigs() .get(0) .defaultValue()); - Assertions.assertEquals("xy", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineName()); - Assertions.assertEquals("lmoyrx", + Assertions.assertEquals("gureodkwobdag", + model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineName()); + Assertions.assertEquals("tibqdxbxwakb", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).engineVersion()); - Assertions.assertEquals("fudwpznt", + Assertions.assertEquals("qxn", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).type()); - Assertions.assertEquals("hdzhlrqj", + Assertions.assertEquals("lkzgxhuriplbp", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).name()); - Assertions.assertEquals("hckfrlhrx", + Assertions.assertEquals("dxunkbebxmubyyn", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).value()); - Assertions.assertEquals("bkyvp", + Assertions.assertEquals("wlrbqtkoievseo", model.serverlessRuntimeConfigProperties().cdieConfigProps().get(0).applicationConfigs().get(0).platform()); - Assertions.assertEquals("ca", + Assertions.assertEquals("gqrlltmuwla", model.serverlessRuntimeConfigProperties() .cdieConfigProps() .get(0) .applicationConfigs() .get(0) .customized()); - Assertions.assertEquals("uzbpzkafku", + Assertions.assertEquals("wzizxbmpgcjefuzm", model.serverlessRuntimeConfigProperties() .cdieConfigProps() .get(0) diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesTests.java index 5bbefbc6a4f0..67c6291b59d9 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -15,136 +15,113 @@ 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\"}]}]}") + "{\"cdiConfigProps\":[{\"engineName\":\"wwiftohqkvpuv\",\"engineVersion\":\"sgplsakn\",\"applicationConfigs\":[{\"type\":\"fsynljphuop\",\"name\":\"odlqiyntor\",\"value\":\"ihleos\",\"platform\":\"swsrms\",\"customized\":\"yzrpzbchckqqzq\",\"defaultValue\":\"ox\"}]},{\"engineName\":\"ysuiizynkedya\",\"engineVersion\":\"rwyhqmibzyhwitsm\",\"applicationConfigs\":[{\"type\":\"yynpcdpumnzgmwz\",\"name\":\"mabiknsorgjhxb\",\"value\":\"dtlwwrlkd\",\"platform\":\"tncvokot\",\"customized\":\"lxdy\",\"defaultValue\":\"gsyocogj\"}]}],\"cdieConfigProps\":[{\"engineName\":\"tbnnha\",\"engineVersion\":\"oocrkvcikhnv\",\"applicationConfigs\":[{\"type\":\"mqg\",\"name\":\"qqu\",\"value\":\"zikywgg\",\"platform\":\"kallatmel\",\"customized\":\"uipiccjzk\",\"defaultValue\":\"ivgvvcna\"},{\"type\":\"rhyrnxxmueed\",\"name\":\"drd\",\"value\":\"stkwqqtch\",\"platform\":\"alm\",\"customized\":\"mtdaa\",\"defaultValue\":\"gdv\"},{\"type\":\"vgpiohgwxrt\",\"name\":\"udxepxgyqagv\",\"value\":\"vmnpkukghimdblx\",\"platform\":\"wi\",\"customized\":\"fnjhfjxwmszkkfo\",\"defaultValue\":\"rey\"},{\"type\":\"kzikfjawneaivxwc\",\"name\":\"elpcirelsfeaenwa\",\"value\":\"fatkld\",\"platform\":\"xbjhwuaanozjosph\",\"customized\":\"oulpjrv\",\"defaultValue\":\"ag\"}]},{\"engineName\":\"rvimjwosytxitcsk\",\"engineVersion\":\"cktqumiekkezzi\",\"applicationConfigs\":[{\"type\":\"ly\",\"name\":\"jhdgqggebdunyga\",\"value\":\"qidbqfatpxllrxcy\",\"platform\":\"moadsuvarmy\",\"customized\":\"dmjsjqb\",\"defaultValue\":\"hhyxxrw\"},{\"type\":\"yc\",\"name\":\"duhpk\",\"value\":\"kgymareqnajxqug\",\"platform\":\"hky\",\"customized\":\"ubeddg\",\"defaultValue\":\"sofwqmzqalkrmnji\"},{\"type\":\"pxacqqudfn\",\"name\":\"yxbaaabjyvayf\",\"value\":\"imrzrtuzqog\",\"platform\":\"exn\",\"customized\":\"vfdnwnwmewzsyyce\",\"defaultValue\":\"zsoibjudpfrxtr\"}]}]}") .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()); + Assertions.assertEquals("wwiftohqkvpuv", model.cdiConfigProps().get(0).engineName()); + Assertions.assertEquals("sgplsakn", model.cdiConfigProps().get(0).engineVersion()); + Assertions.assertEquals("fsynljphuop", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("odlqiyntor", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("ihleos", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("swsrms", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("yzrpzbchckqqzq", + model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("ox", model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("tbnnha", model.cdieConfigProps().get(0).engineName()); + Assertions.assertEquals("oocrkvcikhnv", model.cdieConfigProps().get(0).engineVersion()); + Assertions.assertEquals("mqg", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("qqu", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("zikywgg", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("kallatmel", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("uipiccjzk", model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("ivgvvcna", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ServerlessRuntimeConfigProperties model = new ServerlessRuntimeConfigProperties() .withCdiConfigProps(Arrays.asList( - new CdiConfigProps().withEngineName("qbex") - .withEngineVersion("mcqibycnojv") + new CdiConfigProps().withEngineName("wwiftohqkvpuv") + .withEngineVersion("sgplsakn") + .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("fsynljphuop") + .withName("odlqiyntor") + .withValue("ihleos") + .withPlatform("swsrms") + .withCustomized("yzrpzbchckqqzq") + .withDefaultValue("ox"))), + new CdiConfigProps().withEngineName("ysuiizynkedya") + .withEngineVersion("rwyhqmibzyhwitsm") + .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("yynpcdpumnzgmwz") + .withName("mabiknsorgjhxb") + .withValue("dtlwwrlkd") + .withPlatform("tncvokot") + .withCustomized("lxdy") + .withDefaultValue("gsyocogj"))))) + .withCdieConfigProps(Arrays.asList( + new CdiConfigProps().withEngineName("tbnnha") + .withEngineVersion("oocrkvcikhnv") .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") + new ApplicationConfigs().withType("mqg") + .withName("qqu") + .withValue("zikywgg") + .withPlatform("kallatmel") + .withCustomized("uipiccjzk") + .withDefaultValue("ivgvvcna"), + new ApplicationConfigs().withType("rhyrnxxmueed") + .withName("drd") + .withValue("stkwqqtch") + .withPlatform("alm") + .withCustomized("mtdaa") + .withDefaultValue("gdv"), + new ApplicationConfigs().withType("vgpiohgwxrt") + .withName("udxepxgyqagv") + .withValue("vmnpkukghimdblx") + .withPlatform("wi") + .withCustomized("fnjhfjxwmszkkfo") + .withDefaultValue("rey"), + new ApplicationConfigs().withType("kzikfjawneaivxwc") + .withName("elpcirelsfeaenwa") + .withValue("fatkld") + .withPlatform("xbjhwuaanozjosph") + .withCustomized("oulpjrv") + .withDefaultValue("ag"))), + new CdiConfigProps().withEngineName("rvimjwosytxitcsk") + .withEngineVersion("cktqumiekkezzi") .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"))))); + new ApplicationConfigs().withType("ly") + .withName("jhdgqggebdunyga") + .withValue("qidbqfatpxllrxcy") + .withPlatform("moadsuvarmy") + .withCustomized("dmjsjqb") + .withDefaultValue("hhyxxrw"), + new ApplicationConfigs().withType("yc") + .withName("duhpk") + .withValue("kgymareqnajxqug") + .withPlatform("hky") + .withCustomized("ubeddg") + .withDefaultValue("sofwqmzqalkrmnji"), + new ApplicationConfigs().withType("pxacqqudfn") + .withName("yxbaaabjyvayf") + .withValue("imrzrtuzqog") + .withPlatform("exn") + .withCustomized("vfdnwnwmewzsyyce") + .withDefaultValue("zsoibjudpfrxtr"))))); 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()); + Assertions.assertEquals("wwiftohqkvpuv", model.cdiConfigProps().get(0).engineName()); + Assertions.assertEquals("sgplsakn", model.cdiConfigProps().get(0).engineVersion()); + Assertions.assertEquals("fsynljphuop", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("odlqiyntor", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("ihleos", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("swsrms", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("yzrpzbchckqqzq", + model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("ox", model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("tbnnha", model.cdieConfigProps().get(0).engineName()); + Assertions.assertEquals("oocrkvcikhnv", model.cdieConfigProps().get(0).engineVersion()); + Assertions.assertEquals("mqg", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("qqu", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("zikywgg", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("kallatmel", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("uipiccjzk", model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("ivgvvcna", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesUpdateTests.java index 1e8ee28411aa..50d32ebd0479 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeConfigPropertiesUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -15,124 +15,39 @@ 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\"}]}]}") + "{\"cdiConfigProps\":[{\"engineName\":\"htwdwrftswibyrcd\",\"engineVersion\":\"bhshfwpracstwity\",\"applicationConfigs\":[{\"type\":\"evxccedcp\",\"name\":\"md\",\"value\":\"odn\",\"platform\":\"zxltjcvn\",\"customized\":\"ltiugcxnavv\",\"defaultValue\":\"xqi\"},{\"type\":\"y\",\"name\":\"unyowxwl\",\"value\":\"djrkvfgbvfvpd\",\"platform\":\"odacizs\",\"customized\":\"q\",\"defaultValue\":\"hkr\"}]},{\"engineName\":\"ibdeibq\",\"engineVersion\":\"p\",\"applicationConfigs\":[{\"type\":\"ghvxndzwmkrefa\",\"name\":\"pjorwkqnyhg\",\"value\":\"ij\",\"platform\":\"jivfxzsjabib\",\"customized\":\"ystawfsdjpvkvp\",\"defaultValue\":\"jxbkzbzkdvn\"}]},{\"engineName\":\"jabudurgkakmo\",\"engineVersion\":\"zhjjklffhmouwq\",\"applicationConfigs\":[{\"type\":\"zrfze\",\"name\":\"yebizikayuh\",\"value\":\"lbjbsyb\",\"platform\":\"qwrvtldgmfp\",\"customized\":\"vm\",\"defaultValue\":\"ipaslthaqfxssmwu\"}]}],\"cdieConfigProps\":[{\"engineName\":\"dsrezpdrhneuyow\",\"engineVersion\":\"kdw\",\"applicationConfigs\":[{\"type\":\"i\",\"name\":\"ib\",\"value\":\"rcgp\",\"platform\":\"kpzi\",\"customized\":\"ejzanlfz\",\"defaultValue\":\"iavrm\"}]},{\"engineName\":\"zonokixrjqci\",\"engineVersion\":\"gzpfrla\",\"applicationConfigs\":[{\"type\":\"zrnw\",\"name\":\"iin\",\"value\":\"fpwpjylwbt\",\"platform\":\"h\",\"customized\":\"lsj\",\"defaultValue\":\"dhszfjv\"},{\"type\":\"bgofeljag\",\"name\":\"qmqhldvriii\",\"value\":\"jnalghf\",\"platform\":\"vtvsexsowueluq\",\"customized\":\"hahhxvrhmzkwpj\",\"defaultValue\":\"wws\"}]}]}") .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()); + Assertions.assertEquals("htwdwrftswibyrcd", model.cdiConfigProps().get(0).engineName()); + Assertions.assertEquals("bhshfwpracstwity", model.cdiConfigProps().get(0).engineVersion()); + Assertions.assertEquals("evxccedcp", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("md", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("odn", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("zxltjcvn", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("ltiugcxnavv", model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("xqi", model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("dsrezpdrhneuyow", model.cdieConfigProps().get(0).engineName()); + Assertions.assertEquals("kdw", model.cdieConfigProps().get(0).engineVersion()); + Assertions.assertEquals("i", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("ib", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("rcgp", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("kpzi", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("ejzanlfz", model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("iavrm", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ServerlessRuntimeConfigPropertiesUpdate model = new ServerlessRuntimeConfigPropertiesUpdate() .withCdiConfigProps(Arrays.asList( - new CdiConfigProps().withEngineName("ebwnujhe") - .withEngineVersion("msbvdkcrodtjinf") + new CdiConfigProps().withEngineName("htwdwrftswibyrcd") + .withEngineVersion("bhshfwpracstwity") .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("evxccedcp") + .withName("md") + .withValue("odn") + .withPlatform("zxltjcvn") + .withCustomized("ltiugcxnavv") + .withDefaultValue("xqi"), new ApplicationConfigs().withType("y") .withName("unyowxwl") .withValue("djrkvfgbvfvpd") @@ -154,24 +69,47 @@ public void testSerialize() throws Exception { .withValue("lbjbsyb") .withPlatform("qwrvtldgmfp") .withCustomized("vm") - .withDefaultValue("ipaslthaqfxssmwu"))))); + .withDefaultValue("ipaslthaqfxssmwu"))))) + .withCdieConfigProps(Arrays.asList( + new CdiConfigProps().withEngineName("dsrezpdrhneuyow") + .withEngineVersion("kdw") + .withApplicationConfigs(Arrays.asList(new ApplicationConfigs().withType("i") + .withName("ib") + .withValue("rcgp") + .withPlatform("kpzi") + .withCustomized("ejzanlfz") + .withDefaultValue("iavrm"))), + new CdiConfigProps().withEngineName("zonokixrjqci") + .withEngineVersion("gzpfrla") + .withApplicationConfigs(Arrays.asList( + new ApplicationConfigs().withType("zrnw") + .withName("iin") + .withValue("fpwpjylwbt") + .withPlatform("h") + .withCustomized("lsj") + .withDefaultValue("dhszfjv"), + new ApplicationConfigs().withType("bgofeljag") + .withName("qmqhldvriii") + .withValue("jnalghf") + .withPlatform("vtvsexsowueluq") + .withCustomized("hahhxvrhmzkwpj") + .withDefaultValue("wws"))))); 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()); + Assertions.assertEquals("htwdwrftswibyrcd", model.cdiConfigProps().get(0).engineName()); + Assertions.assertEquals("bhshfwpracstwity", model.cdiConfigProps().get(0).engineVersion()); + Assertions.assertEquals("evxccedcp", model.cdiConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("md", model.cdiConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("odn", model.cdiConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("zxltjcvn", model.cdiConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("ltiugcxnavv", model.cdiConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("xqi", model.cdiConfigProps().get(0).applicationConfigs().get(0).defaultValue()); + Assertions.assertEquals("dsrezpdrhneuyow", model.cdieConfigProps().get(0).engineName()); + Assertions.assertEquals("kdw", model.cdieConfigProps().get(0).engineVersion()); + Assertions.assertEquals("i", model.cdieConfigProps().get(0).applicationConfigs().get(0).type()); + Assertions.assertEquals("ib", model.cdieConfigProps().get(0).applicationConfigs().get(0).name()); + Assertions.assertEquals("rcgp", model.cdieConfigProps().get(0).applicationConfigs().get(0).value()); + Assertions.assertEquals("kpzi", model.cdieConfigProps().get(0).applicationConfigs().get(0).platform()); + Assertions.assertEquals("ejzanlfz", model.cdieConfigProps().get(0).applicationConfigs().get(0).customized()); + Assertions.assertEquals("iavrm", model.cdieConfigProps().get(0).applicationConfigs().get(0).defaultValue()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeDependencyTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeDependencyTests.java index 77169d97e190..b08e3bc4733b 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeDependencyTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeDependencyTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,13 +12,13 @@ public final class ServerlessRuntimeDependencyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessRuntimeDependency model = BinaryData.fromString( - "{\"id\":\"rgz\",\"appContextId\":\"frl\",\"path\":\"zszrnwoiindfpw\",\"documentType\":\"jylwbtlhflsj\",\"description\":\"dhszfjv\",\"lastUpdatedTime\":\"bgofeljag\"}") + "{\"id\":\"lvdnkfx\",\"appContextId\":\"semdwzrmu\",\"path\":\"apfcqdpsq\",\"documentType\":\"qvpsvuoymg\",\"description\":\"celve\",\"lastUpdatedTime\":\"rypqlmfeo\"}") .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()); + Assertions.assertEquals("lvdnkfx", model.id()); + Assertions.assertEquals("semdwzrmu", model.appContextId()); + Assertions.assertEquals("apfcqdpsq", model.path()); + Assertions.assertEquals("qvpsvuoymg", model.documentType()); + Assertions.assertEquals("celve", model.description()); + Assertions.assertEquals("rypqlmfeo", model.lastUpdatedTime()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileTests.java index ddf99fa6a242..8b5cae191b44 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -13,22 +13,22 @@ public final class ServerlessRuntimeNetworkProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessRuntimeNetworkProfile model = BinaryData.fromString( - "{\"networkInterfaceConfiguration\":{\"vnetId\":\"ohgwxrtfudxepxg\",\"subnetId\":\"qagvrvm\",\"vnetResourceGuid\":\"k\"}}") + "{\"networkInterfaceConfiguration\":{\"vnetId\":\"kszzcmrvexztv\",\"subnetId\":\"t\",\"vnetResourceGuid\":\"sfraoyzko\"}}") .toObject(ServerlessRuntimeNetworkProfile.class); - Assertions.assertEquals("ohgwxrtfudxepxg", model.networkInterfaceConfiguration().vnetId()); - Assertions.assertEquals("qagvrvm", model.networkInterfaceConfiguration().subnetId()); - Assertions.assertEquals("k", model.networkInterfaceConfiguration().vnetResourceGuid()); + Assertions.assertEquals("kszzcmrvexztv", model.networkInterfaceConfiguration().vnetId()); + Assertions.assertEquals("t", model.networkInterfaceConfiguration().subnetId()); + Assertions.assertEquals("sfraoyzko", 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")); + .withNetworkInterfaceConfiguration(new NetworkInterfaceConfiguration().withVnetId("kszzcmrvexztv") + .withSubnetId("t") + .withVnetResourceGuid("sfraoyzko")); 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()); + Assertions.assertEquals("kszzcmrvexztv", model.networkInterfaceConfiguration().vnetId()); + Assertions.assertEquals("t", model.networkInterfaceConfiguration().subnetId()); + Assertions.assertEquals("sfraoyzko", model.networkInterfaceConfiguration().vnetResourceGuid()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileUpdateTests.java index 9dad4e2c80ea..99d7ccd92abd 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeNetworkProfileUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -13,22 +13,22 @@ public final class ServerlessRuntimeNetworkProfileUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessRuntimeNetworkProfileUpdate model = BinaryData.fromString( - "{\"networkInterfaceConfiguration\":{\"vnetId\":\"oaxoruzfgsqu\",\"subnetId\":\"xrxxlep\",\"vnetResourceGuid\":\"amxjezwlw\"}}") + "{\"networkInterfaceConfiguration\":{\"vnetId\":\"stvlzywemhzrnc\",\"subnetId\":\"tclusiypbsfgy\",\"vnetResourceGuid\":\"uslfead\"}}") .toObject(ServerlessRuntimeNetworkProfileUpdate.class); - Assertions.assertEquals("oaxoruzfgsqu", model.networkInterfaceConfiguration().vnetId()); - Assertions.assertEquals("xrxxlep", model.networkInterfaceConfiguration().subnetId()); - Assertions.assertEquals("amxjezwlw", model.networkInterfaceConfiguration().vnetResourceGuid()); + Assertions.assertEquals("stvlzywemhzrnc", model.networkInterfaceConfiguration().vnetId()); + Assertions.assertEquals("tclusiypbsfgy", model.networkInterfaceConfiguration().subnetId()); + Assertions.assertEquals("uslfead", 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")); + .withNetworkInterfaceConfiguration(new NetworkInterfaceConfigurationUpdate().withVnetId("stvlzywemhzrnc") + .withSubnetId("tclusiypbsfgy") + .withVnetResourceGuid("uslfead")); 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()); + Assertions.assertEquals("stvlzywemhzrnc", model.networkInterfaceConfiguration().vnetId()); + Assertions.assertEquals("tclusiypbsfgy", model.networkInterfaceConfiguration().subnetId()); + Assertions.assertEquals("uslfead", model.networkInterfaceConfiguration().vnetResourceGuid()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeTagTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeTagTests.java index d73379643d76..b7a1ac0742c6 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeTagTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimeTagTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,16 +12,16 @@ public final class ServerlessRuntimeTagTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServerlessRuntimeTag model - = BinaryData.fromString("{\"name\":\"a\",\"value\":\"xwczelpcire\"}").toObject(ServerlessRuntimeTag.class); + = BinaryData.fromString("{\"name\":\"a\",\"value\":\"hrskdsnfd\"}").toObject(ServerlessRuntimeTag.class); Assertions.assertEquals("a", model.name()); - Assertions.assertEquals("xwczelpcire", model.value()); + Assertions.assertEquals("hrskdsnfd", model.value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServerlessRuntimeTag model = new ServerlessRuntimeTag().withName("a").withValue("xwczelpcire"); + ServerlessRuntimeTag model = new ServerlessRuntimeTag().withName("a").withValue("hrskdsnfd"); model = BinaryData.fromObject(model).toObject(ServerlessRuntimeTag.class); Assertions.assertEquals("a", model.name()); - Assertions.assertEquals("xwczelpcire", model.value()); + Assertions.assertEquals("hrskdsnfd", model.value()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesWithResponseMockTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesWithResponseMockTests.java index 4c9db014dbc8..e3a94c46c5a9 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesWithResponseMockTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesCheckDependenciesWithResponseMockTests.java @@ -1,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; @@ -21,7 +21,7 @@ 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\"}]}"; + = "{\"count\":1050448632,\"id\":\"o\",\"references\":[{\"id\":\"jhf\",\"appContextId\":\"mvec\",\"path\":\"ctxmwoteyowcluq\",\"documentType\":\"vekqvgqo\",\"description\":\"wifzmp\",\"lastUpdatedTime\":\"wyivqikf\"},{\"id\":\"cvhrfsp\",\"appContextId\":\"uagrttikteusqc\",\"path\":\"kvyklxubyjaffmm\",\"documentType\":\"bl\",\"description\":\"qcuubgqibrta\",\"lastUpdatedTime\":\"metttwgd\"},{\"id\":\"lqxihhrmooiz\",\"appContextId\":\"seypxiutcxapz\",\"path\":\"y\",\"documentType\":\"petogebjox\",\"description\":\"lhvnhlab\",\"lastUpdatedTime\":\"q\"},{\"id\":\"kkzjcjbtrga\",\"appContextId\":\"hvv\",\"path\":\"brxjjsto\",\"documentType\":\"beitpkx\",\"description\":\"tmo\",\"lastUpdatedTime\":\"bklftidgfcwqmpim\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,16 +31,17 @@ public void testCheckDependenciesWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CheckDependenciesResponse response = manager.serverlessRuntimes() - .checkDependenciesWithResponse("wk", "ziycslevufuztck", "yhjtqedcgzu", com.azure.core.util.Context.NONE) + .checkDependenciesWithResponse("pe", "ojyqdhcuplcplcw", "hihihlhzdsqtzbsr", + 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()); + Assertions.assertEquals(1050448632, response.count()); + Assertions.assertEquals("o", response.id()); + Assertions.assertEquals("jhf", response.references().get(0).id()); + Assertions.assertEquals("mvec", response.references().get(0).appContextId()); + Assertions.assertEquals("ctxmwoteyowcluq", response.references().get(0).path()); + Assertions.assertEquals("vekqvgqo", response.references().get(0).documentType()); + Assertions.assertEquals("wifzmp", response.references().get(0).description()); + Assertions.assertEquals("wyivqikf", response.references().get(0).lastUpdatedTime()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeWitMockTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeWitMockTests.java index ca28758a2a67..4c2f3b33e0f2 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeWitMockTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/ServerlessRuntimesStartFailedServerlessRuntimeWitMockTests.java @@ -1,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; @@ -28,7 +28,7 @@ public void testStartFailedServerlessRuntimeWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.serverlessRuntimes() - .startFailedServerlessRuntimeWithResponse("riglaec", "ndtic", "kpvzmlq", com.azure.core.util.Context.NONE); + .startFailedServerlessRuntimeWithResponse("epgfew", "twly", "gncxykxhdj", com.azure.core.util.Context.NONE); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsTests.java index bb04db020e2e..bf6655620f5d 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,27 +12,27 @@ public final class UserDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserDetails model = BinaryData.fromString( - "{\"firstName\":\"wyiftyhxhur\",\"lastName\":\"ftyxolniw\",\"emailAddress\":\"cukjf\",\"upn\":\"iawxklry\",\"phoneNumber\":\"wckbasyypnd\"}") + "{\"firstName\":\"eju\",\"lastName\":\"qawrlyxwj\",\"emailAddress\":\"prbnwbxgjvtbv\",\"upn\":\"sszdnru\",\"phoneNumber\":\"guhmuouqfpr\"}") .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()); + Assertions.assertEquals("eju", model.firstName()); + Assertions.assertEquals("qawrlyxwj", model.lastName()); + Assertions.assertEquals("prbnwbxgjvtbv", model.emailAddress()); + Assertions.assertEquals("sszdnru", model.upn()); + Assertions.assertEquals("guhmuouqfpr", model.phoneNumber()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UserDetails model = new UserDetails().withFirstName("wyiftyhxhur") - .withLastName("ftyxolniw") - .withEmailAddress("cukjf") - .withUpn("iawxklry") - .withPhoneNumber("wckbasyypnd"); + UserDetails model = new UserDetails().withFirstName("eju") + .withLastName("qawrlyxwj") + .withEmailAddress("prbnwbxgjvtbv") + .withUpn("sszdnru") + .withPhoneNumber("guhmuouqfpr"); 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()); + Assertions.assertEquals("eju", model.firstName()); + Assertions.assertEquals("qawrlyxwj", model.lastName()); + Assertions.assertEquals("prbnwbxgjvtbv", model.emailAddress()); + Assertions.assertEquals("sszdnru", model.upn()); + Assertions.assertEquals("guhmuouqfpr", model.phoneNumber()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsUpdateTests.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsUpdateTests.java index d4133e8b2ac3..153f9e460ae3 100644 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsUpdateTests.java +++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/test/java/com/azure/resourcemanager/informaticadatamanagement/generated/UserDetailsUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.informaticadatamanagement.generated; @@ -12,27 +12,27 @@ public final class UserDetailsUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserDetailsUpdate model = BinaryData.fromString( - "{\"firstName\":\"j\",\"lastName\":\"ovm\",\"emailAddress\":\"kacspkw\",\"upn\":\"zdobpxjmflbvvnch\",\"phoneNumber\":\"cciw\"}") + "{\"firstName\":\"pbuxwgipwhon\",\"lastName\":\"kgshwa\",\"emailAddress\":\"ixzbinjeputtmryw\",\"upn\":\"zoqftiyqzrnkcqvy\",\"phoneNumber\":\"whzlsicohoq\"}") .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()); + Assertions.assertEquals("pbuxwgipwhon", model.firstName()); + Assertions.assertEquals("kgshwa", model.lastName()); + Assertions.assertEquals("ixzbinjeputtmryw", model.emailAddress()); + Assertions.assertEquals("zoqftiyqzrnkcqvy", model.upn()); + Assertions.assertEquals("whzlsicohoq", model.phoneNumber()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UserDetailsUpdate model = new UserDetailsUpdate().withFirstName("j") - .withLastName("ovm") - .withEmailAddress("kacspkw") - .withUpn("zdobpxjmflbvvnch") - .withPhoneNumber("cciw"); + UserDetailsUpdate model = new UserDetailsUpdate().withFirstName("pbuxwgipwhon") + .withLastName("kgshwa") + .withEmailAddress("ixzbinjeputtmryw") + .withUpn("zoqftiyqzrnkcqvy") + .withPhoneNumber("whzlsicohoq"); 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()); + Assertions.assertEquals("pbuxwgipwhon", model.firstName()); + Assertions.assertEquals("kgshwa", model.lastName()); + Assertions.assertEquals("ixzbinjeputtmryw", model.emailAddress()); + Assertions.assertEquals("zoqftiyqzrnkcqvy", model.upn()); + Assertions.assertEquals("whzlsicohoq", model.phoneNumber()); } } diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/tsp-location.yaml b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/tsp-location.yaml deleted file mode 100644 index c3657ef1dcd6..000000000000 --- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/tsp-location.yaml +++ /dev/null @@ -1,4 +0,0 @@ -directory: specification/informatica/Informatica.DataManagement -commit: 50136169b8692fcc3619f79d2121ff4948b7af08 -repo: Azure/azure-rest-api-specs -additionalDirectories: