diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md
index 76263d57ae3a5..cc70cda22d898 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2024-06-28)
+
+- Azure Resource Manager Informatica DataManagement client library for Java. This package contains Microsoft Azure SDK for Informatica DataManagement Management SDK. Package tag package-2024-05-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md
index 17043e0b23172..5f7fbc7c95cf1 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Informatica DataManagement client library for Java.
-This package contains Microsoft Azure SDK for Informatica DataManagement Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Informatica DataManagement Management SDK. Package tag package-2024-05-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-informaticadatamanagement
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
### Authentication
-By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
+Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
-- `AZURE_CLIENT_ID` for Azure client ID.
-- `AZURE_TENANT_ID` for Azure tenant ID.
-- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-
-With above configuration, `azure` client can be authenticated using the following code:
+Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -97,6 +93,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/SAMPLE.md b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/SAMPLE.md
index 5d99d7b294caf..62c27a0d64ed7 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 385b065896c4e..9381f671f65f8 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -18,7 +18,7 @@ Code generated by Microsoft (R) TypeSpec Code Generator.
jar
Microsoft Azure SDK for Informatica DataManagement Management
- This package contains Microsoft Azure SDK for Informatica DataManagement Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt.
+ This package contains Microsoft Azure SDK for Informatica DataManagement Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-05-08.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/InformaticaDataManagementManager.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/InformaticaDataManagementManager.java
index 778eb7a840c20..ebee9183c92bb 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/InformaticaDataManagementManager.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/InformaticaDataManagementManager.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement;
@@ -23,8 +23,8 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.informaticadatamanagement.fluent.DataManagementClient;
-import com.azure.resourcemanager.informaticadatamanagement.implementation.DataManagementClientBuilder;
+import com.azure.resourcemanager.informaticadatamanagement.fluent.InformaticaDataManagement;
+import com.azure.resourcemanager.informaticadatamanagement.implementation.InformaticaDataManagementBuilder;
import com.azure.resourcemanager.informaticadatamanagement.implementation.OperationsImpl;
import com.azure.resourcemanager.informaticadatamanagement.implementation.OrganizationsImpl;
import com.azure.resourcemanager.informaticadatamanagement.implementation.ServerlessRuntimesImpl;
@@ -48,13 +48,13 @@ public final class InformaticaDataManagementManager {
private ServerlessRuntimes serverlessRuntimes;
- private final DataManagementClient clientObject;
+ private final InformaticaDataManagement clientObject;
private InformaticaDataManagementManager(HttpPipeline httpPipeline, AzureProfile profile,
Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject = new DataManagementClientBuilder().pipeline(httpPipeline)
+ this.clientObject = new InformaticaDataManagementBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
@@ -297,12 +297,12 @@ public ServerlessRuntimes serverlessRuntimes() {
}
/**
- * Gets wrapped service client DataManagementClient providing direct access to the underlying auto-generated API
- * implementation, based on Azure REST API.
+ * Gets wrapped service client InformaticaDataManagement providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
*
- * @return Wrapped service client DataManagementClient.
+ * @return Wrapped service client InformaticaDataManagement.
*/
- public DataManagementClient serviceClient() {
+ public InformaticaDataManagement serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/DataManagementClient.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagement.java
similarity index 83%
rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/DataManagementClient.java
rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagement.java
index e380763921731..557cfd925f4af 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/DataManagementClient.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/InformaticaDataManagement.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.fluent;
@@ -8,29 +8,29 @@
import java.time.Duration;
/**
- * The interface for DataManagementClient class.
+ * The interface for InformaticaDataManagement class.
*/
-public interface DataManagementClient {
+public interface InformaticaDataManagement {
/**
- * Gets Server parameter.
+ * Gets The ID of the target subscription.
*
- * @return the endpoint value.
+ * @return the subscriptionId value.
*/
- String getEndpoint();
+ String getSubscriptionId();
/**
- * Gets Version parameter.
+ * Gets server parameter.
*
- * @return the apiVersion value.
+ * @return the endpoint value.
*/
- String getApiVersion();
+ String getEndpoint();
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets Api Version.
*
- * @return the subscriptionId value.
+ * @return the apiVersion value.
*/
- String getSubscriptionId();
+ String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OperationsClient.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OperationsClient.java
index 525914b91993d..5957196a03021 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OperationsClient.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.fluent;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OrganizationsClient.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OrganizationsClient.java
index 26cb98c0083ad..c1f0775c1548d 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OrganizationsClient.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/OrganizationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.fluent;
@@ -20,6 +20,57 @@
* An instance of this class provides access to all the operations defined in OrganizationsClient.
*/
public interface OrganizationsClient {
+ /**
+ * List InformaticaOrganizationResource resources by subscription ID.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List InformaticaOrganizationResource resources by subscription ID.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List InformaticaOrganizationResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List InformaticaOrganizationResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
/**
* Get a InformaticaOrganizationResource.
*
@@ -196,55 +247,34 @@ InformaticaOrganizationResourceInner update(String resourceGroupName, String org
void delete(String resourceGroupName, String organizationName, Context context);
/**
- * List InformaticaOrganizationResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List InformaticaOrganizationResource resources by resource group.
+ * Gets all serverless runtime resources in a given informatica organization resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * List InformaticaOrganizationResource resources by subscription ID.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedIterable}.
+ * @return all serverless runtime resources in a given informatica organization resource along with
+ * {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response
+ getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context);
/**
- * List InformaticaOrganizationResource resources by subscription ID.
+ * Gets all serverless runtime resources in a given informatica organization resource.
*
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedIterable}.
+ * @return all serverless runtime resources in a given informatica organization resource.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(String resourceGroupName,
+ String organizationName);
/**
* Gets Metadata of the serverless runtime environment.
@@ -273,34 +303,4 @@ Response getServerlessMetadataWithResponse(Stri
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ServerlessMetadataResponseInner getServerlessMetadata(String resourceGroupName, String organizationName);
-
- /**
- * Gets all serverless runtime resources in a given informatica organization resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all serverless runtime resources in a given informatica organization resource along with
- * {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response
- getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context);
-
- /**
- * Gets all serverless runtime resources in a given informatica organization resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all serverless runtime resources in a given informatica organization resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(String resourceGroupName,
- String organizationName);
}
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/ServerlessRuntimesClient.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/ServerlessRuntimesClient.java
index 243750fd868a6..2be74e3d4dbfd 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/ServerlessRuntimesClient.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/ServerlessRuntimesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.fluent;
@@ -19,6 +19,37 @@
* An instance of this class provides access to all the operations defined in ServerlessRuntimesClient.
*/
public interface ServerlessRuntimesClient {
+ /**
+ * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable
+ listByInformaticaOrganizationResource(String resourceGroupName, String organizationName);
+
+ /**
+ * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable
+ listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context);
+
/**
* Get a InformaticaServerlessRuntimeResource.
*
@@ -119,48 +150,38 @@ InformaticaServerlessRuntimeResourceInner createOrUpdate(String resourceGroupNam
String serverlessRuntimeName, InformaticaServerlessRuntimeResourceInner resource, Context context);
/**
- * Delete a InformaticaServerlessRuntimeResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
- String serverlessRuntimeName);
-
- /**
- * Delete a InformaticaServerlessRuntimeResource.
+ * Update a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
+ * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return a Serverless Runtime environment resource by Informatica along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
- String serverlessRuntimeName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName,
+ String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties,
+ Context context);
/**
- * Delete a InformaticaServerlessRuntimeResource.
+ * Update a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
+ * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Serverless Runtime environment resource by Informatica.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName);
+ InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties);
/**
* Delete a InformaticaServerlessRuntimeResource.
@@ -168,78 +189,57 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context);
-
- /**
- * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable
- listByInformaticaOrganizationResource(String resourceGroupName, String organizationName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName);
/**
- * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
+ * @param serverlessRuntimeName Name of the Serverless Runtime resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable
- listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName, Context context);
/**
- * Update a InformaticaServerlessRuntimeResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param properties The resource properties to be updated.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Serverless Runtime environment resource by Informatica along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName,
- String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties,
- Context context);
+ void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName);
/**
- * Update a InformaticaServerlessRuntimeResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Serverless Runtime environment resource by Informatica.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName,
- String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties);
+ void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context);
/**
* Checks all dependencies for a serverless runtime resource.
@@ -274,7 +274,7 @@ CheckDependenciesResponseInner checkDependencies(String resourceGroupName, Strin
String serverlessRuntimeName);
/**
- * Starts a failed runtime resource.
+ * Returns a serverless runtime resource by ID.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -283,14 +283,14 @@ CheckDependenciesResponseInner checkDependencies(String resourceGroupName, Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
+ * @return a Serverless Runtime environment resource by Informatica along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response startFailedServerlessRuntimeWithResponse(String resourceGroupName, String organizationName,
- String serverlessRuntimeName, Context context);
+ Response serverlessResourceByIdWithResponse(String resourceGroupName,
+ String organizationName, String serverlessRuntimeName, Context context);
/**
- * Starts a failed runtime resource.
+ * Returns a serverless runtime resource by ID.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -298,12 +298,14 @@ Response startFailedServerlessRuntimeWithResponse(String resourceGroupName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Serverless Runtime environment resource by Informatica.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void startFailedServerlessRuntime(String resourceGroupName, String organizationName, String serverlessRuntimeName);
+ InformaticaServerlessRuntimeResourceInner serverlessResourceById(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName);
/**
- * Returns a serverless runtime resource by ID.
+ * Starts a failed runtime resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -312,14 +314,14 @@ Response startFailedServerlessRuntimeWithResponse(String resourceGroupName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Serverless Runtime environment resource by Informatica along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response serverlessResourceByIdWithResponse(String resourceGroupName,
- String organizationName, String serverlessRuntimeName, Context context);
+ Response startFailedServerlessRuntimeWithResponse(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName, Context context);
/**
- * Returns a serverless runtime resource by ID.
+ * Starts a failed runtime resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -327,9 +329,7 @@ Response serverlessResourceByIdWithRe
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Serverless Runtime environment resource by Informatica.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InformaticaServerlessRuntimeResourceInner serverlessResourceById(String resourceGroupName, String organizationName,
- String serverlessRuntimeName);
+ void startFailedServerlessRuntime(String resourceGroupName, String organizationName, String serverlessRuntimeName);
}
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/CheckDependenciesResponseInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/CheckDependenciesResponseInner.java
index c67f9f22c7aa0..b181dd2d5f97a 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/CheckDependenciesResponseInner.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/CheckDependenciesResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.fluent.models;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaOrganizationResourceInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaOrganizationResourceInner.java
index 2664749c18cab..9f58ec160829d 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaOrganizationResourceInner.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaOrganizationResourceInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.fluent.models;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceInner.java
index 95e319cc1d48f..e2f10d9cfced8 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceInner.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.fluent.models;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceListInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceListInner.java
index 3a595f9e86eb1..9e8c35c922306 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceListInner.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/InformaticaServerlessRuntimeResourceListInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.fluent.models;
@@ -10,7 +10,7 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetaData;
+import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetadata;
import java.io.IOException;
import java.util.List;
@@ -23,7 +23,7 @@ public final class InformaticaServerlessRuntimeResourceListInner
/*
* List of runtime resources for the fetch all API
*/
- private List informaticaRuntimeResources;
+ private List informaticaRuntimeResources;
/**
* Creates an instance of InformaticaServerlessRuntimeResourceListInner class.
@@ -36,7 +36,7 @@ private InformaticaServerlessRuntimeResourceListInner() {
*
* @return the informaticaRuntimeResources value.
*/
- public List informaticaRuntimeResources() {
+ public List informaticaRuntimeResources() {
return this.informaticaRuntimeResources;
}
@@ -86,8 +86,8 @@ public static InformaticaServerlessRuntimeResourceListInner fromJson(JsonReader
reader.nextToken();
if ("informaticaRuntimeResources".equals(fieldName)) {
- List informaticaRuntimeResources
- = reader.readArray(reader1 -> InfaRuntimeResourceFetchMetaData.fromJson(reader1));
+ List informaticaRuntimeResources
+ = reader.readArray(reader1 -> InfaRuntimeResourceFetchMetadata.fromJson(reader1));
deserializedInformaticaServerlessRuntimeResourceListInner.informaticaRuntimeResources
= informaticaRuntimeResources;
} else {
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/OperationInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/OperationInner.java
index c6dc89bfda3bb..9c31cf04b99c9 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/OperationInner.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/OperationInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.fluent.models;
@@ -15,6 +15,8 @@
import java.io.IOException;
/**
+ * REST API Operation
+ *
* Details of a REST API operation, returned from the Resource Provider Operations API.
*/
@Immutable
@@ -26,8 +28,8 @@ public final class OperationInner implements JsonSerializable {
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
- * Resource Manager/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
*/
private Boolean isDataAction;
@@ -43,7 +45,7 @@ public final class OperationInner implements JsonSerializable {
private Origin origin;
/*
- * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
private ActionType actionType;
@@ -65,7 +67,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
- * operations and "false" for Azure Resource Manager/control-plane operations.
+ * operations and "false" for ARM/control-plane operations.
*
* @return the isDataAction value.
*/
@@ -93,8 +95,8 @@ public Origin origin() {
}
/**
- * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
- * for internal only APIs.
+ * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
+ * only APIs.
*
* @return the actionType value.
*/
@@ -120,7 +122,6 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("display", this.display);
- jsonWriter.writeStringField("actionType", this.actionType == null ? null : this.actionType.toString());
return jsonWriter.writeEndObject();
}
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/ServerlessMetadataResponseInner.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/ServerlessMetadataResponseInner.java
index a39a33daadec6..dfdf06fab9329 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/ServerlessMetadataResponseInner.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/ServerlessMetadataResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.fluent.models;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/package-info.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/package-info.java
index b2a4a44de77bb..70ef22300cce0 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/package-info.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/models/package-info.java
@@ -1,8 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Package containing the inner data models for InformaticaDataManagement.
+ * null.
*/
package com.azure.resourcemanager.informaticadatamanagement.fluent.models;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/package-info.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/package-info.java
index b4dfb8670fe7e..c6adef6daac0a 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/package-info.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/fluent/package-info.java
@@ -1,8 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Package containing the service clients for InformaticaDataManagement.
+ * null.
*/
package com.azure.resourcemanager.informaticadatamanagement.fluent;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/CheckDependenciesResponseImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/CheckDependenciesResponseImpl.java
index 510c8ac7d81d6..7cffd6a118f1d 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/CheckDependenciesResponseImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/CheckDependenciesResponseImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientBuilder.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementBuilder.java
similarity index 62%
rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientBuilder.java
rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementBuilder.java
index d0f36fab9e8a5..603397f65fcdb 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientBuilder.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementBuilder.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
@@ -15,39 +15,39 @@
import java.time.Duration;
/**
- * A builder for creating a new instance of the DataManagementClientImpl type.
+ * A builder for creating a new instance of the InformaticaDataManagementImpl type.
*/
-@ServiceClientBuilder(serviceClients = { DataManagementClientImpl.class })
-public final class DataManagementClientBuilder {
+@ServiceClientBuilder(serviceClients = { InformaticaDataManagementImpl.class })
+public final class InformaticaDataManagementBuilder {
/*
- * Server parameter
+ * The ID of the target subscription.
*/
- private String endpoint;
+ private String subscriptionId;
/**
- * Sets Server parameter.
+ * Sets The ID of the target subscription.
*
- * @param endpoint the endpoint value.
- * @return the DataManagementClientBuilder.
+ * @param subscriptionId the subscriptionId value.
+ * @return the InformaticaDataManagementBuilder.
*/
- public DataManagementClientBuilder endpoint(String endpoint) {
- this.endpoint = endpoint;
+ public InformaticaDataManagementBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
return this;
}
/*
- * The ID of the target subscription. The value must be an UUID.
+ * server parameter
*/
- private String subscriptionId;
+ private String endpoint;
/**
- * Sets The ID of the target subscription. The value must be an UUID.
+ * Sets server parameter.
*
- * @param subscriptionId the subscriptionId value.
- * @return the DataManagementClientBuilder.
+ * @param endpoint the endpoint value.
+ * @return the InformaticaDataManagementBuilder.
*/
- public DataManagementClientBuilder subscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public InformaticaDataManagementBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
return this;
}
@@ -60,9 +60,9 @@ public DataManagementClientBuilder subscriptionId(String subscriptionId) {
* Sets The environment to connect to.
*
* @param environment the environment value.
- * @return the DataManagementClientBuilder.
+ * @return the InformaticaDataManagementBuilder.
*/
- public DataManagementClientBuilder environment(AzureEnvironment environment) {
+ public InformaticaDataManagementBuilder environment(AzureEnvironment environment) {
this.environment = environment;
return this;
}
@@ -76,9 +76,9 @@ public DataManagementClientBuilder environment(AzureEnvironment environment) {
* Sets The HTTP pipeline to send requests through.
*
* @param pipeline the pipeline value.
- * @return the DataManagementClientBuilder.
+ * @return the InformaticaDataManagementBuilder.
*/
- public DataManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ public InformaticaDataManagementBuilder pipeline(HttpPipeline pipeline) {
this.pipeline = pipeline;
return this;
}
@@ -92,9 +92,9 @@ public DataManagementClientBuilder pipeline(HttpPipeline pipeline) {
* Sets The default poll interval for long-running operation.
*
* @param defaultPollInterval the defaultPollInterval value.
- * @return the DataManagementClientBuilder.
+ * @return the InformaticaDataManagementBuilder.
*/
- public DataManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ public InformaticaDataManagementBuilder defaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -108,19 +108,20 @@ public DataManagementClientBuilder defaultPollInterval(Duration defaultPollInter
* Sets The serializer to serialize an object into a string.
*
* @param serializerAdapter the serializerAdapter value.
- * @return the DataManagementClientBuilder.
+ * @return the InformaticaDataManagementBuilder.
*/
- public DataManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ public InformaticaDataManagementBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
this.serializerAdapter = serializerAdapter;
return this;
}
/**
- * Builds an instance of DataManagementClientImpl with the provided parameters.
+ * Builds an instance of InformaticaDataManagementImpl with the provided parameters.
*
- * @return an instance of DataManagementClientImpl.
+ * @return an instance of InformaticaDataManagementImpl.
*/
- public DataManagementClientImpl buildClient() {
+ public InformaticaDataManagementImpl buildClient() {
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
HttpPipeline localPipeline = (pipeline != null)
? pipeline
@@ -130,8 +131,8 @@ public DataManagementClientImpl buildClient() {
SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
? serializerAdapter
: SerializerFactory.createDefaultManagementSerializerAdapter();
- DataManagementClientImpl client = new DataManagementClientImpl(localPipeline, localSerializerAdapter,
- localDefaultPollInterval, localEnvironment, this.endpoint, this.subscriptionId);
+ InformaticaDataManagementImpl client = new InformaticaDataManagementImpl(localPipeline, localSerializerAdapter,
+ localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
return client;
}
}
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementImpl.java
similarity index 91%
rename from sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientImpl.java
rename to sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementImpl.java
index 75c8bbc06a067..16c9622828598 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/DataManagementClientImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaDataManagementImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
@@ -23,7 +23,7 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.informaticadatamanagement.fluent.DataManagementClient;
+import com.azure.resourcemanager.informaticadatamanagement.fluent.InformaticaDataManagement;
import com.azure.resourcemanager.informaticadatamanagement.fluent.OperationsClient;
import com.azure.resourcemanager.informaticadatamanagement.fluent.OrganizationsClient;
import com.azure.resourcemanager.informaticadatamanagement.fluent.ServerlessRuntimesClient;
@@ -37,50 +37,50 @@
import reactor.core.publisher.Mono;
/**
- * Initializes a new instance of the DataManagementClientImpl type.
+ * Initializes a new instance of the InformaticaDataManagementImpl type.
*/
-@ServiceClient(builder = DataManagementClientBuilder.class)
-public final class DataManagementClientImpl implements DataManagementClient {
+@ServiceClient(builder = InformaticaDataManagementBuilder.class)
+public final class InformaticaDataManagementImpl implements InformaticaDataManagement {
/**
- * Server parameter.
+ * The ID of the target subscription.
*/
- private final String endpoint;
+ private final String subscriptionId;
/**
- * Gets Server parameter.
+ * Gets The ID of the target subscription.
*
- * @return the endpoint value.
+ * @return the subscriptionId value.
*/
- public String getEndpoint() {
- return this.endpoint;
+ public String getSubscriptionId() {
+ return this.subscriptionId;
}
/**
- * Version parameter.
+ * server parameter.
*/
- private final String apiVersion;
+ private final String endpoint;
/**
- * Gets Version parameter.
+ * Gets server parameter.
*
- * @return the apiVersion value.
+ * @return the endpoint value.
*/
- public String getApiVersion() {
- return this.apiVersion;
+ public String getEndpoint() {
+ return this.endpoint;
}
/**
- * The ID of the target subscription. The value must be an UUID.
+ * Api Version.
*/
- private final String subscriptionId;
+ private final String apiVersion;
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets Api Version.
*
- * @return the subscriptionId value.
+ * @return the apiVersion value.
*/
- public String getSubscriptionId() {
- return this.subscriptionId;
+ public String getApiVersion() {
+ return this.apiVersion;
}
/**
@@ -168,22 +168,22 @@ public ServerlessRuntimesClient getServerlessRuntimes() {
}
/**
- * Initializes an instance of DataManagementClient client.
+ * Initializes an instance of InformaticaDataManagement client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
* @param environment The Azure environment.
- * @param endpoint Server parameter.
- * @param subscriptionId The ID of the target subscription. The value must be an UUID.
+ * @param subscriptionId The ID of the target subscription.
+ * @param endpoint server parameter.
*/
- DataManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
- Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) {
+ InformaticaDataManagementImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
- this.endpoint = endpoint;
this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
this.apiVersion = "2024-05-08";
this.operations = new OperationsClientImpl(this);
this.organizations = new OrganizationsClientImpl(this);
@@ -316,5 +316,5 @@ public Mono getBodyAsString(Charset charset) {
}
}
- private static final ClientLogger LOGGER = new ClientLogger(DataManagementClientImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(InformaticaDataManagementImpl.class);
}
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaOrganizationResourceImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaOrganizationResourceImpl.java
index 6e07956d7fb0d..3d3589d8094ae 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaOrganizationResourceImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaOrganizationResourceImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
@@ -154,22 +154,22 @@ public InformaticaOrganizationResource refresh(Context context) {
return this;
}
- public Response getServerlessMetadataWithResponse(Context context) {
+ public Response getAllServerlessRuntimesWithResponse(Context context) {
return serviceManager.organizations()
- .getServerlessMetadataWithResponse(resourceGroupName, organizationName, context);
+ .getAllServerlessRuntimesWithResponse(resourceGroupName, organizationName, context);
}
- public ServerlessMetadataResponse getServerlessMetadata() {
- return serviceManager.organizations().getServerlessMetadata(resourceGroupName, organizationName);
+ public InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes() {
+ return serviceManager.organizations().getAllServerlessRuntimes(resourceGroupName, organizationName);
}
- public Response getAllServerlessRuntimesWithResponse(Context context) {
+ public Response getServerlessMetadataWithResponse(Context context) {
return serviceManager.organizations()
- .getAllServerlessRuntimesWithResponse(resourceGroupName, organizationName, context);
+ .getServerlessMetadataWithResponse(resourceGroupName, organizationName, context);
}
- public InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes() {
- return serviceManager.organizations().getAllServerlessRuntimes(resourceGroupName, organizationName);
+ public ServerlessMetadataResponse getServerlessMetadata() {
+ return serviceManager.organizations().getServerlessMetadata(resourceGroupName, organizationName);
}
public InformaticaOrganizationResourceImpl withRegion(Region location) {
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceImpl.java
index 4ac47d44fabc3..a3b6a200e6704 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
@@ -146,6 +146,16 @@ public CheckDependenciesResponse checkDependencies() {
.checkDependencies(resourceGroupName, organizationName, serverlessRuntimeName);
}
+ public Response serverlessResourceByIdWithResponse(Context context) {
+ return serviceManager.serverlessRuntimes()
+ .serverlessResourceByIdWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, context);
+ }
+
+ public InformaticaServerlessRuntimeResource serverlessResourceById() {
+ return serviceManager.serverlessRuntimes()
+ .serverlessResourceById(resourceGroupName, organizationName, serverlessRuntimeName);
+ }
+
public Response startFailedServerlessRuntimeWithResponse(Context context) {
return serviceManager.serverlessRuntimes()
.startFailedServerlessRuntimeWithResponse(resourceGroupName, organizationName, serverlessRuntimeName,
@@ -157,16 +167,6 @@ public void startFailedServerlessRuntime() {
.startFailedServerlessRuntime(resourceGroupName, organizationName, serverlessRuntimeName);
}
- public Response serverlessResourceByIdWithResponse(Context context) {
- return serviceManager.serverlessRuntimes()
- .serverlessResourceByIdWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, context);
- }
-
- public InformaticaServerlessRuntimeResource serverlessResourceById() {
- return serviceManager.serverlessRuntimes()
- .serverlessResourceById(resourceGroupName, organizationName, serverlessRuntimeName);
- }
-
public InformaticaServerlessRuntimeResourceImpl withProperties(InformaticaServerlessRuntimeProperties properties) {
this.innerModel().withProperties(properties);
return this;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceListImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceListImpl.java
index 2d648c05bbcd4..4d36bb77a8bbe 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceListImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/InformaticaServerlessRuntimeResourceListImpl.java
@@ -1,11 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
import com.azure.resourcemanager.informaticadatamanagement.fluent.models.InformaticaServerlessRuntimeResourceListInner;
-import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetaData;
+import com.azure.resourcemanager.informaticadatamanagement.models.InfaRuntimeResourceFetchMetadata;
import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceList;
import java.util.Collections;
import java.util.List;
@@ -21,8 +21,8 @@ public final class InformaticaServerlessRuntimeResourceListImpl implements Infor
this.serviceManager = serviceManager;
}
- public List informaticaRuntimeResources() {
- List inner = this.innerModel().informaticaRuntimeResources();
+ public List informaticaRuntimeResources() {
+ List inner = this.innerModel().informaticaRuntimeResources();
if (inner != null) {
return Collections.unmodifiableList(inner);
} else {
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationImpl.java
index 41d2bcadf75f2..1eea487edee4e 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsClientImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsClientImpl.java
index 7ebfa6f3ffbce..bd3d31cc0e3cb 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsClientImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
@@ -27,7 +27,7 @@
import com.azure.core.util.FluxUtil;
import com.azure.resourcemanager.informaticadatamanagement.fluent.OperationsClient;
import com.azure.resourcemanager.informaticadatamanagement.fluent.models.OperationInner;
-import com.azure.resourcemanager.informaticadatamanagement.implementation.models.OperationListResult;
+import com.azure.resourcemanager.informaticadatamanagement.models.OperationListResult;
import reactor.core.publisher.Mono;
/**
@@ -42,39 +42,39 @@ public final class OperationsClientImpl implements OperationsClient {
/**
* The service client containing this operation class.
*/
- private final DataManagementClientImpl client;
+ private final InformaticaDataManagementImpl client;
/**
* Initializes an instance of OperationsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- OperationsClientImpl(DataManagementClientImpl client) {
+ OperationsClientImpl(InformaticaDataManagementImpl client) {
this.service
= RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for DataManagementClientOperations to be used by the proxy service to
- * perform REST calls.
+ * The interface defining all the services for InformaticaDataManagementOperations to be used by the proxy service
+ * to perform REST calls.
*/
- @Host("{endpoint}")
- @ServiceInterface(name = "DataManagementClient")
+ @Host("{$host}")
+ @ServiceInterface(name = "InformaticaDataManag")
public interface OperationsService {
@Headers({ "Content-Type: application/json" })
@Get("/providers/Informatica.DataManagement/operations")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept, Context context);
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context);
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
}
/**
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsImpl.java
index bc36b43e19496..7a4e8878fd280 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OperationsImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsClientImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsClientImpl.java
index e2e22115b8b5b..a8392838f0b8b 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsClientImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
@@ -37,7 +37,7 @@
import com.azure.resourcemanager.informaticadatamanagement.fluent.models.InformaticaOrganizationResourceInner;
import com.azure.resourcemanager.informaticadatamanagement.fluent.models.InformaticaServerlessRuntimeResourceListInner;
import com.azure.resourcemanager.informaticadatamanagement.fluent.models.ServerlessMetadataResponseInner;
-import com.azure.resourcemanager.informaticadatamanagement.implementation.models.InformaticaOrganizationResourceListResult;
+import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaOrganizationResourceListResult;
import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaOrganizationResourceUpdate;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -55,120 +55,371 @@ public final class OrganizationsClientImpl implements OrganizationsClient {
/**
* The service client containing this operation class.
*/
- private final DataManagementClientImpl client;
+ private final InformaticaDataManagementImpl client;
/**
* Initializes an instance of OrganizationsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- OrganizationsClientImpl(DataManagementClientImpl client) {
+ OrganizationsClientImpl(InformaticaDataManagementImpl client) {
this.service
= RestProxy.create(OrganizationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for DataManagementClientOrganizations to be used by the proxy service to
- * perform REST calls.
+ * The interface defining all the services for InformaticaDataManagementOrganizations to be used by the proxy
+ * service to perform REST calls.
*/
- @Host("{endpoint}")
- @ServiceInterface(name = "DataManagementClient")
+ @Host("{$host}")
+ @ServiceInterface(name = "InformaticaDataManag")
public interface OrganizationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Informatica.DataManagement/organizations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(
+ @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ Mono> getByResourceGroup(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("organizationName") String organizationName, @HeaderParam("accept") String accept,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("organizationName") String organizationName, @HeaderParam("accept") String accept,
- @BodyParam("application/json") InformaticaOrganizationResourceInner resource, Context context);
+ @PathParam("organizationName") String organizationName,
+ @BodyParam("application/json") InformaticaOrganizationResourceInner resource,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> update(@HostParam("endpoint") String endpoint,
+ Mono> update(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("organizationName") String organizationName, @HeaderParam("accept") String accept,
- @BodyParam("application/json") InformaticaOrganizationResourceUpdate properties, Context context);
+ @PathParam("organizationName") String organizationName,
+ @BodyParam("application/json") InformaticaOrganizationResourceUpdate properties,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}")
@ExpectedResponses({ 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("endpoint") String endpoint,
+ Mono>> delete(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("organizationName") String organizationName, @HeaderParam("accept") String accept,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations")
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getAllServerlessRuntimes")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(
- @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ Mono> getAllServerlessRuntimes(
+ @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("accept") String accept,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Informatica.DataManagement/organizations")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("accept") String accept, Context context);
-
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getServerlessMetadata")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getServerlessMetadata(@HostParam("endpoint") String endpoint,
+ Mono> getServerlessMetadata(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("organizationName") String organizationName, @HeaderParam("accept") String accept,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getAllServerlessRuntimes")
+ @Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getAllServerlessRuntimes(
- @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("organizationName") String organizationName, @HeaderParam("accept") String accept,
- Context context);
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept, Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listBySubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept, Context context);
+ /**
+ * List InformaticaOrganizationResource resources by subscription ID.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by subscription ID.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept,
+ context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by subscription ID.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by subscription ID.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by subscription ID.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by subscription ID.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName,
+ Context context) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * List InformaticaOrganizationResource resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaOrganizationResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName,
+ Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
}
/**
@@ -331,7 +582,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, resource, context))
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, resource, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -375,7 +626,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, resource, context);
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, resource, accept, context);
}
/**
@@ -572,7 +823,7 @@ private Mono> updateWithResponseA
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, properties, context))
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, properties, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -616,7 +867,7 @@ private Mono> updateWithResponseA
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
- resourceGroupName, organizationName, accept, properties, context);
+ resourceGroupName, organizationName, properties, accept, context);
}
/**
@@ -752,392 +1003,143 @@ private Mono>> deleteWithResponseAsync(String resource
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName) {
- Mono>> mono = deleteWithResponseAsync(resourceGroupName, organizationName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Delete a InformaticaOrganizationResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName,
- Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono = deleteWithResponseAsync(resourceGroupName, organizationName, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
- }
-
- /**
- * Delete a InformaticaOrganizationResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName) {
- return this.beginDeleteAsync(resourceGroupName, organizationName).getSyncPoller();
- }
-
- /**
- * Delete a InformaticaOrganizationResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
- Context context) {
- return this.beginDeleteAsync(resourceGroupName, organizationName, context).getSyncPoller();
- }
-
- /**
- * Delete a InformaticaOrganizationResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String organizationName) {
- return beginDeleteAsync(resourceGroupName, organizationName).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete a InformaticaOrganizationResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String organizationName, Context context) {
- return beginDeleteAsync(resourceGroupName, organizationName, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete a InformaticaOrganizationResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String organizationName) {
- deleteAsync(resourceGroupName, organizationName).block();
- }
-
- /**
- * Delete a InformaticaOrganizationResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String organizationName, Context context) {
- deleteAsync(resourceGroupName, organizationName, context).block();
- }
-
- /**
- * List InformaticaOrganizationResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listByResourceGroupSinglePageAsync(String resourceGroupName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * List InformaticaOrganizationResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * List InformaticaOrganizationResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
- }
-
- /**
- * List InformaticaOrganizationResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName,
- Context context) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * List InformaticaOrganizationResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByResourceGroup(String resourceGroupName) {
- return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, organizationName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
}
/**
- * List InformaticaOrganizationResource resources by resource group.
+ * Delete a InformaticaOrganizationResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByResourceGroup(String resourceGroupName,
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName,
Context context) {
- return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ context = this.client.mergeContext(context);
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, organizationName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
}
/**
- * List InformaticaOrganizationResource resources by subscription ID.
+ * Delete a InformaticaOrganizationResource.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync() {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName) {
+ return this.beginDeleteAsync(resourceGroupName, organizationName).getSyncPoller();
}
/**
- * List InformaticaOrganizationResource resources by subscription ID.
+ * Delete a InformaticaOrganizationResource.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept,
- context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
+ Context context) {
+ return this.beginDeleteAsync(resourceGroupName, organizationName, context).getSyncPoller();
}
/**
- * List InformaticaOrganizationResource resources by subscription ID.
+ * Delete a InformaticaOrganizationResource.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedFlux}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync() {
- return new PagedFlux<>(() -> listSinglePageAsync(),
- nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String organizationName) {
+ return beginDeleteAsync(resourceGroupName, organizationName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * List InformaticaOrganizationResource resources by subscription ID.
+ * Delete a InformaticaOrganizationResource.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedFlux}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(context),
- nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String organizationName, Context context) {
+ return beginDeleteAsync(resourceGroupName, organizationName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * List InformaticaOrganizationResource resources by subscription ID.
+ * Delete a InformaticaOrganizationResource.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list() {
- return new PagedIterable<>(listAsync());
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String organizationName) {
+ deleteAsync(resourceGroupName, organizationName).block();
}
/**
- * List InformaticaOrganizationResource resources by subscription ID.
+ * Delete a InformaticaOrganizationResource.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaOrganizationResource list operation as paginated response with
- * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(Context context) {
- return new PagedIterable<>(listAsync(context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String organizationName, Context context) {
+ deleteAsync(resourceGroupName, organizationName, context).block();
}
/**
- * Gets Metadata of the serverless runtime environment.
+ * Gets all serverless runtime resources in a given informatica organization resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata of the serverless runtime environment along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return all serverless runtime resources in a given informatica organization resource along with {@link Response}
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- getServerlessMetadataWithResponseAsync(String resourceGroupName, String organizationName) {
+ private Mono>
+ getAllServerlessRuntimesWithResponseAsync(String resourceGroupName, String organizationName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1157,13 +1159,13 @@ public PagedIterable list(Context context)
final String accept = "application/json";
return FluxUtil
.withContext(
- context -> service.getServerlessMetadata(this.client.getEndpoint(), this.client.getApiVersion(),
+ context -> service.getAllServerlessRuntimes(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Gets Metadata of the serverless runtime environment.
+ * Gets all serverless runtime resources in a given informatica organization resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -1171,12 +1173,12 @@ public PagedIterable list(Context context)
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata of the serverless runtime environment along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return all serverless runtime resources in a given informatica organization resource along with {@link Response}
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- getServerlessMetadataWithResponseAsync(String resourceGroupName, String organizationName, Context context) {
+ private Mono>
+ getAllServerlessRuntimesWithResponseAsync(String resourceGroupName, String organizationName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1195,29 +1197,30 @@ public PagedIterable list(Context context)
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.getServerlessMetadata(this.client.getEndpoint(), this.client.getApiVersion(),
+ return service.getAllServerlessRuntimes(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context);
}
/**
- * Gets Metadata of the serverless runtime environment.
+ * Gets all serverless runtime resources in a given informatica organization resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata of the serverless runtime environment on successful completion of {@link Mono}.
+ * @return all serverless runtime resources in a given informatica organization resource on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getServerlessMetadataAsync(String resourceGroupName,
+ private Mono getAllServerlessRuntimesAsync(String resourceGroupName,
String organizationName) {
- return getServerlessMetadataWithResponseAsync(resourceGroupName, organizationName)
+ return getAllServerlessRuntimesWithResponseAsync(resourceGroupName, organizationName)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Gets Metadata of the serverless runtime environment.
+ * Gets all serverless runtime resources in a given informatica organization resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -1225,43 +1228,45 @@ private Mono getServerlessMetadataAsync(String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata of the serverless runtime environment along with {@link Response}.
+ * @return all serverless runtime resources in a given informatica organization resource along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getServerlessMetadataWithResponse(String resourceGroupName,
- String organizationName, Context context) {
- return getServerlessMetadataWithResponseAsync(resourceGroupName, organizationName, context).block();
+ public Response
+ getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context) {
+ return getAllServerlessRuntimesWithResponseAsync(resourceGroupName, organizationName, context).block();
}
/**
- * Gets Metadata of the serverless runtime environment.
+ * Gets all serverless runtime resources in a given informatica organization resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata of the serverless runtime environment.
+ * @return all serverless runtime resources in a given informatica organization resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGroupName, String organizationName) {
- return getServerlessMetadataWithResponse(resourceGroupName, organizationName, Context.NONE).getValue();
+ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(String resourceGroupName,
+ String organizationName) {
+ return getAllServerlessRuntimesWithResponse(resourceGroupName, organizationName, Context.NONE).getValue();
}
/**
- * Gets all serverless runtime resources in a given informatica organization resource.
+ * Gets Metadata of the serverless runtime environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all serverless runtime resources in a given informatica organization resource along with {@link Response}
- * on successful completion of {@link Mono}.
+ * @return metadata of the serverless runtime environment along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- getAllServerlessRuntimesWithResponseAsync(String resourceGroupName, String organizationName) {
+ private Mono>
+ getServerlessMetadataWithResponseAsync(String resourceGroupName, String organizationName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1281,13 +1286,13 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou
final String accept = "application/json";
return FluxUtil
.withContext(
- context -> service.getAllServerlessRuntimes(this.client.getEndpoint(), this.client.getApiVersion(),
+ context -> service.getServerlessMetadata(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Gets all serverless runtime resources in a given informatica organization resource.
+ * Gets Metadata of the serverless runtime environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -1295,12 +1300,12 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all serverless runtime resources in a given informatica organization resource along with {@link Response}
- * on successful completion of {@link Mono}.
+ * @return metadata of the serverless runtime environment along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- getAllServerlessRuntimesWithResponseAsync(String resourceGroupName, String organizationName, Context context) {
+ private Mono>
+ getServerlessMetadataWithResponseAsync(String resourceGroupName, String organizationName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1319,30 +1324,29 @@ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGrou
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.getAllServerlessRuntimes(this.client.getEndpoint(), this.client.getApiVersion(),
+ return service.getServerlessMetadata(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context);
}
/**
- * Gets all serverless runtime resources in a given informatica organization resource.
+ * Gets Metadata of the serverless runtime environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all serverless runtime resources in a given informatica organization resource on successful completion of
- * {@link Mono}.
+ * @return metadata of the serverless runtime environment on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAllServerlessRuntimesAsync(String resourceGroupName,
+ private Mono getServerlessMetadataAsync(String resourceGroupName,
String organizationName) {
- return getAllServerlessRuntimesWithResponseAsync(resourceGroupName, organizationName)
+ return getServerlessMetadataWithResponseAsync(resourceGroupName, organizationName)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Gets all serverless runtime resources in a given informatica organization resource.
+ * Gets Metadata of the serverless runtime environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -1350,29 +1354,27 @@ private Mono getAllServerlessRunt
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all serverless runtime resources in a given informatica organization resource along with
- * {@link Response}.
+ * @return metadata of the serverless runtime environment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response
- getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context) {
- return getAllServerlessRuntimesWithResponseAsync(resourceGroupName, organizationName, context).block();
+ public Response getServerlessMetadataWithResponse(String resourceGroupName,
+ String organizationName, Context context) {
+ return getServerlessMetadataWithResponseAsync(resourceGroupName, organizationName, context).block();
}
/**
- * Gets all serverless runtime resources in a given informatica organization resource.
+ * Gets Metadata of the serverless runtime environment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all serverless runtime resources in a given informatica organization resource.
+ * @return metadata of the serverless runtime environment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(String resourceGroupName,
- String organizationName) {
- return getAllServerlessRuntimesWithResponse(resourceGroupName, organizationName, Context.NONE).getValue();
+ public ServerlessMetadataResponseInner getServerlessMetadata(String resourceGroupName, String organizationName) {
+ return getServerlessMetadataWithResponse(resourceGroupName, organizationName, Context.NONE).getValue();
}
/**
@@ -1387,7 +1389,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listByResourceGroupNextSinglePageAsync(String nextLink) {
+ listBySubscriptionNextSinglePageAsync(String nextLink) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -1398,7 +1400,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St
final String accept = "application/json";
return FluxUtil
.withContext(
- context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -1417,7 +1419,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listByResourceGroupNextSinglePageAsync(String nextLink, Context context) {
+ listBySubscriptionNextSinglePageAsync(String nextLink, Context context) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -1427,7 +1429,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
+ return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -1444,7 +1446,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listBySubscriptionNextSinglePageAsync(String nextLink) {
+ listByResourceGroupNextSinglePageAsync(String nextLink) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -1455,7 +1457,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St
final String accept = "application/json";
return FluxUtil
.withContext(
- context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -1474,7 +1476,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- listBySubscriptionNextSinglePageAsync(String nextLink, Context context) {
+ listByResourceGroupNextSinglePageAsync(String nextLink, Context context) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
@@ -1484,7 +1486,7 @@ public InformaticaServerlessRuntimeResourceListInner getAllServerlessRuntimes(St
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
+ return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsImpl.java
index d25941b0a0078..089838a6f65dd 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/OrganizationsImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
@@ -31,34 +31,16 @@ public OrganizationsImpl(OrganizationsClient innerClient,
this.serviceManager = serviceManager;
}
- public Response getByResourceGroupWithResponse(String resourceGroupName,
- String organizationName, Context context) {
- Response inner
- = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, organizationName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new InformaticaOrganizationResourceImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public InformaticaOrganizationResource getByResourceGroup(String resourceGroupName, String organizationName) {
- InformaticaOrganizationResourceInner inner
- = this.serviceClient().getByResourceGroup(resourceGroupName, organizationName);
- if (inner != null) {
- return new InformaticaOrganizationResourceImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public void deleteByResourceGroup(String resourceGroupName, String organizationName) {
- this.serviceClient().delete(resourceGroupName, organizationName);
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager()));
}
- public void delete(String resourceGroupName, String organizationName, Context context) {
- this.serviceClient().delete(resourceGroupName, organizationName, context);
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -76,40 +58,36 @@ public PagedIterable listByResourceGroup(String
inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager()));
}
- public PagedIterable list() {
- PagedIterable inner = this.serviceClient().list();
- return ResourceManagerUtils.mapPage(inner,
- inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(Context context) {
- PagedIterable inner = this.serviceClient().list(context);
- return ResourceManagerUtils.mapPage(inner,
- inner1 -> new InformaticaOrganizationResourceImpl(inner1, this.manager()));
- }
-
- public Response getServerlessMetadataWithResponse(String resourceGroupName,
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
String organizationName, Context context) {
- Response inner
- = this.serviceClient().getServerlessMetadataWithResponse(resourceGroupName, organizationName, context);
+ Response inner
+ = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, organizationName, context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new ServerlessMetadataResponseImpl(inner.getValue(), this.manager()));
+ new InformaticaOrganizationResourceImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
- public ServerlessMetadataResponse getServerlessMetadata(String resourceGroupName, String organizationName) {
- ServerlessMetadataResponseInner inner
- = this.serviceClient().getServerlessMetadata(resourceGroupName, organizationName);
+ public InformaticaOrganizationResource getByResourceGroup(String resourceGroupName, String organizationName) {
+ InformaticaOrganizationResourceInner inner
+ = this.serviceClient().getByResourceGroup(resourceGroupName, organizationName);
if (inner != null) {
- return new ServerlessMetadataResponseImpl(inner, this.manager());
+ return new InformaticaOrganizationResourceImpl(inner, this.manager());
} else {
return null;
}
}
+ public void deleteByResourceGroup(String resourceGroupName, String organizationName) {
+ this.serviceClient().delete(resourceGroupName, organizationName);
+ }
+
+ public void delete(String resourceGroupName, String organizationName, Context context) {
+ this.serviceClient().delete(resourceGroupName, organizationName, context);
+ }
+
public Response
getAllServerlessRuntimesWithResponse(String resourceGroupName, String organizationName, Context context) {
Response inner
@@ -133,6 +111,28 @@ public InformaticaServerlessRuntimeResourceList getAllServerlessRuntimes(String
}
}
+ public Response getServerlessMetadataWithResponse(String resourceGroupName,
+ String organizationName, Context context) {
+ Response inner
+ = this.serviceClient().getServerlessMetadataWithResponse(resourceGroupName, organizationName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ServerlessMetadataResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ServerlessMetadataResponse getServerlessMetadata(String resourceGroupName, String organizationName) {
+ ServerlessMetadataResponseInner inner
+ = this.serviceClient().getServerlessMetadata(resourceGroupName, organizationName);
+ if (inner != null) {
+ return new ServerlessMetadataResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public InformaticaOrganizationResource getById(String id) {
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ResourceManagerUtils.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ResourceManagerUtils.java
index b1c44273eed60..a4996de0485a3 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ResourceManagerUtils.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ResourceManagerUtils.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessMetadataResponseImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessMetadataResponseImpl.java
index 3d1014eb10b5a..041b804975a7f 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessMetadataResponseImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessMetadataResponseImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
diff --git a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesClientImpl.java b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesClientImpl.java
index 278684882cea7..c7337d7e3bb55 100644
--- a/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesClientImpl.java
+++ b/sdk/informaticadatamanagement/azure-resourcemanager-informaticadatamanagement/src/main/java/com/azure/resourcemanager/informaticadatamanagement/implementation/ServerlessRuntimesClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.informaticadatamanagement.implementation;
@@ -36,7 +36,7 @@
import com.azure.resourcemanager.informaticadatamanagement.fluent.ServerlessRuntimesClient;
import com.azure.resourcemanager.informaticadatamanagement.fluent.models.CheckDependenciesResponseInner;
import com.azure.resourcemanager.informaticadatamanagement.fluent.models.InformaticaServerlessRuntimeResourceInner;
-import com.azure.resourcemanager.informaticadatamanagement.implementation.models.InformaticaServerlessRuntimeResourceListResult;
+import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceListResult;
import com.azure.resourcemanager.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceUpdate;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -54,113 +54,115 @@ public final class ServerlessRuntimesClientImpl implements ServerlessRuntimesCli
/**
* The service client containing this operation class.
*/
- private final DataManagementClientImpl client;
+ private final InformaticaDataManagementImpl client;
/**
* Initializes an instance of ServerlessRuntimesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ServerlessRuntimesClientImpl(DataManagementClientImpl client) {
+ ServerlessRuntimesClientImpl(InformaticaDataManagementImpl client) {
this.service = RestProxy.create(ServerlessRuntimesService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for DataManagementClientServerlessRuntimes to be used by the proxy
+ * The interface defining all the services for InformaticaDataManagementServerlessRuntimes to be used by the proxy
* service to perform REST calls.
*/
- @Host("{endpoint}")
- @ServiceInterface(name = "DataManagementClient")
+ @Host("{$host}")
+ @ServiceInterface(name = "InformaticaDataManag")
public interface ServerlessRuntimesService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByInformaticaOrganizationResource(
+ @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("endpoint") String endpoint,
+ Mono> get(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("organizationName") String organizationName,
- @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("accept") String accept,
+ @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("organizationName") String organizationName,
- @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("accept") String accept,
- @BodyParam("application/json") InformaticaServerlessRuntimeResourceInner resource, Context context);
+ @PathParam("serverlessRuntimeName") String serverlessRuntimeName,
+ @BodyParam("application/json") InformaticaServerlessRuntimeResourceInner resource,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}")
- @ExpectedResponses({ 202, 204 })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("endpoint") String endpoint,
+ Mono> update(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("organizationName") String organizationName,
- @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("accept") String accept,
- Context context);
+ @PathParam("serverlessRuntimeName") String serverlessRuntimeName,
+ @BodyParam("application/json") InformaticaServerlessRuntimeResourceUpdate properties,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes")
- @ExpectedResponses({ 200 })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}")
+ @ExpectedResponses({ 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByInformaticaOrganizationResource(
- @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("organizationName") String organizationName, @HeaderParam("accept") String accept,
+ @PathParam("organizationName") String organizationName,
+ @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}")
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/checkDependencies")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> update(@HostParam("endpoint") String endpoint,
+ Mono> checkDependencies(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("organizationName") String organizationName,
- @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("accept") String accept,
- @BodyParam("application/json") InformaticaServerlessRuntimeResourceUpdate properties, Context context);
+ @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/checkDependencies")
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/serverlessResourceById")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> checkDependencies(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ Mono> serverlessResourceById(
+ @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("organizationName") String organizationName,
- @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("accept") String accept,
+ @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/startFailedServerlessRuntime")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> startFailedServerlessRuntime(@HostParam("endpoint") String endpoint,
+ Mono> startFailedServerlessRuntime(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("organizationName") String organizationName,
- @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/serverlessResourceById")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> serverlessResourceById(
- @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("organizationName") String organizationName,
- @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("accept") String accept,
+ @PathParam("serverlessRuntimeName") String serverlessRuntimeName, @HeaderParam("Accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@@ -168,8 +170,165 @@ Mono> serverlessResourceById
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByInformaticaOrganizationResourceNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
- @HeaderParam("accept") String accept, Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaServerlessRuntimeResource list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByInformaticaOrganizationResourceSinglePageAsync(String resourceGroupName, String organizationName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByInformaticaOrganizationResource(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName,
+ accept, context))
+ .>map(
+ res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaServerlessRuntimeResource list operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByInformaticaOrganizationResourceSinglePageAsync(String resourceGroupName, String organizationName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByInformaticaOrganizationResource(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux
+ listByInformaticaOrganizationResourceAsync(String resourceGroupName, String organizationName) {
+ return new PagedFlux<>(
+ () -> listByInformaticaOrganizationResourceSinglePageAsync(resourceGroupName, organizationName),
+ nextLink -> listByInformaticaOrganizationResourceNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux
+ listByInformaticaOrganizationResourceAsync(String resourceGroupName, String organizationName, Context context) {
+ return new PagedFlux<>(
+ () -> listByInformaticaOrganizationResourceSinglePageAsync(resourceGroupName, organizationName, context),
+ nextLink -> listByInformaticaOrganizationResourceNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable
+ listByInformaticaOrganizationResource(String resourceGroupName, String organizationName) {
+ return new PagedIterable<>(listByInformaticaOrganizationResourceAsync(resourceGroupName, organizationName));
+ }
+
+ /**
+ * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Name of the Organizations resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable
+ listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context) {
+ return new PagedIterable<>(
+ listByInformaticaOrganizationResourceAsync(resourceGroupName, organizationName, context));
}
/**
@@ -354,8 +513,8 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept,
- resource, context))
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, resource,
+ accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -405,8 +564,8 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept,
- resource, context);
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, resource,
+ accept, context);
}
/**
@@ -581,19 +740,21 @@ public InformaticaServerlessRuntimeResourceInner createOrUpdate(String resourceG
}
/**
- * Delete a InformaticaServerlessRuntimeResource.
+ * Update a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
+ * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return a Serverless Runtime environment resource by Informatica along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String organizationName,
- String serverlessRuntimeName) {
+ private Mono> updateWithResponseAsync(String resourceGroupName,
+ String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -614,29 +775,37 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter serverlessRuntimeName is required and cannot be null."));
}
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept,
- context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, properties,
+ accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Delete a InformaticaServerlessRuntimeResource.
+ * Update a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
+ * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return a Serverless Runtime environment resource by Informatica along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String organizationName,
- String serverlessRuntimeName, Context context) {
+ private Mono> updateWithResponseAsync(String resourceGroupName,
+ String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties,
+ Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -657,139 +826,74 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter serverlessRuntimeName is required and cannot be null."));
}
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
- resourceGroupName, organizationName, serverlessRuntimeName, accept, context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, organizationName, serverlessRuntimeName, properties, accept, context);
}
/**
- * Delete a InformaticaServerlessRuntimeResource.
+ * Update a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
+ * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return a Serverless Runtime environment resource by Informatica on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName,
- String serverlessRuntimeName) {
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName,
+ String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) {
+ return updateWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, properties)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Delete a InformaticaServerlessRuntimeResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName,
- String serverlessRuntimeName, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
- }
-
- /**
- * Delete a InformaticaServerlessRuntimeResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
- String serverlessRuntimeName) {
- return this.beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).getSyncPoller();
- }
-
- /**
- * Delete a InformaticaServerlessRuntimeResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
- String serverlessRuntimeName, Context context) {
- return this.beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context)
- .getSyncPoller();
- }
-
- /**
- * Delete a InformaticaServerlessRuntimeResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String organizationName, String serverlessRuntimeName) {
- return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete a InformaticaServerlessRuntimeResource.
+ * Update a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
+ * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return a Serverless Runtime environment resource by Informatica along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String organizationName, String serverlessRuntimeName,
+ public Response updateWithResponse(String resourceGroupName,
+ String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties,
Context context) {
- return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
+ return updateWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, properties, context)
+ .block();
}
/**
- * Delete a InformaticaServerlessRuntimeResource.
+ * Update a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
+ * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Serverless Runtime environment resource by Informatica.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName) {
- deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).block();
+ public InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) {
+ return updateWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, properties, Context.NONE)
+ .getValue();
}
/**
@@ -798,31 +902,14 @@ public void delete(String resourceGroupName, String organizationName, String ser
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName,
- Context context) {
- deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).block();
- }
-
- /**
- * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaServerlessRuntimeResource list operation along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listByInformaticaOrganizationResourceSinglePageAsync(String resourceGroupName, String organizationName) {
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -839,33 +926,33 @@ public void delete(String resourceGroupName, String organizationName, String ser
return Mono
.error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
}
+ if (serverlessRuntimeName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter serverlessRuntimeName is required and cannot be null."));
+ }
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listByInformaticaOrganizationResource(this.client.getEndpoint(),
- this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName,
- accept, context))
- .>map(
- res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null))
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
+ * @param serverlessRuntimeName Name of the Serverless Runtime resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaServerlessRuntimeResource list operation along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listByInformaticaOrganizationResourceSinglePageAsync(String resourceGroupName, String organizationName,
- Context context) {
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -882,245 +969,160 @@ public void delete(String resourceGroupName, String organizationName, String ser
return Mono
.error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
}
+ if (serverlessRuntimeName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter serverlessRuntimeName is required and cannot be null."));
+ }
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .listByInformaticaOrganizationResource(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, organizationName, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, organizationName, serverlessRuntimeName, accept, context);
}
/**
- * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
+ * @param serverlessRuntimeName Name of the Serverless Runtime resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
- * {@link PagedFlux}.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux
- listByInformaticaOrganizationResourceAsync(String resourceGroupName, String organizationName) {
- return new PagedFlux<>(
- () -> listByInformaticaOrganizationResourceSinglePageAsync(resourceGroupName, organizationName),
- nextLink -> listByInformaticaOrganizationResourceNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
}
/**
- * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
+ * @param serverlessRuntimeName Name of the Serverless Runtime resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
- * {@link PagedFlux}.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux
- listByInformaticaOrganizationResourceAsync(String resourceGroupName, String organizationName, Context context) {
- return new PagedFlux<>(
- () -> listByInformaticaOrganizationResourceSinglePageAsync(resourceGroupName, organizationName, context),
- nextLink -> listByInformaticaOrganizationResourceNextSinglePageAsync(nextLink, context));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
}
/**
- * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
+ * @param serverlessRuntimeName Name of the Serverless Runtime resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable
- listByInformaticaOrganizationResource(String resourceGroupName, String organizationName) {
- return new PagedIterable<>(listByInformaticaOrganizationResourceAsync(resourceGroupName, organizationName));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName) {
+ return this.beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).getSyncPoller();
}
/**
- * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
+ * @param serverlessRuntimeName Name of the Serverless Runtime resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InformaticaServerlessRuntimeResource list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable
- listByInformaticaOrganizationResource(String resourceGroupName, String organizationName, Context context) {
- return new PagedIterable<>(
- listByInformaticaOrganizationResourceAsync(resourceGroupName, organizationName, context));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String organizationName,
+ String serverlessRuntimeName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context)
+ .getSyncPoller();
}
/**
- * Update a InformaticaServerlessRuntimeResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Serverless Runtime environment resource by Informatica along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(String resourceGroupName,
- String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (organizationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
- }
- if (serverlessRuntimeName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter serverlessRuntimeName is required and cannot be null."));
- }
- if (properties == null) {
- return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
- } else {
- properties.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept,
- properties, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ private Mono deleteAsync(String resourceGroupName, String organizationName, String serverlessRuntimeName) {
+ return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Update a InformaticaServerlessRuntimeResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Serverless Runtime environment resource by Informatica along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(String resourceGroupName,
- String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties,
+ private Mono deleteAsync(String resourceGroupName, String organizationName, String serverlessRuntimeName,
Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (organizationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
- }
- if (serverlessRuntimeName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter serverlessRuntimeName is required and cannot be null."));
- }
- if (properties == null) {
- return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
- } else {
- properties.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
- resourceGroupName, organizationName, serverlessRuntimeName, accept, properties, context);
+ return beginDeleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Update a InformaticaServerlessRuntimeResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Serverless Runtime environment resource by Informatica on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName,
- String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) {
- return updateWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, properties)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName) {
+ deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName).block();
}
/**
- * Update a InformaticaServerlessRuntimeResource.
+ * Delete a InformaticaServerlessRuntimeResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
* @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Serverless Runtime environment resource by Informatica along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateWithResponse(String resourceGroupName,
- String organizationName, String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties,
+ public void delete(String resourceGroupName, String organizationName, String serverlessRuntimeName,
Context context) {
- return updateWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName, properties, context)
- .block();
- }
-
- /**
- * Update a InformaticaServerlessRuntimeResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param organizationName Name of the Organizations resource.
- * @param serverlessRuntimeName Name of the Serverless Runtime resource.
- * @param properties The resource properties to be updated.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Serverless Runtime environment resource by Informatica.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public InformaticaServerlessRuntimeResourceInner update(String resourceGroupName, String organizationName,
- String serverlessRuntimeName, InformaticaServerlessRuntimeResourceUpdate properties) {
- return updateWithResponse(resourceGroupName, organizationName, serverlessRuntimeName, properties, Context.NONE)
- .getValue();
+ deleteAsync(resourceGroupName, organizationName, serverlessRuntimeName, context).block();
}
/**
@@ -1267,7 +1269,7 @@ public CheckDependenciesResponseInner checkDependencies(String resourceGroupName
}
/**
- * Starts a failed runtime resource.
+ * Returns a serverless runtime resource by ID.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -1275,11 +1277,12 @@ public CheckDependenciesResponseInner checkDependencies(String resourceGroupName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return a Serverless Runtime environment resource by Informatica along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> startFailedServerlessRuntimeWithResponseAsync(String resourceGroupName,
- String organizationName, String serverlessRuntimeName) {
+ private Mono> serverlessResourceByIdWithResponseAsync(
+ String resourceGroupName, String organizationName, String serverlessRuntimeName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1302,14 +1305,14 @@ private Mono> startFailedServerlessRuntimeWithResponseAsync(Strin
}
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.startFailedServerlessRuntime(this.client.getEndpoint(),
+ .withContext(context -> service.serverlessResourceById(this.client.getEndpoint(),
this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName,
serverlessRuntimeName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Starts a failed runtime resource.
+ * Returns a serverless runtime resource by ID.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -1318,11 +1321,12 @@ private Mono> startFailedServerlessRuntimeWithResponseAsync(Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return a Serverless Runtime environment resource by Informatica along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> startFailedServerlessRuntimeWithResponseAsync(String resourceGroupName,
- String organizationName, String serverlessRuntimeName, Context context) {
+ private Mono> serverlessResourceByIdWithResponseAsync(
+ String resourceGroupName, String organizationName, String serverlessRuntimeName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1345,13 +1349,13 @@ private Mono> startFailedServerlessRuntimeWithResponseAsync(Strin
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.startFailedServerlessRuntime(this.client.getEndpoint(), this.client.getApiVersion(),
+ return service.serverlessResourceById(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, organizationName, serverlessRuntimeName, accept,
context);
}
/**
- * Starts a failed runtime resource.
+ * Returns a serverless runtime resource by ID.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param organizationName Name of the Organizations resource.
@@ -1359,17 +1363,17 @@ private Mono> startFailedServerlessRuntimeWithResponseAsync(Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return a Serverless Runtime environment resource by Informatica on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono startFailedServerlessRuntimeAsync(String resourceGroupName, String organizationName,
- String serverlessRuntimeName) {
- return startFailedServerlessRuntimeWithResponseAsync(resourceGroupName, organizationName, serverlessRuntimeName)
- .flatMap(ignored -> Mono.empty());
+ private Mono